fix(ui): add keyboard-resizable drawers with Escape handling and focus restoration. - #16
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (9)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
🔇 Additional comments (9)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe toolbar now restores focus after drawer interactions, closes drawers with ChangesToolbar focus and Escape handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This feature adds keyboard-resizable drawers with Escape handling and focus restoration; no actionable merge-blocking risk remains based on the supplied evidence. Sequence Diagram(s)sequenceDiagram
participant DebugContext as resources/src/core/debug.js
participant FocusUtilities as resources/src/toolbar/focus.js
participant ParentToolbar as YiiDebugToolbar
participant Drawer as toolbar drawer
DebugContext->>FocusUtilities: requestParentToolbarDrawerClose(event, browserWindow, dropdownWasOpen)
FocusUtilities->>ParentToolbar: postMessage drawer-close request
ParentToolbar->>FocusUtilities: validate close-drawer message
FocusUtilities-->>ParentToolbar: accepted message
ParentToolbar->>Drawer: close drawer and restore focus
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16 +/- ##
=========================================
Coverage 99.93% 99.93%
Complexity 1498 1498
=========================================
Files 130 130
Lines 5853 5853
=========================================
Hits 5849 5849
Misses 4 4 ☔ View full report in Codecov by Harness. |
Pull Request