feat(revamp/phase-1): Phase 1 UI Shell — 18 routes with mock data#12
Merged
feat(revamp/phase-1): Phase 1 UI Shell — 18 routes with mock data#12
Conversation
Move app/, components/, lib/, prisma/, jobs/, emails/, proxy.ts, and .env.example into _archive/ to clear the way for the frontend-first revamp. Old code preserved for reference. memory.md updated to reflect new active branch and approach. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Builds the complete Phase 1 UI shell with all pages using typed mock data from lib/mock/. No API calls, no Clerk, no database. Routes built: - Agency: /dashboard (Kanban + dnd-kit), /deals, /deals/new, /deals/[id] /roster, /brands, /brands/[id], /briefs, /briefs/[id] - Creator: /creator/deals, /creator/deals/[id], /creator/profile - Brand: /briefs/new - Public: / (landing), /discover, /creators/[handle], /agencies Key features: - Kanban board with drag-and-drop (system stages reject drops) - Stage control panel with advance/reopen logic - Deal detail: 4 sections (Brief, Contract, Content, Payment) - Creator portal hides commission %, deal value - RoleSwitcher dev tool (localStorage) in header - Dark mode zinc/slate design - All 5 lib/mock/ fixture files with exact Prisma model shapes - 101 passing tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
lib/mock/)Routes built
Agency (9 routes):
/dashboard— Kanban pipeline with dnd-kit drag-and-drop (8 stage columns, system-controlled stages reject drops)/deals— Deal list table with stage filter + overdue toggle/deals/new— Create deal form with live payout preview + inline brand creation/deals/[id]— Deal detail: 4 sections (Brief, Contract, Content, Payment) + Stage Control Panel/roster— Creator roster table + Add Creator Sheet/brands— Brands table + Add Brand Dialog/brands/[id]— Brand detail + associated deals table/briefs— Brief inbox with status filter (NEW/REVIEWED/CONVERTED/DECLINED)/briefs/[id]— Brief detail with Convert/Decline/Mark Reviewed actionsCreator portal (3 routes):
/creator/deals— My deals filtered to creator_001; shows payout only (no commission %, no deal value)/creator/deals/[id]— Creator deal detail + content submission form/creator/profile— Profile editorBrand portal (1 route):
/briefs/new— Submit brief form + success screenPublic (4 routes):
/— Landing page (hero, how it works, role cards)/discover— Creator directory with client-side filters/creators/[handle]— Public creator profile + Partnership Request dialog/agencies— Agency listingKey features
lib/mock/— 5 typed fixture files matching final Prisma model shapes exactly (Phase 2 swap: replace import withfetch())lib/role-context.tsx— localStorage-based RoleSwitcher dev tool; stripped in Phase 3lib/stage-transitions.client.ts— string-literal stage logic (no Prisma imports)Test plan
npm run devstarts without errors/dashboardshows 8 Kanban columns with deals; drag-and-drop moves cards/deals/deal_005(PENDING_APPROVAL) shows Approve/Request Changes buttons/creator/dealsshows only creator_001 deals; no commission or deal value visible/discovercreator cards; platform filter works client-side/briefs/newsubmit shows success screen🤖 Generated with Claude Code