Repository navigation
feat(core): every first-party page reads in the new tokens and type - #1336
Conversation
…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]>
|
Sol review round 1 (GPT 6.1 Sol, xhigh): one Must fix, three Should fix; all fixed in d17fed0.
|
|
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.
Not running a third round: the brief allows one round after a Must fix, and both changes are one declaration each, checked as above. |
…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]>
bcb6d06 to
cd908ee
Compare
…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]>
…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]>
da1fd16 to
67e5911
Compare
cd908ee to
d05d4c8
Compare
67e5911 to
affc5cf
Compare
Acceptance: PASS with notesChecked Done means
Golden journeys
Rollback answers: match the diff. Styles and documentation only, with no persisted-data, schema, API, CLI or infrastructure change; no Sanitized local evidenceNot run
Notes
|
|
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. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
affc5cf to
f4d28b3
Compare
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**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | - 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**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | - 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**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | - 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**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | - 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**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | - 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**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | - 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]>
…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]>
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
/~uigallery.Part of #1317
Look at
packages/core/src/styles/holdsappStylesas named chunks composed from one list inindex.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 fromservedStylesas before;command-list.test.tschecks both carry its anatomy. A later lane adds a family as a new file and one line in the list.tokens.tsholds 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..field-prefixstays 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.(hover: hover); the hard shadow only on the primary button, the glyph, hero marks, menus, dialogs and doors; badges in sentence case (notext-transformanywhere, tested); flat paper in the app, the grid and gradient only behind doors.panel,grid,task,num,footand the oldflowdiagram).Before and after, as Allison Mahmood (admin)
Before is
cd908ee(where this branch left ui/f1-fonts) and after is67e5911(ui/f2-tokens), both on thebrightlinescenario, frompnpm dev compare.Every page answered 200 with no browser errors.
/1280px, after
1280px, before
/patches/new-business/delete1280px, after
1280px, before
/company1280px, after
1280px, before
/company/connections/connect/postgres1280px, after
1280px, before
Before and after, as Priya Shah (member)
Before is
cd908ee(where this branch left ui/f1-fonts) and after is67e5911(ui/f2-tokens), both on thebrightlinescenario, frompnpm dev compare.Every page answered 200 with no browser errors.
/company/agent-access1280px, after
1280px, before
/company1280px, after
1280px, before
How it was verified
styles.test.ts:appStylesis its chunks in order, everyvar(--…)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.pnpm dev up brightlineat 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
Styles only; no schema, API, CLI or configuration change.
Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.