refactor: rework the keybinding system for TUI - #325
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 26 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. WalkthroughThe change adds centralized key-action definitions and routing. The TUI delegates application key events to a keyboard module. Popup, event-list, breakpoint, hit-manager, terminal, and query handlers use the shared router. ChangesCentralized TUI key routing
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Refactor Sequence Diagram(s)sequenceDiagram
participant App
participant KeyRouter
participant QueryBuilder
participant EventList
participant ActionChannel
App->>KeyRouter: match key actions by priority
KeyRouter->>QueryBuilder: route query actions
KeyRouter->>EventList: route event-list actions
QueryBuilder->>ActionChannel: send query action
EventList->>ActionChannel: send event action
Merge Risk: ⚪ Minimal · up to The refactor preserves existing key handling behavior and is ready to merge after normal checks. 🚥 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 |
b8cb3b9 to
840fd18
Compare
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #325 +/- ##
==========================================
+ Coverage 82.62% 82.93% +0.30%
==========================================
Files 84 85 +1
Lines 21577 21676 +99
==========================================
+ Hits 17829 17976 +147
+ Misses 3748 3700 -48 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
840fd18 to
a4d9217
Compare
Separate concrete actions from keyboard keys.
a4d9217 to
a7db981
Compare
Separate concrete actions from keyboard keys.
Summary by CodeRabbit
Usability
Bug Fixes
Refactor