Repository navigation
fix(sdk): HotkeySheet opens in view when its button's container is hidden - #1178
Conversation
|
Review (GPT 6.1 Sol, xhigh) on 321bbb3: approve with one P3, being fixed.
|
Acceptance: PASS with notesChecked I tested a real tier 1 patch, published from a Done means
What else I checked
Driver output, the patch at 390px and 1280pxThe PR's spec: green on the head, red on the baseHead: Base Golden journeys
Rollback answers: they match the diff. The diff changes the SDK's Not run
Notes
|
…dden Co-Authored-By: Claude Opus 5.5 <[email protected]>
a55c6ee to
b344013
Compare
…ges publish (#1241) ## What changed This adds release 36's What's new entry, written from `1acc968`. It covers everything merged since release 35's `through` (`dd0e2ec`), and sets the `patchy` release to `0.36.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | Improved: shortcuts work where you use them (keys for one part of a patch, the closest wins, text boxes keep their typing keys) | #1231 | | Improved: the shortcuts sheet shows what works where you are (Ctrl+/ and ⌘/ open it, its commands run, it opens from a patch's menu and in view on a narrow screen, keeps the look, spells keys out away from a Mac) | #1231, #1181, #1178, #1180, #1177 | | Fixed: keys pressed while a patch opens reach it | #1183 | | Fixed: pages styled with Tailwind 4 publish, and a look with the same rule saves | #1191 | | Fixed: an old copy of a patch no longer replaces newer work (**Breaking** for such a copy: it needs `patchy pull` or one `--allow-behind` publish) | #1179 | | Improved: your agent can check a publish before sending it | #1188 | | Improved: your agent hears what changed when it updates a patch | #1186, #1185 | | Fixed: your agent stops chasing false alarms (`pnpm install` exit codes, `manifest.json` bytes, the description notice, a copied dev record) | #1176, #1174, #1175 | | Behind the scenes: fuller hotkeys instructions for agents; fewer redraw costs for patches with many shortcuts | #1182, #1187 | `patchChanges` has three sentences for the agent refreshing a patch across this release: - #1231's, from its PR: text fields keep their keys, `preventDefault()`, and the sheet's Mod+/ and `.hotkey-row` buttons. - The sheet's dialog renders in `document.body`, and element-only page rules don't reach it (#1178, #1180). Its own row lists last (#1181). The hotkey label helpers take only valid literals (#1177). - Publish's `unknown_base_version` (#1179). It also rewords release 33's "Press ? to see every shortcut a patch has". That was true only for a patch that mounts the shortcuts sheet, so it now says a patch *can* list its shortcuts. The rest get no line: - #1206, #1207, #1209 and #1220 are `pnpm dev eval` tooling. - #1222 is release 35's own entry. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`, and release 33's reworded line. - **Rollback safety, from the live commit `d28fdd0` (release 35) to `1acc968`:** - #1191 is labelled `one-way`. Its Release impact: a company look published after this release with a nested `@supports` condition stays stored after a revert. Release 35 refuses any bundle carrying it, so repo publishes in that company would fail until an admin runs `patchy look restore` to an earlier revision. Pages and Tailwind 4 repos already published stay published. - #1183 is the only change to what the server serves browsers: the shell's script, under a digest-named URL. Its revert leaves nothing behind. - The hotkeys PRs change `patchy/hotkeys`, which patches bundle when they are built. Published patches keep their copy. - The CLI PRs change what a CLI writes and refuses. Release 35 reads everything they leave behind: #1176's `allowBuilds` entry, #1174's indented `manifest.json`, and the `version` recorded by an `--allow-behind` publish. **Rollback line:** If this release misbehaves, roll back to `d28fdd0` (release 35). First check that no company's look has a nested `@supports` condition, and `patchy look restore` an earlier revision where one does (#1191). ## How it was verified - **Tests.** `whatsNew.test.ts`, `WhatsNewPages.test.ts` and `schemas.test.ts` pass (22 tests), and `bun fmt` passes on the changed files. - **Facts.** The sheet's new `document.body` home and its element-rule reset were checked against `hotkeys.ts` and `hotkeySheet.ts` on main. - **Deploy state.** I pinned the live commit from `/healthz/deep`: `d28fdd0` (release 35). 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 Text and version numbers only. Like every release, the `0.36.0` bump tells CLIs and patch repos installed before this deploy to upgrade. - **What does a revert leave behind?** Nothing. - **Does the release before it still work with that?** Yes. Built by Claude Opus 5.5 (`claude-opus-5-5`) in Claude Code, through T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>


What changed
A patch that mounts
<HotkeySheet />in a sidebar hidden at narrow widths got an invisible sheet:?still opened the modal dialog under the hidden sidebar, so the page went inert with nothing drawn until Escape. The sheet now renders in the page's body, so it opens in view wherever its button is mounted, and one sheet is enough.Closes #1157
Look at
packages/patchy/src/hotkeys.ts: the sheet'sHotkeyScopeand dialog render through a portal intodocument.body. The button stays where it is mounted, and the dialog's own focus return is unchanged.?, expects the sheet and its rows visible with the close button focused, then Escape returns focus to where it was.Red on the base (the dialog under the hidden sidebar isn't even exposed as a dialog):
Green on the head:
How it was verified
pnpm exec playwright test -c playwright.tier1.config.ts --project=chromium test/browser-tier1/hotkeys.spec.ts: red on the base, all 4 green on the head. The earlier steps of the sheet test still pass:?and the button open it, the page's hotkeys wait, Tab stays on the close button, and Escape, the close button and a click outside close it with focus back.pnpm verifyat this head: format, lint, typecheck, synth, postgres-concurrency, cli-smoke, install and tier2-smoke passed.test,test (bun)andbrowserfailed locally on CLI stub-server request logs and tier 1's foreign-request check. Each failure was a strayGET /that a local tool on this machine sends to open ports, plus two 5-second timeouts under load; reruns failed different cases each time. None of these touch the hotkeys code. The browser suite stops at its first failure, so the hotkeys spec ran separately (above). CI runs them all.The
patchy-hotkeysskill's sheet section now says the sheet opens over the whole page wherever the button is, so a patch mounts it once. It and the README's sheet paragraph also say the dialog renders in the page's<body>, outside the patch's root element. A patch should restyle it with selectors that don't depend on where it's mounted, such as.hotkey-sheet …, and set--look-*overrides on:rootorbody; a rule such as#app .hotkey-sheetno longer reaches it.Release impact
Patch-side SDK behaviour only; it reaches a patch when the patch is rebuilt against a release that carries it.
Built by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, through T3 Code.