Skip to content

refactor: render the CLI through cliclack with themed cards and live job tails#4

Merged
cs50victor merged 1 commit into
mainfrom
refactor/prettier_cli
May 30, 2026
Merged

refactor: render the CLI through cliclack with themed cards and live job tails#4
cs50victor merged 1 commit into
mainfrom
refactor/prettier_cli

Conversation

@cs50victor

Copy link
Copy Markdown
Owner
  • Replace the hand-rolled println/read_char rendering with cliclack (clack-style gutter UI); adds cliclack 0.5.4, built on the console crate already in use.
  • Report is now aligned label rows with a severity-colored disk figure and present/missing tool markers.
  • Each suggestion is a category-themed card (disk, speed, or both) showing the why and a clean additive diff, with an Accept/Skip/Quit select.
  • Installs and sweeps stream into a live tail window that folds to a one-line result on success; the captured log replays on failure.
  • Drop the now-unused id field from Suggestion and its constructors; new src/ui.rs holds the theming and helpers.

Validation: fmt + clippy clean, tests 3/3; verified the full flow (cards, select, apply with backup, success collapse, failure replay) in a real PTY.

Note: the UI now writes to stderr (cliclack), so frd report > file no longer captures the report on stdout.

@cs50victor cs50victor merged commit ac927d5 into main May 30, 2026
1 check passed
@cs50victor cs50victor deleted the refactor/prettier_cli branch May 30, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant