Repository navigation
fix(ui): enhance UI component interaction and accessibility - #122391
ZhouJian430 wants to merge 4 commits into
Conversation
- Add ArrowLeft/ArrowRight keyboard navigation for cycling through theme modes - Implement roving tabindex pattern for better accessibility - Extract getNextMode helper for clean mode cycling logic - Pre-compute icons in options array for cleaner render function This improves accessibility by allowing keyboard-only users to switch between system, light, and dark theme modes using arrow keys, following standard radio group interaction patterns.
- Add visual handle with drag direction indicator icon - Expand hit testing area from -4px to -8px for easier grabbing - Add keyboard hint overlay showing arrow key shortcuts (← →) - Provide haptic feedback on mobile devices for drag and keyboard events - Add screen reader announcements for resize direction and percentage - Improve hover and drag state visual feedback with color transitions - Add comprehensive test coverage for new interaction features Fixes interaction discoverability and accessibility for split view resizing.
- Replace ad-hoc dataset flags with typed CopyButtonState machine - Add proper timeout cleanup to prevent leaks when buttons unmount - Handle clipboard errors with try-catch for better resilience - Add keyboard support (Enter/Space) for accessibility - Reset button state on mouseleave for faster feedback dismissal - Check isConnected before manipulating detached button elements
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThe PR adds divider hints, vibration and resize announcements, arrow-key theme selection, and a new clipboard feedback state machine to the Control UI. Review scores
Merge readiness⛔ Blocked before merge - 10 items remain Useful interaction improvements remain distinct from merged work, but four source-proven defects and absent browser proof prevent a merge-ready verdict. Check activity on September 27 also prevents stalled or abandoned closure. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherControl UI components turn browser pointer and keyboard input into split-view resizing, theme changes, and clipboard writes. Their visual and accessible feedback tells users whether those interactions succeeded. flowchart TD
A[Pointer and keyboard input] --> B[Control UI components]
B --> C[Resize split view]
B --> D[Select theme]
B --> E[Write clipboard]
C --> F[Visual and accessible feedback]
D --> F
E --> F
Technical reviewBest possible solution: Apply the remaining accessibility affordances through the current component owners, with accurate localized announcements and reliable clipboard feedback. Do we have a high-confidence way to reproduce the issue? Yes for the introduced defects: source establishes the missing reset state, unclamped announcement, misplaced hiding style and incorrect icon type. No browser reproduction or test execution was performed. Is this the best way to solve the issue? No, this branch is not yet the best fix: its feedback implementation is defective and predates current component contracts; a focused refresh should reuse those owners and prove the remaining affordances. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6cae5628b09a. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +299, Tests +93. Total +392 across 4 files. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 3, 2026, 1:25 PM ET / 17:25 UTC. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Summary
This PR bundles interaction and accessibility improvements for three Control UI components:
Changes
1. ResizableDivider - Enhanced interaction experience
-4pxto-8pxfor easier grabbing2. ThemeModeToggle - Keyboard navigation
3. CopyButton - Improved interaction state management
Why This Change Was Made
These improvements address UI interaction discoverability and accessibility:
User Impact
Evidence
ui/src/components/resizable-divider.ts: 210 lines addedui/src/components/resizable-divider.test.ts: 97 lines added (comprehensive test coverage)ui/src/components/theme-mode-toggle.ts: 67 lines modifiedui/src/components/copy-button.ts: 128 lines modifiedAll changes follow LitElement best practices and maintain backward compatibility.
🤖 Generated with Claude Code