Skip to content

feat(core): the sidebar is Home, All patches, Your agents and Settings, with New patch - #1341

Merged
allisonmahmood merged 1 commit into
mainfrom
ui/n-shell
Nov 10, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
ui/n-shell

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #1334; part of #1315. Merge the stack together, not alone.

What changed

The sidebar listed Home, All patches and Your agents, then a "Company" group of People, Integrations and Agent access, and nothing in it started a patch. Now it is Home, All patches, Your agents and Settings, which opens on People and shows People, Integrations and Agent access under it while one of them is open. New patch sits under the search and opens Home at /?new (P1 draws its dialog; until then /?new is Home). Below 1024px, the sidebar folds into a top bar with the company, a search and a Menu that works without script and holds New patch, the places and the foot. What's new shows up to five headlines and See all changes, and the account menu gains Your agents. App pages are titled "Heading – Place – Company". Copy that named the old group now names People or Settings ("Back to People", "Turn it on in Settings").

Closes #1321

Look at

1. One list for the sidebar and the switcher: packages/core/src/places.ts. Settings is a place with children, and a page's section is still one of the six it had, so no page changed to light the right place. ⌘⇧K's switcher reads the same list: it now also lists Agent access, People and Integrations keep their own names, and People also answers to "settings", because the sidebar's Settings opens it (derived from the list, not a second one). Places rank below a patch or its pages that match as well, so "set" on a patch still finds its own Settings first (rows.test.ts).

2. The phone top bar: one search form, one nav. The search waits as its icon, which is its <label>, so a press focuses the field and it opens across the bar until focus leaves. The Menu is the same popover markup the desktop sidebar shows in place, so it works without script; its button reads Close while it is open. This differs from the prototype's open Menu, which repeats the search field: here the search stays in the bar. Home's own search moved with the breakpoint (900px → 1024px), as lane F deferred.

Open Menu (People as admin, Settings open; Your agents as a member; What's new over it), before and after:

Phone menus after

Before

Phone menus before

What's new and the account menu on a wide window, after then before:

Foot menus after

Before

Foot menus before

Before and after, as Allison Mahmood (admin)

Before is 7099dff (--base origin/ui/u-addresses) and after is 7293502 (ui/n-shell), both on the brightline scenario, from pnpm dev compare.

Every page answered 200 with no browser errors.

/settings/people

1280px, after

After: /settings/people at 1280px

1280px, before

Before: /settings/people at 1280px

Width Before After
390px Before: /settings/people at 390px After: /settings/people at 390px
/

1280px, after

After: / at 1280px

1280px, before

Before: / at 1280px

Width Before After
390px Before: / at 390px After: / at 390px
/patches/new-business

1280px, after

After: /patches/new-business at 1280px

1280px, before

Before: /patches/new-business at 1280px

Width Before After
390px Before: /patches/new-business at 390px After: /patches/new-business at 390px

Before and after, as Priya Shah (member)

Before is 7099dff (--base origin/ui/u-addresses) and after is 7293502 (ui/n-shell), both on the brightline scenario, from pnpm dev compare.

Every page answered 200 with no browser errors.

/settings/integrations

1280px, after

After: /settings/integrations at 1280px

1280px, before

Before: /settings/integrations at 1280px

Width Before After
390px Before: /settings/integrations at 390px After: /settings/integrations at 390px
/agents

1280px, after

After: /agents at 1280px

1280px, before

Before: /agents at 1280px

Width Before After
390px Before: /agents at 390px After: /agents at 390px

How it was verified

  • pnpm check: format, lint, typecheck and synth pass. Offline tests pass in every package this touches (core, auth, companies, portal, integrations, server). The failures were in patchy CLI, execution, company-database and primitives tests under a load average of 47 from other worktrees, and none of them touch these files; CI decides.
  • New test/browser-tier1/shell.spec.ts, run locally: as an admin and as a member, a Settings page opens Settings with its three pages and lights the right one, the H1 and <title> name it, and elsewhere the four places show with New patch to /?new. At 390px with touch and script off, Menu opens to New patch and the places, Settings navigates, and pressing the search icon focuses the field across the bar and searches. A third case closes a dialog opened from a sidebar link and checks focus returns to that link while the sidebar shows in place, and to Menu while it is folded; it fails with the enhancer fix removed. ui.spec.ts (run locally) now finds the gallery's New patch inside main, since the sidebar has one too.
  • html.test.ts covers the places off and on a Settings page, New patch under the search, one nav and one search form, titles, five headlines, and the bell's data-through and script.

Spec §10 states for the frame, kept:

  • Who sees what (3): members get the same map (shell test, both roles). Lit place, receipts, the overlay making the frame inert and the switcher tag are unchanged.
  • What's new (18): the seen marker works as before. The panel keeps id="whats-new", data-through, .whats-new-dot and .whats-new-bell, which /whats-new/bell.js reads, and the page still advances the marker.
  • Overlays and menus (15): the foot menus are native popovers of links and buttons, anchored above their button, centred where anchor positioning is missing (the shared .menu fallback).
  • Phones (12): 16px padding below 640px, 44px targets on touch (the Menu's places get them through --h-sm).

Core changes:

  • ui/icons.ts: home, grid, bot, gear, bell, menu, chevronRight, chevronUpDown, logout. These are additions.
  • places.ts: the list's new shape, with Place and pagePlaces.
  • The app-shell chunk is rewritten, and the panel CSS it replaces is gone from the What's new chunk.
  • One enhancer change, a fix: focus return now takes a link that is in view before falling back to its menu's button. Sidebar links sit inside the Menu's popover, shown in place on a wide window, so closing New patch's dialog could never refocus New patch. shell.spec.ts covers it.

Left for later lanes:

  • Feedback: feat(portal): send Patchy a request or feedback, and see what you sent #1227 isn't on main, so the foot has a marked slot between What's new and the account.
  • The prototype's Keyboard shortcuts item in the account menu waits for the shortcut sheet.
  • What's new headlines are text until P9's permalinks exist.
  • A patch's title still carries " · Brightline Studio", so its <title> names the company twice until P3 strips the suffix.
  • The sidebar search still lands on Home (/?q=). Spec §2 sends it to /patches?q=, but Home carries the no-results line for an agent and All patches doesn't yet. P2 (with P1's Home search states) moves the action and that no-results line together.

For the integrator: two one-line string changes land in lane R's PortalPages.test.ts (3281, 4021), and render.ts/UserLifecyclePage.ts get the "Company" copy. scenarios/README.md and a comment in scripts/dev/src/scenario.test.ts still say "at Company"; I left them to lane S.

Release impact

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

The page frame and copy change; there are no new routes, and the API, CLI and schema are unchanged.

  • What does a revert leave behind? Nothing. It is markup, CSS and copy.
  • 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): two findings fixed in 518455f, one dismissed.

  • Fixed: "Settings" can now be found in the switcher. People answers to "settings" because the sidebar's Settings opens it; this is derived from places.ts, not a second list. Places rank below a patch or its pages that match as well, so "set" on a patch still lists its own Settings first. Tested with and without a patch on screen.
  • Fixed: the enhancer's focus-return change now has a browser case in shell.spec.ts. Focus comes back to a sidebar link shown in place, and to Menu while the sidebar is folded. The case fails with the fix removed.
  • Dismissed: "the sidebar search should go to /patches?q=." Spec §2 does put it there. But today Home's no-results state offers the line to hand an agent ("Build us a Patchy tool for …", documented in docs/product.md), and All patches only says "No patches match". Moving the action in this PR would drop that line for every sidebar search until All patches' search is rebuilt. Where the search lands, and which page carries the no-results line, belongs with P2 (the All patches search chip) and P1 (Home's search states). The shell keeps action: "/" until then. I've flagged it to the integrator so one of them moves it.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance fixes: on a phone, in-page anchors such as What's new permalinks land below the sticky top bar (scroll padding equal to its height; browser test at 390px), in 523ddbf.

@allisonmahmood allisonmahmood mentioned this pull request Nov 8, 2026
1 of 2 tasks
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Acceptance: PASS with notes

Checked 523ddbfc097037edca2bfff7f0aaf0954e87e262 (base f509ba7c8d1b7dd9805f1ad9240a27ab341ae019) on fresh brightline data and isolated browser/test fixtures, by GPT-6.1 Sol (xhigh) in the Codex harness through T3 Code.

Round 2 scope: range-diff maps both original commits unchanged (=) and adds only 523ddbfc, the phone anchor-padding fix. I carry forward round 1's PASS with notes on 74993df, including its broader 136-case shell sweep, and rechecked the affected geometry, shell Done means and browser behavior on this head.

Done means

  • Every page shows the sidebar with the right place lit, at desktop/phone widths for admin/member: passed. Eighty-eight fresh navigations cover Home, All patches, a patch card, Your agents and its two setup pages, People/Guests, Integrations, Agent access and What's new, as Allison and Jordan, at 1280px/390px with scripts on/off. All returned 200 with no browser errors or document overflow. Each check asserts the four main places, the correct current place, conditional Settings children and the New patch URL. Inspected desktop/phone captures, open native phone menus for both roles, and the desktop What's new panel.
  • The phone anchor correction: passed. At 390px and 768px, a fragment target on an existing release heading lands exactly below the sticky bar: y=53 with a fine pointer, y=61 with touch. Clearing scroll padding in the browser reproduces the obscured target at y=0. Desktop retains the default scroll padding. The new browser test independently asserts target/bar alignment at 390px on a coarse pointer.
  • Shared place metadata, aliases, titles and menu behavior: passed. Focused suites and browser cases cover the Settings alias, patch Settings ranking, lit place/title, native Menu/search with script disabled, and dialog focus returning to a desktop sidebar link or folded Menu.
  • What's new hooks and account navigation: passed in the current rendering/switcher suites and fresh captures; the original seen-marker implementation is unchanged.

Golden journeys

  • Navigate/find/open a tool and switch between tools: passed in the new-head Chromium suite, including patch-frame keyboard/focus behavior.
  • Agent setup and settings authority: passed in the rerun auth/server/portal suites and both-role page sweep.
  • Guest boundaries, signed-out behavior, disclosures, native menus and dialogs: passed in Chromium, including the inherited refused-dialog Back and long-name fixes.
  • Runtime publication/live-sync journeys are unchanged and were not manually repeated for this shell-only increment.
Sanitized round 2 evidence
Focused vitest: 13 files / 286 tests passed
Chromium shell.spec.ts + ui.spec.ts + switcher.spec.ts: 29 passed
Fresh shell sweep: 88 navigations, all 200
Browser errors / document overflow: 0 / 0

Width | Pointer | Target y | Bar bottom | Root scroll padding
390   | fine    | 53       | 53         | 53px
390   | coarse  | 61       | 61         | 61px
768   | fine    | 53       | 53         | 53px
768   | coarse  | 61       | 61         | 61px
1280  | both    | 0        | sidebar    | auto

Control: clearing padding at 390/768 puts the same fragment target at y=0,
under the bar. No source file was changed for this control.

Rollback answers: match the diff. Markup/CSS/copy and menu enhancement only; no schema, persisted-data or public API change. The new commit is scroll padding and its test. Limits/OAuth/server changes remain wording only.

Not run

  • dense is absent at this early stack head; fresh brightline used.
  • P9's later month/permalink routes are not present on this shell head. The same fragment behavior was checked on an existing release heading with a temporary fragment target, plus the PR's anchor test.
  • Full local verify, live Clerk and repeated runtime publish/live-sync journeys were not rerun locally.

Notes

  • CI remains incomplete. Lint, Bun, concurrency, rollback rehearsal and CLI/tier-2 smoke passed; browser, Node suites, live Clerk and other jobs remain queued/running.
  • Server image failed before image construction: the crane download returned HTTP 502 (curl exit 22), confirmed in its log. Infrastructure failure; needs a successful run before merge.
  • The documented staged work remains: New patch's dialog, search's move to All patches, linked headlines, Feedback and the duplicate company suffix in patch titles belong to later lanes. The phone search staying in the top bar remains the explained design deviation.

All instances from this check are down. Text evidence only; no PR code, branch, body or labels changed.

@vsrikar08

Copy link
Copy Markdown
Collaborator

It looks good. Thank god we fixed that stupid issue where we cannot go home after opening a patch was gonna do it myself because it annoyed me so much. UI looks a lot cleaner. This is shit I wouldn't have noticed if it wasn't pointed out I need to look better for UI stuff

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Glad it helps. (Fermy, Allison's agent.) One note so it isn't a surprise later: this stack changes Patchy's own pages (Home, a patch's page, Settings and the rest, on desktop and in the phone menu). A running patch keeps its own frame exactly as before; from inside one, ⌘⇧K (the switcher, already live) gets you Home.

Base automatically changed from ui/r-portal-routes to main November 10, 2026 17:17
@allisonmahmood
allisonmahmood merged commit 5d2663c into main Nov 10, 2026
25 checks passed
@allisonmahmood
allisonmahmood deleted the ui/n-shell branch November 10, 2026 17:30
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]>
allisonmahmood added a commit that referenced this pull request Nov 11, 2026
#1227)

## What changed

People had no way to tell Patchy what it lacks or got wrong without a
terminal, and nowhere to see or take back what their agents sent. The
only path was a `mailto:` on the integrations page. Now **Tell Patchy**
sits in the sidebar's foot between What's new and the account, and opens
a panel in What's new's frame: Request or Feedback, one field, Send. A
request's receipt is followed by its similar requests, each with its
status and public note, and **Same need** links one in a click. **What
you sent** at `/feedback` lists everything the person and their agents
sent, with Unlink and Withdraw… in each row's menu. Integrations'
**Ask** and **Ask for an integration** open the same panel with Request
picked. This is Direction A from the mocks
(post.patchyhq.com/d/irl2myfbmdgk), ported onto the new component set.

Part of #1210, closes #1215

**Ported onto the new component set.** While this waited, main replaced
the first-party UI: the overhaul (#1332–#1354, #1371), the component set
and five templates (#1338), the new sidebar (#1341), What's new's foot
menu (#1350), and a check that fails a page that styles itself (#1354).
The classes the first version used are gone. This version keeps the same
concept, flows and behaviour, and draws everything from core's helpers
with no page CSS. The look follows the system rather than the mock, and
the departures it forces are listed under **Look at**.

**How it works**

- **The panel** lives in the shell (`packages/core/src/html.ts`), so
every app page has it. It is a `menu app-foot-menu` popover, like What's
new's, anchored to whichever button opened it. It sits outside the
folding Menu, because a popover inside a hidden menu can't show, so any
page's button with `popovertarget="tell-patchy"` opens it; its
`data-kind` picks the kind. The form is `choiceGroup`, `field` and
`textarea`, with no `maxlength`, plus a primary Send. Its styles are a
few lines in core's `app-shell` chunk.
- **Sending** goes through `/feedback/tell.js`. It posts the panel's
forms with a `patchy-panel` header, and the server answers with markup
drawn by helpers:
- a sent request: a `receipt` naming its title, then `rows` of matches,
each with a `badge`, its note, Same need and Unlink;
  - a refusal: the form drawn again with the field's `error`.

The script only moves server-drawn markup and toggles `hidden`, so it
draws no component.
- **Without the script**, the composer has its own address,
`/feedback/new?kind=request` (or `feedback`; anything else is a
request), a `dialog` over What you sent with the panel's fields. A
refused send from it draws it again with the field's error and an empty
field. Integrations' Ask buttons are links to it: the panel's script
opens the panel beside them instead, with the kind taken from the link.
A sent request lands at its own address, `/feedback/<id>/sent`. It is a
`dialog` over What you sent, drawn by the same renderer as the panel's
answer, where Same need and Unlink post and come back to it. Done and
Close go to What you sent. Only the request's sender sees it, and
another person's id or a feedback id answers 404. Feedback lands on What
you sent with a receipt, and a refusal on What you sent with a `refusal`
above its table.
- **Behaviour carried over unchanged:**
  - the routes and the `patchy-panel` contract;
- the long-request split (`requestOf`: the first line, or the opening
words cut with "…", becomes the title, and the whole text the why);
  - no automatic resend after an ambiguous failure;
- one change in flight across the panel, with a counter that drops stale
answers. Every close settles what was in flight: the panel opens again
with the draft kept and the "couldn't confirm" note;
- closing gives focus back to the button that opened it, or to Menu once
that is folded away, after the switcher's chord and after a tap outside
too;
  - `Feedback.get`, and surface `dashboard` with no agent.
- **What you sent** is `indexPage` over the shared `table` (Sent, What,
From, Status, a `menu` per row), paged by the store's cursor with Older.
It lights no place. **Withdraw…** opens a `dialog` over it at
`/feedback/:id/withdraw`, with Cancel first and focused and **Withdraw
request** in `danger-solid`, as Your agents' Disconnect does.
- **Small core additions:**
  - `button` takes `popovertarget` and `popovertargetaction`;
- `field` takes `hideLabel` and `choiceGroup` takes `hideLegend`,
keeping the mock's label-free composer while readers still get the
names;
  - a speech-bubble `message` icon.

Each comes with its gallery entry. Feedback joins the portal's services,
and FeedbackPages is registered with the other portal surfaces.
- **`dense`** now shows both: five general requests, one of each status
and two with notes, plus Allison's own requests and feedback beside her
agents' (Claude Code and Codex through the CLI, ChatGPT through Patchy
MCP, and one unnamed agent), three of them linked. These are seeded
through two new scenario fields, `generalRequests` and per-person
`sent`. The ids are stable and in the store's shape, so a resumed `up`
writes the same rows and the cursor pages them.
- **Store changes**, each in its own commit with a test:
- `Feedback.get({ person, id })`, which the withdraw dialog, the Unlink
receipt and the sent address read;
- `Feedback.similarTo({ person, id })`, which matches one of the
person's own requests again with the query filing used, ranked now, for
the sent address.

## Look at

<!-- patchy-dev:film:tell-patchy -->

#### Flow `tell-patchy`, as Allison Mahmood (admin)

After is `857cc17` (feedback/portal), on the `dense` scenario, from
`pnpm dev film`.

- After: finished in 17.2s


https://github.com/user-attachments/assets/9e6604b0-c0b1-4d1f-8c5e-c11fcb061fbe

<!-- /patchy-dev:film:tell-patchy -->

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

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

Before is `6a5a29c` (where this branch left main) and after is `857cc17`
(feedback/portal), both on the `dense` scenario, from `pnpm dev
compare`.

##### `/settings/integrations/connect`

**1280px, after**

![After: /settings/integrations/connect at
1280px](https://github.com/user-attachments/assets/7649c0fe-1613-4004-b5ab-019d9672b998)

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

![Before: /settings/integrations/connect at
1280px](https://github.com/user-attachments/assets/b6a2b566-2b24-4fc7-aed9-ad0081fc2386)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | No visible change | ![After: /settings/integrations/connect at
390px](https://github.com/user-attachments/assets/2721d7a4-e97e-4f9c-9b7b-196eb0f6688a)
|

##### `/feedback`

**1280px, after**

![After: /feedback at
1280px](https://github.com/user-attachments/assets/b1c04bed-71e8-4504-a15e-87cdfcb0ceb6)

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

![Before: /feedback at
1280px](https://github.com/user-attachments/assets/abd96088-c664-4a60-b4e2-5e8419d166a3)

</details>

| Width | Before | After |
| --- | --- | --- |
| 390px | ![Before: /feedback at
390px](https://github.com/user-attachments/assets/707aad5c-b21f-4323-80b7-479e90bb8122)
| ![After: /feedback at
390px](https://github.com/user-attachments/assets/79b1290d-5075-42b3-9fc0-4731d9d6b617)
|

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

**With Patchy's general requests**, on a local `dense` instance as
Allison. Fresh evidence instances run the same scenario.

**1. Send a request from the foot, see similar requests, link one and
unlink it**

![Request sent: a receipt naming the title, then three similar requests:
her own earlier one, Shipped; Postgres encryption options, Shipped, with
its note; Bring your own encryption keys,
Planned](https://github.com/user-attachments/assets/9cac7e41-2022-4973-b9b1-520a09c2d13f)

![After Same need: Unlink on that match, and a receipt reading Linked to
Postgres encryption
options](https://github.com/user-attachments/assets/954c51e1-cb1d-41bf-becd-374888f50b7f)

<details><summary>Composing, and after Unlink</summary>

![Tell Patchy open above its foot button, Request
picked](https://github.com/user-attachments/assets/f996b754-7744-4a90-957a-3fada2523c30)

![After Unlink: Same need back on every
match](https://github.com/user-attachments/assets/7e3d1326-8777-403c-88a8-28aef66207b4)

</details>

**2. A key is refused on the field, and Ask for an integration opens the
panel with Request picked**

![Your request has a Google API key in it. Nothing was saved. The text
stays in the field, marked
invalid.](https://github.com/user-attachments/assets/9cf2f2c3-25cf-4fe8-855a-1dc9d0de35ef)

![Opened from the catalogue's Ask, beside it, with Request picked
although Feedback was last
chosen](https://github.com/user-attachments/assets/f7593446-2a2a-4c1c-b077-3e1d2d2d5368)

**3. What you sent, a row's menu, Withdraw**

![What you sent: Allison's own requests and feedback beside Claude Code,
Codex and ChatGPT's, one Unknown agent, statuses Shipped, Planned, Open
and
Declined](https://github.com/user-attachments/assets/2059264e-f933-4b44-91a4-e14356c088c8)

![The row menu: Unlink from Gmail integration, then
Withdraw…](https://github.com/user-attachments/assets/669c6fbc-8e5d-4c7b-a382-15d63c9d9ecb)

![Withdraw “Gmail integration for the sales inbox”? Patchy deletes it
and everything Claude Code sent with it. Cancel focused, Withdraw
request.](https://github.com/user-attachments/assets/e2be9292-5a47-4ea6-8428-9a5b3460fda6)

![Back on What you sent with the receipt Withdrew your
request](https://github.com/user-attachments/assets/acec3d36-e1e0-47b1-960d-64009d0a8d6d)

**4. When a send's answer is lost** (the server stored it and the
browser never heard back): nothing is sent again, the draft stays, and
the note points to What you sent.

![Patchy couldn't confirm that. It may have gone through. Check What you
sent before you try
again.](https://github.com/user-attachments/assets/ae6a23e9-e042-446b-9018-7329e318647a)

**5. Without script: the sent request's own address, then linked from
it**

![Without script: the send lands on a Tell Patchy dialog with the
receipt and three similar requests, each with Same
need](https://github.com/user-attachments/assets/0db7102d-40f3-4955-a9af-c8854ac194fc)

![After Same need without script: back at the same address, Unlink on
the linked match and a Linked to
receipt](https://github.com/user-attachments/assets/46104ef6-815a-4a61-be9b-2a1885e98eb2)

![Without script, after picking Feedback in the panel: Ask for an
integration opens the composer at its own address with Request
picked](https://github.com/user-attachments/assets/c0d82250-e3a2-44ba-baec-2d7558c71653)

<details><summary>Phone, without script</summary>

![Phone without script: Ask opens the composer with Request
picked](https://github.com/user-attachments/assets/2f37dfee-4d6b-4900-89e5-7ae8790aa4c6)

![Phone without script: the sent dialog, then
linked](https://github.com/user-attachments/assets/a3fcf2c2-b9a2-45b6-9d15-987ae6f051dc)

</details>

**6. Phones: the panel opens above the foot inside Menu, the table
scrolls sideways, Withdraw is a bottom sheet**

![Phone: composing, sent with matches, linked,
refused](https://github.com/user-attachments/assets/e296ff5d-8773-4bf3-9a74-906a5e72e700)

<details><summary>Phone: from Integrations, What you sent, a row's menu,
Withdraw</summary>

![Phone: opened from Ask, What you sent, the row menu, the Withdraw
sheet](https://github.com/user-attachments/assets/1f17cfbc-d6e9-44c8-b0b8-b1faa09e0692)

</details>

**Departures from Direction A that the new system forces**

- **Receipts, not green boxes.** Success is quiet, so a sent request
leaves a `receipt`, "Request sent: <title>", and a link leaves "Linked
to <match>". The mock showed a bordered "Request sent" note.
- **Statuses are `badge`s** with the mapping main's overhaul gave the
old pills: Shipped green, Planned blue, Declined red, Open plain.
- **A match stacks** its title, note, then badge and Same need, as a
`row` in a 360px panel does. The mock put the badge beside the title.
- **A refusal is the field's error**, one red sentence under the field
that the field is marked against ("Your request has a Google API key in
it. Nothing was saved. Take it out, or write <token> where it was, and
send again."), rather than the mock's callout box.
- **No bottom sheet on a phone.** Foot menus open above their button
now, so Tell Patchy does too, as What's new does. Withdraw's dialog is
the system's bottom sheet on a phone.
- **Withdraw is a dialog over What you sent**, as confirmations on list
pages are now, rather than a page of its own. Its URL is unchanged.
- **Main's copy on Integrations.** The page now says **Ask** in the
catalogue's "Something else" row and **Ask for an integration** in a
member's header. Both open the panel; I kept those words rather than
"Request an integration".
- **An icon in the foot.** Every foot place wears one now, so Tell
Patchy has a speech bubble. Its panel heading is the menu's head, as
What's new's is.
- **One notice a page.** The note for a send it can't confirm waits
inert in a `<template>`, so no page carries a hidden second notice. The
card's one-notice test now counts the page's own notices, inside
`<main>`.
- **The From column** is drawn the way All patches' Owner column is, a
mark then the name over its surface. A grid cell there let the table
squeeze it to nothing.

Still standing from the first version:

- Sent reads "just now" or "2 days ago", because the server doesn't know
the reader's time zone.
- The panel opens beside whichever button opened it.
- Feedback's receipt doesn't repeat the note.
- Done also closes the Menu it was opened from.
- A long request is split into a title and its whole text as the why,
never refused.

## How it was verified

- **Tests.** `packages/portal/src/FeedbackPages.test.ts` is ported to
the new markup without dropping what it asserts:
- a send from the panel is stored as `dashboard` with no agent. The
answer is a receipt, the shipped general request with its badge and
note, and Done;
  - link, then unlink from the row menu without the script;
- a pasted paragraph is filed as a title and a why. Exactly 4,000
characters ending in an emoji is accepted as a request and as feedback,
and 4,001 is refused, as is too-short text;
- a Google key is refused with 422 and nothing stored, and never echoed.
In the panel, the answer is the form with the field's error and an empty
field. Without the script, it is What you sent with a danger notice;
- the list shows the person's own entries beside Claude Code · CLI,
ChatGPT · Patchy MCP and Unknown agent · CLI, without notes;
- another person's GET and POST withdraw, link and unlink all answer 404
on a live submission. The owner then withdraws it through the dialog,
and the withdrawn id answers 404;
  - `requestOf`'s edges;
- the composer at `/feedback/new`: Request picked for `?kind=request`, a
bogus kind or none, and Feedback for `?kind=feedback`, under its own ids
beside the panel's form. A request sent from it lands at its own
address. A refused send from it is drawn again with the field's error,
the kind as sent and an empty field, and never echoes the key;
- without script, a send redirects to `/feedback/<id>/sent`. The dialog
there shows the receipt, the shipped match and Same need, over the
table. Same need and Unlink (with `from=sent`) each post and come back
to it, linked and then unlinked. Another person, and a feedback id, get
404.

`Feedback.test.ts` covers `similarTo`: three matches ranked now, never
itself or another company's, and missing for another person, for
feedback and for an unstorable id.
`test/browser-tier1/tell-patchy.spec.ts`, in the browser suite, runs the
panel's script:
- a send held until the panel closed and opened again leaves the new
draft alone, with the note;
- Escape gives focus back to Tell Patchy, and so do the switcher's chord
and Escape;
- on a phone, a tap above the panel gives focus back to Tell Patchy, and
Done closes Menu and gives focus to it;
- after Feedback was picked, Ask for an integration opens the panel in
place with Request picked and the field focused. Without script, it
opens `/feedback/new?kind=request` with Request picked.

The shell's tests (`html.test.ts`) cover the foot order, the panel
outside the menu, the label-free field without `maxlength`, the inert
note, the script on every app page and What you sent lighting no place.
`ConnectionsView.test.ts` covers both Ask buttons. Dense's history test
covers the seeded submissions, their id shape, and that a resumed `up`
writes the same rows.
- **`pnpm check`** at this tree:
- format, lint (including `patchy/no-page-styles` and
`patchy/no-hand-drawn-components`), typecheck and synth pass;
- tests: 3,475 of 3,476. The one failure was a 5-second timeout in
`PgliteCompanyDatabases.test.ts`, which this change doesn't touch; it
passes run alone.
- Focused suites pass: portal, core (including the stylesheet rules and
the gallery inventory), feedback and the integrations view, 552 tests,
plus the dev history and scenario tests, 12.
- **In a browser.** Playwright Chromium drove the walkthrough on a local
`dense` instance at 1280 and 390 wide:
  - focus starts in the field, and moves to Unlink after Same need;
- the panel reopens fresh after Done, the draft and the invalid mark
survive a refusal, and Ask picks Request;
  - Withdraw's Cancel takes focus;
  - the only console error was the expected 422 from the refused key.

The review's three cases still hold on the ported markup. A send whose
answer was cut after the server stored it is stored once and keeps its
draft. A second Same need pressed while the first is held for 1.5 s
sends nothing, and the panel's "Linked to" matches the database. Closing
the panel during a held Unlink and reopening it shows a fresh form.
- **Not checked.**
- Firefox and Safari. Anchoring relies on the browser's implicit popover
anchor, as the row menus' does.
  - Clerk sign-in mode.
- A real Patchy MCP client: the MCP row is covered by a test, and
`tell_patchy` is #1214.
- `pnpm verify`'s browser and packed suites weren't re-run for this
port.

## Review

GPT 6.1 Sol reviewed the first version. Its findings were fixed then,
and each fix is carried through the port with its test:

1. **P2: an automatic retry duplicated a submission.** The script never
resends on its own; it keeps the draft and shows the note that links
What you sent.
2. **P2: overlapping links could show the wrong saved state.** One flag
covers the whole panel, and a counter drops answers for a panel reset
since they were sent. There is no committed test for the ordering, since
the script is a string served to the browser and the repo has no DOM
test library. It was checked in Chromium, as above.
3. **P3: the ownership test checked an already-deleted id.** Another
person tries a live submission first, and the deleted id is checked
separately.
4. **P2: the textarea silently cut valid input.** There is still no
`maxlength`; the server's 4,000-character refusal is the one bound.

Sol reviewed the port at 857cc17. The four findings above still held,
and it raised three more, fixed in ea0eb68 with the store method in
c33ceb1:

5. **P2: a late Send reply could discard a new draft.** A close while
composing didn't bump the counter, so a held reply landed after a new
draft: its receipt covered the draft, and Done cleared it. Now every
close settles what was in flight. If a send was on its way, the panel
opens again with the draft kept and the note pointing to What you sent.
6. **P2: Same need was gone without script.** A send without script now
redirects to the request's own address, `/feedback/<id>/sent`: a dialog
over What you sent with the receipt, the matches and native Same need
and Unlink forms. Both post and come back to it, so it reads "Linked to
…". Only its sender sees it. The matches come from `Feedback.similarTo`,
the matching query run again.
7. **P3: dismissal lost focus.** The panel records the button that
opened it and gives focus back on close, or to Menu when that button is
folded away. Two cases needed more than a check at close:
- the switcher's chord closes the panel, and its Escape returns focus to
the now-hidden field, so the panel waits for `patchy:switcher-closed`;
- a tap moves focus for itself after the panel closed, so the panel
checks again on that tap's click.

The panel's script now runs in a committed test,
`test/browser-tier1/tell-patchy.spec.ts` in the browser suite, which
covers finding 5's ordering and finding 7's focus on a desktop and on a
phone. Finding 2, two links racing, is still checked by hand in Chromium
only.

Acceptance on bda5bd3 (GPT 6.1 Sol) passed everything but one gap,
fixed in 124ed0c:

8. **Ask for an integration kept Feedback without script.** Only the
panel's script applied the Ask buttons' `data-kind`, so with JavaScript
off, choosing Feedback in the panel and then pressing Ask sent an
integration request as feedback. The composer now has its own address,
`/feedback/new?kind=request`: a dialog over What you sent with the
panel's fields, Request picked. Both Ask buttons are links to it,
through `linkButton` and core's `tellPatchyHref`. With script, the panel
opens in place beside the link with Request picked, and a modified click
still opens the address. A route test covers the kinds and the fallback,
and the browser spec covers Ask after Feedback, with and without script.

## Release impact

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

Additive: new pages and routes, a panel in the sidebar, an option on
`button`, `field` and `choiceGroup`, an icon, one read method on the
store and two dev scenario fields. No schema change.

- **What does a revert leave behind?** Rows sent from the dashboard stay
in `feedback.submissions` with surface `dashboard`, which the store
already accepts. Nothing else.
- **Does the release before it still work with that?** Yes.

Built by Claude Opus 5.5 (xhigh) in Claude Code, orchestrated from 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:l 501-1,000 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI overhaul N: the sidebar is Home, All patches, Your agents and Settings, with New patch

2 participants