-
Notifications
You must be signed in to change notification settings - Fork 0
add mouse support #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
af461f2 to
82b7e0d
Compare
4e5da31 to
a49e2d6
Compare
|
Failed to generate code suggestions for PR |
a49e2d6 to
03936ee
Compare
|
Failed to generate code suggestions for PR |
03936ee to
8c5c8ad
Compare
|
Failed to generate code suggestions for PR |
8c5c8ad to
fa843cc
Compare
|
Failed to generate code suggestions for PR |
fa843cc to
35cb826
Compare
|
Failed to generate code suggestions for PR |
35cb826 to
9bbbabf
Compare
|
Failed to generate code suggestions for PR |
9bbbabf to
00d455b
Compare
PR Reviewer Guide 🔍(Review updated until commit 00d455b)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 00d455b
Previous suggestionsSuggestions up to commit 00d455b
|
|
Persistent review updated to latest commit 00d455b |
| let adapter = CrosstermTerminalAdapter::new()?; | ||
| let bridge = TerminalBridge::init(adapter).expect("Cannot initialize terminal"); | ||
| let mut adapter = CrosstermTerminalAdapter::new()?; | ||
| adapter.enable_mouse_capture()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using ? here might mask specific terminal initialization failures; consider logging or handling the error more explicitly.
| adapter.enable_mouse_capture()?; | |
| let mut adapter = CrosstermTerminalAdapter::new()?; |
#ai-review-inline
| let mut adapter = CrosstermTerminalAdapter::new()?; | ||
| adapter.enable_mouse_capture()?; | ||
| let mut bridge = TerminalBridge::init(adapter).expect("Cannot initialize terminal"); | ||
| bridge.enable_mouse_capture()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding mouse capture to the terminal bridge enhances user interaction capabilities in the TUI.
| bridge.enable_mouse_capture()?; | |
| bridge.enable_mouse_capture()?; |
#ai-review-inline
| let bridge = TerminalBridge::init(adapter).expect("Cannot initialize terminal"); | ||
| let mut adapter = CrosstermTerminalAdapter::new()?; | ||
| adapter.enable_mouse_capture()?; | ||
| let mut bridge = TerminalBridge::init(adapter).expect("Cannot initialize terminal"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The explicit call to enable_mouse_capture() after initialization ensures proper mouse support for TUI interactions.
| let mut bridge = TerminalBridge::init(adapter).expect("Cannot initialize terminal"); | |
| adapter.enable_mouse_capture()?; |
#ai-review-inline
| //we initialize the terminal early so the panic handler that restores the terminal is correctly set up | ||
| let adapter = CrosstermTerminalAdapter::new()?; | ||
| let bridge = TerminalBridge::init(adapter).expect("Cannot initialize terminal"); | ||
| let mut adapter = CrosstermTerminalAdapter::new()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding error handling for enable_mouse_capture() instead of using ? which may hide specific terminal initialization issues.
| let mut adapter = CrosstermTerminalAdapter::new()?; | |
| let adapter = CrosstermTerminalAdapter::new()?; |
#ai-review-inline
PR Type
Enhancement
Description
Add mouse support to UI components
Enable mouse capture in terminal
Implement mouse interactions for context menus and lists
Enhance file tree navigation with mouse events
Diagram Walkthrough
File Walkthrough
context_menu.rs
Add mouse support to context menucoman/src/components/context_menu.rs
file_tree.rs
Add mouse support to file treecoman/src/components/file_tree.rs
system_select_popup.rs
Add mouse support to system select popupcoman/src/components/system_select_popup.rs
workload_list.rs
Add mouse support to workload listcoman/src/components/workload_list.rs
main.rs
Enable mouse capture in terminalcoman/src/main.rs