Skip to content

Add emoji to usage pace - #19

Merged
ygpark80 merged 1 commit into
mainfrom
feat/usage-emojis
Aug 10, 2026
Merged

Add emoji to usage pace#19
ygpark80 merged 1 commit into
mainfrom
feat/usage-emojis

Conversation

@ygpark80

@ygpark80 ygpark80 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

User description

Changes

  • add semantic emoji to healthy, close, projected exhaustion, reached-limit, and early usage states
  • account for emoji display width so usage table borders remain aligned

Testing

  • go test -mod=vendor -race ./...
  • go vet -mod=vendor ./...
  • Linux amd64 and macOS arm64 cross-builds
  • locally installed dev build verified with live prism usage output
  • local output approved before release

CodeAnt-AI Description

Add visual status indicators to usage pace output

What Changed

  • Usage pace statuses now include clear emojis for healthy usage, approaching limits, projected exhaustion, reached limits, and insufficient data.
  • Usage tables account for emoji width so columns and borders remain aligned.

Impact

✅ Faster usage status recognition
✅ Clearer quota warnings
✅ Aligned usage tables

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Summary by CodeRabbit

  • Style

    • Added emoji indicators to usage pacing messages for healthy usage, warnings, approaching limits, and reached limits.
    • Updated table formatting to preserve alignment when displaying status icons.
  • Tests

    • Updated usage output expectations to reflect the new indicators.
    • Added coverage for correct display-width handling of emoji characters.

@codeant-ai

codeant-ai Bot commented Aug 10, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 737751a Aug 10, 2026 · 08:24 08:27

@codeant-ai

codeant-ai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 647f93b9-997b-4974-9410-ee276c54a4ed

📥 Commits

Reviewing files that changed from the base of the PR and between aeef5b0 and 737751a.

📒 Files selected for processing (2)
  • internal/cli/run.go
  • internal/cli/run_test.go

📝 Walkthrough

Walkthrough

Usage pacing output now includes emoji indicators for each status. Table width and padding calculations account for the terminal width of these emojis. Tests update expected output and verify emoji display widths.

Changes

Usage output

Layer / File(s) Summary
Usage status indicators
internal/cli/run.go, internal/cli/run_test.go
Usage statuses now include emojis for limit, early, healthy, run-out, and close-limit conditions. Tests update the expected status output.
Display-aware table alignment
internal/cli/run.go, internal/cli/run_test.go
Table width and cell padding use display-aware widths for emoji-prefixed values. Tests cover table formatting and emoji widths.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • circlesac/prism-cli#13: Adds the usage pace output that this change extends with emoji statuses and display-width handling.
🚥 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 summarizes the main change: adding semantic emojis to usage pace output.
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 feat/usage-emojis

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.

@codeant-ai codeant-ai Bot added the size:M This PR changes 30-99 lines, ignoring generated files label Aug 10, 2026
@ygpark80
ygpark80 merged commit 27306fa into main Aug 10, 2026
1 check passed
@ygpark80
ygpark80 deleted the feat/usage-emojis branch August 10, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant