feat: add ratatui TUI with interactive process monitor (ISSUE-035)#57
Open
feat: add ratatui TUI with interactive process monitor (ISSUE-035)#57
Conversation
Implements Phase 1-3 of ISSUE-035: - Add ratatui/crossterm/tokio dependencies for TUI infrastructure - Create 'runbox monitor' command for interactive process monitoring - Real-time auto-refresh with configurable tick rate (default: 2s) - Keyboard navigation (j/k or arrows) through process list - Enter to view logs, 's' to stop, 'a' to attach (tmux/zellij) - Interactive log viewer with scrollback, search, and follow mode - Color-coded status display (green=running, blue=done, red=failed) - Graceful terminal cleanup on exit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
runbox monitorcommand for interactive process monitoringChanges
New Dependencies (crates/runbox-cli/Cargo.toml)
New TUI Module (crates/runbox-cli/src/tui/)
mod.rs- Module exportsapp.rs- Main application state and event loopevent.rs- Keyboard/tick event handlingui.rs- Common UI components (colors, styles, helpers)views/monitor.rs- Process monitor viewviews/logs.rs- Log viewer viewNew Command
runbox monitor [--tick-rate <secs>]- Interactive process monitorFeatures Implemented
Process Monitor (
runbox monitor)Interactive Log Viewer
/(vim-style) with n/N for next/prev matchTesting
cargo build --package runbox-clisucceedscargo test --package runbox-clipassesrunbox monitor --helpdisplays correct usageRelated Issue
ISSUE-035: Ratatui TUI for enhanced CLI experience
Future Phases (not in this PR)
runbox list --tui)