Files
co-lite/openspec/changes/refine-visitor-pages-and-shell/tasks.md
T
ngqileandClaude Opus 5.5 6fda854df0 fix: neutral signed-out frame, visitor page polish and DESIGN.md update
Rest of the final-review fixes (the previous commit only removed the
duplicate breadcrumb test file, which moved into Breadcrumbs.test.tsx):
the signed-out frame drops the giraffe coat and 16px corners, the
loading icon spins, error headings fall back to the load-failed text,
invite registered and checked-in states are covered, the pinned-column
test renders a table, DESIGN.md describes the shipped look, and the
spec notes the pinned-column divider.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-01 23:44:36 +08:00

4.9 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: Breadcrumbs shows 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_MODULES list in aclSidebar.ts, the work and Administration split in Sidebar (full sidebar and drawer: divider and label; rail: divider only; no section when it has no items), and the "Administration" label in defaultMessages.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.css applied to the table-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) and VisitorState (icon, heading, text, action). RegistrationForm drops its header, adds the "Mobile or email is required" hint (new key in defaultMessages.ts), sets the notice as fine print, and aligns the consent row.
    • Depends on: 1.3
    • Scope: solvway-admin-portal/app/components/registration/** except QrCodeItem*, solvway-admin-portal/app/lib/i18n/defaultMessages.ts
  • 2.2 /r, /i and /c render every state inside VisitorCard, with VisitorState for 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, /i and /c in each reachable state;
    • My QR, using a throwaway staff user that is reverted afterwards;
    • login and reset password;
    • the /events and /events/new header;
    • 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
    • Done 2026-12-01 on the local stack (review server on port 3001), full portal verify green (vitest 1580 passed with exit 0, tsc 0, lint 0 errors).
      • Visitor pages at 360 and 1280 px: /r open form (company label, h1, dates, location, hint under mobile, fine-print notice in both languages before consent), the empty-submit errors shown on screen, an unknown code (no event details), /c lookup, /c not yet (heading balanced so the date stays whole), and /i already checked in. One h1 and one main in every state. Dark theme checked on /c. No registration was submitted (no records created).

      • Header: /events shows no trail, /events/new shows "Events" linking to /events.

      • Sidebar: Administration label and divider in the full sidebar, divider only in the rail.

      • Users table at 360 px: right fade at the start and gone at the end. The pinned first column hid the left fade, so it now carries a divider on its right edge (fix found in this check). Dark theme checked.

      • Reset password (throwaway CV staff user, reverted afterwards): same frame as login at 1280 and 360 px, and the policy error is shown.

      • My QR (same user, temporarily on the LC Live Check team, then removed and disabled): card layout at 360, 700, 1024 and 1280 px. At 1280 px a button overflowed the card, so the QR now stacks above the buttons (fix found in this check).

      • After the whole-branch review: the giraffe-spot coat and 16px corners were removed from the signed-out frame (DESIGN.md forbids them); login checked again at 1280 and 360 px. DESIGN.md updated to the shipped look. Full verify: vitest 1585 passed (exit 0), tsc 0, lint 0 errors.