Repository navigation
fix(explorer): handle pointer focus and index copy - #1374
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Reviewed by claude-sonnet-5.5 · Input: 248 · Output: 2K · Cached: 152.5K Review guidance: REVIEW.md from base branch |
1-DARK
left a comment
There was a problem hiding this comment.
Thanks @CreedTech for the quick follow-up on the #1077 review!
I verified the changes locally. The new pointer-focus and index-copy tests fail on main (3 of 4, as reported) and pass on this branch. Typecheck, ESLint, Prettier, and the full web-ui test suite (8,073 tests) all pass.
The implementation looks good, and using copyTextToClipboard with success and error feedback for the index "Copy Name" action is consistent with the existing tables and views implementation.
No changes are required. The existing aria-haspopup="menu" attribute was already present on main.
Thanks for addressing the review feedback. Happy to approve as is!
debba
left a comment
There was a problem hiding this comment.
Thanks for fixing both the index name copy action and pointer focus in submenus. Using the shared clipboard helper and reporting copy failures should make that action more dependable. I haven't found an obvious blocker in the diff. I'll run e2e tests for further verification of pointer and keyboard behavior, then merge if those pass.
|
I tried this in the desktop app against SQLite: Copy Name put the index name in the system clipboard, pointer leave closed the submenu, and keyboard navigation kept it open and returned focus with ArrowLeft. The 86 targeted tests pass; the full check command hits only the theme test failures also reproduced on main. This is ready to merge. |
Change
Follow up on the nonblocking review of #1077: #1077 (review).
A submenu opened by clicking a focusable trigger now closes after the pointer leaves, even when the trigger retains focus. Keyboard navigation keeps the submenu open; keyboard input switches focus retention back on, and leaving the row resets it. The index context menu also uses the shared clipboard helper and reports success or failure, matching table/view copy feedback.
The requested
aria-haspopup="menu"was already added upstream, so this PR retains it.Validation
pnpm typecheck: passed.git diff --check: passed.The focus regression explicitly holds DOM focus to reproduce the behavior called out in review. I have not run a Windows/WebView2 desktop session or the full repository test suite.
Implementation and validation were assisted by Codex.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.