refactor(deck): useDeckDetail + DeckDetailView (Brief 3) #146

Merged
varutasu merged 1 commit from refactor/deck-detail-split-brief-3 into main 2026-06-13 02:14:46 -04:00
varutasu commented 2026-06-13 02:13:10 -04:00 (Migrated from github.com)

Summary

  • lib/use-deck-detail.js — fetch, groupBy, memoized stats/grouping, isOwner
  • components/DeckDetailView.js — header + sidebar + card list layout
  • pages/deck/[id].js 170 → 50 lines

Completes P2 #13 deck detail god-component split.

Test plan

  • npm run test:run / npm run build
  • Manual: /deck/<id> — public + owner views, group-by

Made with Cursor

## Summary - `lib/use-deck-detail.js` — fetch, groupBy, memoized stats/grouping, isOwner - `components/DeckDetailView.js` — header + sidebar + card list layout - `pages/deck/[id].js` **170 → 50** lines Completes P2 #13 deck detail god-component split. ## Test plan - [x] `npm run test:run` / `npm run build` - [ ] Manual: `/deck/<id>` — public + owner views, group-by Made with [Cursor](https://cursor.com)
vercel[bot] commented 2026-06-13 02:13:13 -04:00 (Migrated from github.com)

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tcg-vault Ready Ready Preview, Comment Jun 13, 2026 6:13am

Request Review

[vc]: #0ZOfK9tSJ2+D2KNwgCIfm/uEcZyWmniBJgPEtV/kdxw=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJ0Y2ctdmF1bHQiLCJwcm9qZWN0SWQiOiJwcmpfRjZXOEVvRkd3Y0g3aWVGcnRvRlNlOXdVVkFhNSIsImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS9yYW5kYWxsLXN0aWxsd2VsbHMtcHJvamVjdHMvdGNnLXZhdWx0L1c1amVkUVQ1SjE2aHN6VG1IVXhnOGNVZ2FEY0giLCJwcmV2aWV3VXJsIjoidGNnLXZhdWx0LWdpdC1yZWZhY3Rvci1kZWNrLTM2MjQ1YS1yYW5kYWxsLXN0aWxsd2VsbHMtcHJvamVjdHMudmVyY2VsLmFwcCIsIm5leHRDb21taXRTdGF0dXMiOiJERVBMT1lFRCIsImxpdmVGZWVkYmFjayI6eyJyZXNvbHZlZCI6MCwidW5yZXNvbHZlZCI6MCwidG90YWwiOjAsImxpbmsiOiJ0Y2ctdmF1bHQtZ2l0LXJlZmFjdG9yLWRlY2stMzYyNDVhLXJhbmRhbGwtc3RpbGx3ZWxscy1wcm9qZWN0cy52ZXJjZWwuYXBwIn0sInJvb3REaXJlY3RvcnkiOm51bGx9XSwicmVxdWVzdFJldmlld1VybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS92ZXJjZWwtYWdlbnQvcmVxdWVzdC1yZXZpZXc/b3duZXI9c3R3bC1sYWJzJnJlcG89dGNnLXZhdWx0JnByPTE0NiJ9 The latest updates on your projects. Learn more about [Vercel for GitHub](https://vercel.link/github-learn-more). | Project | Deployment | Actions | Updated (UTC) | | :--- | :----- | :------ | :------ | | [tcg-vault](https://vercel.com/randall-stillwells-projects/tcg-vault) | ![Ready](https://vercel.com/static/status/ready.svg) [Ready](https://vercel.com/randall-stillwells-projects/tcg-vault/W5jedQT5J16hszTmHUxg8cUgaDcH) | [Preview](https://tcg-vault-git-refactor-deck-36245a-randall-stillwells-projects.vercel.app), [Comment](https://vercel.live/open-feedback/tcg-vault-git-refactor-deck-36245a-randall-stillwells-projects.vercel.app?via=pr-comment-feedback-link) | Jun 13, 2026 6:13am | <a href="https://vercel.com/vercel-agent/request-review?owner=stwl-labs&repo=tcg-vault&pr=146" rel="noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://agents-vade-review.vercel.sh/request-review-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://agents-vade-review.vercel.sh/request-review-light.svg"><img src="https://agents-vade-review.vercel.sh/request-review-light.svg" alt="Request Review"></picture></a>
github-actions[bot] commented 2026-06-13 02:14:03 -04:00 (Migrated from github.com)

Pipeline Health

Build + CI gates

Gate Status
Vercel build (Preview) pass
CI: Lint in progress
CI: Schema map fresh skipped
Preview smoke ⏭ skipped or pending
Visual diff ⏭ skipped or pending

Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build).

Role reports

Role Status
Reviewer report pending
A11y audit pending
Design system audit pending

See individual comments above for details. This rollup updates automatically.

<!-- pipeline-rollup --> ## Pipeline Health ### Build + CI gates | Gate | Status | | --- | --- | | Vercel build (Preview) | ✅ pass | | CI: Lint | ⏳ in progress | | CI: Schema map fresh | ❌ skipped | | Preview smoke | ⏭ skipped or pending | | Visual diff | ⏭ skipped or pending | _Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build)._ ### Role reports | Role | Status | | --- | --- | | Reviewer report | ⏳ pending | | A11y audit | ⏳ pending | | Design system audit | ⏳ pending | See individual comments above for details. This rollup updates automatically.
github-actions[bot] commented 2026-06-13 02:19:23 -04:00 (Migrated from github.com)

Visual Diff

Screenshots and diffs uploaded as artifacts: view run

If intentional changes: update snapshots locally with npx playwright test --project=visual --update-snapshots and commit.

## Visual Diff Screenshots and diffs uploaded as artifacts: [view run](https://github.com/stwl-labs/tcg-vault/actions/runs/27458770271) If intentional changes: update snapshots locally with `npx playwright test --project=visual --update-snapshots` and commit.
Sign in to join this conversation.
No description provided.