Repository navigation
feat(portal): a patch has one header and tabs; Retire and Delete ask in a dialog - #1345
Conversation
|
GPT 6.1 Sol review, round 1, at 826721f. Fixed in 0ff95fa unless noted.
|
|
GPT 6.1 Sol review, round 2, at 0ff95fa. No must-fix findings. Fixed in d1cd5a8 unless noted.
|
d1cd5a8 to
3e3e740
Compare
6499272 to
f6d1bb2
Compare
3e3e740 to
7b24bdc
Compare
f6d1bb2 to
3ad4f7f
Compare
7b24bdc to
043f3d5
Compare
|
Acceptance fixes: a deactivated owner's status line wraps inside the header at 390px instead of widening the page, also under Reassign (browser test at 390px), in 043f3d5. |
Acceptance: PASS with notesChecked Round 2 comparison and fix
Done means
Golden journeys
Evidence Rollback answers: match the diff. Rendering, a GET confirmation route and docs; the added fix is scoped CSS plus a browser test. No migration, persisted-format, infrastructure, wire or CLI change. Not run
Notes
|
|
I think that for retiring/deleting a business, opening dialogs over the patch page is weirder than just a separate confirmation page, but maybe that's just me. Everything else is lgtm |
|
Thanks, Srikar. (Fermy, Allison's agent.) It's both, in a way: Retire and Delete each have their own address ( |
3ad4f7f to
2bdd676
Compare
…in a dialog Co-Authored-By: Claude Opus 5.5 <[email protected]>
043f3d5 to
3ad3666
Compare
…1343) Stacked on #1345; part of #1315. Merge the stack together, not alone. ## What changed Every page Patchy draws outside the app shell was its own card: sign-in, create and join, beta links, device login, consent, errors and Serving's notices each assembled their kicker, heading, buttons and sign-out by hand, with page CSS. They now all render through F2's one Door template, so a door reads the same wherever someone meets it. Device login shows the code to compare in Geist Mono and never says a computer is connected before the CLI collects its key. Consent shows who meets whom and what the app can and can't do. A retired or deleted patch's address stays an app page, apart from the stopping notices. Closes #1330 ## Look at **Device login.** The code is the thing on the page; who is asking to publish as whom, the computer's name, Confirm and Deny, then when it expires beside who is signed in and **Not you?**, which signs out and comes back to the same code.  **Consent.** Who meets whom, each can or can't line saying which in words, Deny and Allow at equal width, where the answer goes, and Use another account.  **Sign-in and create.** The setup line is a copy line in the sign-in door's foot. Create uses the field helpers: a refusal sits under its field in one line, and the field takes the focus.   **Outcomes on the same anatomy:** confirmed (go back to your terminal), access off, a local callback warning, a stopping notice, the 404, a denied code.  **Phones:** sign-in, device login, consent, create.  <details><summary>Before</summary>      </details> ### Every door, on the template | Door | States | |---|---| | Sign-in (`RequireSession.door`) | signed-out root with the setup line, `/login`, private patch address, Clerk waitlist, failed sign-in | | Create and join (`companies/Join.ts`) | one invitation (who invited you, as what), several invitations as rows, create, field refusals (name, address taken, reserved, malformed, with a free fix), refusals no field owns, already in a company | | Beta link | open, refused email, sent, send failed with and without Try again, used, ended, unavailable, invalid form | | Device login | confirm, account changed, refreshed sign-in, invalid name, replacing a computer of the same name, no code, confirmed, denied, already connected, expired, used, unknown, rate limited, malformed and oversize form, unavailable | | Consent | consent, account or client changed, local callback warning, access off for members and admins, ran out, can't connect (refused, client document unavailable or busy, too long, account changed), unreadable answer, rate limited, unavailable | | Other doors | deactivated account, refused cross-origin form, AuthPages' unavailable and invalid-form doors, dev persona picker with its closed and cross-site refusals, the demo link's failures, Serving's admission failures | | Serving notices | global 404, every stopping notice (`data-notice` kept), needs rebuild | | Address notice | retired or deleted patch: now an app page on the Index template, never a door | A refusal no field owns (an account or client changed while the page was open, a refreshed sign-in, an invitation that went away, already in a company) is where the page's focus starts; a field's refusal sits under the field, which takes the focus. Consent asked again with a local callback says both in one notice. The Final step's inline confirmation (`DevicePages.confirmForm`) keeps its form, hidden fields, `data-inline-confirm` and Not me; it moved to the field and button helpers and leaves validation to Patchy (`novalidate`) instead of `formnovalidate` on Not me. P1 restyles the guide around it. ## How it was verified - `pnpm check`: format, lint, typecheck and synth pass. Offline tests: everything I touched passes (auth, companies, serving, portal, core, `apps/server`). The failures left locally are the CLI stub-log tests that T3's port probes break on this machine, and `findWorktree` in `scripts/dev`, which this change doesn't touch; CI is the judge. - Unit tests updated to the new copy and markup, plus: the stopping notice is a door marked with its code, the address notice is an app page and not a door, the device page puts the code ahead of the identity and never says connected, consent's buttons answer the form by id, and a focused test for the new core helpers. - Live-Clerk browser tests updated for the new headings and labels (`Is this the code in your terminal?`, `Name this computer`, `Go back to your terminal`, `Address`); they run only in CI. - Captured every door on a brightline dev instance, desktop and phone, as Allison and as new accounts; consent from the OAuth test harness's fixture client. The dev host is rewritten or blurred in the screenshots. ## Core additions New files only, plus one export line and one chunk line: - `packages/core/src/ui/door.ts`: `doorCard` (the card around a `doorPage`, which `pageResponse` and Serving's notices both draw), `verificationCode`, `meet`, `canList`, `answerPair`. - `packages/core/src/ui/refusal.ts`: `refusal`, the focus target for a refusal no field owns (spec §10 Errors), and `typedExactly`, which keeps a phone from capitalising or correcting an `input` or `prefixInput` such as the company address. - `packages/core/src/styles/door-parts.ts`, registered after `doors`. - Auth: `doorResponse`, `unavailableDoor` and `accountFoot` in `auth/page.ts`. `signOutForm` stays for integrations' pages until P6. ## Left out - `/~ui` has no door states yet: the gallery is F2's existing file. G or the integrator can add them from these helpers. - The terms prompt: #1204 hasn't landed. ## Release impact - [ ] **Breaking** — requires action from anyone already running this - [x] **Not breaking** — no action required Copy and markup on first-party doors only. Routes, forms, field names, statuses and headers are unchanged, and so is the running patch wrapper. - **What does a revert leave behind?** Nothing: no schema, data 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]>
…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 #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.tsdraws the header once (renderPatchPage) for all four tabs;PatchPages.renderdraws 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/retiregets Overview with the refusal (403), a retired patch's/retiresays it's retired (409), and/restorewith no off sources goes straight back to the page (303). The newGET /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 withoutack(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.Before and after, as Allison Mahmood (admin)
Before is
67d7306(--base origin/ui/n-shell) and after is0ff95fa(ui/p3-patch-page), both on thebrightlinescenario, frompnpm dev compare.Every page answered 200 with no browser errors.
/patches/new-business1280px, after
1280px, before
/patches/new-business/log1280px, after
1280px, before
/patches/new-business/versions1280px, after
1280px, before
/patches/new-business/settings1280px, after
1280px, before
/patches/new-business/retire1280px, after
1280px, before
/patches/new-business/delete1280px, after
1280px, before
The §10 states kept, and how they're checked
PatchPages.test.ts: member, owner and admin views; "forbids members on every confirmation route").expectedPatchIdand its ownexpected*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).#entry-<id>, which names its disclosure, so the enhancer opens it).core'sdialogwithinertbehind; 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.tsdrives 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.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 owntbodywith arowgroupheader, rows expanding in place, a permalink naming the disclosure),settingsPanel(the Settings template inside a Detail tab, at settings width),copyButton(Copy waiting hidden forcopy.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),menuNewTabandmenuRule. Unit tests indetail.test.ts. They aren't in the/~uigallery 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) andrecoveryLine(the status line's words).renderOffPatch, which the address notice uses, keeps its API and output; it now readsrecoveryinside.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-subpageandportal-tablestay for Home, Share and people lifecycle.shared/handlers.ts:AgentConnectionsjoinsPortalServices(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.shareStylestopageResponsewhile the Share dialog is over it, until P2 moves Share onto the system.Left out, on purpose
<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.How it was verified
pnpm check: format, lint and typecheck clean. Offline tests: portal 126/126 and core pass;apps/serverServer.test.tsneeded 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.tsrun alone: both tests pass.pnpm dev compareonbrightline, desktop and phone.docs/product.md's card sentences andpackages/portal/GLOSSARY.md's Card, Log, Settings, Confirmation and Acknowledgement.Release impact
Pages, one new GET route and docs; no schema, API or CLI change. Every POST route and its fields are unchanged.
Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated by Fermy.