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
3.1 KiB
ADDED Requirements
Requirement: Visitor Page Look
The public visitor pages (registration, invitation and check-in) SHALL show their content in one card on the page ground. The card SHALL be headed by the company name as a small label, the event name as the main heading, and the event dates and location. The pages SHALL use only the portal's theme tokens and SHALL NOT show a per-company logo or colour. The privacy notice SHALL be shown in full in English and Bahasa Malaysia as smaller, muted text that keeps at least 4.5:1 contrast.
Scenario: Visitor opens a registration code
- WHEN a visitor opens the registration page of an INS event
- THEN the card shows "INS" as a label above the event name, then the event dates and location
- AND the full privacy notice appears in both languages above the consent box
Scenario: Visitor needs a contact
- WHEN a visitor sees the mobile field on the registration form
- THEN a hint under it says that a mobile number or an email is required
Scenario: Visitor reaches an end state
- WHEN a visitor's registration is accepted, or the code is inactive, or check-in has not opened yet
- THEN the same card shows an icon and a heading for that state
Requirement: Header Trail Without Repeats
The admin header SHALL NOT repeat the page title. On a page reached directly from the sidebar it SHALL show no trail. On a page below one, it SHALL show the parent page as a link back.
Scenario: Top-level page
- WHEN an admin opens the Events list
- THEN the header shows no trail text
Scenario: Sub-page
- WHEN an admin opens the new event page
- THEN the header shows "Events" as a link to the Events list
Requirement: Table Scroll Cue
A table wider than its container SHALL show a fade on each edge where more columns can be scrolled into view. The fade SHALL disappear at that end of the scroll. Where a data table pins its first column, the pinned column covers the left fade and SHALL instead show a divider on its right edge.
Scenario: Users list on a phone
- WHEN an admin opens the Users list at 360 px wide
- THEN a fade shows on the right edge of the table
- AND after scrolling to the last column the right fade is gone
- AND the pinned username column shows a divider on its right edge
Requirement: Sidebar Sections
The sidebar SHALL list the work pages first, then an "Administration" section for Users, Roles, Emails, Login security, Audit log and Companies. The section SHALL be marked by a divider and a small muted label, and only the divider SHALL show in the collapsed rail. A section with no item the admin may open SHALL NOT show.
Scenario: Super admin sidebar
- WHEN a super admin opens the portal
- THEN Dashboard, Events, Event leads, Interests and Leads are listed above the "Administration" label
- AND Users, Roles, Emails, Login security, Audit log and Companies are listed below it
Scenario: Staff without admin pages
- WHEN a staff user who can open only Events and Event leads opens the portal
- THEN the sidebar shows no "Administration" label