Repository navigation
feat(core): agents and integrations show their own logos - #1371
Merged
Merged
Conversation
allisonmahmood
force-pushed
the
ui/product-logos
branch
from
November 9, 2026 20:11
f37b24a to
9b11316
Compare
allisonmahmood
changed the base branch from
ui/g2-governance
to
ui/canvas-grid
November 9, 2026 20:11
allisonmahmood
force-pushed
the
ui/product-logos
branch
from
November 9, 2026 20:26
9b11316 to
2c39381
Compare
Owner
Author
Owner
Author
Acceptance: PASS with notesChecked Re-check of the forced-colours failure at Done means
Golden journeys
CI: all 26 checks pass on the checked head, including browser, Node 22/24/26, Bun, live integration checks and rollback rehearsal. Rollback answers: match the diff. Rendering and offline scenario data only; no persistent schema, API, CLI or infrastructure change requiring a one-way label. Not run
Notes
|
1 of 2 tasks
allisonmahmood
force-pushed
the
ui/canvas-grid
branch
from
November 10, 2026 20:21
30e2128 to
048d0d5
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
ui/product-logos
branch
from
November 10, 2026 20:34
3466836 to
29eb037
Compare
allisonmahmood
added a commit
that referenced
this pull request
Nov 10, 2026
…repo (#1372) Stacked on #1371; part of #1315. Merge the stack together, not alone. ## What changed Patchy's own page, dialog and door titles are set in Cabinet Grotesk Extrabold, falling back to Geist, as the overhaul's type spec has them. The font file isn't in this repository: a private bucket in our AWS account holds it, a production deploy copies it into the release image, and `cloud.patchyhq.com` serves it from its own origin at a digest URL, as it serves Geist. Anywhere the file isn't, CI, PR images and local checkouts, titles stay Geist and pages declare no face for it, so nothing is fetched and nothing 404s. - **The pin.** `packages/core/fonts/display-font.json` names the file and its SHA-256. The server, the image build and the deploy all read it. The file goes beside it in `packages/core/fonts/`, which `.gitignore` keeps out of commits. - **Pages.** `fonts.ts` checks once, on load, whether the file is there. With it, the `fonts` chunk adds a `Cabinet Grotesk` face (weight 800, `font-display: swap`) and a metric-matched `Cabinet Grotesk Fallback`, and `--font-display` becomes `"Cabinet Grotesk", "Cabinet Grotesk Fallback", var(--font-ui)`. Without it, the app's stylesheet is byte for byte what it was (same SHA-256 at base and head). A running patch's shell, its policy and the company look are untouched; the shell styles' pin test still passes. - **The fallback.** Cabinet Grotesk Extrabold is about 11% narrower than Geist 800, so a title would shrink when the face arrives. The fallback is local Arial Bold (or Liberation Sans Bold) at Cabinet's width and line metrics, measured in Chromium against the official file: the 14 real titles' combined width within 0.1%, same line box. A single title can still change width by up to about 14px when the face arrives (acceptance measured 0–14px), but none moved or gained a line. The prototype used Arial Regular with synthetic bold; this measures against the real cut. Where neither is installed, the stack goes on to Geist. The face isn't preloaded: a page without a title would log an unused-preload warning, and the fallback makes the late swap still. - **Serving.** The portal's font routes serve what the release carries and hash each file on the way up. A file whose bytes aren't the ones its URL names stops the server from starting (`FontMismatch`), since a browser would keep the wrong bytes for a year. - **Deploy.** A new step 3 fetches `<sha256>/<file>` from `patchy-fonts-<account id>` and checks it with `sha256sum` before the run records or deploys anything. The image build checks the bytes again, and that they reached the staged runtime. The deploy job drops its pnpm cache (a cache saved from `main` can be restored by any pull request's workflow; I checked pnpm's store doesn't take the file today, so this is insurance). `server-image.yml` never fetches the font and says why above its artifact upload. A commit from before this one pins no font, so a rollback to it builds exactly as before. **Why the bucket isn't in CDK.** The image is built before the base stack deploys, and the base stack deploys from each release's own commit. A stack-made bucket wouldn't exist, let alone hold the file, for the first release that needs it, and a rollback past this change would take it out of the stack (retained, but orphaned, and the next deploy would fail to create it again). So the bucket is made once by hand, like the host secret's value. It can be set up before this merges, and no stack update or deletion can touch it. **The explicit choice:** once a commit pins the font, every production deploy requires it and stops before recording anything when it's missing, unreadable or different. No release quietly ships Geist titles, and every rebuild of a commit gets the same bytes, so its image digest matches ECR's. `docs/OPERATIONS.md` › The display font records all of this. Core additions: `displayFont`, `hasDisplayFont`, `servedFonts` and `fontStyles(withDisplay)` in `fonts.ts`; `Fonts.serve(files)` and `FontMismatch` in the portal. `fontFaces`, `fontUrl`, `fontFile` and `fontPreload` behave as before. The `/~ui` gallery's title rows name the face in use. ## For Allison One-time, before the first deploy that includes this PR. It can run now. Use administrator credentials; nothing here touches the running service. ```sh digest=de0d7ba5c28ab4a863b7c32293fb115de54157eeb868bd567207ceb33e14a578 account=$(aws sts get-caller-identity --query Account --output text) bucket=patchy-fonts-$account aws s3api create-bucket --bucket "$bucket" --region us-east-1 aws s3api put-public-access-block --bucket "$bucket" --public-access-block-configuration \ BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true aws s3api put-bucket-versioning --bucket "$bucket" --versioning-configuration Status=Enabled aws s3api put-bucket-policy --bucket "$bucket" --policy "$(jq -n --arg bucket "$bucket" \ --arg role "arn:aws:iam::$account:role/patchy-production-deploy" '{ Version: "2012-10-17", Statement: [ {Sid: "DeployReads", Effect: "Allow", Principal: {AWS: $role}, Action: "s3:GetObject", Resource: "arn:aws:s3:::\($bucket)/*"}, {Sid: "TlsOnly", Effect: "Deny", Principal: "*", Action: "s3:*", Resource: ["arn:aws:s3:::\($bucket)", "arn:aws:s3:::\($bucket)/*"], Condition: {Bool: {"aws:SecureTransport": "false"}}} ]}')" cd "$(mktemp -d)" curl -fsSL -o cabinet-grotesk.zip https://api.fontshare.com/v2/fonts/download/cabinet-grotesk unzip -jq cabinet-grotesk.zip '*/Fonts/WEB/fonts/CabinetGrotesk-Extrabold.woff2' echo "$digest CabinetGrotesk-Extrabold.woff2" | sha256sum --check && aws s3 cp CabinetGrotesk-Extrabold.woff2 "s3://$bucket/$digest/CabinetGrotesk-Extrabold.woff2" aws s3api head-object --bucket "$bucket" --key "$digest/CabinetGrotesk-Extrabold.woff2" --query ContentLength # 20960 ``` If a deploy runs first, it stops at "Fetch the display font" before recording or deploying anything; run the above, then start a new run. ## Look at <!-- patchy-dev:compare:allison --> #### With the font in place, as Allison Mahmood (admin) Before is `3466836` (--base origin/ui/product-logos) and after is `9a5d8b7` (ui/cabinet-titles), both on the `dense` scenario, from `pnpm dev compare`, with the official file dropped into the after side's checkout (and removed afterwards). Every page answered 200 with no browser errors. ##### `/` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/patches/new-business` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/patches/new-business/delete` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/brightline/holiday-rota` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /patchy-dev:compare:allison --> The gallery's type specimen names the face it draws titles in: | Before | After | | --- | --- | |  |  | **Without the file** (the same compare on head as CI and everyone else builds it): Home and the door showed no visible change at either width. The patch page and the dialog differed only in the instance's host name and two call durations; every title stayed Geist. Every page answered 200 with no browser errors. ## How it was verified - **Network, both ways**, on this worktree's instance as a signed-in person, with Playwright: - With the file: `200 /assets/fonts/Geist-Variable-3626eba547294501.woff2`, `200 /assets/fonts/CabinetGrotesk-Extrabold-de0d7ba5c28ab4a8.woff2`; the title computes to `"Cabinet Grotesk", "Cabinet Grotesk Fallback", Geist, …`; no console errors or warnings. - Without it: only Geist's request; the title computes to `Geist, "Geist Fallback", …`; no console errors or warnings. - **A wrong file is refused.** Other bytes at the font's path stop `pnpm dev` with `FontMismatch: …CabinetGrotesk-Extrabold.woff2 has SHA-256 d039…, not the pinned de0d…; put the official file there, or remove it.` - **Reproducible with the font.** `scripts/build-server-image.mjs` run twice with the file in place gave the same tarball and digest, `sha256:838dc8c2e148…`, and the image's `@patchy/core/fonts/CabinetGrotesk-Extrabold.woff2` hashes to the pinned digest. The tarballs were deleted afterwards. - **Tests.** `fonts.test.ts`: with the file, the face at its URL, weight 800 and swap, a fallback that asks for nothing, and the title stack; without it, no face and `var(--font-ui)`; a copy of `fonts.ts` laid out as a release, with and without the file beside it, decides as the server will (hardcoding the check fails it); the release's stylesheet follows the file. `Fonts.test.ts` (portal): a font beside the committed ones is served at its digest URL with year-long caching; without the file its URL answers 404; a mismatched file fails startup with `FontMismatch`. The shell styles' pin test is unchanged and now also refuses `Cabinet`. - `pnpm check`: format, lint, typecheck and synth pass. The offline tests' failures locally were only `packages/patchy` CLI and `packages/execution` stub tests receiving a stray `GET /`, this machine's port probe, which CI doesn't have. The core and portal suites pass. - **Not checked:** the deploy step itself, which needs the bucket. Its `jq`/`sha256sum` logic is the same check run locally above, and the bucket policy JSON was rendered offline. **Hit every surface.** Applied: served pages (the ui-consistency type notes and the `/~ui` gallery name the face; the patch shell and the HTML checks are untouched), the dev loop's docs (`docs/DEVELOPMENT.md` › Titles' typeface: an administrator puts the file in place; everyone else sees Geist; no runner change), operations (`docs/OPERATIONS.md`: the bucket, the one-time setup, the deploy step, the setup record), reverse states (removing the file returns titles to Geist; rollbacks across this change are covered above). Not applicable: the wire contract, the CLI, migrations, company resources, vocabulary (`GLOSSARY-MAP.md`'s "the app's fonts" still covers it) and the repo layout. ## Release impact - [x] **Breaking**: requires action from anyone already running this - [ ] **Not breaking**: no action required Only for the production deploy: from this commit on, a deploy stops before recording anything until the bucket holds the file (For Allison, above). Nothing changes for people using Patchy beyond the titles' face, or for anyone running the server by hand. - **What does a revert leave behind?** The bucket and its file, which nothing reads any more. No schema, rows or stack changes. - **Does the release before it still work with that?** Yes. It draws titles in Geist and never looks for the file. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy. Co-authored-by: Claude Opus 5.5 <[email protected]>
1 of 2 tasks
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]>
1 of 2 tasks
allisonmahmood
added a commit
that referenced
this pull request
Nov 11, 2026
#1227) ## What changed People had no way to tell Patchy what it lacks or got wrong without a terminal, and nowhere to see or take back what their agents sent. The only path was a `mailto:` on the integrations page. Now **Tell Patchy** sits in the sidebar's foot between What's new and the account, and opens a panel in What's new's frame: Request or Feedback, one field, Send. A request's receipt is followed by its similar requests, each with its status and public note, and **Same need** links one in a click. **What you sent** at `/feedback` lists everything the person and their agents sent, with Unlink and Withdraw… in each row's menu. Integrations' **Ask** and **Ask for an integration** open the same panel with Request picked. This is Direction A from the mocks (post.patchyhq.com/d/irl2myfbmdgk), ported onto the new component set. Part of #1210, closes #1215 **Ported onto the new component set.** While this waited, main replaced the first-party UI: the overhaul (#1332–#1354, #1371), the component set and five templates (#1338), the new sidebar (#1341), What's new's foot menu (#1350), and a check that fails a page that styles itself (#1354). The classes the first version used are gone. This version keeps the same concept, flows and behaviour, and draws everything from core's helpers with no page CSS. The look follows the system rather than the mock, and the departures it forces are listed under **Look at**. **How it works** - **The panel** lives in the shell (`packages/core/src/html.ts`), so every app page has it. It is a `menu app-foot-menu` popover, like What's new's, anchored to whichever button opened it. It sits outside the folding Menu, because a popover inside a hidden menu can't show, so any page's button with `popovertarget="tell-patchy"` opens it; its `data-kind` picks the kind. The form is `choiceGroup`, `field` and `textarea`, with no `maxlength`, plus a primary Send. Its styles are a few lines in core's `app-shell` chunk. - **Sending** goes through `/feedback/tell.js`. It posts the panel's forms with a `patchy-panel` header, and the server answers with markup drawn by helpers: - a sent request: a `receipt` naming its title, then `rows` of matches, each with a `badge`, its note, Same need and Unlink; - a refusal: the form drawn again with the field's `error`. The script only moves server-drawn markup and toggles `hidden`, so it draws no component. - **Without the script**, the composer has its own address, `/feedback/new?kind=request` (or `feedback`; anything else is a request), a `dialog` over What you sent with the panel's fields. A refused send from it draws it again with the field's error and an empty field. Integrations' Ask buttons are links to it: the panel's script opens the panel beside them instead, with the kind taken from the link. A sent request lands at its own address, `/feedback/<id>/sent`. It is a `dialog` over What you sent, drawn by the same renderer as the panel's answer, where Same need and Unlink post and come back to it. Done and Close go to What you sent. Only the request's sender sees it, and another person's id or a feedback id answers 404. Feedback lands on What you sent with a receipt, and a refusal on What you sent with a `refusal` above its table. - **Behaviour carried over unchanged:** - the routes and the `patchy-panel` contract; - the long-request split (`requestOf`: the first line, or the opening words cut with "…", becomes the title, and the whole text the why); - no automatic resend after an ambiguous failure; - one change in flight across the panel, with a counter that drops stale answers. Every close settles what was in flight: the panel opens again with the draft kept and the "couldn't confirm" note; - closing gives focus back to the button that opened it, or to Menu once that is folded away, after the switcher's chord and after a tap outside too; - `Feedback.get`, and surface `dashboard` with no agent. - **What you sent** is `indexPage` over the shared `table` (Sent, What, From, Status, a `menu` per row), paged by the store's cursor with Older. It lights no place. **Withdraw…** opens a `dialog` over it at `/feedback/:id/withdraw`, with Cancel first and focused and **Withdraw request** in `danger-solid`, as Your agents' Disconnect does. - **Small core additions:** - `button` takes `popovertarget` and `popovertargetaction`; - `field` takes `hideLabel` and `choiceGroup` takes `hideLegend`, keeping the mock's label-free composer while readers still get the names; - a speech-bubble `message` icon. Each comes with its gallery entry. Feedback joins the portal's services, and FeedbackPages is registered with the other portal surfaces. - **`dense`** now shows both: five general requests, one of each status and two with notes, plus Allison's own requests and feedback beside her agents' (Claude Code and Codex through the CLI, ChatGPT through Patchy MCP, and one unnamed agent), three of them linked. These are seeded through two new scenario fields, `generalRequests` and per-person `sent`. The ids are stable and in the store's shape, so a resumed `up` writes the same rows and the cursor pages them. - **Store changes**, each in its own commit with a test: - `Feedback.get({ person, id })`, which the withdraw dialog, the Unlink receipt and the sent address read; - `Feedback.similarTo({ person, id })`, which matches one of the person's own requests again with the query filing used, ranked now, for the sent address. ## Look at <!-- patchy-dev:film:tell-patchy --> #### Flow `tell-patchy`, as Allison Mahmood (admin) After is `857cc17` (feedback/portal), on the `dense` scenario, from `pnpm dev film`. - After: finished in 17.2s https://github.com/user-attachments/assets/9e6604b0-c0b1-4d1f-8c5e-c11fcb061fbe <!-- /patchy-dev:film:tell-patchy --> <!-- patchy-dev:compare:ada --> #### Before and after, as Allison Mahmood (admin) Before is `6a5a29c` (where this branch left main) and after is `857cc17` (feedback/portal), both on the `dense` scenario, from `pnpm dev compare`. ##### `/settings/integrations/connect` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px | No visible change |  | ##### `/feedback` **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:ada --> **With Patchy's general requests**, on a local `dense` instance as Allison. Fresh evidence instances run the same scenario. **1. Send a request from the foot, see similar requests, link one and unlink it**   <details><summary>Composing, and after Unlink</summary>   </details> **2. A key is refused on the field, and Ask for an integration opens the panel with Request picked**   **3. What you sent, a row's menu, Withdraw**     **4. When a send's answer is lost** (the server stored it and the browser never heard back): nothing is sent again, the draft stays, and the note points to What you sent.  **5. Without script: the sent request's own address, then linked from it**    <details><summary>Phone, without script</summary>   </details> **6. Phones: the panel opens above the foot inside Menu, the table scrolls sideways, Withdraw is a bottom sheet**  <details><summary>Phone: from Integrations, What you sent, a row's menu, Withdraw</summary>  </details> **Departures from Direction A that the new system forces** - **Receipts, not green boxes.** Success is quiet, so a sent request leaves a `receipt`, "Request sent: <title>", and a link leaves "Linked to <match>". The mock showed a bordered "Request sent" note. - **Statuses are `badge`s** with the mapping main's overhaul gave the old pills: Shipped green, Planned blue, Declined red, Open plain. - **A match stacks** its title, note, then badge and Same need, as a `row` in a 360px panel does. The mock put the badge beside the title. - **A refusal is the field's error**, one red sentence under the field that the field is marked against ("Your request has a Google API key in it. Nothing was saved. Take it out, or write <token> where it was, and send again."), rather than the mock's callout box. - **No bottom sheet on a phone.** Foot menus open above their button now, so Tell Patchy does too, as What's new does. Withdraw's dialog is the system's bottom sheet on a phone. - **Withdraw is a dialog over What you sent**, as confirmations on list pages are now, rather than a page of its own. Its URL is unchanged. - **Main's copy on Integrations.** The page now says **Ask** in the catalogue's "Something else" row and **Ask for an integration** in a member's header. Both open the panel; I kept those words rather than "Request an integration". - **An icon in the foot.** Every foot place wears one now, so Tell Patchy has a speech bubble. Its panel heading is the menu's head, as What's new's is. - **One notice a page.** The note for a send it can't confirm waits inert in a `<template>`, so no page carries a hidden second notice. The card's one-notice test now counts the page's own notices, inside `<main>`. - **The From column** is drawn the way All patches' Owner column is, a mark then the name over its surface. A grid cell there let the table squeeze it to nothing. Still standing from the first version: - Sent reads "just now" or "2 days ago", because the server doesn't know the reader's time zone. - The panel opens beside whichever button opened it. - Feedback's receipt doesn't repeat the note. - Done also closes the Menu it was opened from. - A long request is split into a title and its whole text as the why, never refused. ## How it was verified - **Tests.** `packages/portal/src/FeedbackPages.test.ts` is ported to the new markup without dropping what it asserts: - a send from the panel is stored as `dashboard` with no agent. The answer is a receipt, the shipped general request with its badge and note, and Done; - link, then unlink from the row menu without the script; - a pasted paragraph is filed as a title and a why. Exactly 4,000 characters ending in an emoji is accepted as a request and as feedback, and 4,001 is refused, as is too-short text; - a Google key is refused with 422 and nothing stored, and never echoed. In the panel, the answer is the form with the field's error and an empty field. Without the script, it is What you sent with a danger notice; - the list shows the person's own entries beside Claude Code · CLI, ChatGPT · Patchy MCP and Unknown agent · CLI, without notes; - another person's GET and POST withdraw, link and unlink all answer 404 on a live submission. The owner then withdraws it through the dialog, and the withdrawn id answers 404; - `requestOf`'s edges; - the composer at `/feedback/new`: Request picked for `?kind=request`, a bogus kind or none, and Feedback for `?kind=feedback`, under its own ids beside the panel's form. A request sent from it lands at its own address. A refused send from it is drawn again with the field's error, the kind as sent and an empty field, and never echoes the key; - without script, a send redirects to `/feedback/<id>/sent`. The dialog there shows the receipt, the shipped match and Same need, over the table. Same need and Unlink (with `from=sent`) each post and come back to it, linked and then unlinked. Another person, and a feedback id, get 404. `Feedback.test.ts` covers `similarTo`: three matches ranked now, never itself or another company's, and missing for another person, for feedback and for an unstorable id. `test/browser-tier1/tell-patchy.spec.ts`, in the browser suite, runs the panel's script: - a send held until the panel closed and opened again leaves the new draft alone, with the note; - Escape gives focus back to Tell Patchy, and so do the switcher's chord and Escape; - on a phone, a tap above the panel gives focus back to Tell Patchy, and Done closes Menu and gives focus to it; - after Feedback was picked, Ask for an integration opens the panel in place with Request picked and the field focused. Without script, it opens `/feedback/new?kind=request` with Request picked. The shell's tests (`html.test.ts`) cover the foot order, the panel outside the menu, the label-free field without `maxlength`, the inert note, the script on every app page and What you sent lighting no place. `ConnectionsView.test.ts` covers both Ask buttons. Dense's history test covers the seeded submissions, their id shape, and that a resumed `up` writes the same rows. - **`pnpm check`** at this tree: - format, lint (including `patchy/no-page-styles` and `patchy/no-hand-drawn-components`), typecheck and synth pass; - tests: 3,475 of 3,476. The one failure was a 5-second timeout in `PgliteCompanyDatabases.test.ts`, which this change doesn't touch; it passes run alone. - Focused suites pass: portal, core (including the stylesheet rules and the gallery inventory), feedback and the integrations view, 552 tests, plus the dev history and scenario tests, 12. - **In a browser.** Playwright Chromium drove the walkthrough on a local `dense` instance at 1280 and 390 wide: - focus starts in the field, and moves to Unlink after Same need; - the panel reopens fresh after Done, the draft and the invalid mark survive a refusal, and Ask picks Request; - Withdraw's Cancel takes focus; - the only console error was the expected 422 from the refused key. The review's three cases still hold on the ported markup. A send whose answer was cut after the server stored it is stored once and keeps its draft. A second Same need pressed while the first is held for 1.5 s sends nothing, and the panel's "Linked to" matches the database. Closing the panel during a held Unlink and reopening it shows a fresh form. - **Not checked.** - Firefox and Safari. Anchoring relies on the browser's implicit popover anchor, as the row menus' does. - Clerk sign-in mode. - A real Patchy MCP client: the MCP row is covered by a test, and `tell_patchy` is #1214. - `pnpm verify`'s browser and packed suites weren't re-run for this port. ## Review GPT 6.1 Sol reviewed the first version. Its findings were fixed then, and each fix is carried through the port with its test: 1. **P2: an automatic retry duplicated a submission.** The script never resends on its own; it keeps the draft and shows the note that links What you sent. 2. **P2: overlapping links could show the wrong saved state.** One flag covers the whole panel, and a counter drops answers for a panel reset since they were sent. There is no committed test for the ordering, since the script is a string served to the browser and the repo has no DOM test library. It was checked in Chromium, as above. 3. **P3: the ownership test checked an already-deleted id.** Another person tries a live submission first, and the deleted id is checked separately. 4. **P2: the textarea silently cut valid input.** There is still no `maxlength`; the server's 4,000-character refusal is the one bound. Sol reviewed the port at 857cc17. The four findings above still held, and it raised three more, fixed in ea0eb68 with the store method in c33ceb1: 5. **P2: a late Send reply could discard a new draft.** A close while composing didn't bump the counter, so a held reply landed after a new draft: its receipt covered the draft, and Done cleared it. Now every close settles what was in flight. If a send was on its way, the panel opens again with the draft kept and the note pointing to What you sent. 6. **P2: Same need was gone without script.** A send without script now redirects to the request's own address, `/feedback/<id>/sent`: a dialog over What you sent with the receipt, the matches and native Same need and Unlink forms. Both post and come back to it, so it reads "Linked to …". Only its sender sees it. The matches come from `Feedback.similarTo`, the matching query run again. 7. **P3: dismissal lost focus.** The panel records the button that opened it and gives focus back on close, or to Menu when that button is folded away. Two cases needed more than a check at close: - the switcher's chord closes the panel, and its Escape returns focus to the now-hidden field, so the panel waits for `patchy:switcher-closed`; - a tap moves focus for itself after the panel closed, so the panel checks again on that tap's click. The panel's script now runs in a committed test, `test/browser-tier1/tell-patchy.spec.ts` in the browser suite, which covers finding 5's ordering and finding 7's focus on a desktop and on a phone. Finding 2, two links racing, is still checked by hand in Chromium only. Acceptance on bda5bd3 (GPT 6.1 Sol) passed everything but one gap, fixed in 124ed0c: 8. **Ask for an integration kept Feedback without script.** Only the panel's script applied the Ask buttons' `data-kind`, so with JavaScript off, choosing Feedback in the panel and then pressing Ask sent an integration request as feedback. The composer now has its own address, `/feedback/new?kind=request`: a dialog over What you sent with the panel's fields, Request picked. Both Ask buttons are links to it, through `linkButton` and core's `tellPatchyHref`. With script, the panel opens in place beside the link with Request picked, and a modified click still opens the address. A route test covers the kinds and the fallback, and the browser spec covers Ask after Feedback, with and without script. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Additive: new pages and routes, a panel in the sidebar, an option on `button`, `field` and `choiceGroup`, an icon, one read method on the store and two dev scenario fields. No schema change. - **What does a revert leave behind?** Rows sent from the dashboard stay in `feedback.submissions` with surface `dashboard`, which the store already accepts. Nothing else. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated from T3 Code. --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Stacked on #1369; part of #1315. Merge the stack together, not alone.
What changed
Every other product's mark was letters: "Cx" for Codex, "Pg" for Postgres. Now each product Patchy knows wears its own logo, in its colours: Claude for Claude and Claude Code, OpenAI's Blossom for ChatGPT and Codex, then Cursor, Postgres, PostHog, Attio and Pidgeon. A mailbox on Gmail's server shows Gmail's logo, and any other mailbox an envelope instead of "@".
productMarktakes letters as before,{ logo }for a known product or{ icon }for a kind of product. The logos are a typed set in a newpackages/core/src/ui/logos.ts, each with a comment naming where its artwork came from. Each logo is that artwork's own paths; only theviewBoxis cut to the mark, so every logo fills its square alike. None embeds a raster image, metadata, astyleor an id, so a mark can repeat on a page. Logos sit in a 24×20 box in the 32px square and a 36×30 box in the 48px hero; icons sit at 18px and 27px, the laptop's sizes.dashedand the letters are unchanged. I added amailicon. In forced colours a logo keeps its white square and its colours, as an image does (forced-color-adjust: noneon.im-logo), so a dark theme can't draw a black logo on black; icons and letters still take the theme's. A browser test inui.spec.tsholds this.MachinesPage.ts'sappsmap carries each app's mark.appNamedmatches a client's name loosely: lowercase, letters and digits only, the app's name anywhere in it, longest name first. So "Claude Desktop" is Claude, "claude-code" and "Claude Code (patchy)" are Claude Code, "cursor-vscode" is Cursor, and "OpenAI Codex" is Codex. Unknown names keep their initial. Reconnect on such an app now opens that app's steps, not Another agent's. The logos show on Your agents, Connect an app, Home's Reconnect rows and Get an agent. Computers keep the laptop. Agent access lists no apps, so it doesn't change.markis its logo, and IMAP's is the envelope. A connection's mark can be its provider's: an IMAP mailbox onimap.gmail.com, which Google Workspace mailboxes share, shows Gmail's logo (ImapPage.mark, throughConnectionPage.integrationOf). The catalogue and the connect frame keep the envelope, since no server is known there. The marks show on the Integrations list, the catalogue, the connect frame's hero, a connection's header and Home's Needs attention. Home's Needs attention rows for integrations had no mark before this PR.imap/studio, a Google Workspace mailbox onimap.gmail.com. That needs ahoston a scenario's offline IMAP connection,mail.<company>.examplewhen absent.scenarios/README.mdfollows.ui-consistency's Marks line now says a mark is the product's own logo where Patchy knows it.Where each logo came from
Claude Spark - Clay.svgin the press kit at anthropic.com/press-kitCUBE_2D_LIGHT.svgin the asset pack at cursor.com/brandPostgreSQL_logo.3colors.svg, from wiki.postgresql.org/wiki/Logo; itsstyledeclarations carried as attributesposthog-logo-print.svg, its four flat coloursattio-logomark.svggmail_2020q4markPostHog and Gmail are in their flat colours. Their current marks are drawn with gradients, which need ids, and ids would repeat on a page that shows the mark twice.
patchyhq.com's legal pages name these product names and logos as their owners'.
Look at
Your agents, Connect an app, Home, Integrations, Connect an integration and a connection, as Allison on
dense. In the "after" Your agents, Claude Code (patchy) is the new app, recognised through the loose match. In Integrations,imap/studiois the new Gmail mailbox.Before and after, as Allison Mahmood (admin)
Before is
30e2128(--base origin/ui/canvas-grid) and after is2c39381(ui/product-logos), both on thedensescenario, frompnpm dev compare. Since then only comments, a README line and the forced-colours rule changed, none of which shows in normal colours.Every page answered 200 with no browser errors.
/agents1280px, after
1280px, before
/agents/connect1280px, after
1280px, before
/1280px, after
1280px, before
/settings/integrations1280px, after
1280px, before
/settings/integrations/connect1280px, after
1280px, before
/settings/integrations/conn_env_brightline_postgres_warehouse1280px, after
1280px, before
How it was verified
product-mark.test.ts: a logo on its square in its own colour, the hero size, the envelope, letters, escaping, and that every logo stays lean (no id,style, raster or metadata).MachinesPage.test.ts: a table of 12 client names, unknown ones included, mapped to apps; Codex's choice leads with its logo; Claude Code's row leads with the spark.ConnectionsView.test.ts: a catalogue row leads with its logo, letters or the dashed+.ConnectionAttention.test.ts: each attention carries its mark, and a mailbox onimap.gmail.comgets Gmail's logo where any other gets the envelope.HomePages.test.ts: the ended ChatGPT row shows the Blossom, andimap/supportthe envelope.history.test.ts: dense's new app.denseinstance:/~ui, Your agents, Agent access, Home, Integrations andimap/studio's page.Hit every surface
hoston an offline IMAP connection. Dense uses it forimap/studioand has one more app.scenarios/README.mdandhistory.test.tsfollow.ui-consistencyand the gallery describe a mark's logo.servedStylesuntouched. Every mark change is in core'smarkschunk.Core additions
productMarkalso takes{ logo: ProductLogo }and{ icon: IconName }. Letters render exactly as before.ProductMarkandProductLogotypes, thelogos.tsset, and themailicon.marks.ts, sizes for a drawing inside.im:.im svg,.im-logo svg,.im-lg svgand.im-lg.im-logo svg.Release impact
Rendering only: no schema, API, CLI or configuration change.
Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.