Repository navigation
feat(integrations): the Integrations list and a connection's tabs - #1347
Conversation
|
Review round 1 (GPT 6.1 Sol), addressed in 67e7e53:
|
|
Review round 2 (GPT 6.1 Sol), addressed in 8f1c204:
The brief asks for two review rounds; this closes round 2. |
8f1c204 to
175496f
Compare
dd61d73 to
c500398
Compare
Acceptance: PASS with notesChecked Round 2 scope: Done means
Golden journeys
Rollback answers: match the diff. No migration, new stored representation or wire shape; computed usage and presentation/human hints revert safely. No Not run / notes
|
|
So this makes integrations cleaner from what I understand. |
425ffb7 to
4b126ba
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
c500398 to
7b00aef
Compare
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.     <details><summary>Before</summary>     </details> **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.   <details><summary>Before</summary>  </details> **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):  <details><summary>Before</summary>  </details> ## 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/integrations` and `packages/core` suites pass, lint and typecheck pass. - Pidgeon's script in a real browser against the dense instance: a refused final submit focuses its summary and keeps the address error; checking the key again clears the summary and restores the new address, its local part and the name; a refused key shows under the key with `aria-invalid` and `aria-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>`). - The dev runner's Pidgeon connect now presses "Test and connect"; its other selectors (`#pidgeon-key`, `#pidgeon-local`, `#pidgeon-display`, tile and choice cards, `#connection-handle`) are unchanged, as are Attio's and IMAP's field ids. - Not run locally: `pnpm verify` and 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.md` describes 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 compact `expandingTable`. "Once connected" draws P8's `canList` (`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 `/~ui` doesn't show `fieldRow` yet (`gallery.ts` is core's; it already shows `canList`). 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 no `styles` to `pageResponse`. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required 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. - **What does a revert leave behind?** Nothing: no schema, rows or stored state change. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy. Co-authored-by: Claude Opus 5.5 <[email protected]>
…d once (#1376) ## What changed This adds release 41's What's new entry, written from `a25a9c5`. It covers everything merged since release 40's `through` (`08e1fd9`), and sets the `patchy` release to `0.41.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. It ships the UI overhaul together with #1204, the terms prompt, as one release, at Allison's word. | Change | PRs | | --- | --- | | Improved: Patchy has a new look | #1332, #1336, #1338, #1343, #1353, #1354, #1369, #1372 | | New: Accept updated terms once | #1204 | | Improved: Settings holds People, Integrations and Agent access | #1334, #1341 | | Improved: Home starts with what needs you | #1344, #1353 | | New: A blue dot marks patches you haven't opened | #1370 | | Improved: A patch's page has one header and tabs | #1345 | | Improved: Search lands on All patches | #1346, #1353 | | Improved: Inviting and deactivating people is clearer | #1349 | | Improved: Your agents shows what's connected | #1352 | | Improved: Integrations use plain words | #1347, #1351 | | Improved: Agents and integrations show their own logos | #1371 | | Improved: What's new goes by month | #1350 | | Fixed: ⌘⇧K works on your company's public patches | #1339 | | Fixed: Saving works after a patch stops being public | #1339, #1375 | | Behind the scenes: every page built from one set of parts, with a check | #1338, #1354 | | Behind the scenes: agents know a once-public page's refusals mean reload, and retries wait and stop | #1374 | | Patch changes: a kept public page reloads into the company page; check retries wait and stop | #1375, #1374 | #1337 is release 40's own entry. #1340 (routes split, plus the call summary Home and All patches show) and #1342 (the `dense` dev scenario) need no line of their own: the call summary is part of the Home and All patches changes, and the scenario is tooling. The overhaul makes no patch changes. Running patches keep their own styles, which #1332 pins, and the only SDK change is the wording of two error messages' admin addresses. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `d3d32da` (release 40) to this PR's merge:** - **#1334 is `one-way`.** Your agents and Settings moved to `/agents` and `/settings/…`. Old addresses redirect forward, but release 40 serves none of the new ones. This release's CLI hints, the `patchy` skill on `main`, and the API, MCP and publish hints all name the new addresses, so on release 40 they'd answer 404. - **#1372 needs the private font bucket**, and that's done. Its deploy step fetches the pinned Cabinet Grotesk file and checks it before recording anything. The bucket was created on 2026-11-10 and holds the pinned bytes. A rollback to a commit from before #1372 pins no font and builds as before. - **#1204** adds migration `0036_terms_acceptances`, an additive table that release 40 never reads. Release 40 doesn't prompt, and coming forward again asks only people who hadn't accepted. Not `one-way`. - **#1375** changes only the public shell's script, and #1374 is skill text. Release 40 renders its own shell and serves its own skills. - **#1370 and #1339** add rows to the existing `patch_opens` table (a guest's opens, and members' opens of public patches). Release 40 reads them like any other open. - **Everything else** is pages, styles, copy and docs: no migrations, and no API, `--json` or configuration changes. - **patchy-web #53**, the website line #1371's logos needed, is merged (771e6d9). **Rollback line:** Rolling back past #1334 would break every `/agents` and `/settings/…` link that this release's CLI, skill and hints hand out, because release 40 answers them with 404. Fix forward instead. ## How it was verified - **Tests:** the `packages/core` What's new test passes (5), the `packages/api` suites pass (64), and the three files are formatted. - **The range.** Each of the 22 overhaul PRs was: - reviewed by GPT 6.1 Sol at xhigh, with every finding fixed or declined in writing on the PR; - accepted on its final head by an agent that didn't write it; - merged green, by a merge train that rebuilt each PR's accepted tree on main's tip and checked that main's tree matched it after every merge. - **#1339, #1375, #1374 and #1204** were each Sol-reviewed and accepted, and merged on their own: #1339 before the train, the other three after it. #1204's acceptance was rerun on the new sign-in pages. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required The changelog entry and the release version only. - **What does a revert leave behind?** Nothing. CLIs installed from this release report `0.41.0` and are told to match the server, as at every release. - **Does the release before it still work with that?** Yes. Changes made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>

Stacked on #1352; part of #1315. Merge the stack together, not alone.
What changed
Integrations was a page of its own: a table with a wall-of-text attention note, and each connection a stack of up to nine equal buttons beside its facts, with a fourth meaning for "disconnect". Now Integrations is an Index page and a connection is a Detail page like a patch's, on core's templates, and every action has one word.
Closes #1328
Look at
The index. Mark,
kind/handle, a quiet Connected dot or a Paused / Needs attention badge, Used by, Last call and ⋯ (Test, Replace key…, Settings, Pause… or Resume). From nine connections: All · Needs attention · Paused · Unused (admins), then each integration the connections come from, and search, all links that keep each other. The attention note is gone; the badge and view carry it.Before
Needs attention is an integration's own reason, with its fix; Paused is an admin's stop. Attio's writable key, IMAP's refused login (its login pause, no longer called Paused, and shown beside an admin's Pause when both hold), Pidgeon's leftover key and a Pidgeon test address each fill the page's one notice slot with their own words and buttons. The header holds Test and ⋯; tabs are Overview · Calls · Settings for admins.
Before
Settings and Calls. Settings holds the description (its own Save), the credential read as Stored (with the real hint PostHog and Attio already keep, the role or username for Postgres and IMAP; nothing invented), where it points, what it may do, the guests switch, and last the danger zone. Disconnect, while anything declares the connection, names every patch with a declaring version (live users, then retired, deleted or older ones) instead of offering a button. Replace, Change, Pause and Disconnect are dialogs over Settings at their old addresses; the first typed field (or Cancel, in a destructive one) takes focus, a refused field or a refusal not about any field the form shows takes it instead, and a failed Pause or Disconnect draws its dialog again. Change access starts at the current access and Change project in its current region. A completed action's receipt sits beside whatever still holds, so a Pidgeon replacement that couldn't revoke the old key says so and keeps the warning. Calls is admins only; its direct URL refuses members inside the app. It keeps every column on a phone, scrolling in its wrapper, and each call opens to its ids, credential and query.
Before: the old overview and pause page
One catalogue component. Mark, name, a line of at most eight words, Connect, then "Something else · Ask" (still the mailto it was; #1227's requests page isn't on main). The same rows at the same 640px width on the catalogue page and on an empty Integrations page; members read them without Connect.
Members read the same list with "Only admins connect integrations. Admins: …" and Ask, without Last call, menus or Unused.
Before
Phones (index, a connection needing attention, Settings, Calls scrolling):
Before
How it was verified
pnpm check(format, lint, typecheck, synth, offline tests) passes;packages/integrationstests rewritten for the new pages: view tests for the index, catalogue, each tab per role, the notice slot, Settings,declaredByand the dialogs; route tests for every action and its reverse, member and foreign refusals (403/404 in the app frame), the Calls tab, and each provider's states.pnpm dev up dense, captured as Allison (admin) and Priya (member) at 1280 and 390 px: all 14 connections across five integrations, connected, paused and each needs-attention reason.pnpm verifyand the browser suites (CI runs them). Pressing Test, Resume or Replace on the dense scenario's offline connections reaches the real provider and is refused for invented keys, so refusal states are shown through tests.§10 states kept: every provider operation has a home (Test in the header; Refresh, Replace, Change project/access, Copy name and Pause/Resume in ⋯; the same in Settings plus guests, Pause/Resume and Disconnect); Attio writable key, IMAP login pause, Pidgeon leftover key and test mode as distinct reasons; Attio's long object and list groups fold their rest behind a disclosure; field refusals under their field (the description), others as the notice; Disconnect's in-use guard and stale-link refusal (409, naming what declares it); member refusals and another company's connection read as missing, inside the app (§10 item 10); one notice per page; no "Healthy"; Calls keeps Running and Unknown. Repeat submission: every POST here is idempotent by state (Test, Refresh, Pause, Resume, guests, description) or refused on repeat (Disconnect on a gone connection is 404; Pidgeon's Replace/Change access keep their attempt key).
Vocabulary followed through to the integrations glossary (Pause/Resume, Disconnect, Replace key, Needs attention, login pause),
docs/product.md, ADR-0004's hint wording, the patchy README, the global and project skills (skills-lock.jsonrefreshed), human error strings (paused connection, in-use refusal, dev reads, the IMAP pause) and the CLI'slist connectionslines. Wire stays:status: disconnected,reason: not_connected,paused: true, every route and form field.Core additions (new files only):
expandingTable(ui/expanding-table.ts, with its test), core's table with a disclosure row under each row, which core'stablecan't hold, and itswidevariant (styles/wide-tables.ts, registered in the chunk list), which keeps a log's columns whole and scrolls on a phone. The page uses core'spage-settingswidth class inside Detail's main for Settings, andpage-flowaround the catalogue, so cards keep the prototype's widths under a full-width header; no template has that slot. The pages draw marks withproductMark(ui/product-mark.ts), which #1352 added byte for byte the same, so this PR adds no copy of it./~uidoesn't showproductMarkorexpandingTableyet: the gallery is core's file, so it's left to the core owner.Left out on purpose: the prototype's Outcome/From chips and Refresh on Calls. Calls has never filtered, and it lists only the latest 10; filtering is new behaviour, not a restyle, so it waits until someone needs it. Left for P7 (#1329): the connect pages themselves still use the old walkthrough frame and its page CSS.
Release impact
Pages and copy only: every route, form field and API shape is unchanged; old connection URLs still redirect here, and the dialogs answer at the confirmation pages' old addresses. Human CLI and API hint strings changed wording, which agents are told not to parse.
Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.