Skip to content

feat(portal): one way to open a patch, titles, quieter Home - #933

Merged
allisonmahmood merged 9 commits into
mainfrom
feat/dashboard-patches
Oct 25, 2026
Merged

allisonmahmood merged 9 commits into
mainfrom
feat/dashboard-patches

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

What changed

A patch's name meant two things: on Home it opened the patch, on All patches it opened the card. Lists showed slugs like new-business instead of the patch's title. Home repeated the same patches across three shelves, with helper lines under each heading. Making a patch public saved like any other field edit.

Now a patch is called by its title everywhere it's listed, and its name always opens it. Home is quieter. Saving a patch as public asks first, and every patch act ends with a receipt.

  • Titles. Lists, tiles, search results and menus show a patch's title, falling back to its name. The card's heading is the title with the name in mono under it. URLs don't change. Search already matched name, title, description and owner. When only the name matches, the result now shows the highlighted name.
  • One way to open a patch. On All patches a live patch's title opens the patch. A retired or deleted patch's title still goes to its card. Every row menu on Home and All patches now starts with Open in a new tab, Copy link and About this patch. Home's tool and page rows gained the ⋯ menu.
  • Home. It now has an h1. The in-body search shows only below 900px, where the sidebar folds into Menu. The sidebar search keeps q on results. Removed: "What you open most", "Opened just now", "Yours first, then the most opened", LATEST, YOU, the page author/time line, both All patches links, and company picks padding out Your usual. Tools is a list of title and purpose. The Tools and Pages headings link to their All patches tabs. The first-patch note is one line: "<title> is live", with Open and Copy link.
  • Badges. YOU is gone, and Owner says "You" for your own patches. The card loses TOOL, COMPANY ONLY and V1; retired and deleted patches keep their state tag. Health only names failures, as "2 failed today" linking to the failed log. A blank cell means no failures were recorded. A dash means the row has no calls to count, because it isn't tier 2 or isn't yours to manage.
  • Going public asks first. Saving "Anyone on the internet" in Settings now shows "Make <title> public? Anyone with the link can open it without signing in." with Make public and Cancel. This holds even for a POST sent straight to the route. Make public posts the same form plus confirm=public, and every existing check runs again: who you are, the expected patch, the expected scope, tier 2 and stale state. Saves to non-public scopes skip the step. The CLI and API are unchanged.
  • Receipts on the existing redirects: "<title> is open to anyone on the internet", "Saved <title>'s description", "<title> now serves v1", "<title> now belongs to Alex", "Retired <title>", "Restored <title>", and "Deleted <title>; it can be restored for 30 days".
  • The card's "What agents can do" link now points to /machines?agent=claude#connect-an-agent.

Look at

Home, before and after (admin, the day of the first publish):


All patches: the title opens the patch, Owner says You, and Health is blank or a dash:


The card: the title leads, with the name under it, and the tags are gone:


Going public, then the receipt:


A member's Home, with Popular at Brightline Studio and NEW only where it means new to them:

Phones at 390px, where Home keeps its own search:


How it was verified

  • pnpm -s vitest run packages/portal: 106 passed. New and updated cases cover:
    • the public step: a direct POST without confirm=public asks and changes nothing, a member's answer is refused, the answer applies it, an answer replayed after the change is refused as stale, a tier 2 patch is refused both with and without the answer, and a save back to the company needs no step
    • receipts for scope, description, rollback, reassign, retire, restore and delete, and none after a refusal
    • titles on the card, Home, menus and All patches, with escaping, plus a name-only search match
    • Home's h1 and the sidebar keeping q
    • All patches opening a live patch from its title and sending an off one to its card
    • Health's three states
  • pnpm -s vitest run apps/server/src/McpDoor.test.ts apps/server/src/Server.test.ts: 19 passed. Both read portal markup.
  • Portal typecheck and tsc -p tsconfig.test.json: no portal diagnostics. eslint and prettier pass on the changed files.
  • Screenshots were taken on pnpm dev up brightline with pnpm dev shot, and with Playwright at 390px.
  • pnpm verify and pnpm check were not run in this lane. The full suite runs once over the stack.

Release impact

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

Only page markup changed. Routes, query values and fragments are unchanged. The scope POST gains an optional confirm=public field, and only the portal's own form sends it. The CLI and API sharing paths are untouched.

  • What does a revert leave behind? Nothing. There's no schema, no stored data, and no new contract.
  • Does the release before it still work with that? Yes.

Made by Claude Opus 5.5 in Claude Code (T3 Code).

phone-home

phone-patches

allisonmahmood and others added 5 commits October 25, 2026 13:43
The signed-in shell is now a sidebar of places grouped by whose thing they
are: Home, All patches, Your agents, then Company (People, Integrations,
Agent access). What's new and an account menu with Sign out sit at its foot.
On a phone the same markup opens from a Menu button as a popover.

Rows, tiles, tabs, side panels and step cards lose their hard shadows; a lit
tab or place is a pale yellow fill. URLs are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A POST that changes something can leave a one-line receipt for the person:
a short-lived HttpOnly cookie bound to them (__Host- over HTTPS) that the
next signed-in page shows at its top and clears. Agent-access links point at
the sidebar's place, and Copy buttons can name what they copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A receipt now survives redirects and fragments and is cleared by the page
that renders it; one left for someone else is dropped at once. The phone
header stays compact on short pages, the Menu sheet leaves a gutter to tap
outside at 320px, and a Menu left open while the window widens sits where
the sidebar's menu would.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A patch's title now names it in lists, tiles, search results, menus and
the card's heading, with its name in mono under the heading. Its name
opens the live patch on All patches as it does on Home, and every row's
menu offers About this patch. Home gains an h1, keeps its own search only
below 900px, drops the helper lines, YOU badges and duplicate All patches
links, and its first-patch note is one line naming the patch.

Health names failures only. Saving a patch public asks first, and every
patch act lands with a receipt naming what it did. The card's agent panel
links to Claude on Your agents.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added 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 Oct 25, 2026
allisonmahmood and others added 3 commits October 25, 2026 14:37
…s say whose

An unconfirmed save to public no longer reaches setScope: what the snapshot
says it would refuse is refused from the snapshot, so a change before
setScope's lock can't make it apply unasked. Confirmation pages and the log
name the patch by its title, a failing tool's title on Home opens it, row
menu items carry whose they are, and Health counts the last day by name.
patchTitle moves to core.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the area:core Touches the core area label Oct 25, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review: GPT 6.1 Sol (xhigh). One blocker, three should-fixes and a nit. All are fixed in 0ac6426 except part of item 2, which is dismissed for the serving notice.

  1. Blocker: an unconfirmed save to public could apply during a race. An unasked POST whose snapshot was stale, off or tier 2 skipped the confirmation and reached setScope. If a concurrent change made the patch eligible before setScope took its lock, it could go public unasked. Fixed: an unasked save to public never reaches setScope. Whatever the snapshot says would be refused is refused from the snapshot, with the same errors (StaleAction, WrongState, Tier2NotPublic) and the same notices. An already-public patch has nothing to change. Everything else gets the confirmation, and only its answer applies, re-running every check. The existing stale, retired and tier 2 tests still pass unchanged, and nothing is mutated.

  2. Titles where a patch is named during management. Fixed:

    • Confirmation pages now use the title in the back link, heading and button. The consequence and the typed delete confirmation keep the name.
    • The log's empty state uses the title.
    • patchTitle moved to core, so it is shared.

    Dismissed for the served-address notice: Pages.test.ts deliberately asserts that a stopped address never shows a later version's title, which counts as hidden content. That page keeps the name.

  3. Home's failure notice linked the tool's title to its log. Fixed: the title opens the tool, and the failed-call count opens the filtered log. Tested.

  4. Row menu items were named only "Copy link", "Settings" and so on. Fixed: each item now has an accessible name of the form "Settings, Kudos", with the visible label first so voice control still matches it. Core's menuLink, menuPost and menuCopy gained an optional target. Tested.

  5. Nit: "failed today" counted the last 24 hours. Fixed: it now says "N failed in the last day", matching Home's notice, and the glossary is updated.

Re-ran portal, core and serving: 14 files, 255 tests.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 0ac64261fd85c1d1aa50bc584acfb2898ef2f818 (base 8051b91b276d428e1a942816a2f5797290c5a435, feat/dashboard-sidebar) on fresh brightline, by GPT-6.1 Sol in the Codex harness through T3 Code. I did not write this change.

Done means

  • Home shelves, titles, search and first-patch note: passed as Allison and Priya. Home has its heading; Tools and Pages lead to their tabs; the note names the first publication and offers Open and Copy link. A fresh member sees Popular at Brightline Studio; Your usual contains the viewer's opened patches without company padding. Name-only new-business search shows the highlighted name while retaining the title, and both search inputs keep q.
  • All patches and the card: passed. Live titles lead to their served addresses; retired titles lead to their cards. Owner says You for the viewer's patches. All patches menus expose names such as Open in a new tab, Kudos, Copy link, Kudos, About this patch, Kudos, and Settings, Kudos. The card leads with the title and shows the address name beneath it. The agent link reaches /machines?agent=claude#connect-an-agent.
  • Health: passed. After a refused self-approval, Allison's Spend row says 1 failed in the last day, linking to /patches/spend/log?outcome=failed; that log opens. New Business has a blank Health cell and Kudos has —. Home names Spend separately from its failed-call link. The targeted socket test also passed its three-failure, old-failure exclusion and member visibility cases.
  • Sharing: passed. The browser's public save asks first, including at 390px; Cancel returns to Settings without changing access. A direct POST without confirm=public returns the confirmation and leaves signed-out serving at 401. Confirmation produces the receipt and signed-out 200 with public, max-age=60. A non-owner member's answer is 403; a replay and stale expected scope are 409; tier 2 is 422 with and without confirmation. Returning to company scope skips confirmation and restores the 401 door. A member who owns a patch gets the same confirmation and receipts.
  • Receipts and lifecycle: passed. Exercised rollback, description, reassign, retire, restore from retirement, delete and restore from deletion through their forms. Each successful redirect displayed its receipt once, then consumed it. Non-owner member rollback and retirement were refused; stale rollback was refused. After reassignment, Priya exercised the owner paths as a member. Retired/deleted addresses showed their stopped notices, and restoration served the same address again.
  • Phone and Final step: passed. At 390px Home's search works without horizontal overflow. Its in-body search is visible at 899px and hidden at 900px, when the sidebar search is visible. Priya, with nothing connected, receives the Final step overlay; its phone content and dismissal work, then Home search works.

Golden journeys

  • Find and open a tool: passed. Home search finds Kudos, and titles on Home and All patches open served patches in their frames.
  • Publish a page and recover it: passed. The isolated CLI published two versions of a scenario-only page; rollback served the first version's content and receipt title. Retirement/deletion and restoration were checked as admin and member owner.
  • Share and unshare: passed, including the signed-out reader and the confirmation/refusal cases above.
  • Use a tier 1 tool live: passed. Allison sent kudos; Priya's already-open page updated from 14 to 15 kudos and showed the new message without a reload.
  • Use a tier 2 tool: passed. Priya moved Fieldnote Press from Discovery to Proposal; Allison's open board reflected the move. Moved it back. Spend refused Priya's approval of Priya's own submitted request with You can't approve your own request. and kept it undecided.

Rollback answers: match the diff. No migrations, stored-data shape changes, infrastructure changes, or CLI/API contract changes. A revert removes the portal presentation/confirmation behavior and leaves data usable by the base release; no one-way label is needed.

Evidence

pnpm -s vitest run packages/portal apps/server/src/McpDoor.test.ts apps/server/src/Server.test.ts
Test Files  5 passed (5)
Tests       125 passed (125)

Direct public POST, no confirm: 200 confirmation; anonymous GET remains 401
Confirmed public POST: 303; receipt; anonymous GET 200
Member confirmation: 403; stale confirmation/request: 409
Tier 2 public request and answer: 422; anonymous GET remains 401
Rollback: 303; “Acceptance Plan now serves v1”; first-version content served
Retire/delete/restore: 303; matching receipt; stopped/served state checked
Health: Spend “1 failed in the last day”; New Business blank; Kudos “—”

All PR checks are green on the checked head, including browser, tier2-smoke, Clerk, CLI, test matrices, lint and rollback-rehearsal.

Phone evidence: Allison Home and Priya's unconnected Final step

Allison Home at 390px, with the first-patch note and search

Priya's unconnected Final step at 390px

Not run

  • Full local pnpm verify: omitted as requested on the shared machine; the combined five-PR stack already passed it today. Targeted checks and the fresh instance were used here.
  • Sign-in, machine-login and invitation golden journeys: not rerun; those paths are outside this diff. Existing head CI is green.

Notes

  • Small accessibility consistency nit: Home's Settings entries still have the accessible name Settings, without the patch title. For example, the Kudos Home menu renders <a class="menu-item" href="/patches/kudos/settings">Settings</a>; All patches correctly exposes Settings, Kudos. The other Home menu entries do name their patch, and the menu itself is labelled. This does not block the tested journeys. See packages/portal/src/home.ts, menu.
  • As accepted for this run, New Business retains its HTML title suffix: New Business · Brightline Studio.

Code, branches, labels and PR body were left unchanged. No merge performed.

Base automatically changed from feat/dashboard-sidebar to main October 25, 2026 14:55
@allisonmahmood
allisonmahmood merged commit a2d7c51 into main Oct 25, 2026
14 checks passed
@allisonmahmood
allisonmahmood deleted the feat/dashboard-patches branch October 25, 2026 15:27
allisonmahmood added a commit that referenced this pull request Oct 25, 2026
…Agent access (#934)

## What changed

The docs still describe the old dashboard: a top bar with Company,
Connections and Your machines, a bell, and agent access at the foot of
the company page. This PR brings `docs/product.md`, both READMEs,
`GLOSSARY-MAP.md`, the ADR mentions, the acceptance skill and the portal
glossary's What's new entry up to the redesign in #930–#933:

- **The sidebar shell:** places grouped by scope, the account menu,
What's new at the foot, and receipts.
- **Your agents:** records first, Add a computer, Connect an app, and a
confirmation page for Disconnect everything.
- **People, Integrations and Agent access** as their own pages.
- **Titles in lists**, a single way to open a patch, and the
confirmation step before a patch goes public.

Routes are unchanged. `patchy list` still says "Connections", the CLI's
word for a configured source.

Stacked on #930. **Merge it after #931, #932 and #933**, since it
describes what they build.

## Look at

`docs/product.md`:
- **§ The portal is built:** the sidebar paragraph.
- **§ Identity and access:** Your agents.
- **§ Patchy MCP › Pages:** Connecting an agent, Agent access and Your
agents.

## How it was verified

- Prettier on every changed file.
- Grepped the stack's combined tree: no "Your machines" or
`company#agent-access` is left outside What's new history.
- Docs only: no code or tests change.

## Release impact

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

Documentation only.

- **What does a revert leave behind?** Nothing.
- **Does the release before it still work with that?** Yes.

---
Made by Claude Opus 5.5 in Claude Code (T3 Code).

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
allisonmahmood added a commit that referenced this pull request Oct 25, 2026
…ry change (#941)

## What changed

This PR adds release 19's What's new entry, written from `156a228`. It
covers everything merged since release 18's `through` (`b23e6ad`), and
it sets the `patchy` release to `0.19.0` in
`packages/patchy/package.json` and `CURRENT_RELEASE`. With this release
the dashboard gets its redesign: a sidebar grouped by scope, Your agents
with connected things first, People, Integrations and Agent access as
their own pages, titles, and a receipt after every change.

| Change | PRs |
| --- | --- |
| Improved: A sidebar that keeps your things and the company's apart |
#930 |
| Improved: Your agents shows what's connected first | #932 |
| Improved: People, Integrations and Agent access each have a page |
#931 |
| Improved: Patches go by their real names, and one click opens them |
#933 |
| New: Patchy says what just happened | #930, #931, #932, #933 |
| Improved: Making a patch public asks first | #933 |
| Behind the scenes: agents' instructions and the docs use the new names
| #931, #932, #934 |

One merged PR gets no line: #920 is release 18's own entry. This PR also
fixes one stale line in the README ("a bell"), which #934's acceptance
verdict noted.

## Look at

- **The entry**, at the top of `releases` in
`packages/core/src/whatsNew.ts`. Its labels are the pages' own: Home,
All patches, Your agents, People, Integrations, Agent access, Add a
computer, Connect an app, Disconnect everything, Invite people.
- **Rollback safety, from the live commit `8a278cb` to `156a228`.**
- No PR in the range is labelled `one-way`, and every PR answers both
Release impact questions with "Yes".
- No migration, schema, API or CLI contract changes. URLs are unchanged.
- `rollback-rehearsal` passed on every landed head: none change a
migration or handler descriptor, so there was nothing to rehearse.
- A rollback leaves at most a 60-second receipt cookie, which release 18
ignores. Release 18 also ignores the `user` field the new Disconnect
everything form sends, and a CLI at `0.19.0` stays usable against it,
since the CLI changes only the "Your agents" wording.

## How it was verified

- **Tests.** Typecheck passes for core, api and the CLI, and so does
lint. Core, api, `WhatsNewPages` and the skill lock pass (149 tests),
including `whatsNew.test.ts` and `schemas.test.ts`.
- **The stack.** Before landing, `pnpm verify` passed on the stack
merged together: 2338 tests, plus browser, CLI and tier 2 smoke. Each PR
had a Sol code review and an acceptance verdict. All five landed with
the verified tree: `main`'s tree at `156a228` is identical to the
combined tree `pnpm verify` ran on.
- **Deploy state.** The live commit was pinned from `/healthz/deep`:
`8a278cb`, release 18. The Deploy run updated last succeeded, and none
is unfinished.

## Release impact

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

This PR changes only the changelog text, one README line and the
`patchy` version. As with every release, a CLI installed before this
deploy is told to upgrade.

- **What does a revert leave behind?** Nothing. People whose seen marker
reached 19 would just see no new release.
- **Does the release before it still work with that?** Yes.

If this release misbehaves, roll back to
`8a278cb4eb93b2867594a7b19e28811e2cc1c231` (release 18).

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: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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant