refactor(styles): retire .card; migrate 7 consumers to .glass-panel (Brief 5) #122
No reviewers
Labels
No labels
agent-context-drift
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/deckhearth#122
Loading…
Reference in a new issue
No description provided.
Delete branch "brief-5-retire-card-class"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Brief 5 of
unify-glass-panel-surfaces. Deletes the legacy.cardclass fromstyles/globals.cssand migrates all 7 consumers (the brief estimated 8; one suspected site turned out to be on a different pattern) to.glass-panel rounded-3xl p-{4|6}.A single panel vocabulary —
.glass-panel/.glass-panel-strong/.page-header-glass— across the app is the convoy's success metric..cardpredated the gradient-border system and was the last "opaque solid panel" pattern in user-facing pages.Files changed
styles/globals.css— delete the.card { ... }rule; replace with a documentation comment pointing future consumers at the right alternative.pages/settings.js— 2 swaps (p-4+p-6cards).pages/profile.js— 3 swaps (avatar card, stats card, activity card).pages/community/collections.js— 1 swap.components/CollectionsPageView.js— 1 swap.Net diff: +13 / -12.
Migration pattern
Each migration:
cardtoken withglass-panel rounded-3xl.p-4/p-6/text-center/mt-6/group/cursor-pointer).transition-all duration-{200|300}explicitly where the legacy class baked it in (5 of 7 sites; the 2 community sites already wrote it).hover:shadow-{lg,xl}Tailwind overrides on the 2 community sites — the.glass-panelcorner-light gradient is the new hover affordance.CSS change
Acceptance criteria
styles/globals.cssno longer contains a.card { ... }rule block.className=".*\\bcard\\b.*"references inpages/orcomponents/(verified by ripgrep: 0 matches; the remainingcard-grid-*/card-item-containermatches are unrelated CardItem CSS classes)..glass-panel rounded-3xland its original padding.transition-all duration-{200|300}preserved where the legacy class baked it in.hover:shadow-{lg,xl}dropped on community sites per the brief.npm run lintpasses (1 pre-existing unrelated warning).npm run test:run: 113/113 tests pass.Test plan
/profilein light + dark; verify all 3 cards (avatar, stats, activity) render with corner catch-lights./settingsin light + dark; verify both panels render correctly./community/collectionsin light + dark; verify list-tile cards render with hover affordance (corner-light gradient replaces the droppedhover:shadow-lg).Screenshot diffjob will fire; expected visual diff on profile / settings / community pages.Related
.convoys/unify-glass-panel-surfaces.md.convoys/unify-glass-panel-surfaces/brief-5-retire-card-class.mdMade with Cursor
The latest updates on your projects. Learn more about Vercel for GitHub.
Pipeline Health
Build + CI gates
Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build).
Role reports
See individual comments above for details. This rollup updates automatically.
Visual Diff
Screenshots and diffs uploaded as artifacts: view run
If intentional changes: update snapshots locally with
npx playwright test --project=visual --update-snapshotsand commit.