Shell — one layout route, one screen in its outlet

Shared app/components/, built in #200Screen its route module, built with the screen
<AppShell> · layout route routes/shell.tsx
<Sidebar>

248 px, navy. Stacks above the content at phone width.

<ProductMark>

logo + “FeeCheck”, a link to the start route

<NavGroup label="Work">
<NavItem to="/intake" icon="upload">

React Router NavLink: aria-current="page", lighter fill and accent bar when active; optional count badge

Entries come from one list (app/nav.ts). Only live entries are listed — nothing greyed out.

<SignedInPerson>

name, Google address, “Signed in with Google · runs in europe-west6” — from the session (GET /api/me), never from a token in the browser

<SignOutButton>

a form that POSTs to the backend's logout (CSRF token), then the website — not a GET link

<Outlet /> → routes/intake.tsx
<PageHeader section="Work" title="Contract intake" chip action>

72 px. Rendered by the screen, not by the shell: section, title, chip and action are the screen's own data. Sets document.title too.

<StateChip tone="warning">

word + tone pair from design.md

action slot

<Button variant="primary">Upload contract …

<Banner tone="error" onRetry>

only when the screen fails: top of the content area, below the page header — “This screen could not be shown.” + Try again; the sidebar stays usable. Same component for system messages — board 5

<StatusMessage kind="status">

confirmation after an action — role="status", above the content it concerns

screen content · designed in #199
<Section title="This session">

white card, 12 px radius, heading row

<StatusMessage kind="loading | empty | error">

in the place where the data appears — see board 2

… or the screen's list

rows are the screen's own markup

Drop zone, progress and pages belong to the intake screen (#199, #204). Owner's wish: PDFs can be dropped anywhere on this content area.

<ConfirmDialog> renders over the whole <AppShell> when a screen opens it — board 2.