Repository navigation
feat(redesign): tactile artifact personalization and distinct material stocks - #41
Merged
Merged
Conversation
Signed-off-by: Dunkrick <rithwickgurram05@gmail.com>
Signed-off-by: Dunkrick <rithwickgurram05@gmail.com>
…aphic voices Signed-off-by: Dunkrick <rithwickgurram05@gmail.com>
Signed-off-by: Dunkrick <rithwickgurram05@gmail.com>
…zation Signed-off-by: Dunkrick <rithwickgurram05@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Transforms Nook's uniform artifact cards into distinct physical paper objects that users can customize and make their own. Cards now carry unique material identities by type, physical micro-interactions on drag/drop, and a personal paper tint palette.
Decisions & Rationale
--stock-text,--stock-link,--stock-photo,--stock-issue)artifactId % 4 + 1) with semantic material stocks based on card type. Complies with design rule V4 dev #5 ("Color has a job... Never pick a color from an id"). TEXT cards feel like sticky notes (#FBF8F1), LINK cards look like catalog cards (#E8ECF6), and GITHUB_ISSUE cards take on a ticket tone (#E6F0E8).--font-serif(EB Garamond) to the body of TEXT notes, directly fulfilling design rule Refactor card dragging to use a single visual position model. #4 ("serif for thoughts and display").--motion-settle) with shadow dampening instead of an artificial scale pop. Polaroids carry a slightly heavier pop settle (--motion-pop). Motion automatically reduces to instant onprefers-reduced-motionper rule Edit mode - Card componeny #6.--radius-0)--radius-0per design rule V4 dev #2 ("Things you handle are square").--tint-cream,--tint-rose,--tint-sky,--tint-sage,--tint-lavender,--tint-butter) strictly insidetokens.css. Component CSS contains zero raw hex values, satisfying design rule V3 dev #1.tint String?to theArtifactPrisma model. Existing records default tonull(rendering their material type default). Backend validates tints against a strict whitelist while allowingnullto clear customizations.Changes by Layer
Database & Backend
tint String?column toArtifactand created migration20261102120000_add_artifact_tint.backend/src/validation/artifacts.ts): AddedVALID_TINTSwhitelist check and support for clearing vianull.backend/src/services/artifacts.ts): Persistedtintupdates with existing ownership and workspace validation.Frontend & Design System
tokens.css): Defined type-level stock aliases and--tint-*palette tokens.ArtifactRotation.ts): ReplacedgetArtifactColorTokenwithgetTypeStock.useArtifactDrag.ts): DispatchedisSettlingdrop state when dragging finishes.artifact.css): Added@keyframes nook-artifact-settle,.nook-artifact--settling, type voices, and tint picker styles.TintPicker.tsx,ArtifactActions.tsx,ArtifactHeader.tsx,ArtifactView.tsx,Wall.tsx): Built accessible square swatch picker (role="radiogroup",role="radio",aria-checked, focus rings) and wired optimistic canvas updates.