Repository navigation
fix(web): right-panel shortcuts ignore presses while a menu or dialog is open - #46781
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Right-panel close and toggle shortcuts now yield to open menus and dialogs on Issues and Pull Requests pages. The change is confined to UI keyboard handling, with no material operational or data exposure. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…hortcut-skips-open-layers
…el shortcut guards Co-Authored-By: Claude Opus 5.5 <[email protected]>
EvidenceReal web app server and Vite client on each commit, driven by the repository scenarios:prove browser runner on Linux at 1280×800, light theme. Each side uses fresh isolated state, one synthetic project created through t3.project with the real repository remote, and real GitHub issue/PR data; no mocked responses or copied database. No agent turn is needed. On Issues, search for and open #38950, wait for its detail, open Sort, press Ctrl+Alt+B, and capture. Dismiss Sort, reopen the panel if needed, open Link to thread, press Ctrl+Alt+B, and capture. Open #46765 on Pull requests, wait for its detail and list to load, open Sort, press Ctrl+Alt+B, and capture. Dismiss Sort, restore the panel if needed, then close and reopen it with Ctrl+Alt+B as the no-overlay control. Scenario: Right panel shortcuts preserve open menus and the hosted link dialogProven: the scenario fails on base 3763606d20 and passes on head 57ec72980e.
Observed: base closes both panels through the open Sort menus and destroys the hosted Link dialog; head preserves them. The no-overlay PR toggle closes and reopens the panel on both commits. Not shown:
|
…hortcut-skips-open-layers Keep main's context-menu guard next to this branch's open-layer guard on the Issues and Pull Requests pages. Co-Authored-By: Claude Opus 5.5 <[email protected]>
EvidenceLinux web client, Chromium preview browser, 1280×800, light theme. Separate fresh databases, one synthetic project and replay thread per commit; real public GitHub data. The selected issue and PR were opened by direct route. On both commits, opened issue #38950 by route, opened Sort issues and pressed Ctrl+Alt+B; repeated with rightPanel.close bound to Alt+W. Reopened the issue, opened Link to thread, and repeated both keys. Opened PR #46765 by route, opened Sort pull requests, and repeated both keys. On each page, verified Ctrl+Alt+B closes and reopens the selected panel with no overlay. Base: all six overlay presses closed the panel and cleared selection; both dialog presses also unmounted the dialog. Head: all six preserve the panel, selection, and hosted dialog. Normal toggle closes and reopens on both commits. Every still was checked for identical screenshots at least 500 ms apart and visually inspected.
Unverified: popovers other than the Sort menus and the native desktop Mod+W key path. The close command itself was exercised through Alt+W. Recorded panel, dialog, and URL observations. Not shown:
|
Surgically ports 62 upstream Web UI fixes from pingdotgg/t3code (772e3d4..1e6e7d7) into apps/web and scripts/scenarios while preserving all 31 locked T4 customizations, T4 branding, and t4-overrides.css. Also restores React Compiler compilation for Sidebar by moving the default new Set(...) parameter inside settleLaunchGroup into the function body so switching threads produces 0 unaffected row re-renders. Ported (62 commits): - 1a08049 (pingdotgg#46481): right-panel launcher keys blocked while context menu open - 6bdd718 (pingdotgg#46489): Enter restores highlighted stashed prompt (scenario e2e; web code already absorbed) - 347f551 (pingdotgg#46490): Escape closes open context menu before layer beneath it - afa3003 (pingdotgg#46487): workflows page uses width of wide window - a2ba869 (pingdotgg#46485): keep joined emoji whole in screen-reader announcements - a8ee725 (pingdotgg#46493): holding stash shortcut keeps prompt saved (scenario e2e; web code already absorbed) - 5048c80 (pingdotgg#46499): Mod+S moves edited queued reply to prompt stash - 179e6c3 (pingdotgg#46506): holding stash delete shortcut removes one prompt (scenario e2e; web code already absorbed) - c101437 (pingdotgg#44079): fold PR diff whose header was clicked - 9b27e5a (pingdotgg#46562): second Mod+T keeps right-panel Add menu shortcuts working - 62cf1fe (pingdotgg#46592): wait for dialog focus before opening context menu over it - fda1c30 (pingdotgg#46579): resting on issue row prefetches detail - 28f0c93 (pingdotgg#46593): slash-command description tooltip closes when modal opens - 789784b (pingdotgg#46603): keep selected tab in Workflows links - 2bc37d9 (pingdotgg#46597): / and Mod+F in Settings ignore open context menu - b21923b (pingdotgg#46640): effort shortcut closes nested Permissions menu in model picker - a5a39fa (pingdotgg#46641): inline thread details card grows with interface font size - 36983d6 (pingdotgg#46644): workflow runs open in resizable right panel - 2ad902f (pingdotgg#46691): Mod+F on PRs page ignores open menu - 97d727c (pingdotgg#46699): Link pull request dialog closes when leaving thread - 7a9d213 (pingdotgg#46729): refuse saving edit to deleted project script action - bdda9ce (pingdotgg#46745): settling open delegated task opens next thread - 3763606 (pingdotgg#46760): command menu description tooltip closes on composer focus loss - 00eae4b (pingdotgg#46764): reopen workflow run on first click - 19094fd (pingdotgg#46765): boring sidebar folder rows offer snooze again - dec756c (pingdotgg#46766): reopen last workflow run after hiding panel - 33ce571 (pingdotgg#46777): keep workflow runs open behind tab menus - a989ee8 (pingdotgg#46779): restore focus after closing workflow run - 5c42b2e (pingdotgg#46786): reopen closed workflow run tabs - caec30f (pingdotgg#46792): cancel tab drags when switching threads - 27cf2cf (pingdotgg#46794): disable empty panel shortcuts as it closes - d65936e (pingdotgg#46791): reveal all side panel tabs when they fit - a9daa0b (pingdotgg#46781): right-panel shortcuts ignore presses while menu/dialog open - 35b6c5f (pingdotgg#46801): dismissing PR checkout toast cancels handoff - e9da1b0 (pingdotgg#46818): boring sidebar folder row actions keep height and clicks - 9feac49 (pingdotgg#46855): long PR search preserves grapheme clusters - acef160 (pingdotgg#46849): find shared voice dictionary by Japanese label - 19da14d (pingdotgg#46796): scrolled right panel tabs no longer block chat titlebar drag - 506bc36 (pingdotgg#46853): close guest share and handoff dialogs when leaving thread - b4fd7ba (pingdotgg#46879): let Escape and app shortcuts pass through terminal font preview - f5689ae (pingdotgg#46835): long history load errors wrap without timeline horizontal overflow - 6b64b0c (pingdotgg#46890): focus command dialog popup when search input disabled - 70c9da7 (pingdotgg#46900): focus PR Author/Labels filter search inputs on keyboard open - 891bf1a (pingdotgg#46924): late slash results no longer open tooltip after focus leaves - 80f0f8a (pingdotgg#46930): copying failed message keeps its images - e9ca942 (pingdotgg#46659): show workflow question kinds only in filter - aa8c7c7 (pingdotgg#46941): queued message moves to stash only once removed - 3ea13b6 (pingdotgg#46940): editing answer while image prepares cancels held submit - a143526 (pingdotgg#46970): pasting copied file over reattach marker no longer reports failure - b33c330 (pingdotgg#47011): stub addComposerFilesToDraft with new return shape in test - a0fb9d1 (pingdotgg#46974): Issues Labels/Assignee filters focus search on keyboard open - cb525f4 (pingdotgg#47029): clicking anywhere on terminal or panel tab activates it - 498a3b6 (pingdotgg#47022): syncing messages line no longer shifts whole chat - e903c85 (pingdotgg#47046): pasted messages with thread link keep picture - 6a13142 (pingdotgg#47013): limit style invalidation during right-panel resize - cd8961e (pingdotgg#47078): pasting copied file no longer takes preparing screenshot slot - 8d0fb4b (pingdotgg#47100): stop showing previous Usage period as loading after failure - 515b8c9 (pingdotgg#47114): Tab from Permissions menu keeps focus inside model picker - a681dd5 (pingdotgg#47125): middle-clicking file link no longer opens broken tab - bbde8dc (pingdotgg#44842): use plus icon for project new-thread buttons - 59af88f (pingdotgg#47105): switching threads no longer re-renders unaffected sidebar rows - 1e6e7d7 (pingdotgg#47080): Reopen Closed Tab skips workflow runs removed from history Already absorbed in HEAD (3 commits): - 20a0e5f (pingdotgg#46927), a684090 (pingdotgg#47026), c557dab (pingdotgg#47076) Skipped cleanly (3 commits): - 70224ca (pingdotgg#46712): depends on unported ui/open-popups.tsx (pingdotgg#45341) - cf475c4 (pingdotgg#47034): depends on unported ui/open-popups.tsx (pingdotgg#45341) - be3cc6c (pingdotgg#47145): depends on unported fitsWithAllowance/workGroupOverflowAllowance in TimelineWorkGroupRows.tsx





















Problem
When
rightPanel.toggle(Mod+Alt+B) orrightPanel.close(Mod+W) is pressed on Issues or Pull Requests while a menu, popover, or dialog is open, the right panel closes or reopens behind the layer instead of ignoring the shortcut; a panel-hosted dialog ("Link to thread") unmounts with the panel.Change
After resolving a matching
rightPanel.toggleorrightPanel.closeshortcut inIssuesPage.tsxandPullRequestsPage.tsx, return early whenOPEN_LAYER_SELECTORmatches an open overlay (combining the layer selectors fromuseComposerStash.tsandRightPanelTabs.tsx: Base UI popups with:is([data-open],[data-ending-style])plus[data-context-menu="true"]). Add one browser regression test per page inIssuesPage.browser.test.tsxandPullRequestsColumn.browser.test.tsx.Scope
Small web bug fix (
size:XS, 9 lines); no separate issue needed. LeavesuseChatShortcuts.tsuntouched; mobile has no keyboard right panel.Verification
Repro (Linux): Open
/issuesor/pull-requestson a GitHub-backed project → open a detail panel → open"Link to thread"or a toolbar menu → pressCtrl+Alt+B.Setup: Linux web client (T3 Browser panel, incognito, light theme, 1280x800, fresh isolated server per commit, public
pingdotgg/t3codevia read-only token, keys via Browser panel).Steps: Open panel → open dialog/menu → press
Ctrl+Alt+B.eec16a099a84)69e4032b8481)Issues dialog and panel both closed
Issues dialog and panel stayed open
PR panel closed behind Sort menu
PR panel and Sort menu stayed open
Also confirmed live on
69e4032b8481that with no layer open,Ctrl+Alt+Bstill closes the panel (with focus inside it) and reopens it on both pages.Not shown:
Ctrl+Wpress (closes the browser tab;rightPanel.closeis covered by dispatchedCtrl+Wevents in both browser tests).Issues tracker filter menu capture & automated checks on 69e4032 (base eec16a0)
eec16a099a84)69e4032b8481)Issues panel closed behind tracker menu
Issues panel and tracker menu stayed open
eec16a099a84without guard:2 failed | 8 passed(AssertionError: expected false to be trueon the panelisOpencheck).IssuesPage.browser.test.tsx,PullRequestsColumn.browser.test.tsx):10 passed.200/200 passed,0 failures.vp run check:changed eec16a099a84bd53bb58d1e9105a54c1ab4bb04d:format,lint,knip,typecheck,test (2 files),react compiler (2 files)all green.Generated with Gemini 4 Neon in T3 Code Nightly