feat: Improved the UI for the CLI interface#10
Merged
PrasanthYT merged 1 commit intomainfrom Mar 2, 2026
Merged
Conversation
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.
Overview
This PR introduces a full interactive Terminal UI (TUI) mode for Scanr and refactors the CLI startup behavior to support a dashboard-first experience.
Scanr now launches into an interactive interface by default, shifting from command-first execution to an operational workflow model.
This enhances usability while preserving core functionality and CI compatibility.
Startup Behavior Changes
Previous Behavior
scanrauto-triggered scan execution.New Behavior
scanrlaunches TUI immediately in empty state.Ctrl + Sstarts scan in background.This improves UX while maintaining deterministic behavior.
New TUI Module
Added
tui.rsResponsibilities
Terminal state is restored cleanly after exit.
CLI Wiring Update
Modified
main.rsChanges:
scanr(no subcommand) launches TUINonebranch invokes:This keeps CLI and interactive mode unified.
Visual Cleanup & UX Improvements
Refined layout to reduce congestion and improve readability:
Narrowed left panel width
Shortened header hint text
Removed focus noise in header
Simplified panel titles
Reduced table column widths and labels:
Cleaner empty-state messaging
Improves clarity and reduces visual overload.
Dependency Updates
Updated
Cargo.toml:Added:
ratatuicrosstermThese power rendering and terminal interaction.
Preserved Core Behavior
All existing functionality remains intact:
q→ quitNo regression in core logic.
Impact
Validation
cargo build --workspace --releasepassesWhy This Matters
This change transitions Scanr from:
To:
It improves real-world usability without sacrificing automation readiness.