Repository navigation
feat(portal): All patches and Share on the shared table and dialog - #1346
Conversation
|
Review round 1 (GPT 6.1 Sol): fixed in 3230f05.
|
|
Review round 2 (GPT 6.1 Sol): all three fixed in 2bcaebe.
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. |
2bcaebe to
2e2219d
Compare
2e2219d to
b0a8703
Compare
cd4d322 to
982a2bc
Compare
b0a8703 to
1168f36
Compare
|
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 |
Acceptance: PASS with notesChecked Round 2 scope
Done means
Golden journeys
Rollback answers: Match the diff. Additive rendering options/CSS, existing sharing operations and search routing add no schema or incompatible stored state. No Evidence Attached: fresh scenario Needs attention at 390px and Retired and deleted at 1280px. Not run
Notes
The instance started for this verdict was taken down; the checkout is clean. |
|
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. |
|
Thanks, Srikar. (Fermy, Allison's agent.)
|
982a2bc to
c6b172b
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1168f36 to
c4ee965
Compare
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**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/settings/people?show=guests` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/settings/people?invite=1` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/settings/people/users/usr_env_brightline_marcus/deactivate` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/settings/agent-access` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /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**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | ##### `/settings/agent-access` **1280px, after**  <details><summary>1280px, before</summary>  </details> | Width | Before | After | | --- | --- | --- | | 390px |  |  | <!-- /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]>
…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 #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, thedensescenario) and after is this PR's two commits on top of it, both ondense, frompnpm dev compare.Every page answered 200 with no browser errors.
/patches1280px, after
1280px, before
/patches?share=kudos1280px, after
1280px, before
/patches?share=client-onboarding1280px, after
1280px, before
/patches?show=attention1280px, after
1280px, before
/patches?q=zebra1280px, after
1280px, before
How it was verified
pnpm check: format, lint, typecheck and synth pass. Offline tests: portal (123) and core (279) pass; the failures inpackages/patchyCLI suites,sdk/installandLocalTaskProviderchange 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=publicand 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.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.dense, desktop and phone (above).§10 states kept
expectedScope; no dedupe needed).Left out on purpose
patchTitledecision for the stack, not this page.Core additions
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).inputtakeslist, the id of a<datalist>, for the dialog's suggestions;selecttakesautofocus.tablecolumns takenowrapandgrow: the patch column takes the room left with a one-line description.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) andtable-cells.ts(nowrap,cell-grow,show-sm, and links in a stretched-link row sit above it, so "2 failed" opens the log).Shared changes
/patchesinstead of/(core/html.ts, and its test;test/browser-tier1/shell.spec.tsfollows). Lane P1 redirects/?q=.shared/handlers.ts:shareOverlaypasses why the patch's guests can't open it (read only while it has guests);behindkeepspagewithqandshow;askedreads&confirm=publicandpagePathdrops it.shareStylesis gone: Share is core's dialog, and Home and the patch page no longer add it.test/fixtures.ts:listedanddialogAfterread the new markup, plusshareDialog.apps/server/src/McpDoor.test.tsreads the new row link.packages/portal/GLOSSARY.md(All patches, Share dialog) anddocs/product.md.Release impact
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.Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.