Skip to content

style(ui): improve terminal output with colors and better formatting#9

Merged
nolanneff merged 1 commit intomainfrom
style/ui-terminal-formatting
Jan 25, 2026
Merged

style(ui): improve terminal output with colors and better formatting#9
nolanneff merged 1 commit intomainfrom
style/ui-terminal-formatting

Conversation

@nolanneff
Copy link
Copy Markdown
Owner

@nolanneff nolanneff commented Jan 25, 2026

Summary

Improved the CLI user interface by adding colors, symbols, and more structured output. This enhances readability and provides clearer visual feedback for common git operations.

Changes

Added

  • Green checkmarks, yellow warnings, and red error symbols to terminal output
  • Cyan highlighting for progress spinners and key configuration labels
  • Bold and dimmed text styles to improve visual hierarchy in menus
  • Bulleted lists for file changes and configuration displays

Fixed

  • Improved the PR preview rendering when editing content in an external editor

Changed

  • Replaced plain text prompts with structured menus and action keys
  • Updated the configuration view to be more readable with color-coded status values
  • Standardized progress spinner templates with consistent styling

Notes

  • Integrated the console crate to handle terminal styling and ANSI colors
  • CLI prompts now use structured menus instead of single-line prompt strings

Testing

  • Verified config show command displays the new colored layout
  • Tested commit and PR workflows to ensure spinner and success messages appear correctly
  • Confirmed manual branch selection and editing functionality maintains the new styling

Summary by CodeRabbit

  • Style
    • Enhanced interface styling with colored output and visual indicators (✓, ✗, →).
    • Applied color-coded styling to status messages, spinners, and progress indicators.
    • Updated prompts with action menus and styled labels.
    • Improved configuration and status displays with colored fields, bold headers, and formatted indicators.

✏️ Tip: You can customize this high-level summary in your review settings.

- Add console styling to CLI output and status messages
- Implement consistent icons for success, warning, and error states
- Restructure configuration display with bold headers and colored values
- Refactor interactive menus to be more readable with cyan keys
- Update progress spinners with cyan color and descriptive text
- Improve PR and branch prompt layouts for better clarity
- Enhance editor-return feedback by reprinting updated content previews
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 25, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The changes add styled console output across four source files, replacing plain text messages with colored text, icons, and updated spinner templates. No functional changes or public API modifications are introduced.

Changes

Cohort / File(s) Change Summary
Spinner and progress message styling
src/git.rs, src/main.rs, src/pr.rs
Updated spinner templates to include cyan color prefixes and emoji icons (✓, ✗, →, etc.). Replaced plain-text progress messages with styled variants. Added console::style imports.
Interactive prompt and menu styling
src/ui.rs
Introduced styled output for all user prompts with colored headers, action menus, and dimmed arrow indicators. Added explicit action listings (numbered/lettered choices) and "Choice:" prompt labels with cyan styling.
Configuration and status output styling
src/main.rs
Styled config display headers, colored boolean values, and status indicators (green checkmarks for success, red crosses for errors, yellow warnings). Replaced hyphen-prefixed plain text with styled icon-based messages.
Error and info message styling
src/pr.rs
Replaced plain text error/informational messages for API key, branch restrictions, and commit steps with styled output using colored icons and guidance arrows.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Possibly related PRs

Poem

🐰 With colors bright and icons clean,
The output's now the best I've seen!
Checkmarks green and spinners cyan,
Our prompts are styled—oh what a plan! ✨
The console shines, the user smiles!

✨ Finishing touches
  • 📝 Generate docstrings

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 and usage tips.

@nolanneff nolanneff merged commit d015564 into main Jan 25, 2026
1 check was pending
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