Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2.7 KiB
2.7 KiB
Context
The product design is in docs/superpowers/specs/2026-12-01-visual-followup-design.md. It builds on the tokens, components and DESIGN.md from add-visual-foundation. The owner chose the neutral look.
Goals / Non-Goals
Goals: a visitor-page card layout, My QR cards, reset password matching login, the header trail, the table scroll cue and the sidebar sections.
Non-Goals: per-company branding, backend changes, new dependencies, changing the theme behaviour of the visitor pages.
Decisions
- One shared visitor card. Add a
VisitorCardinapp/components/registration/that renders the ground, the card, the event header and the footer./r,/iand/cwrap every state in it.RegistrationFormdrops its own header and takes the card's. The states render a smallVisitorState(icon, heading, optional text, optional action) inside the card. Alternative rejected: styling each page separately, which would let the three pages drift. - Fine-print notice. Keep the
whitespace-pre-linetext and set it astext-xs text-muted-foregroundonbg-muted. The muted foreground is already contrast-tested at ≥ 4.5 on card and muted. - Scroll cue in CSS. Use the background-attachment
localversusscrollgradient technique on thetable-containerinui/table.tsx, with colours from--card, as a utility inglobals.css. It needs no JavaScript and no resize observers. Sticky header cells keep their opaque background. - Trail. In
Breadcrumbs, return nothing when the pathname equals the leaf's own URL. Otherwise render the leaf as a link (the parent of the current sub-page), as it does now. - Sidebar sections. Keep a fixed
ADMIN_MODULESlist of module names (BO_USERS,BO_ROLES,BO_EMAILS,BO_LOGIN_SECURITY,BO_AUDIT_LOG,BO_COMPANIES; Companies is added byuseAclSidebarfor super admins, the rest come from the menu tree) inaclSidebar.ts. Split the top-level links into work and admin lists when rendering. The server menu tree is flat, so the grouping lives in the portal. A module not in the list stays with the work items. - Reset password reuses the login page's two-column frame. Extract it to a small
AuthFrameonly if both pages need the same markup; otherwise copy the wrapper classes.
Risks / Trade-offs
- The fixed admin-module list goes stale when a new admin module is added. It then falls into the work section, which is visible and harmless. Mark it with a
ponytail:comment. - The CSS scroll shadows need opaque table cells, or the fade draws under them. Row hover uses a token background, so check it at 360 px.
Migration Plan
Portal deploy only. Roll back by redeploying the previous portal image.