Skip to content

refactor(deck): extract card-row atoms into components/deck/ - #33

Merged
damarals merged 1 commit into
mainfrom
refactor/29-card-row-atoms
May 10, 2026
Merged

damarals merged 1 commit into
mainfrom
refactor/29-card-row-atoms

Conversation

@damarals

Copy link
Copy Markdown
Owner

Closes #29

Summary

  • Move KeptRow, YearDisplay, YearEditor (with MIN_VALID_YEAR / MAX_VALID_YEAR) out of app/review/[id].tsx into new files under components/deck/.
  • Pure mechanical extraction — no behavior, prop, or render changes. The review screen now imports the three components from @/components/deck/*; the <KeptRow .../> JSX call site is byte-for-byte identical.
  • Prepares the ground for the upcoming unified app/deck/[id] page (Unify deck page: merge review/[id] into deck/[id] with drops-aware UI #30) so both screens consume the same primitives.

Test plan

  • npm run typecheck clean
  • npm run lint clean
  • npm test — 140/140 passing (no behavior changed; existing safety net acts as the regression check)
  • Smoke check the review screen on device to confirm rendering is visually identical

@damarals
damarals merged commit e1e7fb0 into main May 10, 2026
1 check passed
@damarals
damarals deleted the refactor/29-card-row-atoms branch May 10, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract shared card-row atoms into components/deck/

1 participant