Repository navigation
feat(integrations): every integration connects through one frame - #1351
Conversation
|
Review round 1 (GPT 6.1 Sol), addressed in 9833653:
|
|
Review round 2 (GPT 6.1 Sol), addressed in 5df32fd:
The brief asks for two review rounds; this closes round 2. |
8f1c204 to
175496f
Compare
5df32fd to
e8aee20
Compare
175496f to
dd61d73
Compare
e8aee20 to
05d9a24
Compare
dd61d73 to
c500398
Compare
05d9a24 to
7caf91b
Compare
Acceptance: PASS with notesChecked Round 2 scope: Done means
Golden journeys
Rollback answers: match the diff. Renderer/fields only; no schema, stored representation, route or form-field contract changes. No Not run / notes
|
|
basically this harmonizes the integration process: get your credentials → paste them → name the connection → see who can access it → test and connect. |
|
this makes a lot of sense lgtm |
c500398 to
7b00aef
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
7caf91b to
13c254e
Compare
…s are tied (#1353) Stacked on #1351; part of #1315. Merge the stack together, not alone. ## What changed The page lanes left loose ends. This PR ties the ones listed for lane G1 of #1331. (Its first item, keeping a dialog's Close on screen on phones, moved down into #1338 after acceptance, so every PR above that one has it.) 1. **Dialogs on phones:** moved to #1338 (commit `1aa89e53`) after acceptance; nothing of it remains in this PR. 2. **Home's Reconnect row.** Needs attention now lists the viewer's own apps and computers whose access ended on its own in the last 30 days: "ChatGPT · Access ended 3 Nov 2026 · **Reconnect**". Reconnect goes to Connect an app with that app chosen, or to Add a computer. It uses P4's `AgentConnections.ended` and `MachineTokens.ended`, so it uses the same window and newest-of-a-name rule as Your agents. While a computer is listed there, Home leaves out "Connect your agent", which leads to the same steps. 3. **"No agent yet?"** One `getAnAgent` helper in auth holds the words and the links. Add a computer's Get an agent dialog uses it as its body, and the Final step opens it in place. Each link goes to its maker's own page, and I loaded each one in Chromium: `claude.com/product/claude-code` ("Claude Code by Anthropic"), `openai.com/codex/` ("Codex | AI Coding Partner from OpenAI"; curl gets a Cloudflare challenge, browsers don't) and `cursor.com`. 4. **Titles without " · Company" everywhere.** P3's `shownTitle` is now `patchTitle(patch, company)` in core. Every caller passes the patch's own company: the viewer's, or for a patch shared with a guest, the company that shared it. That covers Home, All patches, the switcher, Share, People's guests, the deactivation flow, the patch page and `<title>`. It matches the whole company name before the separator, so a company named "Harbor - Pine" still works. 5. **One failures cell.** Home's Yours and All patches share `failuresColumn`, `failuresCell` and `failedBadge`: "Failures (24 h)", with None, No calls yet, or "n failed" linked to the failed log. Before, Home's count was a badge without a link. 6. **People's See their patches** opens `/patches?owner=<user id>`, which lists that person's patches exactly, under an Owner chip that clears it. The filters and Share keep the parameter. An id that isn't a member of the company narrows nothing. Before, it searched by name, which also matched titles. 7. **`typedExactly` is now an option.** `input` and `prefixInput` take `exact: true`, and the company-address field on Join uses it. 8. **The `/~ui` gallery** now shows: door parts (`verificationCode`, `meet`, `answerPair`) with a Door state table, a Consent door page, the device door drawn from the real helpers, and P3's detail parts (`chipMenu` any and chosen, `groupedTable` closed, open and permalinked, `codeRow`, `person`, `settingsPanel`, `menuNewTab` and `menuRule` in a header menu, the quiet `copyButton`). It also adds P5's `checklist`. Each state that takes the focus or ends a door has its own page, so the system page's focus never jumps: `/~ui/refused` (a Detail page whose `refusalNotice` leads), `/~ui/checklist-refused` and `/~ui/checklist-none` (focus on the first box that can be chosen, or on the error), and `/~ui/door-refused`, `/~ui/door-field`, `/~ui/door-outcome` and `/~ui/door-unavailable`. Each has a state table, and tests pin the list and each page's focus target. 9. **Small fixes.** `pnpm ui:report` no longer counts `class="btn-group"` as a hand-drawn button. The `.refusal:focus` rule from P3 and P8 now lives once, in the notices chunk. `docs/product.md` names the aside "Your agent can, as you" and describes it as built. ## Look at **Home as Allison (dense):** the two Reconnect rows end Needs attention, Yours' "2 failed" links to the log, and the titles have no company suffix. Before and after, desktop and phone, are under **Before and after** at the end (`pnpm dev compare`). **The Final step's No agent yet?, open** (left), and the same words as Add a computer's Get an agent dialog (right): <img src="https://github.com/user-attachments/assets/cccc5293-e658-4b28-a07c-a2363789f874" alt="The Final step with No agent yet? open: the common agents, each with Get it" width="420"> <img src="https://github.com/user-attachments/assets/353344ae-f285-4d8b-90ef-ba4b37e9623b" alt="Add a computer's Get an agent dialog with the same words" width="420"> **The gallery's new parts** (`/~ui`, sample data):    **The dialog fix** now lives in #1338 with its test (`ui.spec.ts` › "on a phone, a dialog breaks a long unbroken name and keeps Close on screen"). ## How it was verified - `pnpm check`: format, lint, typecheck and synth pass. The offline run passed 302 of 307 files. The 14 failures are all in `packages/patchy` CLI stub tests, whose request logs catch the `GET /` probes T3 sends to local ports on this machine. This PR doesn't touch that package, and CI runs them clean. - New and changed tests: `patchTitle` in core (company suffix forms, another company's suffix kept, falling back to the name); Home's titles, published note and colleagues table, and All patches, without the suffix; the switcher's rows strip each patch's own company; Home's Yours count links to the failed log twice (its column and the phone line); Home's Reconnect rows for an ended app and computer, Connect your agent left out, and a colleague's Home without them; All patches `?owner=` (exact list, counts, a chip that clears, filters keep it, a stranger's id narrows nothing) and People's menu link; the Final step's disclosure and the Get an agent dialog holding the same `getAnAgent`, whose links are the three official pages; `exact` on Join's address; `ui:report` with a button group; the gallery's state tables, its door and refused pages, and `disclosure`. - Browser: `test/browser-tier1/ui.spec.ts` run on its own locally, all six tests passing (the 320px touch check covers the new gallery sections). CI runs the rest. - Looked at it on `pnpm dev up dense`: Allison's Home, Priya's Final step with the disclosure open, Add a computer's Get an agent, `/~ui`, `/~ui/door`, `/~ui/consent`, `/~ui/refused`. ### §10 states kept - **Home (11), Errors (10):** Needs attention still holds only problems, each with one fix. The Reconnect rows show only the viewer's own records. The Connect line stays in the empty company and no-results states, and is left out only while a computer of theirs is offering Reconnect. - **Who sees what (3):** All patches' owner filter only narrows what the viewer can already open. An id outside the company is ignored, so the page never reveals whether someone exists elsewhere. - **Status honesty (19):** Failures stay None / No calls yet / n failed, never "Healthy". - **URLs (2) and overlays (15):** the owner filter is a URL and its chip a link. The Final step's disclosure is ephemeral and works without script. Get an agent stays a dialog URL. ### Core additions - `disclosure(summary, body, { id, open })` in `ui/disclosure.ts`, with a `disclosures` chunk: the body's parts sit on one gap under the summary. The Final step uses it, and the gallery's Disclosures demo now draws from it. - `exact` on `InputOptions` (replaces `typedExactly`, whose one caller moved). - `patchTitle(patch, company)`: its second argument is now required, which is a change to an existing helper on purpose (decision in g-followups). Every caller is updated, and the type system catches any missed. - The `.refusal` focus rules moved into `notices`. (The dialog chunk's two rules moved to #1338.) ### Left for others - G2: legacy CSS deletion (the gallery no longer uses `.verification-code`), enforcement checks, finishing `ui-consistency` (this PR only adds `exact` and `disclosure` to it). - G2 adds `productMark`, `expandingTable` and `fieldRow` to the gallery. `productMark` and `canList` already live once in core after the integrations restack. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Pages, core helpers and docs. Two read-only queries Home now calls already existed (P4's). No schema, wire, CLI or `--json` change. Old People links that searched `?q=<name>` still work as searches. - **What does a revert leave behind?** Nothing: no migration and no new rows. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy. <!-- patchy-dev:compare:allison --> #### Before and after, as Allison Mahmood (admin) Before is `a3b8071` (where this branch left ui/p4-agents) and after is `87381fb` (ui/g1-loose-ends), both on the `dense` scenario, from `pnpm dev compare`. Every page answered 200 with no browser errors. ##### `/` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /patchy-dev:compare:allison --> Co-authored-by: Claude Opus 5.5 <[email protected]>
…d once (#1376) ## What changed This adds release 41's What's new entry, written from `a25a9c5`. It covers everything merged since release 40's `through` (`08e1fd9`), and sets the `patchy` release to `0.41.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. It ships the UI overhaul together with #1204, the terms prompt, as one release, at Allison's word. | Change | PRs | | --- | --- | | Improved: Patchy has a new look | #1332, #1336, #1338, #1343, #1353, #1354, #1369, #1372 | | New: Accept updated terms once | #1204 | | Improved: Settings holds People, Integrations and Agent access | #1334, #1341 | | Improved: Home starts with what needs you | #1344, #1353 | | New: A blue dot marks patches you haven't opened | #1370 | | Improved: A patch's page has one header and tabs | #1345 | | Improved: Search lands on All patches | #1346, #1353 | | Improved: Inviting and deactivating people is clearer | #1349 | | Improved: Your agents shows what's connected | #1352 | | Improved: Integrations use plain words | #1347, #1351 | | Improved: Agents and integrations show their own logos | #1371 | | Improved: What's new goes by month | #1350 | | Fixed: ⌘⇧K works on your company's public patches | #1339 | | Fixed: Saving works after a patch stops being public | #1339, #1375 | | Behind the scenes: every page built from one set of parts, with a check | #1338, #1354 | | Behind the scenes: agents know a once-public page's refusals mean reload, and retries wait and stop | #1374 | | Patch changes: a kept public page reloads into the company page; check retries wait and stop | #1375, #1374 | #1337 is release 40's own entry. #1340 (routes split, plus the call summary Home and All patches show) and #1342 (the `dense` dev scenario) need no line of their own: the call summary is part of the Home and All patches changes, and the scenario is tooling. The overhaul makes no patch changes. Running patches keep their own styles, which #1332 pins, and the only SDK change is the wording of two error messages' admin addresses. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `d3d32da` (release 40) to this PR's merge:** - **#1334 is `one-way`.** Your agents and Settings moved to `/agents` and `/settings/…`. Old addresses redirect forward, but release 40 serves none of the new ones. This release's CLI hints, the `patchy` skill on `main`, and the API, MCP and publish hints all name the new addresses, so on release 40 they'd answer 404. - **#1372 needs the private font bucket**, and that's done. Its deploy step fetches the pinned Cabinet Grotesk file and checks it before recording anything. The bucket was created on 2026-11-10 and holds the pinned bytes. A rollback to a commit from before #1372 pins no font and builds as before. - **#1204** adds migration `0036_terms_acceptances`, an additive table that release 40 never reads. Release 40 doesn't prompt, and coming forward again asks only people who hadn't accepted. Not `one-way`. - **#1375** changes only the public shell's script, and #1374 is skill text. Release 40 renders its own shell and serves its own skills. - **#1370 and #1339** add rows to the existing `patch_opens` table (a guest's opens, and members' opens of public patches). Release 40 reads them like any other open. - **Everything else** is pages, styles, copy and docs: no migrations, and no API, `--json` or configuration changes. - **patchy-web #53**, the website line #1371's logos needed, is merged (771e6d9). **Rollback line:** Rolling back past #1334 would break every `/agents` and `/settings/…` link that this release's CLI, skill and hints hand out, because release 40 answers them with 404. Fix forward instead. ## How it was verified - **Tests:** the `packages/core` What's new test passes (5), the `packages/api` suites pass (64), and the three files are formatted. - **The range.** Each of the 22 overhaul PRs was: - reviewed by GPT 6.1 Sol at xhigh, with every finding fixed or declined in writing on the PR; - accepted on its final head by an agent that didn't write it; - merged green, by a merge train that rebuilt each PR's accepted tree on main's tip and checked that main's tree matched it after every merge. - **#1339, #1375, #1374 and #1204** were each Sol-reviewed and accepted, and merged on their own: #1339 before the train, the other three after it. #1204's acceptance was rerun on the new sign-in pages. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required The changelog entry and the release version only. - **What does a revert leave behind?** Nothing. CLIs installed from this release report `0.41.0` and are told to match the server, as at every release. - **Does the release before it still work with that?** Yes. Changes made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>

Stacked on #1347; part of #1315. Merge the stack together, not alone.
What changed
Each integration looked different while you added it. Postgres, PostHog, Attio and IMAP used a walkthrough that showed its first step already done with a green check, before the admin had done anything, then two or three stacked callouts; Pidgeon had a layout of its own with a side panel, a different width and two primary buttons. Now all five connect through one Flow frame drawn from typed data each integration supplies, so adding an integration means adding data, never a layout.
Closes #1329
Look at
One frame, five integrations. In task order: 1 Get it (where to make the credential, a scope table or a list of requirements; nothing marks it done), 2 Paste it (fields at answer width, paired fields on one row, secrets masked with Show), Pidgeon's Choose sections, Name it (the
kind/prefix fused to the field; the hint names what was typed), Once connected (what it can and can't do, at most one caveat), Test and connect · Cancel. The access list's platform facts (members, builders' live reads, guests) are written once by the frame from typed flags, so the next platform rule changes all five at once.Before
Pidgeon in the same frame. Discovery stays: Find addresses (a secondary button, so the page keeps one primary) checks the admin key; Choose an address, Patches may and Name it unlock in place, and lock again if the key changes. Every state survives: no address yet, a new address (address, domain, display name, who it may write to), test mode, a refused key under the key, a refused final submit keeping every choice but the key. Its script now reads the frame's own markup. The side panel's facts moved into Get it, the key's hint and Once connected.
Before
Refusals. A refusal about a field reads under it and takes focus, keeping everything typed except secrets; any other reads right above Test and connect, in focus. A refusal about Pidgeon's address, access or name stays at its field with its association; since a refused submit locks those parts again until the key is checked, a summary above the actions takes focus and says to paste the key again, and the script clears it once the key is in and every other choice is back. Test and connect waits, shut without script, until the form is ready.
Phones (Attio, Pidgeon, a refusal):
Before
How it was verified
ConnectFrame.test.ts: every integration draws in the same order with nothing marked done, builders' live reads only where the dev binding reads live, Pidgeon's three sections locked until its script runs, field refusals under their field in focus with drafts kept and secrets never echoed, other refusals above the actions in focus, Cancel back to where the integration was chosen. Provider and route tests updated for each integration's connect page and refusals;packages/integrationsandpackages/coresuites pass, lint and typecheck pass.aria-invalidandaria-describedby; a dev test key lists its addresses and unlocks the sections; New address shows its fields; choosing Read and send and a name enables Test and connect and fills the review line; changing the key locks the sections again. Nothing was submitted. The no-script notice is in the served HTML (Playwright's script emulation doesn't render<noscript>).#pidgeon-key,#pidgeon-local,#pidgeon-display, tile and choice cards,#connection-handle) are unchanged, as are Attio's and IMAP's field ids.pnpm verifyand the browser suites (CI runs them). Pressing Test and connect with invented keys reaches the real provider and is refused, so refusal states come from tests and from refusals Patchy makes before calling out.§10 states kept: one primary per region; no step marked done before Patchy saw it; non-secret drafts survive every refusal, secrets never written back; Pidgeon's no-address, new-address, changed-key and failed-final-submit states and its attempt key; repeat submission stays safe (a second connect with the same name is refused as taken; Pidgeon's attempt key makes a retry one key).
Vocabulary and docs:
docs/product.mddescribes the one frame and each integration's page in it; the integrations glossary gains Connect frame. Rotate, retarget and access dialogs (#1347) already draw their fields from the same field specs the frame uses.Core additions (new files only, each chunk one line in the chunk list):
fieldRow(ui/field-row.ts,styles/field-rows.ts), fields side by side that wrap on a phone, a field with an answer width keeping it. Scope tables use #1347's compactexpandingTable. "Once connected" draws P8'scanList(ui/door.ts, from #1343), the same helper with the same classes; this PR's own copy was removed when restacking.Left for core, deliberately: the static "Testing…" pending state and a live "Patches use …" preview need the shared enhancer (
/assets/ui.js, core's file), and/~uidoesn't showfieldRowyet (gallery.tsis core's; it already showscanList). The prototype's "Open Attio ↗" style links are out: Patchy has no verified deep links into those products, and the steps name the path.Removed: the legacy connect renderer, walkthrough and per-field callouts in
ConnectionsView.ts, every provider's hand-written connect fields, and all connect-page CSS (.connections-subpage, Pidgeon's and Attio's styles). Integrations pages now pass nostylestopageResponse.Release impact
Pages only: the connect routes, form field names, the Find addresses endpoint and its fragment marks are unchanged, so a form posted from an old page still connects.
Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.