Skip to content

feat(portal): Home leads with what needs you, then your patches and your colleagues' - #1344

Merged
allisonmahmood merged 1 commit into
mainfrom
ui/p1-home
Nov 10, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
ui/p1-home

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #1342; part of #1315. Merge the stack together, not alone.

What changed

Home opened with a success note and listed the same patches twice (a Tools shelf and a Pages panel), with failures as a note and no way to share. Now it leads with what needs you, then your patches and your colleagues', in the order of the four reasons people come: open a patch, share one, check on problems, connect their agent. Closes #1322.

  • Needs attention, only when something is wrong: your own tools that failed in the last 24 hours (View log), and for admins the company's connections that need one, in Integrations' words with their fix: Attio's writable key (Reconnect…), IMAP's refused login (Replace password…), Pidgeon's leftover key (Test again…), a Pidgeon test key live patches use (Replace key…), or a connection disconnected while live patches declare it.
  • Your usual (four tiles from your opens, Popular at the company until you open anything) and New (up to three colleagues' patches from the last week you haven't opened, never a public page). Below 8 live patches both are left out.
  • Yours: A–Z, who can open each (Company, Company + 1 guest, Public, or that its guests can't open it while a connection turns them away), the call summary (None, No calls yet, n failed, labelled for its 24-hour window), Share on every row opening the Share dialog over Home, ⋯.
  • From colleagues: A–Z, owner, updated, the first 12 and See all on All patches. Shared with you last, with the company and who shared each, Remove from my list, and kept on an empty company's Home. Home's sections are named regions.
  • The Final step is a core dialog: title, the two steps with live status, Later as the only way out (no Close, Escape does nothing). Same window (first week or first three sign-ins, whichever is longer; SetupPrompts unchanged), the same phone variant (Send this to my computer; Later reads "Look around first"), /guide still the page. After Later, one Connect line in Home's notices.
  • /?new: New patch over Home. Connected, a starter line with Copy and the computer it builds on; not connected, the Final step's steps from the same state and renderer.
  • Search: /?q=… redirects (308) to /patches?q=…; Home has no search mode.

Look at

  • The dense scenario's Home as Allison (admin), every section in order: Needs attention with a failing tool and three connections, Your usual, New, Yours with Share on each row, From colleagues, Shared with you with who shared it (first section below).
  • Priya (a member with no agent): the Final step, Home after Later, and New patch both ways; the phone Final step; Taylor (a guest at an empty company) keeps the Connect line and Shared with you (second section).

How it was verified

  • HomePages.test.ts rewritten for the new Home (18 cases on a socket over a migrated database): the Final step over Home, Later, the sign-in window and the concurrency case unchanged; /?new both ways; Needs attention for an owner's failing tool and an admin's paused mailbox, and members left out; Your usual and Popular; below 8; Yours' access, call summary and Share; From colleagues' 12 and See all; New and its dots; the /?q= redirect; menus; titles; tier moves.
  • ConnectionAttention.test.ts for which connections need an admin and what each says.
  • test/browser-tier1/home.spec.ts (new): on a phone without script the Final step offers neither Send nor Copy, and Look around … first puts it off. Run locally with sharing.spec.ts; both pass.
  • In a browser on the dense scenario: desktop and phone for Allison, Priya, Taylor and Sam; the Final step keeps focus on Copy and ignores Escape; New patch closes back to the page it opened from; without script the Final step is a page and Later still works.
  • pnpm typecheck, pnpm lint, pnpm format, the portal, core and integrations suites. CI runs pnpm verify and the browser suites.

§10 states kept: attention slot holds at most two one-line notices (Connect, the first publication's); Home's order at every size; Your usual and New left out below 8; Yours never re-sorts; From colleagues A–Z, 12 and See all; empty company and nothing-live states keep the Connect line; New excludes public pages; Popular for a new viewer; Shared with you on an empty company; no "Healthy". Search's no-results agent line moves to All patches with search (P2).

Not changed from today, and why: a New row carries no unseen dot: the section is titled New, and the same patch's dot shows in From colleagues. A connection's attention row has no mark yet: core has no integration mark, and the per-provider marks are P6/P7's typed data.

Left out, and why: an app or computer whose access ended (Reconnect) isn't readable through today's services: MachineTokens.list and AgentConnections.list return live records only. Someone whose only computer key ended has no live token, so Home already offers Connect. Reading ended ones needs a new auth query (P4's area). The prototype's "Get an agent" dialog stays today's in-place "No agent yet?" disclosure, so the page carries no third-party install links we can't vouch for.

Core additions (new files only): ui/region.ts (region: a section named by its title, for landmark navigation), ui/attention.ts (attentionRow: a row whose problem is danger text with one fix), ui/usual.ts (usualTiles) with styles/usual.ts, ui/copy-button.ts (copyButton, hidden until the copy script reveals it), styles/visibility.ts (hide-sm/show-sm beyond tables, .copy-button[hidden]). Registered with one line each in ui/index.ts and styles/index.ts, and shown in the /~ui gallery.

Integrations addition: ConnectionAttention.ts, which reads the company's connections (and who declares them only when one is stopped) and says what needs an admin in each integration's own words, so P6 changes the words in one place.

Patches addition: GuestGrants.sharedWith gives each grant's sharer by name (sharedBy), read in the same query.

Shared changes: the portal test harness loses Home's readers (moved into HomePages.test.ts) and gains a paused mailbox for one company; SharePages.test.ts and the browser specs sharing.spec.ts / shell.spec.ts follow Home's new markup and the search redirect.

Release impact

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

Server-rendered pages only; no schema, API or CLI change. /?q= keeps working as a redirect.

  • What does a revert leave behind? Nothing: no rows, schema or contracts change.
  • Does the release before it still work with that? Yes.

Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.

Before and after, as Allison Mahmood (admin)

Before is 4593013 (--base origin/ui/s-scenario) and after is b9ce5c6 (ui/p1-home), both on the dense scenario, from pnpm dev compare.

Every page answered 200 with no browser errors.

/

1280px, after

After: / at 1280px

1280px, before

Before: / at 1280px

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

A member with no agent, a guest and the dialogs (after; setup lines replaced with an example)

Priya's first sign-ins: the Final step over Home, then Home after Later with one Connect line.

The Final step over Priya's Home

Priya's Home after Later

Priya's Home after Later

New patch, not connected New patch, connected (Allison)
New patch for Priya New patch for Allison
The Final step on a phone Taylor, a guest at an empty company
The Final step on a phone Taylor's Home
Share on a row of Yours opens over Home

Share over Home

@github-actions github-actions Bot added 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:xl Over 1,000 changed lines; review in multiple passes area:server Touches the server area labels Nov 8, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review round 1 (GPT 6.1 Sol): what was fixed and what was dismissed.

Fixed in b9ce5c6 and 87e3a2f:

  1. Screenshots showing a throwaway dev host, port and setup link: Priya's compare section is gone; her captures are replaced with ones whose setup line reads an example origin. The superseded uploads are no longer referenced (GitHub keeps user attachments at their URL; they show a destroyed local instance's host and a dead line).
  2. Send this to my computer showing without script on a phone: .btn-group overrode hidden, so the button now waits in a plain wrapper. New browser test home.spec.ts checks the phone without script: no Send, no Copy, and "Look around … first" still posts.
  3. Shared with you now names who shared each patch (GuestGrants.sharedWith reads the sharer in the same query), with a Home test.
  4. Pidgeon test mode is a Needs attention reason while live patches send through it (Replace key…); leftover key and test mode both have focused tests.
  5. Home's sections are named regions through a new additive core helper, region; sharing.spec.ts queries the region by name again.

Dismissed:
3. The no-results agent line on All patches: by the plan, P2 builds All patches' search results and its no-results line, and P1 only redirects /?q= there. The stack merges together, so the state lands with P2.
5. Reconnect for an ended app or computer: the ticket allowed this only if the state is readable cheaply today, and it isn't: MachineTokens.list and AgentConnections.list return live records only. Reading ended ones needs a new auth query (P4's area); reported to the orchestrator. Someone whose only computer ended already gets Home's Connect line.
8. New rows without the unseen dot: the section is titled New and the same patch carries the dot under From colleagues, so the dot is redundant there. Connection attention rows without a mark: core has no integration mark yet, and per-provider marks are P6/P7's typed data. Both are now explained in the PR body.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review round 2 (GPT 6.1 Sol): 0 Must fix, 2 Should fix, 1 Nit.

Fixed in 6499272:
2. Yours no longer reads a turned-away patch's guests as access: it says "Company · 1 guest can't open it", from the same guest-availability read the card uses, with a test that grants a guest and then uses a blocking connection.
3. A Pidgeon test key's detail says "n patches use it", since the count is declarations, not sends.

Dismissed:

  1. Reconnect for an ended app or computer: the qualification comes from the orchestrator's lane instructions for this ticket ("only if that state is readable cheaply today, otherwise say so in your report"), not the issue text. It isn't readable through today's services (both lists return live records only), so it is reported for a follow-up rather than built here with a new auth query in P4's area.

The test (24) failure is a new execution-fleet flake in code this PR doesn't touch (filed as #1348).

@allisonmahmood

allisonmahmood commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 3ad4f7fa66318cac02253fd05ef253fe58f3dc3b (base 488aa1aed1492e0a183916f72e16361a53f1de21) on fresh dense, by GPT-6.1 Sol in the Codex harness (T3 Code).

Round 2 comparison

git range-diff a1b45418..f6d1bb2b 488aa1ae..3ad4f7fa maps all four commits with =: only rebased. Carrying forward the round 1 PASS with notes on f6d1bb2b9f030b63e1d6263c2e5e2dd7a3acf7c3 for unchanged journeys and edge-case evidence, with these new-head checks.

Done means

  • Admin Home order and Share per owned row: passed at 1280px and 390px. Needs attention → Your usual → New → Yours → From colleagues → Shared with you. Browser assertions checked the ordered headings and a Share link in every Yours row, including the phone menu. The attention rows keep their problem and fixing action readable on the phone.
  • Member without agent gets Final step; New patch works both ways: passed at both widths. Final step keeps its inert background and intentional Escape restriction; Later closes it and leaves Connect. Unconnected and connected New patch show their respective steps/starter, and browser Back closes New patch. The connected state names the viewer's most recent working computer. Share opens over Home.
  • Other Home contract states: passed. 16 fresh browser content/layout checks include admin, member, empty-company creator and guest with source/sharer/unavailable reason. No document overflow or page exceptions. Focused suites retain Popular, below-eight, A–Z/twelve-row limits, public exclusion from New, setup window, concurrent sign-ins, summaries and blocked-guest coverage.

Golden journeys

  • Share/open/remove from guest Home: passed again, via the browser suite.
  • Machine login/logout; publish and retire/restore/delete/restore; share/unshare; search/open; live Kudos; deal move/back and Spend self-approval refusal: passed in round 1, carried forward. Range-diff proves this PR's changes are unchanged; shell/admin/member browser tests recheck the rebased entry surfaces. These complete journeys were not repeated this round.

Evidence

HomePages + SharePages + ConnectionAttention + GuestGrants: 31 tests passed
Chromium home + sharing + shell: 6 tests passed
Fresh dense content/layout: 16 checks passed at 1280px/390px
Member: Final step, inert, Escape, Later, Connect, New patch, Back passed
Admin: section order and Share per owned row passed at both widths

Rollback answers: match the diff. Rendering and additive reads only; no migration, persisted format, wire, CLI or infrastructure change.

Not run

  • Live Clerk, real invitation mail and full local verify this round. Full CI is incomplete.

Notes

  • Ended apps/computers still have no per-record Reconnect on Home; the explicit P4 query handoff remains. Generic Connect works when no computer remains. Search/no-results is the All patches lane; shared helper/gallery reconciliation remains integration work.
  • CI's server image passes; test/browser/Clerk/rollback and other jobs remain pending. The apparent red install entry is a cancelled duplicate run with no executed steps (run), not a failed install test. This is not a merge-ready claim.
  • Original PR captures predate the restack. Attached captures are from this head, inspected and scrubbed to scenario/example data. The instance is down; no PR code, branch, body or labels changed.

@vsrikar08

Copy link
Copy Markdown
Collaborator

Ok, first of all, I think having needs attention at the top of everything is super annoying (just my personal taste), and it should be somewhere else, either in the What's New notification area (aka we have warnings and What's New over there). Like, I genuinely hate this btw (or if you are gonna do that, at least let them clear that and put it in some other area so they won't be bothered with it). Also, why " New (up to three colleagues' patches from the last week you haven't opened, never a public page)"? From my understanding, it's just highlighting new patches. We should do it for all unopened patches, not just three. Like, it should be similar to how Gmail works in that case. Like Gmail highlights all unopened emails, not just three of them.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Srikar. (Fermy, Allison's agent.) Two facts, then Allison's call:

  • New: every colleague's patch from the last week you haven't opened already gets the blue dot in From colleagues, with no cap, which is the Gmail-style unread marking. The New section above it is a shelf of the three newest of those, not the only ones marked. Patches older than a week that someone never opened aren't marked: in a company with a long list most of them would be, and the dot would stop meaning "this just arrived".
  • Needs attention: it shows only while something you can fix is broken (your own tools that failed in the last 24 hours; for admins, a connection that stopped), and it disappears on its own once fixed. Allison put it first on purpose: checking on problems is one of the four things she wants Home to make most obvious, alongside opening, sharing and connecting an agent. Moving it behind the bell or making it dismissable is a product decision, so I've raised it with her rather than changing it here.

Base automatically changed from ui/s-scenario to main November 10, 2026 17:42
@allisonmahmood
allisonmahmood merged commit 36551ce into main Nov 10, 2026
25 checks passed
@allisonmahmood
allisonmahmood deleted the ui/p1-home branch November 10, 2026 17:55
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
…in a dialog (#1345)

Stacked on #1344; part of #1315. Merge the stack together, not alone.

## What changed

A patch's page was a card whose header changed between tabs, with the
patch's name in a grey line under its title, rollback as a full-width
button per version, Settings as loose sections with two equal red
buttons, and Retire, Delete, Restore and Reassign on confirmation pages
of their own. Now every tab shares one header on the Detail template:
the mark, the title without its " · Brightline Studio" suffix, "Tool ·
its address" with Copy, a status line only when there is something to
say, and Share · Open · ⋯. Overview has facts, Recent activity and "Your
agent can, as you" (a page has no aside). Log filters with chips over
menus of links and groups entries by day, each opening in place to its
calls and log lines. Versions marks the served version Serving, and
Serve this version… asks in a dialog. Settings is the Settings template:
Description (its own form), Owner and Reassign…, Who can open it
(Change… opens Share), and Take it down. Retire… ("are you sure", naming
the patches that read its tables), Delete… (typed name), Restore with
off sources, Reassign… and Serve this version… are dialogs over their
tab at their own URLs. While a patch is retired or deleted, the status
line says who, when and the reclaim date, with Restore as the header's
primary.

Closes #1324

## Look at

**1. One frame, every state.** `render.ts` draws the header once
(`renderPatchPage`) for all four tabs; `PatchPages.render` draws any tab
with an optional dialog over it, so each dialog's GET route and a
refused POST draw the same page. Authorization and state checks run
before a dialog draws, as the confirmation pages did: a member asking
for `/retire` gets Overview with the refusal (403), a retired patch's
`/retire` says it's retired (409), and `/restore` with no off sources
goes straight back to the page (303). The new `GET
/patches/<name>/rollback?version=<n>` sends anything that isn't a kept,
non-serving version back to Versions.

**2. Acknowledgement is the button now.** Retire, Delete and Restore
with off sources name what breaks in the dialog, and pressing the act
sends `ack=1`; there's no checkbox (decision 5 and the prototype). The
server still refuses without `ack` (`HasDependants`, `SourcesOff`), so a
reader that appears between the dialog and the press is still caught:
the dialog comes back naming it.

**3. Reassign is a select.** The dialog offers the company's active
people in a native select (type-ahead finds a name), so it is one form;
the `?q=` member filter and radio list are gone. The server still
rechecks the target and the expected owner, and its refusal sits under
the field.

**4. Refusals take focus.** A dialog starts on Cancel where pressing on
would break something (Retire, Restore, Serve), on the typed name for
Delete and on the owner for Reassign; a refusal that isn't about one
field takes focus above the buttons instead (`refusalNotice`), in a
dialog or under the tabs. Serve this version… draws its dialog again
with its refusal, its version kept.

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

#### Before and after, as Allison Mahmood (admin)

Before is `67d7306` (--base origin/ui/n-shell) and after is `0ff95fa`
(ui/p3-patch-page), both on the `brightline` scenario, from `pnpm dev
compare`.

Every page answered 200 with no browser errors.

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

**1280px, after**

![After: /patches/new-business at
1280px](https://github.com/user-attachments/assets/1e0c950d-b597-44a2-b903-fd0bbdd1914e)

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

![Before: /patches/new-business at
1280px](https://github.com/user-attachments/assets/bbcc32b8-50fd-4521-8a0e-11cdf03dad84)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business at
390px](https://github.com/user-attachments/assets/270bfd6e-a881-41e7-9c0e-b8824b6160ab)
| ![After: /patches/new-business at
390px](https://github.com/user-attachments/assets/a05735a7-2ede-4014-86d3-3bb409e355cb)
|

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

**1280px, after**

![After: /patches/new-business/log at
1280px](https://github.com/user-attachments/assets/ae01fa9b-4822-432d-a724-7101a42f150b)

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

![Before: /patches/new-business/log at
1280px](https://github.com/user-attachments/assets/58cedd6b-c025-4bb5-82ab-e3c7fa781c6a)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business/log at
390px](https://github.com/user-attachments/assets/50e21a09-5683-424d-9efc-d9647a48c082)
| ![After: /patches/new-business/log at
390px](https://github.com/user-attachments/assets/2cc443be-db5a-4305-b965-470715251455)
|

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

**1280px, after**

![After: /patches/new-business/versions at
1280px](https://github.com/user-attachments/assets/db617c7a-caca-4bc1-9b2f-1b780c821849)

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

![Before: /patches/new-business/versions at
1280px](https://github.com/user-attachments/assets/39a8ecd4-b268-4002-b64d-54990527b92a)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business/versions at
390px](https://github.com/user-attachments/assets/63f36145-833a-43f3-b1d2-754a17d44021)
| ![After: /patches/new-business/versions at
390px](https://github.com/user-attachments/assets/d132828d-61a5-4dfb-8870-e95c675d56b6)
|

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

**1280px, after**

![After: /patches/new-business/settings at
1280px](https://github.com/user-attachments/assets/249ae58f-bbd5-4a5a-a0d2-25fc9605c77b)

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

![Before: /patches/new-business/settings at
1280px](https://github.com/user-attachments/assets/b4abffb9-d890-4c16-97e6-c46311d9fb93)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business/settings at
390px](https://github.com/user-attachments/assets/c777127b-8e76-43e6-9d2d-326c03dfc479)
| ![After: /patches/new-business/settings at
390px](https://github.com/user-attachments/assets/a6aae404-36c1-4533-86eb-34d166dfc52c)
|

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

**1280px, after**

![After: /patches/new-business/retire at
1280px](https://github.com/user-attachments/assets/b903c73d-c6a1-45ce-a790-6ece6293cfc0)

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

![Before: /patches/new-business/retire at
1280px](https://github.com/user-attachments/assets/c1f3d258-3199-4363-a81c-53f84f57e1d6)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business/retire at
390px](https://github.com/user-attachments/assets/eba02920-bd2e-464c-8662-e27665230607)
| ![After: /patches/new-business/retire at
390px](https://github.com/user-attachments/assets/31bed389-16fe-4275-869a-fc44917f42d9)
|

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

**1280px, after**

![After: /patches/new-business/delete at
1280px](https://github.com/user-attachments/assets/70385fd3-6026-431d-8cef-af0015d92b8c)

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

![Before: /patches/new-business/delete at
1280px](https://github.com/user-attachments/assets/3c94cd31-8555-4cde-a249-49dfec7e483a)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches/new-business/delete at
390px](https://github.com/user-attachments/assets/7c61d45b-6d59-4111-a57d-acec9d25a349)
| ![After: /patches/new-business/delete at
390px](https://github.com/user-attachments/assets/79f1e3fb-2c64-4ebe-ae58-021da85e12c0)
|

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

## The §10 states kept, and how they're checked

- **Who sees what (3).** Members: Overview and Versions, Open and ⋯ with
Open in a new tab and Copy link; no Share, Log, Settings or take-down
items. Owners: plus Share, Log, Settings, Retire… and Delete…. Admins:
plus Reassign…. Direct URLs answer with the existing refusals in the app
frame (`PatchPages.test.ts`: member, owner and admin views; "forbids
members on every confirmation route").
- **Recovery (5).** Status line with who, when and the reclaim date;
Restore for owners and admins until the window ends; the recovery-ended
wording after. Stale-action refusals name who did what; every form
carries `expectedPatchId` and its own `expected*` field, and a form
whose name now names another patch draws a read-only page with no forms
(the stale and "old form" tests for every act, unchanged in substance).
- **URLs (2).** Tabs, each filter chip's choices, every dialog, and each
log entry (`#entry-<id>`, which names its disclosure, so the enhancer
opens it).
- **Errors (10).** The typed name's error under its field, a
description's under its field with the draft kept, other refusals as a
notice in the dialog above its buttons or under the tabs.
- **Overlays and menus (15).** Dialogs are `core`'s `dialog` with
`inert` behind; Cancel takes focus on Retire, Restore and Serve, the
typed field on Delete and the owner field on Reassign; a refusal not
tied to a field takes focus itself; Escape and Close go back past a
refused submission (`test/browser-tier1/patch-page.spec.ts` drives
Delete refused → Escape → focus on Delete…, Retire → Restore, Reassign's
focus and refused owner, and a stale Retire's refusal taking focus). ⋯
and the chips are native popovers of links.
- **Status honesty (19).** Overview's status line says "n failed calls
in the last 24 hours · View log" from the shared call summary, for
owners and admins only; never "Healthy". The log keeps Running and
Unknown.
- **Phones (12).** Header actions wrap under the title, tabs scroll, the
aside stacks after main, the log scrolls in its own wrapper rather than
breaking words.

## Core additions

New files only, plus one export line each:
- `packages/core/src/ui/detail.ts`: `chipMenu` (a chip opening a popover
of links), `groupedTable` (rows under day headings, each its own `tbody`
with a `rowgroup` header, rows expanding in place, a permalink naming
the disclosure), `settingsPanel` (the Settings template inside a Detail
tab, at settings width), `copyButton` (Copy waiting hidden for
`copy.js`), `refusalNotice` (a danger notice that takes focus), `person`
(a name beside its small mark), `codeRow` (a row named in Geist Mono,
for tool names), `menuNewTab` and `menuRule`. Unit tests in
`detail.test.ts`. They aren't in the `/~ui` gallery yet; that file is
F2's.
- `packages/core/src/styles/detail.ts`, registered last in the chunk
list.
- `packages/core/src/patch-presentation.ts`: `recovery` (who, when,
reclaim date, restorable) and `recoveryLine` (the status line's words).
`renderOffPatch`, which the address notice uses, keeps its API and
output; it now reads `recovery` inside.

## Shared changes

- `shared/presentation.ts`: deleted the old portal CSS rules only the
card used (`portal-card-head`, `-tags`, `-act`, `-tabs`,
`portal-stop-actions`, `portal-address`, `log-filters`, `log-status`,
`log-outcome`, `log-table`). `portal-card`, `portal-subpage` and
`portal-table` stay for Home, Share and people lifecycle.
- `shared/handlers.ts`: `AgentConnections` joins `PortalServices` (the
server already provides it), so the aside can say which of the viewer's
own apps are connected; the test harness provides it too.
- The patch page still passes `shareStyles` to `pageResponse` while the
Share dialog is over it, until P2 moves Share onto the system.

## Left out, on purpose

- A log entry's calls open from a summary line under its row (a native
`<details>` in a full-width cell), not from a chevron in the row itself
as the prototype draws it: a table row can't hold a disclosure across
cells without script or a checkbox trick, and this keeps keyboard,
no-script and permalink opening. Recent activity is three linked rows,
each opening its log entry.
- The old Log intro ("an attribution record, not an access audit…") and
Settings' helper lines; the glossary keeps the attribution meaning.
- "Open this version" and "Use with your agent" in the prototype's
menus: there's no route to open one version, and the aside already
offers the agent.
- The prototype's Shared tables row (#1261's slot) and retired-state
agent tools.
- Tool descriptions show their first clause; agents read the whole
description through Patchy MCP.

## How it was verified

- GPT 6.1 Sol reviewed two rounds; its findings and what became of them
are in the PR comments.
- `pnpm check`: format, lint and typecheck clean. Offline tests: portal
126/126 and core pass; `apps/server` `Server.test.ts` needed one fix (it
looked for Open by its exact inner HTML, which now carries an icon). The
other failures on this shared machine were the CLI suites' stray
local-port requests and timeouts under load; the non-CLI ones
(`company-database`, `integrations/postgres`, `primitives`,
`RequestEvents`) pass when run alone. CI runs the rest.
- `test/browser-tier1/patch-page.spec.ts` run alone: both tests pass.
- Screens above from `pnpm dev compare` on `brightline`, desktop and
phone.
- Docs: `docs/product.md`'s card sentences and
`packages/portal/GLOSSARY.md`'s Card, Log, Settings, Confirmation and
Acknowledgement.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required

Pages, one new GET route and docs; no schema, API or CLI change. Every
POST route and its fields are unchanged.

- **What does a revert leave behind?** Nothing: no data or schema.
- **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]>
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
…1346)

Stacked on #1343; part of #1315. Merge the stack together, not alone.

## What changed

All patches had its own search box beside the sidebar's, yellow pill
tabs, a "Health" column and rows drawn by page CSS, and the Share dialog
its own layout and stylesheet. Now All patches is an Index page: a
segmented filter where every choice is a URL, the shared table A–Z with
**Failures (24 h)** and **Share** on the rows you own, 50 rows a page.
The sidebar's search lands here (`/patches?q=…`) and shows its query as
a chip; a search that finds no live patch offers the line Home offered,
"Build us a Patchy tool for …" with Copy. The Share dialog is core's
dialog: invite a guest, the people with access, general access (going
public still asks first; a tool says why it can't), why its guests can't
open it, Copy link and Done. Every route, form and POST is the same.

Closes #1323

## Look at

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

#### Before and after, as Allison Mahmood (admin)

Before is lane S's tip `4593013` (#1342, the `dense` scenario) and after
is this PR's two commits on top of it, both on `dense`, from `pnpm dev
compare`.

Every page answered 200 with no browser errors.

##### `/patches`

**1280px, after**

![After: /patches at
1280px](https://github.com/user-attachments/assets/8d2ddc99-5202-4582-8d64-87ed3edcd268)

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

![Before: /patches at
1280px](https://github.com/user-attachments/assets/33096836-6742-46b4-b163-a5b3290a7f94)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches at
390px](https://github.com/user-attachments/assets/001a6551-8b35-479b-8000-3fc4a9fa7b4f)
| ![After: /patches at
390px](https://github.com/user-attachments/assets/92297f45-28ea-40bc-ae6b-3815a36034b2)
|

##### `/patches?share=kudos`

**1280px, after**

![After: /patches?share=kudos at
1280px](https://github.com/user-attachments/assets/0bec3aa6-2849-4947-81a3-fc848b529e13)

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

![Before: /patches?share=kudos at
1280px](https://github.com/user-attachments/assets/83074316-6784-4e2c-9ef9-961891ae2dc8)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches?share=kudos at
390px](https://github.com/user-attachments/assets/d1777ba4-fc0c-4942-abb7-b8489064b967)
| ![After: /patches?share=kudos at
390px](https://github.com/user-attachments/assets/95a90ae2-b1ce-48e4-8f68-470346c2a1e0)
|

##### `/patches?share=client-onboarding`

**1280px, after**

![After: /patches?share=client-onboarding at
1280px](https://github.com/user-attachments/assets/9a63da09-4fa0-4665-9178-519e9ff6c374)

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

![Before: /patches?share=client-onboarding at
1280px](https://github.com/user-attachments/assets/c83102ca-d637-4551-841b-e9ec1e8673d9)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches?share=client-onboarding at
390px](https://github.com/user-attachments/assets/c1858724-67a2-4871-bc08-f32089cbb2f7)
| ![After: /patches?share=client-onboarding at
390px](https://github.com/user-attachments/assets/24596e9b-2604-4eaf-bcba-8f89b451436a)
|

##### `/patches?show=attention`

**1280px, after**

![After: /patches?show=attention at
1280px](https://github.com/user-attachments/assets/f58a977d-378e-4095-b435-f85119bf4867)

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

![Before: /patches?show=attention at
1280px](https://github.com/user-attachments/assets/e845da71-92a7-448f-83cd-3758bf834e87)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches?show=attention at
390px](https://github.com/user-attachments/assets/3bcc2767-ddb1-483a-9917-eac901c8d803)
| ![After: /patches?show=attention at
390px](https://github.com/user-attachments/assets/fe6a2b7a-b32b-4051-a1f5-9b00e2456e75)
|

##### `/patches?q=zebra`

**1280px, after**

![After: /patches?q=zebra at
1280px](https://github.com/user-attachments/assets/758280a8-123d-44d7-8988-778e1d1ac501)

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

![Before: /patches?q=zebra at
1280px](https://github.com/user-attachments/assets/df796786-7ba3-412f-be8b-e225470ea94f)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /patches?q=zebra at
390px](https://github.com/user-attachments/assets/6c329717-767b-4741-8ed9-1ea900478a2c)
| ![After: /patches?q=zebra at
390px](https://github.com/user-attachments/assets/57ca0fda-af0c-4f5b-9683-38607a45199f)
|

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


## How it was verified

- `pnpm check`: format, lint, typecheck and synth pass. Offline tests:
portal (123) and core (279) pass; the failures in `packages/patchy` CLI
suites, `sdk/install` and `LocalTaskProvider` change from run to run and
pass in isolation on Node 24 (this machine's local port probe and Node
26 default); CI runs them.
- `AllPatchesPages.test.ts`: filters with URLs and A–Z order, the search
chip and counts, the sidebar keeping the query, the no-results agent
line (with Connect your agent for someone without one), paging at 50
with the filter and search kept, Share only on the viewer's own rows,
Company + guests, Failures (24 h) reading None / No calls yet / n failed
/ —, and every Needs attention and Retired and deleted case that was
there.
- `SharePages.test.ts`: saving Anyone on the internet lands on the
asking dialog at `?share=<name>&confirm=public` and only Make public
applies it; a member can't, and a member or a tool asking by address
gets nothing to confirm; a stale answer is refused; adding and removing
guests, refusals under the field with the email kept, suggestions; a
tool offers no public choice and says why; guests blocked by a
connection are explained; where focus starts in each state (invite,
General access while public or after its refusal, Cancel while asking),
never on a guest's Remove, including an invite refused after another
manager made the patch public; a refused General access change describes
the select it focuses.
- Browser (`test/browser-tier1/sharing.spec.ts`, run locally): sharing
from the menu end to end, and three new cases: a row opens its patch
from anywhere on it while its Share and ⋯ stay pressable; a public page
with a guest opens Share with focus on General access; without script,
Share is a page whose Copy link stays hidden, and Save → Make public
goes through `&confirm=public`.
- Looked at as Allison and Priya on `dense`, desktop and phone (above).

### §10 states kept

- **5, recovery:** Retired and deleted shows when any exist (or while
open), with Restore while recoverable and Recovery ended after.
- **9, Share:** guest add and remove, the access list, Copy link and
Done, company ↔ public with an explicit Make public at its own address,
a tool company-only with its reason beside the choice, why guests are
blocked, and that guests keep their grants while it is public.
- **19, status honesty:** Failures (24 h): None, No calls yet, or n
failed linked to the failed log; never "Healthy". The label matches the
call summary's 24-hour window.
- Also **2** (every filter, page, dialog and the public confirmation is
a URL), **10** (a refused email under its field, kept; a refused General
access change above its control; stale and authorization refusals as
before), **15** (dialog over the page, focus by state, Escape/Done back,
row menus operable), **21** (add-guest and remove are idempotent by
state, scope is guarded by `expectedScope`; no dedupe needed).

### Left out on purpose

- **Visits, not Opens.** The column is the all-time visit count; an
"open" is a member's private record (Patches glossary), so calling
visits Opens would overstate it.
- The header's "12 patches · 3 pages" and the prototype's Sort chip: the
filter carries the counts, and the order is always A–Z.
- People with access has no "Everyone at …" row; General access says
who.
- Remove… for a guest's shared patch stays a confirmation page (now the
Flow template) rather than a dialog over Home, which is lane P1's page.
- Titles keep a "· Company" suffix where a publisher wrote one;
stripping it everywhere is a `patchTitle` decision for the stack, not
this page.

### Core additions

- None for Copy link: the dialog uses the stack's one `copyButton`
(#1344's, hidden by `.copy-button[hidden]` until the copy script reveals
it).
- `input` takes `list`, the id of a `<datalist>`, for the dialog's
suggestions; `select` takes `autofocus`.
- `table` columns take `nowrap` and `grow`: the patch column takes the
room left with a one-line description.
- New chunks, each opt-in by class: `pairs.ts` (`.pair`, a control with
what goes beside it), `rows-flush.ts` (rows flush under a label, ends
under the name on a phone) and `table-cells.ts` (`nowrap`, `cell-grow`,
`show-sm`, and links in a stretched-link row sit above it, so "2 failed"
opens the log).
- The gallery shows the pair.

### Shared changes

- The sidebar's search form posts to `/patches` instead of `/`
(`core/html.ts`, and its test; `test/browser-tier1/shell.spec.ts`
follows). Lane P1 redirects `/?q=`.
- `shared/handlers.ts`: `shareOverlay` passes why the patch's guests
can't open it (read only while it has guests); `behind` keeps `page`
with `q` and `show`; `asked` reads `&confirm=public` and `pagePath`
drops it.
- `shareStyles` is gone: Share is core's dialog, and Home and the patch
page no longer add it.
- `test/fixtures.ts`: `listed` and `dialogAfter` read the new markup,
plus `shareDialog`. `apps/server/src/McpDoor.test.ts` reads the new row
link.
- Docs: `packages/portal/GLOSSARY.md` (All patches, Share dialog) and
`docs/product.md`.

## Release impact

- [ ] **Breaking** — requires action from anyone already running this
- [x] **Not breaking** — no action required

Pages and docs only: no new route, form field, API, CLI or schema
change. Saving Anyone on the internet without its answer now redirects
(303) to the asking dialog instead of drawing it in the POST's response.
The sidebar's search moves from Home's results to All patches', and
`/?q=` keeps working.

- **What does a revert leave behind?** Nothing: no data, schema or
contract.
- **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]>
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]>
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:xl Over 1,000 changed lines; review in multiple passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI overhaul P1: Home leads with what needs you, then your patches and your colleagues'

2 participants