Repository navigation
fix(core): dialogs keep Close on screen, and the overhaul's loose ends are tied - #1353
Conversation
|
GPT 6.1 Sol review, round 1, at 87381fb. No must-fix findings. Both fixed in c70be5d.
Not run again: round 1 had no must-fix findings. |
1eafda3 to
672b6a7
Compare
672b6a7 to
9d50673
Compare
05d9a24 to
7caf91b
Compare
9d50673 to
0a982e6
Compare
Acceptance: PASS with notesChecked Round 2 scope: Done means G1's loose ends are this PR's scope; the shared #1331 enforcement gate belongs to G2 (#1354).
Golden journeys
Rollback answers: match the diff. No migration, persisted-data format, wire/CLI or infrastructure change; no incompatible state left by a revert. Not run / notes
|
|
Again not a whole fan of the needs attention at the top but other than that lgtm. |
7caf91b to
13c254e
Compare
…s are tied Co-Authored-By: Claude Opus 5.5 <[email protected]>
0a982e6 to
9dc0d3b
Compare
…ls the check (#1354) Stacked on #1353; part of #1315. Merge the stack together, not alone. ## What changed The overhaul's pages are all on the shared helpers and templates now, but nothing stopped the next page from styling itself, and the old classes they replaced were still shipped. This PR finishes lane G (#1331): it deletes what no page uses, adds the last two enhancer behaviours, completes the gallery, and makes the system's rules fail `pnpm check`. No page's design changes; the comparison at the end shows every page as it was. 1. **Deleted, with no caller left.** The old What's new chunk and `whatsNewKind`. The mark aliases (`pm-*`, `av-*`, `mono-md`). Modal panels, step cards, form steps, agent previews, consent strips, can-lists, list links, side panels, card splits, confirmation lists and forms, `.verification-code`, `.auth-kicker`/`.auth-email`, `.lede`, `.section-heading`, `.tile`/`.tile-link`/`.tile-meta`/`.tile-row-plain`, pills and tags, `note-info`/`note-refused`/`note-inline` from the app's CSS (the served shell keeps its own), `field-rule`, `field-callout`, `.hint`, `.error-text`, `.tabular`, `w-menu`, `portal-table`, and the legacy token names. The portal's leftover layout CSS and its dead `refusal` and `confirmationAcknowledgement` helpers. `agentIcon` and `monogramTint` stay inside core. `pageResponse` and `htmlPage` no longer take `styles`. `servedStyles` is untouched; its pin test passes. 2. **The enhancer** (`/assets/ui.js`) gains two behaviours, both additive: - **Pending.** A submit with `pendingLabel` ("Testing…") swaps in that label once pressed. It stays static with `aria-disabled`, and its form refuses another submit until the page answers. The button holds room for the longer of its two labels from the start, so pressing it moves nothing. If the page's own script prevents the submit (Pidgeon's gate), the button is left alone. A page restored from the back-forward cache comes back at rest. Without script the form just submits; the server's guards are still the real protection. Test and connect (every integration) uses it; its resting box is unchanged, since its label is the longer one. - **A hint's live part.** `field`'s hint can be given in parts, one of them a `HintEcho`, so the connect frame's "Patches use it as attio/crm" follows the name as it's typed, and falls back to the example while the field is empty. Without script it shows what was submitted, as before. 3. **The gallery** draws `searchField`, `fieldRow` and `expandingTable` with a state table each. Pending is in the Button table, with a short "Test" beside the static pending state, and on the Flow page; the live hint is on the Flow page and in the Field table. The gallery test now keeps an inventory mapping every helper core exports to the state table or template page that shows it. The compiler fails a new export missing from it, and the test fails a table the gallery doesn't draw. The nine exports that draw nothing (the enhancer's and copy script's, the gallery's own, `idFor`) are named there. 4. **The checks**, each with rule tests: - **The stylesheet** (`core/src/styles/rules.ts`, run over every chunk by `styles.test.ts`): it parses the emitted CSS by property, part by part and inside functions, past `!important`. Colour literals fail anywhere. Type (a quoted family too), corners and shadows must come from tokens, and so must control heights, so a coarse pointer raises them. A ring with no offset counts as an edge, not a shadow. Drawings (marks, keycaps, icons, pseudo-elements) keep their own size, corners and letter size, but never their own colour or shadow. `servedStyles`, the fallback font metrics and the token block aren't read. The 13 values it found became tokens with the same values, or the same value written another way (see Core additions). - **Page markup** (two lint rules in `lint/`): `patchy/no-page-styles` refuses `<style>`, a `style` attribute or inline style set from a page's script. `patchy/no-hand-drawn-components` refuses a hand-written button, badge, notice or field, in markup or in the DOM a page script builds; hidden protocol inputs are fine. They found two hand-written buttons: `signOutForm` and the guide's Check again. Both now come from `button()`, with identical markup. - `pnpm ui:report` now prints the stylesheet findings by chunk; markup findings come from `pnpm lint`. 5. **Docs.** `ui-consistency` is finished as the review spec: the new helpers, the enhancer's two behaviours, and a Checks section listing every exception with its reason. It replaces the Legacy classes section. `docs/DEVELOPMENT.md` covers `/~ui`, `pnpm ui:report` and the checks, and gains a First-party pages bullet under what to exercise. `docs/product.md` and the glossaries follow (patches: tool and page are the two kinds; integrations: not "data source"; portal: the component set as built). ## Look at **The checks fail a page that styles itself.** Here `base.ts` has `border-radius: 4px` written back in place of its token: ``` × draws every colour, type role, corner, shadow and control height from the token block + "base: code { border-radius: 4px } is a radius", ``` A scratch page module with a `<style>`, a `style` attribute, an `<input>`, a badge, a note and `el.className = "btn …"`: ``` patchy(no-page-styles): A page writes no `<style>`: compose core's templates and helpers instead patchy(no-page-styles): A page sets no `style` attribute: compose core's templates and helpers instead patchy(no-hand-drawn-components): Draw a field with core's `field` and its controls (…), not by hand. A hidden protocol input is fine. patchy(no-hand-drawn-components): Draw a badge with core's `badge` or `dot`, not by hand. patchy(no-hand-drawn-components): Draw a notice with core's `notice`, `receipt` or `refusal`, not by hand. patchy(no-hand-drawn-components): Draw a button with core's `button`, `linkButton` or `iconButton`, not by hand. ``` On the tree, both pass with the exceptions below. **Exceptions, each with its reason** (all in `.oxlintrc.json`, `rules.ts` and the gallery test, and in `ui-consistency`): - The lint rules leave out `packages/core` (it owns the helpers and the stylesheet), `packages/patchy` and `packages/sdk` (their pages are a builder's own patch), tests, and the served wrapper's page state, `serving/src/stream-status.ts` and `downloads.ts`, which draw a running patch's shell in the browser on the frozen `servedStyles`. `serving/src/shell.ts` may write its one `<style>`, which holds `servedStyles`. - The stylesheet rule leaves drawings their own size, corners and letter size, and treats a 1px input as visually hidden geometry, not a control height. **Pending and the live hint**, from `test/browser-tier1/ui.spec.ts`: typing "sales" turns the hint to "Patches use it as attio/sales.", and blanking it brings back "attio/crm". Pressing Test and connect while its POST is held shows "Testing…" with `aria-disabled` at the same width. A second press and a `requestSubmit` are both refused before they leave the page (`[sent, refused, refused]`), exactly one POST arrives, and the page that answers is at rest. A short "Test" says "Testing…" in exactly the box it had. Without script, the hint keeps the drawn example. Holding that room costs Test and connect nothing at rest: its box, and its neighbour's, are identical with and without a pending label at 1280px and 390px (143×36 and 70×36 in a Chromium probe). ## How it was verified - `pnpm check`: format, lint, typecheck and synth pass. The offline run passed 304 of 309 files. All 15 failing tests, in `packages/patchy`'s CLI stub tests and `packages/execution`'s `LocalTaskProvider`, record a stray `GET /`: the probes T3 sends to local ports on this machine. This PR touches neither package, and CI runs them clean. - New tests: core's `rules.test.ts` (each role, the exemptions, rings, derived values, lists that mix drawings), the tree check in `styles.test.ts`, the lint rules' RuleTester cases, `pendingLabel` and `HintEcho` markup and escaping, the gallery's new state tables and its helper coverage, and the connect frame's live hint and pending submit across all five providers. - Browser: `test/browser-tier1/ui.spec.ts` run on its own locally, all eight tests passing, including the two new ones and the no-script hint. CI runs the rest. - Looked at `/~ui` and `/~ui/flow` on a local instance, and compared the pages below before and after on `dense`. The comparison is at `7e06d68`; the last commit, `c085bd7`, changes only the checks, their tests and the review spec, nothing a page draws. ### Hit every surface - **Wire, CLI, dev loop, migrations, company resources:** untouched. - **Vocabulary and product shape:** glossaries (patches, integrations, portal), `GLOSSARY-MAP.md` and `docs/product.md` updated. - **Served pages:** `ui-consistency` updated; `servedStyles` byte-identical (pin test). ### Core additions - `button`'s `pendingLabel`, and the `HintEcho` hint part on `field` (exported type). - The enhancer's pending state and live hint. - `styles/rules.ts` (the stylesheet rule). - Tokens with the values they replace: `--size-code` (.929em), `--line-body` (20px), `--h-textarea` (92px), `--h-command` (52px), `--r-inline` (4px), `--r-highlight` (3px), `--lift-sm`, `--key`, `--key-sm`. The avatar's ring is now `color-mix()` of `--ink` at 18%, the same colour. `.seg`'s corner is `calc(var(--r-control) + 2px)`, still 8px. `.badge-yellow` drops a border colour that already equals the badge's `currentColor` mix. ### Left for a design call (not changed) - The heights of rows and bars (table headers 36px, compact rows 40px, group rows 32px, a card's foot 52px, a setting row 64px, a receipt 40px) count as geometry. The spec scopes enforcement to control heights. If rows should be tokens too, that's a small follow-up. - A connection's own Test in its header could say "Testing…" too, but holding room for that label would widen it at rest (by about 30px), so it stays as it is. - Pidgeon's script swaps in a field's hint and error by writing `field-hint` and `field-error` nodes itself. The lint rule allows a field's text parts and holds only its controls. Share heads its people list with an `h3` drawn as a `field-label`. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Core styles, helpers, lint and docs. The pending state and live hint are additive and work without script. No schema, wire, CLI or `--json` change. - **What does a revert leave behind?** Nothing: no migration, no rows, no config. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy. <!-- patchy-dev:compare:allison --> #### Before and after, as Allison Mahmood (admin) Before is `672b6a7` (where this branch left ui/g1-loose-ends) and after is `7e06d68` (ui/g2-governance), both on the `dense` scenario, from `pnpm dev compare`. Every page answered 200 with no browser errors. ##### `/` **1280px, after**  No visible change at 1280px. | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | ##### `/patches/new-business` The patch's address shows each evidence instance's local origin, so it is covered in these four screenshots. **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/settings/people` **1280px, after**  No visible change at 1280px. | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | ##### `/settings/integrations` **1280px, after**  No visible change at 1280px. | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | ##### `/settings/integrations/connect/attio` **1280px, after**  No visible change at 1280px. | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | ##### `/agents` **1280px, after**  No visible change at 1280px. | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | ##### `/~ui/flow` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /patchy-dev:compare:allison --> 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 #1351; part of #1315. Merge the stack together, not alone.
What changed
The page lanes left loose ends. This PR ties the ones listed for lane G1 of #1331. (Its first item, keeping a dialog's Close on screen on phones, moved down into #1338 after acceptance, so every PR above that one has it.)
1aa89e53) after acceptance; nothing of it remains in this PR.AgentConnections.endedandMachineTokens.ended, so it uses the same window and newest-of-a-name rule as Your agents. While a computer is listed there, Home leaves out "Connect your agent", which leads to the same steps.getAnAgenthelper in auth holds the words and the links. Add a computer's Get an agent dialog uses it as its body, and the Final step opens it in place. Each link goes to its maker's own page, and I loaded each one in Chromium:claude.com/product/claude-code("Claude Code by Anthropic"),openai.com/codex/("Codex | AI Coding Partner from OpenAI"; curl gets a Cloudflare challenge, browsers don't) andcursor.com.shownTitleis nowpatchTitle(patch, company)in core. Every caller passes the patch's own company: the viewer's, or for a patch shared with a guest, the company that shared it. That covers Home, All patches, the switcher, Share, People's guests, the deactivation flow, the patch page and<title>. It matches the whole company name before the separator, so a company named "Harbor - Pine" still works.failuresColumn,failuresCellandfailedBadge: "Failures (24 h)", with None, No calls yet, or "n failed" linked to the failed log. Before, Home's count was a badge without a link./patches?owner=<user id>, which lists that person's patches exactly, under an Owner chip that clears it. The filters and Share keep the parameter. An id that isn't a member of the company narrows nothing. Before, it searched by name, which also matched titles.typedExactlyis now an option.inputandprefixInputtakeexact: true, and the company-address field on Join uses it./~uigallery now shows: door parts (verificationCode,meet,answerPair) with a Door state table, a Consent door page, the device door drawn from the real helpers, and P3's detail parts (chipMenuany and chosen,groupedTableclosed, open and permalinked,codeRow,person,settingsPanel,menuNewTabandmenuRulein a header menu, the quietcopyButton). It also adds P5'schecklist. Each state that takes the focus or ends a door has its own page, so the system page's focus never jumps:/~ui/refused(a Detail page whoserefusalNoticeleads),/~ui/checklist-refusedand/~ui/checklist-none(focus on the first box that can be chosen, or on the error), and/~ui/door-refused,/~ui/door-field,/~ui/door-outcomeand/~ui/door-unavailable. Each has a state table, and tests pin the list and each page's focus target.pnpm ui:reportno longer countsclass="btn-group"as a hand-drawn button. The.refusal:focusrule from P3 and P8 now lives once, in the notices chunk.docs/product.mdnames the aside "Your agent can, as you" and describes it as built.Look at
Home as Allison (dense): the two Reconnect rows end Needs attention, Yours' "2 failed" links to the log, and the titles have no company suffix. Before and after, desktop and phone, are under Before and after at the end (
pnpm dev compare).The Final step's No agent yet?, open (left), and the same words as Add a computer's Get an agent dialog (right):
The gallery's new parts (
/~ui, sample data):The dialog fix now lives in #1338 with its test (
ui.spec.ts› "on a phone, a dialog breaks a long unbroken name and keeps Close on screen").How it was verified
pnpm check: format, lint, typecheck and synth pass. The offline run passed 302 of 307 files. The 14 failures are all inpackages/patchyCLI stub tests, whose request logs catch theGET /probes T3 sends to local ports on this machine. This PR doesn't touch that package, and CI runs them clean.patchTitlein core (company suffix forms, another company's suffix kept, falling back to the name); Home's titles, published note and colleagues table, and All patches, without the suffix; the switcher's rows strip each patch's own company; Home's Yours count links to the failed log twice (its column and the phone line); Home's Reconnect rows for an ended app and computer, Connect your agent left out, and a colleague's Home without them; All patches?owner=(exact list, counts, a chip that clears, filters keep it, a stranger's id narrows nothing) and People's menu link; the Final step's disclosure and the Get an agent dialog holding the samegetAnAgent, whose links are the three official pages;exacton Join's address;ui:reportwith a button group; the gallery's state tables, its door and refused pages, anddisclosure.test/browser-tier1/ui.spec.tsrun on its own locally, all six tests passing (the 320px touch check covers the new gallery sections). CI runs the rest.pnpm dev up dense: Allison's Home, Priya's Final step with the disclosure open, Add a computer's Get an agent,/~ui,/~ui/door,/~ui/consent,/~ui/refused.§10 states kept
Core additions
disclosure(summary, body, { id, open })inui/disclosure.ts, with adisclosureschunk: the body's parts sit on one gap under the summary. The Final step uses it, and the gallery's Disclosures demo now draws from it.exactonInputOptions(replacestypedExactly, whose one caller moved).patchTitle(patch, company): its second argument is now required, which is a change to an existing helper on purpose (decision in g-followups). Every caller is updated, and the type system catches any missed..refusalfocus rules moved intonotices. (The dialog chunk's two rules moved to feat(core): one component set, five page templates and a gallery #1338.)Left for others
.verification-code), enforcement checks, finishingui-consistency(this PR only addsexactanddisclosureto it).productMark,expandingTableandfieldRowto the gallery.productMarkandcanListalready live once in core after the integrations restack.Release impact
Pages, core helpers and docs. Two read-only queries Home now calls already existed (P4's). No schema, wire, CLI or
--jsonchange. Old People links that searched?q=<name>still work as searches.Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.
Before and after, as Allison Mahmood (admin)
Before is
a3b8071(where this branch left ui/p4-agents) and after is87381fb(ui/g1-loose-ends), both on thedensescenario, frompnpm dev compare.Every page answered 200 with no browser errors.
/1280px, after
1280px, before