| Address | Layout | Module | Issue |
|---|---|---|---|
/ | AppShell | redirect to /intake | #200 |
/intake | AppShell | routes/intake.tsx | #204 |
/sign-in | AuthLayout | routes/sign-in.tsx | #201 |
/no-access | AuthLayout | routes/no-access.tsx | #201 |
| anything else | AppShell | routes/not-found.tsx — “There is no page at this address.” | #200 |
/api/**, /oauth2/**, /logout | the backend's, never a client route | ||
SPA mode. The backend serves index.html for every client route. One screen = one route module + its test + its spec docs/specs/<issue>-<screen>.md. What a person shares or finds again sits in the address.
frontend/app/app/ root.tsx Layout, Outlet routes.ts nav.ts the sidebar's entries routes/ shell.tsx · auth.tsx · intake.tsx · sign-in.tsx · no-access.tsx · not-found.tsx components/ one file per shared component, kebab-case, test beside it tokens.css shared with frontend/site, not copied (#200)
| Component | File | Job |
|---|---|---|
| AppShell | app-shell.tsx | sidebar + outlet; loader asks /api/me |
| Sidebar | sidebar.tsx | mark, nav groups, signed-in person |
| ProductMark | product-mark.tsx | logo + name, link to start |
| NavGroup · NavItem | nav-group.tsx | group label; NavLink with active state and count |
| SignedInPerson | signed-in-person.tsx | name, address, provider and region |
| SignOutButton | sign-out-button.tsx | POST form to the backend's logout |
| PageHeader | page-header.tsx | section, title, chip, action slot; document.title |
| StateChip | state-chip.tsx | word + one of six tones |
| Button | button.tsx | primary · secondary · danger; as a or button |
| Section | section.tsx | card with heading row |
| StatusMessage | status-message.tsx | loading · empty · error (alert, Reload) · status |
| ConfirmDialog | confirm-dialog.tsx | the confirmation question |
| AuthLayout · AuthCard | auth-layout.tsx | centred card for the sign-in pages |
| Icon | icon.tsx | the feecheck-icons.svg sprite, as on the website |
Built once, used by every screen — a screen does not re-style them. Anything only one screen needs stays in its route module until a second screen needs it.