Skip to content

feat(core): agents and integrations show their own logos - #1371

Merged
allisonmahmood merged 1 commit into
mainfrom
ui/product-logos
Nov 10, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
ui/product-logos

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

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 "@".

  1. Core. productMark takes letters as before, { logo } for a known product or { icon } for a kind of product. The logos are a typed set in a new packages/core/src/ui/logos.ts, each with a comment naming where its artwork came from. Each logo is that artwork's own paths; only the viewBox is cut to the mark, so every logo fills its square alike. None embeds a raster image, metadata, a style or 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. dashed and the letters are unchanged. I added a mail icon. In forced colours a logo keeps its white square and its colours, as an image does (forced-color-adjust: none on .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 in ui.spec.ts holds this.
  2. Agents. MachinesPage.ts's apps map carries each app's mark. appNamed matches 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.
  3. Integrations. Each integration's mark is its logo, and IMAP's is the envelope. A connection's mark can be its provider's: an IMAP mailbox on imap.gmail.com, which Google Workspace mailboxes share, shows Gmail's logo (ImapPage.mark, through ConnectionPage.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.
  4. Dense. Allison gets a fourth app, "Claude Code (patchy)", known only through the loose match. Brightline gets imap/studio, a Google Workspace mailbox on imap.gmail.com. That needs a host on a scenario's offline IMAP connection, mail.<company>.example when absent. scenarios/README.md follows.
  5. Docs. The gallery shows every logo at both sizes, plus the envelope, letters and dashed states. ui-consistency's Marks line now says a mark is the product's own logo where Patchy knows it.

Where each logo came from

Logo Used for Artwork
Claude's spark Claude, Claude Code Claude Spark - Clay.svg in the press kit at anthropic.com/press-kit
OpenAI's Blossom ChatGPT, Codex The Blossom artwork at openai.com/brand
Cursor's cube Cursor CUBE_2D_LIGHT.svg in the asset pack at cursor.com/brand
The PostgreSQL elephant Postgres PostgreSQL_logo.3colors.svg, from wiki.postgresql.org/wiki/Logo; its style declarations carried as attributes
PostHog's logomark PostHog The logomark in posthog-logo-print.svg, its four flat colours
Attio's logomark Attio attio-logomark.svg
Pidgeon's spiral Pidgeon pidgeon.ai/icon.svg, without the icon's own square
Gmail's M A mailbox on Gmail's server Google's flat gmail_2020q4 mark

PostHog 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/studio is the new Gmail mailbox.

Before and after, as Allison Mahmood (admin)

Before is 30e2128 (--base origin/ui/canvas-grid) and after is 2c39381 (ui/product-logos), both on the dense scenario, from pnpm 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.

/agents

1280px, after

After: /agents at 1280px

1280px, before

Before: /agents at 1280px

Width Before After
390px Before: /agents at 390px After: /agents at 390px
/agents/connect

1280px, after

After: /agents/connect at 1280px

1280px, before

Before: /agents/connect at 1280px

Width Before After
390px Before: /agents/connect at 390px After: /agents/connect at 390px
/

1280px, after

After: / at 1280px

1280px, before

Before: / at 1280px

Width Before After
390px Before: / at 390px After: / at 390px
/settings/integrations

1280px, after

After: /settings/integrations at 1280px

1280px, before

Before: /settings/integrations at 1280px

Width Before After
390px Before: /settings/integrations at 390px After: /settings/integrations at 390px
/settings/integrations/connect

1280px, after

After: /settings/integrations/connect at 1280px

1280px, before

Before: /settings/integrations/connect at 1280px

Width Before After
390px Before: /settings/integrations/connect at 390px After: /settings/integrations/connect at 390px
/settings/integrations/conn_env_brightline_postgres_warehouse

1280px, after

After: /settings/integrations/conn_env_brightline_postgres_warehouse at 1280px

1280px, before

Before: /settings/integrations/conn_env_brightline_postgres_warehouse at 1280px

Width Before After
390px Before: /settings/integrations/conn_env_brightline_postgres_warehouse at 390px After: /settings/integrations/conn_env_brightline_postgres_warehouse at 390px

How it was verified

  • Tests.
    • 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 on imap.gmail.com gets Gmail's logo where any other gets the envelope.
    • HomePages.test.ts: the ended ChatGPT row shows the Blossom, and imap/support the envelope.
    • history.test.ts: dense's new app.
  • By eye, on a local dense instance: /~ui, Your agents, Agent access, Home, Integrations and imap/studio's page.
  • Review. GPT 6.1 Sol reviewed this PR in two earlier rounds. A third round reviews this version.

Hit every surface

  • Wire, CLI, migrations, company resources: untouched.
  • Dev loop: the scenario schema gains an optional host on an offline IMAP connection. Dense uses it for imap/studio and has one more app. scenarios/README.md and history.test.ts follow.
  • Vocabulary: no new concept. ui-consistency and the gallery describe a mark's logo.
  • Served pages: servedStyles untouched. Every mark change is in core's marks chunk.

Core additions

  • productMark also takes { logo: ProductLogo } and { icon: IconName }. Letters render exactly as before.
  • ProductMark and ProductLogo types, the logos.ts set, and the mail icon.
  • In marks.ts, sizes for a drawing inside .im: .im svg, .im-logo svg, .im-lg svg and .im-lg.im-logo svg.

Release impact

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

Rendering only: no schema, API, CLI or configuration change.

  • What does a revert leave behind? Nothing. Marks go back to letters.
  • 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:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling area:core Touches the core area area:docs Touches the docs area area:integrations Company connections and integration implementations area:ui Portal and first-party browser pages, shared rendering and styles size:m 100-500 changed lines labels Nov 9, 2026
@allisonmahmood
allisonmahmood changed the base branch from ui/g2-governance to ui/canvas-grid November 9, 2026 20:11
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Sol review on this version: round 3 (2c39381) had one must-fix, comment wording in a test and two logo comments, and one should-fix, documenting the offline IMAP host field in scenarios/README.md. Both are fixed in e852af7. Round 4 (e852af7): no findings.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 3466836a5397a5e3c203780fe2ffa57ae828a82f (base 30e21287178b069682d3fa9710a8b92450251467, ui/canvas-grid) on fresh dense data, by GPT-6.1 Sol (xhigh) in the Codex harness through T3 Code.

Re-check of the forced-colours failure at e852af77. The intervening diff is exactly the logo rule, its gallery state and its browser test.

Done means

  • Forced colours: passed. Checked Claude, OpenAI, Cursor, Postgres, PostHog, Attio, Pidgeon and Gmail at 32px and 48px, at 1280px and 390px, with Chromium forced colours active and both dark and light schemes. Every logo remains visible, with its normal SVG fills/strokes on its light square. OpenAI and Attio no longer disappear; Cursor and Pidgeon remain clear.
  • Application surfaces: passed. Your agents, Connect an app, Get an agent, Home, Integrations, the catalogue, all five connect forms and all 15 connection headers were checked in both schemes at both widths. All 104 page captures answered 200, with no browser errors, document overflow or SVG extending beyond its mark. Four gallery states cover all 64 combinations of logo, size, width and scheme.
  • Icons and letters: passed. Envelope, computer, unknown-product letters and dashed marks retain forced-color-adjust: auto and use the forced-colour system palette. The exemption stays on logo artwork.
  • Normal colours: passed. Your agents, Integrations and Gmail mailbox imap/studio, at both widths and both preferred colour schemes, are pixel-identical with the new rule enabled and disabled: 12 comparisons. The previous verdict's passing artwork and product-matching behavior is unchanged by this fix.
  • Regression check: passed. The added browser test's assertions pass against this instance. Disabling only the new rule under dark forced colours reproduces the black square. All logo SVG fills and strokes also match their normal-colour values in both forced-colour schemes.

All eight logos at both sizes and widths in dark and light forced colours

Golden journeys

  • Sign in and find/open a tool: passed on this head. Signed-out Home returns its 401 sign-in door; persona sign-in returns Home; search finds Kudos and opens its live frame. Clearing the session restores the door.
  • Use a tool live: passed on this head. A kudos submitted by one scenario viewer appears on a second viewer's already-open wall, without navigation or reload.
  • Agent controls and consent: unchanged since the previous passing behavioral checks; their CI coverage passes on this head.

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

  • Full pnpm verify was not repeated locally; its corresponding CI jobs pass on this head. The earlier source-artwork comparison, consent exchange and disconnect flows were not repeated for this three-file fix. Unaffected publish/share/invite journeys remain outside this rendering re-check.

Notes

  • The square's edge remains distinct, and the hero's 2px ink border is visible against its light fill. Its 3px hard shadow remains rendered and reads clearly on the light palette; on the black palette it is subdued. That shadow is decorative: identity, boundaries, labels and controls remain readable, so this is not an accessibility failure.
  • Preserving the artwork and its backing together is appropriate here, consistent with image artwork. Product names remain available as themed text. A CanvasText override for selected monochrome logos would add per-logo treatments; restricting the backing to dark schemes would add a separate artwork policy. Neither alternative fixes an observed defect in the tested light or dark rendering.

Base automatically changed from ui/canvas-grid to main November 10, 2026 20:33
@allisonmahmood
allisonmahmood merged commit 58bb17d into main Nov 10, 2026
25 checks passed
@allisonmahmood
allisonmahmood deleted the ui/product-logos branch November 10, 2026 20:45
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**

![After: / at
1280px](https://github.com/user-attachments/assets/b3018638-11e1-4a84-b4c4-917f0e6fde08)

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

![Before: / at
1280px](https://github.com/user-attachments/assets/202ea6b6-b88e-4acc-9a63-5e3d1d21c5b6)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: / at
390px](https://github.com/user-attachments/assets/60beaf23-2fa9-45ff-a852-bf97feb22b09)
| ![After: / at
390px](https://github.com/user-attachments/assets/9248a811-7988-4852-8a86-453a08f203b1)
|

##### `/patches/new-business`

**1280px, after**

![After: /patches/new-business at
1280px](https://github.com/user-attachments/assets/21b0b0a4-8db8-4000-bf01-12c8f61f54e6)

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

![Before: /patches/new-business at
1280px](https://github.com/user-attachments/assets/18c52e0e-6e6d-412d-a326-b586429e1196)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business at
390px](https://github.com/user-attachments/assets/7ef9c06c-bb15-4ecb-bfe9-290756ab840d)
| ![After: /patches/new-business at
390px](https://github.com/user-attachments/assets/dc18b3f6-48f4-4d2b-b7c4-d62f735783e0)
|

##### `/patches/new-business/delete`

**1280px, after**

![After: /patches/new-business/delete at
1280px](https://github.com/user-attachments/assets/1c320fc7-fc0f-4ac2-930b-abdac84ad96b)

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

![Before: /patches/new-business/delete at
1280px](https://github.com/user-attachments/assets/ee751e8f-dc81-4f3d-a1e9-8f0c2b0168c6)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business/delete at
390px](https://github.com/user-attachments/assets/9a2bd089-059a-4186-b033-d74efcf0d1fa)
| ![After: /patches/new-business/delete at
390px](https://github.com/user-attachments/assets/b2298eeb-429b-4d4d-ad66-ce4a46e7799e)
|

##### `/brightline/holiday-rota`

**1280px, after**

![After: /brightline/holiday-rota at
1280px](https://github.com/user-attachments/assets/78785d0a-5a92-42cf-a6ee-5a1405a5f71f)

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

![Before: /brightline/holiday-rota at
1280px](https://github.com/user-attachments/assets/26e9bc8b-8081-4321-b379-51c4024b42ec)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /brightline/holiday-rota at
390px](https://github.com/user-attachments/assets/62e02b33-e15a-416d-974b-d8041937f298)
| ![After: /brightline/holiday-rota at
390px](https://github.com/user-attachments/assets/a90804b3-c04c-4408-81dd-a7d1049f8140)
|

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

The gallery's type specimen names the face it draws titles in:

| Before | After |
| --- | --- |
| ![Before: the /~ui type
specimen](https://github.com/user-attachments/assets/c020f54b-a709-4173-b495-3cdd83cbbd52)
| ![After: the /~ui type
specimen](https://github.com/user-attachments/assets/709e43e3-8fb0-4067-a701-5ac268368d19)
|

**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]>
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]>
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**

![After: /settings/integrations/connect at
1280px](https://github.com/user-attachments/assets/7649c0fe-1613-4004-b5ab-019d9672b998)

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

![Before: /settings/integrations/connect at
1280px](https://github.com/user-attachments/assets/b6a2b566-2b24-4fc7-aed9-ad0081fc2386)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | No visible change | ![After: /settings/integrations/connect at
390px](https://github.com/user-attachments/assets/2721d7a4-e97e-4f9c-9b7b-196eb0f6688a)
|

##### `/feedback`

**1280px, after**

![After: /feedback at
1280px](https://github.com/user-attachments/assets/b1c04bed-71e8-4504-a15e-87cdfcb0ceb6)

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

![Before: /feedback at
1280px](https://github.com/user-attachments/assets/abd96088-c664-4a60-b4e2-5e8419d166a3)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /feedback at
390px](https://github.com/user-attachments/assets/707aad5c-b21f-4323-80b7-479e90bb8122)
| ![After: /feedback at
390px](https://github.com/user-attachments/assets/79b1290d-5075-42b3-9fc0-4731d9d6b617)
|

- 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**

![Request sent: a receipt naming the title, then three similar requests:
her own earlier one, Shipped; Postgres encryption options, Shipped, with
its note; Bring your own encryption keys,
Planned](https://github.com/user-attachments/assets/9cac7e41-2022-4973-b9b1-520a09c2d13f)

![After Same need: Unlink on that match, and a receipt reading Linked to
Postgres encryption
options](https://github.com/user-attachments/assets/954c51e1-cb1d-41bf-becd-374888f50b7f)

<details><summary>Composing, and after Unlink</summary>

![Tell Patchy open above its foot button, Request
picked](https://github.com/user-attachments/assets/f996b754-7744-4a90-957a-3fada2523c30)

![After Unlink: Same need back on every
match](https://github.com/user-attachments/assets/7e3d1326-8777-403c-88a8-28aef66207b4)

</details>

**2. A key is refused on the field, and Ask for an integration opens the
panel with Request picked**

![Your request has a Google API key in it. Nothing was saved. The text
stays in the field, marked
invalid.](https://github.com/user-attachments/assets/9cf2f2c3-25cf-4fe8-855a-1dc9d0de35ef)

![Opened from the catalogue's Ask, beside it, with Request picked
although Feedback was last
chosen](https://github.com/user-attachments/assets/f7593446-2a2a-4c1c-b077-3e1d2d2d5368)

**3. What you sent, a row's menu, Withdraw**

![What you sent: Allison's own requests and feedback beside Claude Code,
Codex and ChatGPT's, one Unknown agent, statuses Shipped, Planned, Open
and
Declined](https://github.com/user-attachments/assets/2059264e-f933-4b44-91a4-e14356c088c8)

![The row menu: Unlink from Gmail integration, then
Withdraw…](https://github.com/user-attachments/assets/669c6fbc-8e5d-4c7b-a382-15d63c9d9ecb)

![Withdraw “Gmail integration for the sales inbox”? Patchy deletes it
and everything Claude Code sent with it. Cancel focused, Withdraw
request.](https://github.com/user-attachments/assets/e2be9292-5a47-4ea6-8428-9a5b3460fda6)

![Back on What you sent with the receipt Withdrew your
request](https://github.com/user-attachments/assets/acec3d36-e1e0-47b1-960d-64009d0a8d6d)

**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.

![Patchy couldn't confirm that. It may have gone through. Check What you
sent before you try
again.](https://github.com/user-attachments/assets/ae6a23e9-e042-446b-9018-7329e318647a)

**5. Without script: the sent request's own address, then linked from
it**

![Without script: the send lands on a Tell Patchy dialog with the
receipt and three similar requests, each with Same
need](https://github.com/user-attachments/assets/0db7102d-40f3-4955-a9af-c8854ac194fc)

![After Same need without script: back at the same address, Unlink on
the linked match and a Linked to
receipt](https://github.com/user-attachments/assets/46104ef6-815a-4a61-be9b-2a1885e98eb2)

![Without script, after picking Feedback in the panel: Ask for an
integration opens the composer at its own address with Request
picked](https://github.com/user-attachments/assets/c0d82250-e3a2-44ba-baec-2d7558c71653)

<details><summary>Phone, without script</summary>

![Phone without script: Ask opens the composer with Request
picked](https://github.com/user-attachments/assets/2f37dfee-4d6b-4900-89e5-7ae8790aa4c6)

![Phone without script: the sent dialog, then
linked](https://github.com/user-attachments/assets/a3fcf2c2-b9a2-45b6-9d15-987ae6f051dc)

</details>

**6. Phones: the panel opens above the foot inside Menu, the table
scrolls sideways, Withdraw is a bottom sheet**

![Phone: composing, sent with matches, linked,
refused](https://github.com/user-attachments/assets/e296ff5d-8773-4bf3-9a74-906a5e72e700)

<details><summary>Phone: from Integrations, What you sent, a row's menu,
Withdraw</summary>

![Phone: opened from Ask, What you sent, the row menu, the Withdraw
sheet](https://github.com/user-attachments/assets/1f17cfbc-d6e9-44c8-b0b8-b1faa09e0692)

</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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:core Touches the core area area:docs Touches the docs area area:integrations Company connections and integration implementations area:server Touches the server area area:ui Portal and first-party browser pages, shared rendering and styles size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant