Skip to content

feat(core): every first-party page reads in the new tokens and type - #1336

Merged
allisonmahmood merged 1 commit into
mainfrom
ui/f2-tokens
Nov 10, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
ui/f2-tokens

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #1332; part of #1315. Merge the stack together, not alone.

What changed

Every first-party page drew from one stylesheet with 27 font sizes, weights from 450 to 900, capitals in labels and hard shadows on things that don't float, so pages looked assembled rather than designed. Now every page reads in the overhaul's tokens and seven type roles, without any page's markup changing. This is the first of two PRs for #1317: this one is the tokens and the restyle; the next adds the typed helpers, five templates, the enhancer and the /~ui gallery.

Part of #1317

Look at

  • One token block, named chunks. packages/core/src/styles/ holds appStyles as named chunks composed from one list in index.ts: fonts, tokens, base, type, then one chunk per family (marks, buttons, fields, status, notices, containers, tables, navigation, menus, dialogs, steps, tiles, appShell, doors, whatsNew, switcher). The switcher (feat(core): Mod+Shift+K opens Patchy's switcher #1304) draws on app pages from its own chunk in the app's tokens, and over a running patch from servedStyles as before; command-list.test.ts checks both carry its anatomy. A later lane adds a family as a new file and one line in the list. tokens.ts holds colour, the seven type roles in four weights, spacing, control heights (36/32, and 44 with 16px field text on a coarse pointer), radii 6/10/12 and the lift/float/modal shadows. Legacy token names (--white, --line-strong, --paper-blue …) map onto the new values for page CSS that still names them.
  • Native anatomy kept (plan review finding 12). Inputs, textareas and selects stay native at button height with 1px ink edges; .field-prefix stays a label fused into its group; menus stay top-layer popovers with their anchor positioning; the Final step's modal panel and its phone sheet keep their geometry. The prototype's drawn fields and absolutely positioned menus are not copied.
  • Rules the spec sets: ink focus ring everywhere (never blue); hover only under (hover: hover); the hard shadow only on the primary button, the glyph, hero marks, menus, dialogs and doors; badges in sentence case (no text-transform anywhere, tested); flat paper in the app, the grid and gradient only behind doors.
  • Deliberately unchanged here: markup, classes and page CSS (each page lane rebuilds its page on the templates and deletes its CSS); the sidebar's 900px fold, because Home's own CSS relies on it (the sidebar lane moves both to the spec's 1024px together); titles in Geist 800, as Cabinet Grotesk waits on ticket X.
  • Dropped: legacy classes with no caller (panel, grid, task, num, foot and the old flow diagram).

Before and after, as Allison Mahmood (admin)

Before is cd908ee (where this branch left ui/f1-fonts) and after is 67e5911 (ui/f2-tokens), both on the brightline scenario, from pnpm dev compare.

Every page answered 200 with no browser errors.

/

1280px, after

After: / at 1280px

1280px, before

Before: / at 1280px

Width Before After
390px Before: / at 390px After: / at 390px
/patches/new-business/delete

1280px, after

After: /patches/new-business/delete at 1280px

1280px, before

Before: /patches/new-business/delete at 1280px

Width Before After
390px Before: /patches/new-business/delete at 390px After: /patches/new-business/delete at 390px
/company

1280px, after

After: /company at 1280px

1280px, before

Before: /company at 1280px

Width Before After
390px Before: /company at 390px After: /company at 390px
/company/connections/connect/postgres

1280px, after

After: /company/connections/connect/postgres at 1280px

1280px, before

Before: /company/connections/connect/postgres at 1280px

Width Before After
390px Before: /company/connections/connect/postgres at 390px After: /company/connections/connect/postgres at 390px

Before and after, as Priya Shah (member)

Before is cd908ee (where this branch left ui/f1-fonts) and after is 67e5911 (ui/f2-tokens), both on the brightline scenario, from pnpm dev compare.

Every page answered 200 with no browser errors.

/company/agent-access

1280px, after

After: /company/agent-access at 1280px

1280px, before

Before: /company/agent-access at 1280px

Width Before After
390px Before: /company/agent-access at 390px After: /company/agent-access at 390px
/company

1280px, after

After: /company at 1280px

1280px, before

Before: /company at 1280px

Width Before After
390px Before: /company at 390px After: /company at 390px

How it was verified

  • styles.test.ts: appStyles is its chunks in order, every var(--…) it uses is defined in the token block, and nothing is set in capitals. The served-styles pin from feat(core): the app runs on Geist, and running patches keep their own styles #1332 still holds.
  • Typecheck, lint, and the core, serving, portal, auth, companies, integrations and server suites (1285 tests) pass locally.
  • Looked at every first-party surface on pnpm dev up brightline at 1280px and 390px (touch): Home, All patches, a patch's Overview, Log, Versions and Settings, Retire and Delete, the Share dialog, Your agents, People, Integrations and the catalogue, Postgres and Pidgeon connect, Agent access, What's new, Priya's Final step (desktop and the phone sheet), the switcher open over All patches, the persona picker, sign-in door, 404 and a stopping notice. One fix came out of it (a list link holding a line break stays a block).

Release impact

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

Styles only; no schema, API, CLI or configuration change.

  • What does a revert leave behind? Nothing.
  • Does the release before it still work with that? Yes.

Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.

@github-actions github-actions Bot added area:core Touches the core area area:docs Touches the docs area area:ui Portal and first-party browser pages, shared rendering and styles size:xl Over 1,000 changed lines; review in multiple passes labels Nov 8, 2026
allisonmahmood added a commit that referenced this pull request Nov 8, 2026
…kens

Sol's review of #1336:
- A button's label wraps again, within the width it has, so a long
  confirmation such as "Deactivate … and retire selected" stays inside a
  320px phone.
- Tabs and segmented links ring themselves inside their strip, which
  scrolls and would clip a ring drawn outside it.
- Tabs, segmented links and chips take their heights from tokens that grow
  to 44px on a coarse pointer, and monospace fields take 16px text there.
- Single-column grids (steps, flows, fields, dialog bodies, rows) get a
  shrinkable track, so a wide child can't push the page past the phone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Sol review round 1 (GPT 6.1 Sol, xhigh): one Must fix, three Should fix; all fixed in d17fed0.

  1. Buttons overflowed narrow phones (Must fix). .btn no longer forces one line: the label wraps within max-width: 100% (overflow-wrap: break-word, so a flex row still wraps before a word breaks), with block padding so a two-line button keeps its frame. Swept every surface at 320px with touch (admin, member and signed out, including every connect page and the deactivate confirmation): the document stays 320px wide everywhere. The sweep also caught single-column grids I had added (.step-card and friends) sizing their track to content; they now use minmax(0, 1fr). A 320px check of a long consequential button goes into the next PR's browser test, with the helpers.
  2. Scrolling tabs clipped the focus ring. Tabs and segmented links draw their ring inside (outline-offset: -2px), since the strip scrolls.
  3. Touch sizes off-token. New tokens --h-tab, --h-seg, --h-chip and --field-text-mono grow to 44px / 16px on a coarse pointer; tabs, segmented links, chips and monospace fields use them.
  4. Local origins in screenshots. Replaced: the evidence now shows Home, Delete, People and Postgres connect as Allison and Agent access and People as Priya, none of which print the instance's address. The earlier attachments are no longer referenced by the body; GitHub keeps orphaned attachments at their unlisted URLs and offers no API to delete them. They held throwaway local instance origins and a dev setup link, never a production secret.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Sol review round 2 (GPT 6.1 Sol, xhigh): round-1 findings 2–4 confirmed fixed; one Must fix and one Should fix left, both fixed in da1fd16.

  1. An unbroken legal name still overflowed (Must fix). The label's anonymous flex item kept the long word's minimum width. .btn now uses overflow-wrap: anywhere. Probed with the real stylesheet at 320px touch: Delete plus a 32-character name and Deactivate Allison Mahmood and retire selected both wrap inside 236px and the document stays 320px. Re-swept every admin, member and signed-out surface at 320px: no overflow; at 390px labels still break at spaces and button rows wrap before a button shrinks. Both labels go into the next PR's browser test.
  2. Account button at 40px on touch. .app-account takes --h-control (36px, 44px on a coarse pointer).

Not running a third round: the brief allows one round after a Must fix, and both changes are one declaration each, checked as above.

allisonmahmood added a commit that referenced this pull request Nov 8, 2026
…is touch-sized

Sol's second review of #1336:
- A button's label may break inside a long unbroken word, so a confirmation
  naming a 32-character patch stays inside a 320px phone. Labels still break
  at spaces first, and button rows still wrap before any button shrinks.
- The sidebar's account button takes the control height, 44px on a coarse
  pointer like every other place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood added a commit that referenced this pull request Nov 8, 2026
…kens

Sol's review of #1336:
- A button's label wraps again, within the width it has, so a long
  confirmation such as "Deactivate … and retire selected" stays inside a
  320px phone.
- Tabs and segmented links ring themselves inside their strip, which
  scrolls and would clip a ring drawn outside it.
- Tabs, segmented links and chips take their heights from tokens that grow
  to 44px on a coarse pointer, and monospace fields take 16px text there.
- Single-column grids (steps, flows, fields, dialog bodies, rows) get a
  shrinkable track, so a wide child can't push the page past the phone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood added a commit that referenced this pull request Nov 8, 2026
…is touch-sized

Sol's second review of #1336:
- A button's label may break inside a long unbroken word, so a confirmation
  naming a 32-character patch stays inside a 320px phone. Labels still break
  at spaces first, and button rows still wrap before any button shrinks.
- The sidebar's account button takes the control height, 44px on a coarse
  pointer like every other place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked affc5cfca7754c47569a76a17253ec844553eaeb (base d05d4c8a3c57194bc0fcbd7ef81b17da863a5be4) on fresh brightline and team data and isolated test fixtures, by GPT-6.1 Sol (xhigh) in Codex through T3 Code.

Done means

  • Existing pages retain their behavior and read in the new type at desktop and phone widths: passed for this PR's tokens/restyle scope. A 116-case browser sweep covered admin/member pages at 1280px and 390px, phone with a coarse pointer, including all five integration connect forms, patch tabs/confirmations, People, agents, What's new, doors and notices. No page errors, CSP refusals or document overflow. Visual inspection found coherent type and retained native layouts. The running-patch shell and its stylesheet are unchanged from the base.
  • Native anatomy, keyboard, no-script and coarse pointers: passed. With script both enabled and disabled, checked native invite textarea/select, keyboard popover and Escape, phone navigation, local table overflow, and the Final step's native dismissal. Coarse-pointer fields are 16px and controls/tabs 44px. Relevant offline suites passed: 124 files, 1,289 tests.
  • Whole component system and /~ui: deliberately delivered by feat(core): one component set, five page templates and a gallery #1338, as this PR's body explains. This verdict accepts the first half of UI overhaul F2: one component set, five page templates and a gallery #1317; it does not claim that issue is complete on this head.

Golden journeys

  • Sign in: passed. Signed-out company page returns 401; Ben signs in and reaches People; clearing the session returns the door.
  • Log a machine in: passed. Ada confirms the CLI code and computer name; whoami names it; logout removes the login. Ran the environment CLI outside the checkout so its seeded development credential cannot mask logout.
  • Publish a page: passed. Ada publishes; Ben opens it in its frame; retire/restore/delete/restore remove and recover its address.
  • Share/unshare: passed. Public sharing returns anonymous 200 without a cookie; company-only returns 401.
  • Find/open a tool: passed on Home/search and running tools.
  • Use a tool live: passed. Jordan's kudos appears on Priya's already-open page without reloading.
  • Use tier 2: passed. Jordan moves Saltwater Hotels from Lead to Discovery, Allison sees the move live, and the deal moves back. Spend refuses Allison approving his own request.
  • Invite/join: passed. Ada invites a fresh scenario address; it signs in, chooses Join Acme Co and lands on Home. Pending-invite revocation and member deactivation/reactivation are covered by the passing lifecycle suites; those reverse actions were not repeated in the browser.

Rollback answers: match the diff. Styles and documentation only, with no persisted-data, schema, API, CLI or infrastructure change; no one-way label needed.

Sanitized local evidence
Relevant offline suites:          124 files / 1289 tests passed
Desktop/phone admin/member sweep: 116 cases, no page errors/CSP/overflow
Script on/off native checks:      passed
Live Kudos, deal move/back, Spend: passed
Team sign-in, login/logout:       passed
Publish and reverse states:       passed
Fresh invitation and join:        passed
Public/company sharing:           anonymous 200 / 401

Not run

  • dense: not present on this foundation head. Used the available brightline/team scenarios and test fixtures; later dense-only state combinations were unavailable.
  • Full local verify and live Clerk: focused suites and local persona journeys above; CI is the record for the full suites.

Notes

  • CI snapshot: browser, Bun tests, CLI smoke and tier-2 smoke passed; several full-suite jobs remain queued. Server image failed before building on the crane download returning HTTP 504. The zero-duration matrix-install failure belongs to a superseded cancelled run. Neither is caused by this CSS change.
  • The PR's published screenshots predate this head. This acceptance ran on the head named above. No local-origin screenshots or private design material are attached.

@vsrikar08

vsrikar08 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Tbh I liked the old look of patchy with the grids and the background but that maybe just be me tbh. I iked the old style choice more with the grid layout and all but that is something again we can discuss later. Overall, I really like how much lighter it looks. If only there was some way to compromise bc I really iked the unique look of Patchy from before.

Base automatically changed from ui/f1-fonts to main November 10, 2026 16:29
@allisonmahmood
allisonmahmood merged commit d978cff into main Nov 10, 2026
25 checks passed
@allisonmahmood
allisonmahmood deleted the ui/f2-tokens branch November 10, 2026 16:41
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
Stacked on #1336; part of #1315. Merge the stack together, not alone.

## What changed

Pages share one stylesheet but no anatomy: headings, steps, notices,
settings rows, confirmations and receipts are assembled by hand,
differently on every page, so they drift. Now core has the component set
and the five page templates every page lane will build on, a small
enhancer that adds keyboard and dialog behaviour without making script
necessary, and a development gallery at `/~ui` that shows the whole
system. This is the second of two PRs for #1317; #1336 put every
existing page on the tokens.

Closes #1317

## Look at

- **Helpers** (`packages/core/src/ui/`), typed functions returning HTML,
text escaped, trusted slots named as such:
- `controls.ts`: `button`, `linkButton`, `iconButton` (primary,
secondary, quiet, danger, danger-solid; md/sm; static `pending`). The
field family: `field` draws label, hint, control, error in that order
and hands its control the ids, so the hint and error describe it and a
refusal sets `aria-invalid`; controls `input`, `textarea`, `select`,
`prefixInput`, `secretInput`, `checkbox`, `radio`, `choiceGroup`,
`switchForm` (core's `choiceCards`, `tileOptions` and `copyLine` stay as
they are).
- `feedback.ts`: `notice` (info/warning/danger, danger is an alert),
`receipt` (text only, Undo dropped per the plan), `badge`, `dot`,
`emptyState`.
- `structure.ts`: `pageHeader`, `section`, `card`, `settingRow`,
`facts`, `row`/`rows` (stretched-row links that leave buttons and menus
operable), `table`, `tabs`, `segmented`, `chip`, `menu` (native popover
of links and buttons, not an ARIA menu, on core's existing `rowMenu`),
`dialog`, `steps`, and `idFor` for repeated rows' ids.
- **Templates** (`ui/templates.ts`): `indexPage`, `detailPage`,
`settingsPage`, `flowPage`, `doorPage`. No CSS parameter; each returns
the `heading` and `body` `pageResponse` already takes, so a page writes
`pageResponse({ title, app, ...indexPage({ … }) })`. Their frames are
one new chunk, `styles/templates.ts`, registered with one line in the
chunk list.
- **Enhancer** `/assets/ui.js` (`ui/enhancer.ts`), served session-free
beside `copy.js` and loaded by every `pageResponse` page, so a door with
no session scripts now admits `script-src 'self'` (CSP can't name one
same-origin file without the origin, and Clerk-mode doors already admit
`'self'`). Focus starts on a dialog's `autofocus` control, else its
first field. A dialog reached by a link on this site closes with history
back to that page, whichever it was, past any refused submission it was
drawn again for (its chain lives in history state), so neither closing
nor Back revisits a POST; loaded any other way, it closes to its own
page; one without a close (the Final step) closes only by its own
actions. Escape is left to an open menu or the switcher first. Focus
returns to the very link that opened it, or its menu's button; Show
toggles a secret's mask; a fragment opens its `<details>`. Without
script a dialog is the page (`@media (scripting: none)` leaves out the
inert page behind it and the scrim), its Close is a link, and Show stays
hidden. A locked Flow section is a disabled fieldset. A refusal at a
content URL drops the enhancer with the fonts (`withoutAppAssets`,
renamed from #1332's `withoutAppFonts`).
- **Gallery** `/~ui`: the type roles and the token block's colours,
every helper in its states, a state table per component (spec §10 item
21, checked by a test), and `/~ui/index`, `/detail`, `/settings`,
`/flow`, `/door`, `/dialog` (its form always refuses, to show the
refusal and the way out of it) and `/final` (a dialog only its actions
close) built from the templates with sample data. Where it departs from
the prototype's System page, it is because the gallery composes only the
shared helpers, as every page must: colours are a table of the token
block's own values instead of a bespoke swatch grid, fields stack as
they do in a real form, spec rows are state tables, and the five
template diagrams are live template pages one click away, which show
more than a diagram. Adding gallery-only CSS to match the prototype's
documentation layout would be the page CSS the system forbids.
`portal/src/Gallery.ts` is mounted in `Server.ts` only where
`DevPersonas.enabled`, beside the persona picker; production answers 404
(tested).
- **Governance, report only:** `pnpm ui:report` (`scripts/ui-report.ts`)
lists raw visual values in the app's chunks (type, colour, radius,
shadow, control height; geometry exempt), page modules that pass
`styles`, write `<style>` or inline `style`, and hand-drawn button,
badge, notice and field markup outside core (hidden inputs exempt).
Today: 102 values, 27 modules; it never fails. G turns these into
checks.
- **Standards:** `.agents/skills/ui-consistency/SKILL.md` rewritten for
first-party pages against the system (tokens, templates, helpers, rules,
dialogs, the enhancer, the gallery, the legacy classes and what the
served shell shares); its served-patch sections are unchanged.
`docs/DEVELOPMENT.md` mentions `/~ui` and the report.
- **One look change:** the copy line's Copy button is secondary and
compact, as spec principle 4 and the prototype draw it.

The gallery and its template pages as Allison; before is the base, where
`/~ui` doesn't exist yet.

<!-- patchy-dev:compare:allison -->

#### Before and after, as Allison Mahmood (admin)

Before is `67e5911` (where this branch left ui/f2-tokens) and after is
`0134803` (ui/f2-components), both on the `brightline` scenario, from
`pnpm dev compare`.

##### `/~ui`

**1280px, after**

![After: /~ui at
1280px](https://github.com/user-attachments/assets/eab73a2e-88aa-4d0c-a725-97b563136af9)

<details><summary>1280px, before</summary>

![Before: /~ui at
1280px](https://github.com/user-attachments/assets/225bbbb1-4123-425a-a488-1abc4a7bc228)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /~ui at
390px](https://github.com/user-attachments/assets/2d80da9e-3240-49db-834f-37b892c1faf5)
| ![After: /~ui at
390px](https://github.com/user-attachments/assets/b5feb1f8-60e5-404f-b1fb-535e2ba6f0c1)
|

- Before at 1280px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.
- Before at 390px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.

##### `/~ui/detail`

**1280px, after**

![After: /~ui/detail at
1280px](https://github.com/user-attachments/assets/bff3a37a-da80-4a3a-9fcc-2fba3b449035)

<details><summary>1280px, before</summary>

![Before: /~ui/detail at
1280px](https://github.com/user-attachments/assets/41a9b17d-3a45-474f-9822-1079d6144b25)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /~ui/detail at
390px](https://github.com/user-attachments/assets/1867ed31-792d-4e16-ab12-4fb4a12e6111)
| ![After: /~ui/detail at
390px](https://github.com/user-attachments/assets/7561fd67-648d-4037-85be-ffda5e2457d2)
|

- Before at 1280px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.
- Before at 390px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.

##### `/~ui/settings`

**1280px, after**

![After: /~ui/settings at
1280px](https://github.com/user-attachments/assets/8c023f50-4e9f-45ec-a1c3-cfe44f4c8ce3)

<details><summary>1280px, before</summary>

![Before: /~ui/settings at
1280px](https://github.com/user-attachments/assets/a76e662d-f39a-4a47-81fe-4cfdddadaa5a)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /~ui/settings at
390px](https://github.com/user-attachments/assets/f1cdb6f5-1580-432e-80a2-1742f6cb6e27)
| ![After: /~ui/settings at
390px](https://github.com/user-attachments/assets/a121e4df-8d76-41b4-abd1-5fb5aa74d841)
|

- Before at 1280px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.
- Before at 390px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.

##### `/~ui/flow`

**1280px, after**

![After: /~ui/flow at
1280px](https://github.com/user-attachments/assets/859e41b9-8213-45ed-95f3-a013c5a8c1f4)

<details><summary>1280px, before</summary>

![Before: /~ui/flow at
1280px](https://github.com/user-attachments/assets/16a048ee-bffb-47e0-9c30-5424b76000ef)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /~ui/flow at
390px](https://github.com/user-attachments/assets/98693bbb-c3d9-45de-a788-8762b1e0712e)
| ![After: /~ui/flow at
390px](https://github.com/user-attachments/assets/829cfc63-4d6b-418f-8000-c65d84217920)
|

- Before at 1280px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.
- Before at 390px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.

##### `/~ui/door`

**1280px, after**

![After: /~ui/door at
1280px](https://github.com/user-attachments/assets/a0908484-4bd0-44c5-9d99-f7b068558df8)

<details><summary>1280px, before</summary>

![Before: /~ui/door at
1280px](https://github.com/user-attachments/assets/39c10e62-861f-4372-b8d1-fb27a49774aa)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /~ui/door at
390px](https://github.com/user-attachments/assets/c07dd5ea-47b7-4504-a961-239a358fafa0)
| ![After: /~ui/door at
390px](https://github.com/user-attachments/assets/7476ba92-27d9-4925-9311-1e8cf29ee587)
|

- Before at 1280px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.
- Before at 390px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.

##### `/~ui/dialog`

**1280px, after**

![After: /~ui/dialog at
1280px](https://github.com/user-attachments/assets/67a9908d-62d0-4759-a167-80b41b1c2908)

<details><summary>1280px, before</summary>

![Before: /~ui/dialog at
1280px](https://github.com/user-attachments/assets/180d5b74-c06d-4b38-aa72-aac7700114e1)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /~ui/dialog at
390px](https://github.com/user-attachments/assets/7b942d40-2d65-4f84-959e-efb34a23b2c1)
| ![After: /~ui/dialog at
390px](https://github.com/user-attachments/assets/3bc67efa-cc8d-4f1e-8abf-097cc982cf01)
|

- Before at 1280px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.
- Before at 390px answered 404; 1 browser error(s): `Failed to load
resource: the server responded with a status of 404 (Not Found)`.

<!-- /patchy-dev:compare:allison -->

## How it was verified

- `ui/ui.test.ts`: field order and ids, escaping, a refused choice group
marked invalid with its choices, the secret's hidden Show, button kinds
and pending, the switch form, `idFor`, menus as popovers, tabs, tables,
dialog close rules, steps, notice roles, template widths and the door's
heading, and that the gallery uses only classes the stylesheet draws and
no inline style. `auth/page.test.ts`: every page loads the enhancer and
admits it. `server/Server.test.ts`: `/assets/ui.js` serves signed out
with no cookie; every `/~ui` page 404s without personas and answers 200
with them. `scripts/ui-report.test.ts` pins the report's rules.
- `test/browser-tier1/ui.spec.ts`, run locally 3 times over (15 passed):
a refused submission draws the dialog again with its field invalid and
focused, Escape returns to `/~ui/index?page=2` with focus on New patch,
and Back goes on to the page before, never the POST; keyboard opens and
closes a row menu with focus returning; a dialog starts on its field,
goes back on Escape to the page that opened it (the gallery or the Index
page), with focus on the second of two links to it; loaded directly,
even with a malformed fragment, it closes to its own page; the
Final-step-like dialog ignores Escape; Show unmasks; a locked section's
radio is disabled; a fragment opens a disclosure; Copy appears; without
script the dialog is static in the flow with the app hidden, its Close
link works and Show stays hidden; on a 320px touch screen buttons, icon
buttons and tabs are 44px, field text is 16px, and the two long labels
from #1336's review (a person's name sentence and a 32-letter patch
name) don't overflow. `fonts.spec.ts` still passes with the enhancer on
doors.
- `pnpm check`: format, lint, typecheck and synth pass; the only test
failures are the known local ones (stray `GET /` on CLI stub servers,
execution timeouts under load), none in what this touches.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required

Core helpers, a static script route and a development-only route; doors
gain `script-src 'self'`. No schema, API, CLI or configuration change.

- **What does a revert leave behind?** Nothing.
- **Does the release before it still work with that?** Yes.

Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.

Co-authored-by: Claude Opus 5.5 <[email protected]>
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
…d once (#1376)

## What changed

This adds release 41's What's new entry, written from `a25a9c5`. It
covers everything merged since release 40's `through` (`08e1fd9`), and
sets the `patchy` release to `0.41.0` in `packages/patchy/package.json`
and `CURRENT_RELEASE`.

It ships the UI overhaul together with #1204, the terms prompt, as one
release, at Allison's word.

| Change | PRs |
| --- | --- |
| Improved: Patchy has a new look | #1332, #1336, #1338, #1343, #1353,
#1354, #1369, #1372 |
| New: Accept updated terms once | #1204 |
| Improved: Settings holds People, Integrations and Agent access |
#1334, #1341 |
| Improved: Home starts with what needs you | #1344, #1353 |
| New: A blue dot marks patches you haven't opened | #1370 |
| Improved: A patch's page has one header and tabs | #1345 |
| Improved: Search lands on All patches | #1346, #1353 |
| Improved: Inviting and deactivating people is clearer | #1349 |
| Improved: Your agents shows what's connected | #1352 |
| Improved: Integrations use plain words | #1347, #1351 |
| Improved: Agents and integrations show their own logos | #1371 |
| Improved: What's new goes by month | #1350 |
| Fixed: ⌘⇧K works on your company's public patches | #1339 |
| Fixed: Saving works after a patch stops being public | #1339, #1375 |
| Behind the scenes: every page built from one set of parts, with a
check | #1338, #1354 |
| Behind the scenes: agents know a once-public page's refusals mean
reload, and retries wait and stop | #1374 |
| Patch changes: a kept public page reloads into the company page; check
retries wait and stop | #1375, #1374 |

#1337 is release 40's own entry. #1340 (routes split, plus the call
summary Home and All patches show) and #1342 (the `dense` dev scenario)
need no line of their own: the call summary is part of the Home and All
patches changes, and the scenario is tooling. The overhaul makes no
patch changes. Running patches keep their own styles, which #1332 pins,
and the only SDK change is the wording of two error messages' admin
addresses.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`.
- **Rollback safety, from the live commit `d3d32da` (release 40) to this
PR's merge:**
- **#1334 is `one-way`.** Your agents and Settings moved to `/agents`
and `/settings/…`. Old addresses redirect forward, but release 40 serves
none of the new ones. This release's CLI hints, the `patchy` skill on
`main`, and the API, MCP and publish hints all name the new addresses,
so on release 40 they'd answer 404.
- **#1372 needs the private font bucket**, and that's done. Its deploy
step fetches the pinned Cabinet Grotesk file and checks it before
recording anything. The bucket was created on 2026-11-10 and holds the
pinned bytes. A rollback to a commit from before #1372 pins no font and
builds as before.
- **#1204** adds migration `0036_terms_acceptances`, an additive table
that release 40 never reads. Release 40 doesn't prompt, and coming
forward again asks only people who hadn't accepted. Not `one-way`.
- **#1375** changes only the public shell's script, and #1374 is skill
text. Release 40 renders its own shell and serves its own skills.
- **#1370 and #1339** add rows to the existing `patch_opens` table (a
guest's opens, and members' opens of public patches). Release 40 reads
them like any other open.
- **Everything else** is pages, styles, copy and docs: no migrations,
and no API, `--json` or configuration changes.
- **patchy-web #53**, the website line #1371's logos needed, is merged
(771e6d9).

**Rollback line:** Rolling back past #1334 would break every `/agents`
and `/settings/…` link that this release's CLI, skill and hints hand
out, because release 40 answers them with 404. Fix forward instead.

## How it was verified

- **Tests:** the `packages/core` What's new test passes (5), the
`packages/api` suites pass (64), and the three files are formatted.
- **The range.** Each of the 22 overhaul PRs was:
- reviewed by GPT 6.1 Sol at xhigh, with every finding fixed or declined
in writing on the PR;
  - accepted on its final head by an agent that didn't write it;
- merged green, by a merge train that rebuilt each PR's accepted tree on
main's tip and checked that main's tree matched it after every merge.
- **#1339, #1375, #1374 and #1204** were each Sol-reviewed and accepted,
and merged on their own: #1339 before the train, the other three after
it. #1204's acceptance was rerun on the new sign-in pages.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required

The changelog entry and the release version only.

- **What does a revert leave behind?** Nothing. CLIs installed from this
release report `0.41.0` and are told to match the server, as at every
release.
- **Does the release before it still work with that?** Yes.

Changes made by Claude Opus 5.5 in Claude Code, running in T3 Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Touches the core area area:docs Touches the docs area area:ui Portal and first-party browser pages, shared rendering and styles size:xl Over 1,000 changed lines; review in multiple passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants