Skip to content

feat(portal): All patches and Share on the shared table and dialog - #1346

Merged
allisonmahmood merged 1 commit into
mainfrom
ui/p2-all-patches
Nov 10, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
ui/p2-all-patches

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

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

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

1280px, before

Before: /patches at 1280px

Width Before After
390px Before: /patches at 390px After: /patches at 390px
/patches?share=kudos

1280px, after

After: /patches?share=kudos at 1280px

1280px, before

Before: /patches?share=kudos at 1280px

Width Before After
390px Before: /patches?share=kudos at 390px After: /patches?share=kudos at 390px
/patches?share=client-onboarding

1280px, after

After: /patches?share=client-onboarding at 1280px

1280px, before

Before: /patches?share=client-onboarding at 1280px

Width Before After
390px Before: /patches?share=client-onboarding at 390px After: /patches?share=client-onboarding at 390px
/patches?show=attention

1280px, after

After: /patches?show=attention at 1280px

1280px, before

Before: /patches?show=attention at 1280px

Width Before After
390px Before: /patches?show=attention at 390px After: /patches?show=attention at 390px
/patches?q=zebra

1280px, after

After: /patches?q=zebra at 1280px

1280px, before

Before: /patches?q=zebra at 1280px

Width Before After
390px Before: /patches?q=zebra at 390px After: /patches?q=zebra at 390px

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 (feat(portal): Home leads with what needs you, then your patches and your colleagues' #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
  • 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.

@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:ui Portal and first-party browser pages, shared rendering and styles size:l 501-1,000 changed lines labels Nov 8, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review round 1 (GPT 6.1 Sol): fixed in 3230f05.

  • 1, focus (Must): fixed. Focus starts on General access while the patch is public or after a refusal there, on Cancel while it asks about going public, and on the invite field otherwise; never on a guest's Remove. A non-field refusal now shows inside General access above its control. Unit cases plus a browser case (public page with a guest).
  • 2, confirmation by address (Must): fixed. Saving Anyone on the internet answers 303 to ?share=<name>&confirm=public, a GET that draws the asking dialog; Make public stays the POST with every guard. A member, or a tool, asking by address gets nothing to confirm.
  • 3, table density (Should): fixed. The patch column takes the room left with a one-line description, and on a phone Failures folds under the name.
  • 4, dialog anatomy (Should): fixed. People with access is flush rows under a small label, and a tool's reason sits beside its one choice.
  • 5, ownership (Must): partly taken. The global .row-desc wrap changed an existing class's behaviour, so it is gone; long words now wrap only inside the new opt-in .rows-flush. The rest stays, with this reason: the lane brief for this ticket explicitly allows the sidebar search's one-line action change, additive core variants listed under Core additions (input's list, select's autofocus, table columns' nowrap and grow: optional, nothing existing renders differently), new chunk files with one line each in the chunk list, and small additive changes in portal/src/shared/ listed under Shared changes (behind keeping page, which Home and the card never set; asked reading confirm; the overlay's guest reason). The integrator decides at linearization.

@github-actions github-actions Bot added size:xl Over 1,000 changed lines; review in multiple passes and removed size:l 501-1,000 changed lines labels Nov 8, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review round 2 (GPT 6.1 Sol): all three fixed in 2bcaebe.

  • 1, refused invite after a concurrent switch to public (Must): the invite field now stays when its invite was refused, with the email and why, and takes focus; focus always lands on something the state renders, never a guest's Remove. Unit case: company dialog with a guest → made public → refused invite.
  • 2, Copy link without script (Should): copyButton carries btn-copy, and a new chunk keeps .btn-copy[hidden] out of sight until copy.js reveals it. Browser case without script: Copy link hidden, then Save → &confirm=public → Make public.
  • 3, refusal not tied to the focused control (Should): the refusal has an id, the select's aria-describedby names it, and the select is aria-invalid. Asserted on the tier 2 refusal.

Round 2 was the last round the lane brief calls for; the evidence screenshots predate these three fixes, which don't change what those pages show.

@allisonmahmood
allisonmahmood changed the base branch from ui/n-shell to ui/p8-doors November 8, 2026 06:20
@allisonmahmood
allisonmahmood force-pushed the ui/p8-doors branch 2 times, most recently from cd4d322 to 982a2bc Compare November 8, 2026 11:46
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance fixes: Needs attention's "Why it's here" and Retired and deleted's State keep a 14rem floor and the patch column a 10rem one, so no word breaks; on a phone the table scrolls in its wrapper, which now contains the hidden Actions header label so the page never scrolls sideways. Core addition: a readable column option (cell-readable). Browser test at 1280px and 390px, in 1168f36. Home's Needs attention rows checked at 390px on dense: readable, unchanged.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 1168f3612f7259d1faed685a56522e400ff5d191 (base 982a2bccaf35e976b6493d88ef4558417ddb82bf, ui/p8-doors) on fresh dense data, by GPT-6.1 Sol (xhigh) in Codex / T3 Code.

Round 2 scope

git range-diff shows all six original commits unchanged apart from the rebase, plus 1168f361 fixing table readability. This replaces the round 1 PASS with notes on b0a87031f8694ade0c401db4125cc062cb8a295b; its unchanged-implementation evidence is carried forward below. The cramped-phone-table note is fixed and drops.

Done means

  • Every filter has a URL: passed. Rechecked All, Tools, Pages, Yours, Needs attention, Retired and deleted, matching/empty search and Share states as Allison and Priya at 1280px and 390px (48 page loads including Home). Counts, A–Z order, ownership and conditional filters hold; no document overflow or browser exceptions. Focused tests cover paging at 50 and filter/query retention.
  • Sharing, adding/removing guests and going public: passed. Fresh no-script phone flow: invite Taylor → Save public → reload the distinct public-confirmation URL → Make public → company → remove Taylor. Anonymous access stayed 401 before confirmation, became 200 with public, max-age=60 and no cookie, and returned to 401; guest access survived the scope round trip. Tools' company-only explanation, blocked-guest notice and member restrictions remain.
  • Original readability repros: passed. At /patches?show=attention and ?show=off, reason/state cells are 248px at both widths. Patch cells are at least 172px. At 390px the wrappers are 358px and their contents 592px/477px; only the wrappers scroll, and scrolling reaches the fixing action. Desktop reasons no longer split “deactivated” mid-word. Home's attention rows also remain readable at 390px. The added browser test checks both views at both widths, reason/patch floors and document width, and passes.

Golden journeys

  • Find/open a tool: passed again, Jordan's Home sidebar search → All patches → Kudos in its frame.
  • Share/unshare: passed again, including the anonymous-access reversal above. The browser suite also exercises guest open/removal and row-menu/Share operability.
  • Publish/retire/restore, live Kudos, live New Business movement and Spend self-approval refusal, signed-out door: passed in round 1; carried forward, not repeated end to end. Range-diff confirms the PR's original behavior commits are unchanged; round 2 checks the new CSS and inherited shell with the matrix and focused tests.

Rollback answers: Match the diff. Additive rendering options/CSS, existing sharing operations and search routing add no schema or incompatible stored state. No one-way label needed.

Evidence

Vitest: AllPatchesPages, SharePages, HomePages, core html, core UI
Test Files  5 passed (5)
Tests       65 passed (65)

Playwright: all-patches.spec.ts + sharing.spec.ts
5 passed (31.8s)

Dense: 2 roles × 2 widths × 12 page states; 0 browser exceptions
Phone no-script guest/public/company/remove: passed
Phone horizontal scroll reaches the fixing action: passed

Attached: fresh scenario Needs attention at 390px and Retired and deleted at 1280px.

Not run

  • Full pnpm verify and live Clerk locally. Current-head CI run remains pending, including browser, Clerk, offline tests and rollback-rehearsal; server-image is also pending. This is not a green-CI claim.

Notes

  • GitHub's red install (${{ matrix.os }}) entry belongs to cancelled run 42477242050: every job was cancelled with no executed steps. It is not an observed install regression.
  • The PR body's comparison images still use the earlier lane-S base. This verdict used the recorded current stack base and head.

The instance started for this verdict was taken down; the checkout is clean.

allison-390-patches-show-attention

allison-1280-patches-show-off

@vsrikar08

Copy link
Copy Markdown
Collaborator

Only thing I would add in the future is that instead of alphabetical ordering, the user should choose how they want it. Also think the search is weird if there is nothing for zebra, you ask it to make a patch with zebra. Seems extra complicated to me.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Thanks, Srikar. (Fermy, Allison's agent.)

  • Sort: agreed it can come later; a sort choice would be one more chip beside the filter, kept in the URL like the rest. A–Z stays the default so rows never move under people.
  • "Build us a Patchy tool for zebra": that line isn't new; Home has offered it on a search with no results since the onboarding work, and this PR only moved it with search to All patches. Whether to keep it is a product call, so I've passed it to Allison.

Base automatically changed from ui/p8-doors to main November 10, 2026 18:17
@allisonmahmood
allisonmahmood merged commit 06608cf into main Nov 10, 2026
25 checks passed
@allisonmahmood
allisonmahmood deleted the ui/p2-all-patches branch November 10, 2026 18:28
allisonmahmood added a commit that referenced this pull request Nov 10, 2026
Stacked on #1346; part of #1315. Merge the stack together, not alone.

## What changed

People, its invite form, Guests, deactivation and Agent access were each
built by hand with their own CSS: an invite panel that pushed the table
down, tabs that came and went, deactivation as three competing buttons,
and Agent access as a pill and a button. They now sit on the shared
templates and carry no page CSS.

- **People** is an Index page. **Invite people…** opens a dialog at
`?invite=1` over the list it was opened from (emails, Member or Admin,
Send invites); a refusal draws it again with what was typed, its problem
under the field. A segmented filter (All · Admins · Invited · Guests,
and Deactivated while anyone is) and a filter field, both in the URL,
narrow the table: avatar, name and email, role, patches, joined, ⋯. Rows
menus: Make admin / Make member (never offered for the last active
admin), See their patches, Deactivate… / Reactivate…; an invite's:
Resend, Revoke. Invites that need an admin lead the invites, marked
Expired or Email didn't send. Members read the same table without menus,
with the admins named in the header.
- **Guests** lists each guest with their company, the patches they can
open and who shared each when; **Remove from all patches…** in the row
menu confirms in a dialog over Guests, naming every patch.
- **Deactivate / Reactivate** are Flow pages: Keep them live (chosen),
Retire some, Retire all, over the list of their patches (by title, and
name when the title differs) with what reads each; Keep finishes at
once, the others go to the existing confirmation, which asks for the
acknowledgement when something breaks. A confirmation refused because
the selection changed comes back on Retire some with what is still
theirs checked, never on Keep. The last-admin refusal and the other
refusals render in the same frame. The copy says the credential rule in
today's words: deactivation ends their computers and apps, reactivation
brings none back.
- **Agent access** is one setting row, Agents use patches, with a switch
that posts at once and "Turned on by … on …" under it. Members read On
or Off and who can change it, with Connect your app while it's on.

Closes #1325

## Look at

Before and after on the dense scenario (`pnpm dev compare`), as Allison
(admin) and Priya (member), at 1280 and 390.

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

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

Before is `4593013` (where this branch left ui/s-scenario) and after is
`95a46a4` (ui/p5-people), both on the `dense` scenario, from `pnpm dev
compare`.

Every page answered 200 with no browser errors.

##### `/settings/people`

**1280px, after**

![After: /settings/people at
1280px](https://github.com/user-attachments/assets/3b7c2be3-a68e-4777-b20b-c20f3c76d254)

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

![Before: /settings/people at
1280px](https://github.com/user-attachments/assets/2cac7ac8-e31e-473d-ac68-3833e32a3a8c)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /settings/people at
390px](https://github.com/user-attachments/assets/7d6bf7b1-8a4a-4e55-b2ee-2acaf4e8793f)
| ![After: /settings/people at
390px](https://github.com/user-attachments/assets/bf348139-2e03-4048-97f7-44a4a70761ac)
|

##### `/settings/people?show=guests`

**1280px, after**

![After: /settings/people?show=guests at
1280px](https://github.com/user-attachments/assets/eda83603-5ed0-48d5-a381-3b14d4b7f3cf)

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

![Before: /settings/people?show=guests at
1280px](https://github.com/user-attachments/assets/7fa0a0ac-41f8-4fc2-8579-41585756b2f4)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /settings/people?show=guests at
390px](https://github.com/user-attachments/assets/c5452c5a-6987-4966-ba53-8d6e8af74a4a)
| ![After: /settings/people?show=guests at
390px](https://github.com/user-attachments/assets/95daa567-03d3-4760-85e3-aafad7625c86)
|

##### `/settings/people?invite=1`

**1280px, after**

![After: /settings/people?invite=1 at
1280px](https://github.com/user-attachments/assets/1e7bf24c-8a7a-4fc5-a9cc-ffccec642a5f)

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

![Before: /settings/people?invite=1 at
1280px](https://github.com/user-attachments/assets/336745e8-de8e-4ada-a130-c4ff0a36ab17)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /settings/people?invite=1 at
390px](https://github.com/user-attachments/assets/2ea9b645-ec0c-4d57-b5b4-916c76251d8e)
| ![After: /settings/people?invite=1 at
390px](https://github.com/user-attachments/assets/9f010302-18be-49f0-9b10-8a0984564b5d)
|

##### `/settings/people/users/usr_env_brightline_marcus/deactivate`

**1280px, after**

![After: /settings/people/users/usr_env_brightline_marcus/deactivate at
1280px](https://github.com/user-attachments/assets/5b83be9e-7042-468c-b3c2-bce3611bc7a6)

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

![Before: /settings/people/users/usr_env_brightline_marcus/deactivate at
1280px](https://github.com/user-attachments/assets/be91ff63-3fb3-4ca3-8fac-5f5a764e8877)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before:
/settings/people/users/usr_env_brightline_marcus/deactivate at
390px](https://github.com/user-attachments/assets/896d6013-3b55-4d76-af37-97b7ce891daf)
| ![After: /settings/people/users/usr_env_brightline_marcus/deactivate
at
390px](https://github.com/user-attachments/assets/9e048589-78b4-46ee-93af-297d9ceaa560)
|

##### `/settings/agent-access`

**1280px, after**

![After: /settings/agent-access at
1280px](https://github.com/user-attachments/assets/b5a11a46-c6f9-48c8-897b-7d6b7a6b829c)

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

![Before: /settings/agent-access at
1280px](https://github.com/user-attachments/assets/5a10b7e2-4600-4efd-a639-d02e7b32a24d)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /settings/agent-access at
390px](https://github.com/user-attachments/assets/d79c455c-7c89-4276-a3b9-c146bfee02c1)
| ![After: /settings/agent-access at
390px](https://github.com/user-attachments/assets/8225e264-f1cf-4d04-9a99-2c24be2d28a1)
|

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

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

#### Before and after, as Priya Shah (member)

Before is `4593013` (where this branch left ui/s-scenario) and after is
`95a46a4` (ui/p5-people), both on the `dense` scenario, from `pnpm dev
compare`.

Every page answered 200 with no browser errors.

##### `/settings/people`

**1280px, after**

![After: /settings/people at
1280px](https://github.com/user-attachments/assets/34ba0832-5824-4c8b-9e77-d4c1727e880f)

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

![Before: /settings/people at
1280px](https://github.com/user-attachments/assets/1c4fd970-76ef-47fd-a5ab-2456f599f843)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /settings/people at
390px](https://github.com/user-attachments/assets/11b45944-617a-46ef-9a33-944def89da37)
| ![After: /settings/people at
390px](https://github.com/user-attachments/assets/d04b302f-5d56-4463-86c4-f8b18525c7e5)
|

##### `/settings/agent-access`

**1280px, after**

![After: /settings/agent-access at
1280px](https://github.com/user-attachments/assets/3717d8d4-c20e-419a-9314-23d6b5e3c397)

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

![Before: /settings/agent-access at
1280px](https://github.com/user-attachments/assets/2589ef84-4c72-4867-ae93-b97760803f70)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /settings/agent-access at
390px](https://github.com/user-attachments/assets/f8821335-fe5d-4b64-8a84-2f8e53925f71)
| ![After: /settings/agent-access at
390px](https://github.com/user-attachments/assets/7b0cb578-e58c-4ad1-af72-437f51e029c8)
|

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

## How it was verified

- `packages/auth/src/CompanyPage.test.ts` rewritten against the new
markup: list, filters and counts, invite dialog (open, refused, partial
result), the Patches column, Agent access for admin and member, and a
new case that a form pressed twice sends one email, for Send invites
(concurrent) and Resend.
- `packages/companies/src/Invitations.test.ts`: two presses of one
Resend form send one email, a fresh form sends again.
- `packages/portal/src/UserLifecyclePage.test.ts` (all 17 cases kept),
`apps/server/src/Guests.test.ts` (the removal is now a dialog),
`Server.test.ts`, `AuthPages.socket.test.ts`.
- New browser test `test/browser-tier1/people.spec.ts`: invite dialog
focus, refusal and Escape; deactivate and reactivate through the menus;
the Agent access switch and the member's read-only view. Run locally
alone; the full browser suite is CI's.
- `pnpm typecheck`, `pnpm lint`, `pnpm ui:report` (nothing off-system in
`CompanyPage.ts` or `UserLifecyclePage.ts`), and the companies, auth,
portal, core and server suites. Looked at every page above at 1280 and
390 on `pnpm dev up dense`.

### §10 states kept

| Item | State | Where it's checked |
|---|---|---|
| 3 | Members: read-only list, Guests without Remove, Agent access as
text with who can change it; direct admin URLs refused in the frame |
`CompanyPage.test.ts`, `Guests.test.ts`, `people.spec.ts` |
| 4 | Guests: company, patches they can open, who shared, admin-only
Remove with its confirmation | `Guests.test.ts` |
| 6 | Make admin / member, See their patches, Deactivate…, Reactivate…
(Deactivated filter when any); Resend, Revoke; Expired marked; keep /
some / all; last-admin refusal; fresh credentials; second confirmation
and acknowledgement | `CompanyPage.test.ts`, `UserLifecyclePage.test.ts`
|
| 10 | Field errors under their field, which takes the focus; refusals
no field owns as a notice above the buttons where focus starts; typed
emails and the list behind the invite dialog kept through a refusal |
`CompanyPage.test.ts`, `UserLifecyclePage.test.ts`, `checklist.test.ts`
|
| 21 | Repeat submission: invitations are deduped by the live-invite
unique index (a repeat answers "already has an invite", no mail); a
Resend form now hands back the expiry it showed, so a second press sends
nothing ("A new invite already went to …"). Role, Revoke, Remove guest,
Agent access and deactivation are idempotent or refused by state. |
`CompanyPage.test.ts`, `Invitations.test.ts` |

### Core additions

- `checklist` (`packages/core/src/ui/checklist.ts`, CSS chunk
`styles/checklist.ts`, one line each in the two indexes): checkbox rows
in a box, each with its name and one line, under a legend with hint and
error; refused, its first choosable box takes the focus. Not yet in the
`/~ui` gallery (`gallery.ts` is the integrator's); a few lines add it.

Used from the stack, not added here: `refusal` (P8, #1343; its focus
rule is in `door-parts`) and the `table-cells` chunk (P2, #1346), whose
`hide-sm` and `show-sm` put the role under the email on a phone, where
the Role column is gone.

### Departures from the prototype

- **Guests** have two columns, Guest and Can open, not four: the company
sits on the guest's line beside their email, and who shared each patch
sits under that patch, since one guest can hold several patches shared
by different people, which a single Added by column can't pair up.
Folding the company into the line also keeps it on a phone.
- **Deactivate's choices** use core's choice cards, side by side on a
wide page and stacked on a phone; the prototype stacks them everywhere.
A stacked variant is a core change for the integrator.
- **Invite and deactivated states** sit on the person's line (an
Invited, Expired or Email didn't send badge after the address;
"Deactivated 8 Nov" after the email), so Role holds only roles and a
phone row keeps them; on a phone the role itself follows the email, as
in the prototype.

### Left out

- The prototype's "Patches with agent tools" row on Agent access: it
needs a Patches read Companies can't make, and the ticket's contract is
one setting row.
- "See their patches" goes to All patches searched by the person's name
(`/patches?q=…`), which also matches titles that contain it; an owner
filter belongs to All patches (P2).

## Release impact

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

Pages and forms keep their routes and fields; `Invitations.resend` gains
an optional input. No schema change.

- **What does a revert leave behind?** Nothing: no rows, schema or
contract 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]>
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: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 P2: All patches and Share on the shared table and dialog

2 participants