Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
3.3 KiB
3.3 KiB
Tasks: refine-visitor-pages-and-shell
Design: design.md and docs/superpowers/specs/2026-12-01-visual-followup-design.md. Portal only. Every task is TDD, followed by the review gate. Tasks run serially in this order, because several of them touch globals.css and the i18n messages.
Verify for every task: cd solvway-admin-portal && npx vitest run; echo VITEST=$? && npx tsc --noEmit && npm run lint. Check the vitest exit code: an unhandled error fails the run even when every test passes.
1. Shell
- 1.1 Header trail without repeats:
Breadcrumbsshows nothing on a page whose URL is the matched leaf's own URL, and shows the leaf as a link on a sub-page.- Depends on: none
- Scope:
solvway-admin-portal/app/components/app/Breadcrumbs*
- 1.2 Sidebar sections: an
ADMIN_MODULESlist inaclSidebar.ts, the work and Administration split inSidebar(full sidebar and drawer: divider and label; rail: divider only; no section when it has no items), and the "Administration" label indefaultMessages.ts.- Depends on: 1.1
- Scope:
solvway-admin-portal/app/lib/aclSidebar*,solvway-admin-portal/app/components/app/Sidebar*,solvway-admin-portal/app/lib/i18n/defaultMessages.ts
- 1.3 Table scroll cue: a scroll-shadow utility in
globals.cssapplied to thetable-container, with colours from tokens only (the design-tokens test stays green).- Depends on: 1.2
- Scope:
solvway-admin-portal/app/components/ui/table*,solvway-admin-portal/app/globals.css,solvway-admin-portal/app/globals.test.ts
2. Visitor pages
- 2.1
VisitorCard(ground, card, event header with the company label, the dates and location with icons, footer) andVisitorState(icon, heading, text, action).RegistrationFormdrops its header, adds the "Mobile or email is required" hint (new key indefaultMessages.ts), sets the notice as fine print, and aligns the consent row.- Depends on: 1.3
- Scope:
solvway-admin-portal/app/components/registration/**exceptQrCodeItem*,solvway-admin-portal/app/lib/i18n/defaultMessages.ts
- 2.2
/r,/iand/crender every state insideVisitorCard, withVisitorStatefor loading, inactive, error, too many, not yet, ended, thank you, welcome and checked in. Existing behaviour and text stay the same.- Depends on: 2.1
- Scope:
solvway-admin-portal/app/r/**,solvway-admin-portal/app/i/**,solvway-admin-portal/app/c/**
3. Staff screens
- 3.1 My QR codes as cards: the event name as the title, dates and location, the switched-off badge in the card header, the QR and a wrapping button row.
- Depends on: 2.2
- Scope:
solvway-admin-portal/app/my-qr/**,solvway-admin-portal/app/components/registration/QrCodeItem*
- 3.2 Reset password uses the login page's two-column frame. Remove the stale brown and gold comments in login.
- Depends on: 3.1
- Scope:
solvway-admin-portal/app/reset-password/**,solvway-admin-portal/app/login/**
4. Release check
-
4.1 Playwright at 1280 and 360 px:
/r,/iand/cin each reachable state;- My QR, using a throwaway staff user that is reverted afterwards;
- login and reset password;
- the
/eventsand/events/newheader; - the Users table at 360 px, before and after scrolling;
- the sidebar, full and rail.
Run the full portal verify. Record the result here.
- Depends on: 3.2