Routes and files — frontend/app, same layout as frontend/site

Routes (app/routes.ts)

AddressLayoutModuleIssue
/AppShellredirect to /intake#200
/intakeAppShellroutes/intake.tsx#204
/sign-inAuthLayoutroutes/sign-in.tsx#201
/no-accessAuthLayoutroutes/no-access.tsx#201
anything elseAppShellroutes/not-found.tsx — “There is no page at this address.”#200
/api/**, /oauth2/**, /logoutthe 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.

Folder

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)

Shared components (app/components/)

ComponentFileJob
AppShellapp-shell.tsxsidebar + outlet; loader asks /api/me
Sidebarsidebar.tsxmark, nav groups, signed-in person
ProductMarkproduct-mark.tsxlogo + name, link to start
NavGroup · NavItemnav-group.tsxgroup label; NavLink with active state and count
SignedInPersonsigned-in-person.tsxname, address, provider and region
SignOutButtonsign-out-button.tsxPOST form to the backend's logout
PageHeaderpage-header.tsxsection, title, chip, action slot; document.title
StateChipstate-chip.tsxword + one of six tones
Buttonbutton.tsxprimary · secondary · danger; as a or button
Sectionsection.tsxcard with heading row
StatusMessagestatus-message.tsxloading · empty · error (alert, Reload) · status
ConfirmDialogconfirm-dialog.tsxthe confirmation question
AuthLayout · AuthCardauth-layout.tsxcentred card for the sign-in pages
Iconicon.tsxthe 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.