Skip to content

Improve TUI - #11

Merged
imsudiproy merged 2 commits into
masterfrom
dev
Aug 12, 2026
Merged

Improve TUI#11
imsudiproy merged 2 commits into
masterfrom
dev

Conversation

@imsudiproy

@imsudiproy imsudiproy commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Redesigned the terminal dashboard with themed colors, rounded panels, and a clearer two-line header.
    • Added dedicated metric cards for CPU, memory, disk I/O, and network activity.
    • Improved chart labels and visual styling for CPU and memory history.
  • Improvements

    • Updated footer and panel presentation for a more consistent, readable interface.
    • Released version 0.1.1.

@imsudiproy imsudiproy self-assigned this Aug 12, 2026
@imsudiproy imsudiproy added the enhancement New feature or request label Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@imsudiproy, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 51 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a91794c5-9107-4d6c-854d-e26a07b064c0

📥 Commits

Reviewing files that changed from the base of the PR and between 55e2d02 and 0ecbf97.

📒 Files selected for processing (1)
  • src/output/tui.rs
📝 Walkthrough

Walkthrough

The TUI now uses a themed dashboard with four metric cards, reusable rendering helpers, updated controls, and restyled CPU and memory charts. The package version changes from 0.1.0 to 0.1.1.

Changes

TUI dashboard redesign

Layer / File(s) Summary
Dashboard layout and metric cards
src/output/tui.rs
The dashboard adds themed spacing, a two-line header, four metric columns, and dedicated disk and network cards.
Reusable dashboard rendering
src/output/tui.rs
New helpers render the header, metric cards, panel blocks, conditional gauges, sparklines, and keyboard footer.
Chart and panel styling
src/output/tui.rs
CPU and memory charts use the new theme, borders, axes, labels, and proportions.

Package release metadata

Layer / File(s) Summary
Package version update
Cargo.toml
The package version changes to 0.1.1.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • imsudiproy/uniproc#2: The current change substantially redesigns the TUI rendering introduced in that PR.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: redesigning and improving the TUI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/output/tui.rs`:
- Around line 333-348: Update the metric rendering flow in src/output/tui.rs to
use an explicit gauge indicator such as Option<f32> instead of branching solely
on ratio > 0.0. Pass Some(ratio) for CPU and memory so zero values render
through Gauge, and pass None for disk and network so they retain the Sparkline
placeholder behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7e7cf567-cacd-4da2-8270-f532204bb336

📥 Commits

Reviewing files that changed from the base of the PR and between 1829e10 and 55e2d02.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • Cargo.toml
  • src/output/tui.rs

Comment thread src/output/tui.rs Outdated
@imsudiproy
imsudiproy merged commit 016a05b into master Aug 12, 2026
6 checks passed
@imsudiproy
imsudiproy deleted the dev branch August 12, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant