Skip to content

feat(core): one component set and one app shell for every signed-in page #254

Closed

Description

@allisonmahmood

Part of #247. Implements spec §12 (the app shell and the component set); decision the prototype, amendments 11 and 12 (Allison, 2026-09-15).

What to build

  • The component set in packages/core/src/html.ts: buttons (default, primary, quiet, danger), fields (input, select, textarea, checkbox, radio, hint, error), fact lists, notices (plain, warn, refused), section headings, pills, and the confirmation form (consequence, list, acknowledgement, submit and cancel), each a named class styled once with the shell's tokens. No continuously repainting animation.
  • The app shell body: a second htmlPage body beside the auth card: the header bar (brand, Patches → /, Company, Connections, Your machines, the viewer's name and company, Sign out, the current section marked) over a wide card. pageResponse in packages/auth gains an app mode taking the viewer and the section; the sign-in door, create-or-join, the device-login confirm page and error pages keep the card.
  • Every signed-in page moves onto it: /company, /company/connections and its connect and detail pages, /machines; their forms, lists and notices become the shared components, and their page CSS keeps layout only. (The portal arrives on it in ticket 8; until then / is untouched.)
  • The ui-consistency review spec: "prefer a shared class when a treatment repeats" becomes "a first-party page introduces no button, field, list, notice or heading style of its own", names the set and the app shell, and makes a page-level override of a component's size, radius or colour a finding; the page-kinds list gains the app shell.

Admitted at merge

Nothing new is served; every existing signed-in page renders on the new shell with identical behaviour.

Done when

  • render.test.ts covers the app body's structure, the marked section and escaping of the viewer's name; the company, connection and machines page suites pass on the new shell; a screenshot of each page through the dev instance (patchy-dev-loop) shows one button, one field and one fact-list style across them.

Surfaces

Served pages (the ui-consistency spec and packages/core/fixtures unchanged), the Portal glossary (App shell, Component set from decided to built).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions