Files
co-lite/docs/superpowers/specs/2026-12-01-visual-followup-design.md
T

4.3 KiB

Visual follow-up: visitor pages, My QR, login and shell fixes

Date: 2026-12-01. Follows 2026-12-01-visual-foundation-design.md (merged), on the same tokens and DESIGN.md.

Intent

Visitors judge INS and CV by the page they get when they scan a QR at the booth. Today that page is a plain stack of inputs with a long consent text and the company name only as small grey text. Staff see small leftovers in the shell from the first visual change. Finish the revamp before go-live (2027-01-15) so every screen a visitor or staff member sees matches the new look.

Decisions

  • Neutral look (owner, 2026-12-01). Visitor pages use Co-Lite's tokens with the company name prominent. No per-company logo or colour. Per-company branding is a later change if INS or CV ask for it.
  • One way to build it (my call). Restyle with the existing tokens and components. No new dependencies, no backend change, no copy change except the labels listed below.

Scope

  1. Visitor pages /r, /i, /c (shared RegistrationForm and the check-in lookup)
    • The page sits on the slate ground. The form is a white card (border, shadow-card), full width at 360 px and max-width md from sm.
    • Event header at the top of the card: company name as a small uppercase label in the accent colour, then the event name (h1), then dates and location on their own lines with calendar and map-pin icons. The pipe-separated line goes.
    • Fields keep their order and rules. Mobile gets the hint "Mobile or email is required" under the mobile field (new key in the default messages).
    • The privacy notice stays fully shown in both languages, as the spec requires. It becomes fine print: text-xs, muted foreground (contrast already tested ≥ 4.5), on a muted panel, with the language headings as small labels.
    • The consent row aligns the checkbox to the first line of text and gets normal line height.
    • The states (loading, inactive, too many, not yet, ended, thank you, welcome, checked in) render in the same card, with an icon (check, clock, alert) and a clear heading. The "register another person" button stays.
    • Footer: "Powered by Containerverse Sdn. Bhd." small and muted under the card, the same component as the admin shell.
  2. My QR codes. Each code is a card: event name as the card title, dates and location under it, the QR, then the buttons in one row that wraps on phones. "Switched off" stays as the warning badge in the card header.
  3. Login and reset password. They already use the new look. Remove the stale comments that describe the old brown and gold panel. Reset password gets the same two-column layout as login, so the two match.
  4. Header label. The trail no longer repeats the page title. On a top-level page (/events) it shows nothing. On a sub-page (/events/new, an event's page) it shows the parent as a link back ("Events").
  5. Tables on phones. When a table is wider than the screen, a soft fade on the right edge shows there is more to scroll. Pure CSS (background-attachment scroll shadows) on the shared table container, so every table gets it. The fade goes away at the end of the scroll.
  6. Sidebar groups. The flat list of 11 items gets one quiet divider with a small muted label "Administration" before Users, Roles, Emails, Login security, Audit log and Companies. Work items (Dashboard, Events, Event leads, Interests, Leads) stay above. The collapsed rail shows the divider without the label. The grouping is a fixed list of module names in the portal, since the menu tree from the server is flat.

Non-goals

  • Per-company logo or colour, or any change to Companies.
  • New fields, flows or copy on the visitor pages beyond the hint above.
  • Any change to how the visitor pages follow the light or dark theme. They keep today's behaviour.

Anti-goals

  • Hiding or shortening the privacy notice. It must stay readable in both languages.
  • Anything that slows the visitor form on a phone (no new fonts, images or libraries).

Verification

  • Vitest, typecheck and lint, with the exit-code check.
  • Playwright at 1280 and 360 px: /r, /i and /c in each state, My QR, login, reset password, /events and /events/new header, a wide table at 360 px, and the sidebar in full and rail mode.
  • The token and contrast tests stay green.

Left to the builder

Icon choice within lucide, exact spacing, and the fade width.