Repository navigation
feat(companies): People and Agent access on the shared templates - #1349
Conversation
|
Review by GPT 6.1 Sol (xhigh), two rounds. Round 1 (3 Must fix, 3 Should fix): fixed in 3c0f64e — a stale confirmation no longer falls back to Keep; refusals no field owns take the focus; patches sharing a title show their names; the invite dialog keeps the list it was opened over through a refusal; roles stay visible on phones. Round 1 finding 6 is answered in the body under "Departures from the prototype" rather than in code:
Round 2 (no Must fix, 2 Should fix): fixed in 95a46a4. Role now sits under the email on phones, as in the prototype, using P2's identical |
95a46a4 to
34beac8
Compare
2e2219d to
b0a8703
Compare
9dc3381 to
8a8147f
Compare
|
Acceptance fixes: Retire/Restore some or all now redirects to the confirmation's own GET address ( |
Acceptance: PASS with notesChecked Round 2 scope
Done means
Golden journeys
Rollback answers: The compatibility claim matches the diff. No migration or incompatible stored shape; the resend precondition remains optional. Invitation, grant, role, credential and lifecycle effects use existing state contracts that the earlier release can read. The new confirmation GETs perform no mutation. No Evidence Not run
Notes
The instance started for this verdict was taken down; the checkout is clean. |
|
Currently, the PR shows every patch in the side column, as in your screenshot. An expandable list would make this much cleaner on mobile, especially for guests with lots of patches. I think the old design is cleaner tbh, Dropdown for the win. |
|
everything else is lgtm tho |
|
Good call, Srikar. (Fermy, Allison's agent.) Agreed: a guest's patches past the first three should fold under "and N more", as the old page did. Filed as #1359 to land right after this stack, so we don't restack and re-verify the seven PRs above this one for it. |
1168f36 to
c4ee965
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
8a8147f to
7f19ddd
Compare
Stacked on #1349; part of #1315. Merge the stack together, not alone. ## What changed What's new was one page holding every release since launch, about 18,000px tall, with each change's full detail always open. Now each month that shipped something has its own page at a stable address, `/whats-new/2026-11`, and `/whats-new` shows the newest. A month lists its days newest first; each change is one line, its kind (New, Improved, Fixed) in muted text and its title, that opens in place to its detail and a **Link to this change** permalink (`/whats-new/2026-11#change-40-0`), which opens it. Only the changes new to the viewer start open, with the blue new-to-you dot. Each day's behind-the-scenes lines stay, folded into one quiet line. Earlier and later months are linked at the top and the bottom. The What's new panel's headlines now link to their changes. The public feed at `/whats-new.json` is unchanged. Closes #1326 ## Look at **Seen marker.** The rules that write it are unchanged: opening the panel raises it (`/whats-new/seen`, as today), and opening the newest month raises it, as opening `/whats-new` did. An older month leaves it (spec §10 item 18 names only "the popover or the current month page"). One addition makes the marks visible at all: the panel is the only way into the page from the sidebar, and opening it has already raised the marker by the time the page loads, so today's page almost never highlights anything. Links out of the panel, and between months, now carry the marker they were drawn with as `?since=`, while the viewer has something new. The page marks against the lower of `?since=` and the stored marker, so a URL can only mark more than the marker says, never hide anything. Permalinks inside the page carry no `?since=`. **Marks.** A change's kind is muted text, and a change new to the viewer starts open with the app's blue new-to-you dot after its title, the same dot Home, the sidebar and the switcher use. The prototype gave each kind a coloured dot (Improved's blue) and marked unseen changes with a blue left rail. That puts two meanings on one blue dot in one line, and makes the rail colour alone. Spec §4 and §6 say "kind as muted text". **Not found.** A month nothing shipped in, or a malformed one, is a 404 inside the app frame ("Nothing shipped that month", with See what's new), and leaves the marker alone. ## How it was verified - `WhatsNewPages.test.ts`: the newest month at `/whats-new` marks exactly what shipped since the marker and then raises it; an earlier month has its own address, marks against the marker and leaves it; `?since=` marks what was new when the link was drawn and never less than the marker (a higher, malformed or negative one is ignored); a missing month is a 404 in the app frame; pure-render cases for day grouping, permalinks, behind-the-scenes lines, the "n new to you" meta and the month links with and without `?since=`. The bell's `/whats-new/seen` and the public JSON tests are kept as they were. - `html.test.ts`: the panel's headlines are their changes' permalinks; with a dot, they and See all changes carry `?since=<marker>`; caught up, they don't. - `whatsNewLinks.test.ts` pins the permalink shape, which people will bookmark. - Browser, `test/browser-tier1/whats-new.spec.ts` (ran locally, alone; two tests). First, an owner who has never looked opens the panel, follows the first headline to `/whats-new/YYYY-MM?since=0#change-…`, and the change is open with its dot; its Link to this change is the bare permalink; the month before still marks what was new though the panel and the page raised the marker; `/whats-new` afterwards has nothing open. Second, a caught-up reader opens a bare permalink to a change they've seen, with script on and with it off, and that change, and only it, is open. The fragment id names the change's body, so the browser opens the closed `<details>` around it without the enhancer. - `pnpm check`: format, lint, typecheck and synth pass. Its test step had 71 failures in 27 files, all outside this diff (CLI, execution, IMAP, Postgres and dev-plan suites); 70 were 5s timeouts at a load average above 50 on a shared machine, and one is `plan.test.ts` failing to treat `/tmp` as outside a repository. CI runs them clean. - `pnpm ui:report` lists nothing for `WhatsNewPages.ts`: no page styles, no hand-drawn components. Spec §10 states kept for this surface: item 18 (panel up to 5 headlines and See all; the panel or the current month raises the marker; stable month URLs; a permalink opens its change; behind-the-scenes lines stay), item 2 (the permalink fragment opens its disclosure through `/assets/ui.js`; month nav are plain links), item 12 (on phones the kind sits above the title, details run full width, header actions wrap under the title), item 10 (a missing month is an in-frame page). Public feeds (`/whats-new.json`) unchanged. Left out on purpose: the prototype's All · New · Improved · Fixed filter and RSS button. Neither is in spec §6 or the ticket, a month is short enough to scan, and there is no RSS feed to link. ## Core additions All new files, plus one export or registration line each: - `packages/core/src/whatsNewLinks.ts`: `monthOf`, `changeId`, `monthHref`, `permalink`, `entriesSince`. The page and the panel both need a change's address, so it lives in core. - `packages/core/src/ui/changelog.ts`: `changeEntry` and `behindTheScenes`, a `<details>` line of kind and title that opens in place. - `packages/core/src/styles/changelog.ts`: their CSS, a new chunk in `styles/index.ts`. - `/~ui` gallery: a "What's new changes" demo with a state table (seen, new to you, from its permalink, behind the scenes). - `ui-consistency` spec lists the two new helpers. The old What's new chunk (`styles/whats-new.ts`) and `whatsNewKind` in `html.ts` now have no caller. They are left for G to delete with the other legacy classes, since this lane adds to core only. ## Shared changes - Lane N's What's new panel (`core/src/html.ts`, `styles/app-shell.ts`), as this lane's assignment allowed: each headline is now a link (`.app-headline`, same grid and look, a hover fill, and the compact control height, 44px on touch) to its change's permalink, and See all changes carries `?since=` while there is a dot. The panel's test follows. - `docs/product.md` and `packages/portal/GLOSSARY.md` describe month pages, permalinks and when the marker moves. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Page and rendering only: `/whats-new` still answers, `/whats-new/seen`, `/whats-new/bell.js` and `/whats-new.json` are unchanged, and there is no schema change. - **What does a revert leave behind?** Nothing stored. Month and permalink addresses someone saved during this release would answer the older release's not-found page. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy. <!-- patchy-dev:compare:ada --> #### Before and after, as Ada Park (admin) Before is `4593013` (where this branch left ui/s-scenario) and after is `8385fde` (ui/p9-whats-new), both on the `team` scenario, from `pnpm dev compare`. ##### `/whats-new` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/whats-new/2026-10` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | - Before at 1280px answered 404; 1 browser error(s): `Failed to load resource: the server responded with a status of 404 (Not Found)`. - Before at 390px answered 404; 1 browser error(s): `Failed to load resource: the server responded with a status of 404 (Not Found)`. <!-- /patchy-dev:compare:ada --> 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 #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.
?invite=1over 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.Closes #1325
Look at
Before and after on the dense scenario (
pnpm dev compare), as Allison (admin) and Priya (member), at 1280 and 390.Before and after, as Allison Mahmood (admin)
Before is
4593013(where this branch left ui/s-scenario) and after is95a46a4(ui/p5-people), both on thedensescenario, frompnpm dev compare.Every page answered 200 with no browser errors.
/settings/people1280px, after
1280px, before
/settings/people?show=guests1280px, after
1280px, before
/settings/people?invite=11280px, after
1280px, before
/settings/people/users/usr_env_brightline_marcus/deactivate1280px, after
1280px, before
/settings/agent-access1280px, after
1280px, before
Before and after, as Priya Shah (member)
Before is
4593013(where this branch left ui/s-scenario) and after is95a46a4(ui/p5-people), both on thedensescenario, frompnpm dev compare.Every page answered 200 with no browser errors.
/settings/people1280px, after
1280px, before
/settings/agent-access1280px, after
1280px, before
How it was verified
packages/auth/src/CompanyPage.test.tsrewritten 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.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 inCompanyPage.tsorUserLifecyclePage.ts), and the companies, auth, portal, core and server suites. Looked at every page above at 1280 and 390 onpnpm dev up dense.§10 states kept
CompanyPage.test.ts,Guests.test.ts,people.spec.tsGuests.test.tsCompanyPage.test.ts,UserLifecyclePage.test.tsCompanyPage.test.ts,UserLifecyclePage.test.ts,checklist.test.tsCompanyPage.test.ts,Invitations.test.tsCore additions
checklist(packages/core/src/ui/checklist.ts, CSS chunkstyles/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/~uigallery (gallery.tsis the integrator's); a few lines add it.Used from the stack, not added here:
refusal(P8, #1343; its focus rule is indoor-parts) and thetable-cellschunk (P2, #1346), whosehide-smandshow-smput the role under the email on a phone, where the Role column is gone.Departures from the prototype
Left out
/patches?q=…), which also matches titles that contain it; an owner filter belongs to All patches (P2).Release impact
Pages and forms keep their routes and fields;
Invitations.resendgains an optional input. No schema change.Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.