Skip to content

style: compact token usage text lines#211

Merged
robinebers merged 1 commit into
mainfrom
style/compact-token-usage-lines
Feb 23, 2026
Merged

style: compact token usage text lines#211
robinebers merged 1 commit into
mainfrom
style/compact-token-usage-lines

Conversation

@davidarny
Copy link
Copy Markdown
Collaborator

@davidarny davidarny commented Feb 22, 2026

Summary

Tightens up the Today / Yesterday / Last 30 Days token usage rows:

  • Smaller font size (text-xs instead of text-sm)
  • Reduced row height (18px instead of 22px)
  • Consecutive text lines grouped with 4px gap instead of the 16px gap used between progress bars

Screenshots

Before

before

After

after

Summary by cubic

Compacts Today/Yesterday/Last 30 Days rows to show more with less vertical space. Text is text-xs with 18px row height and 10px subtitles; consecutive text lines use a 4px gap while others keep standard spacing, with tests for the grouping.

Written for commit dc765cc. Summary will update on new commits.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@davidarny
Copy link
Copy Markdown
Collaborator Author

Just a little UI polishing 💅

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR compacts the token usage text rows (Today, Yesterday, Last 30 Days) by reducing font sizes and spacing. The changes group consecutive text-type metric lines together with tighter spacing (4px) while maintaining the standard spacing (16px) between other line types.

Changes:

  • Added groupLinesByType() function to group consecutive text lines
  • Reduced text line font size from text-sm to text-xs and height from 22px to 18px
  • Reduced subtitle font size from text-xs to text-[10px]
  • Wrapped grouped text lines in space-y-1 container for 4px gap

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/provider-card.tsx
Comment thread src/components/provider-card.tsx Outdated
@davidarny davidarny force-pushed the style/compact-token-usage-lines branch from f022539 to dc765cc Compare February 22, 2026 12:15
Copy link
Copy Markdown
Collaborator

@validatedev validatedev left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Owner

@robinebers robinebers left a comment

Choose a reason for hiding this comment

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

I like the output, but I am not sure if this is the best way to do it. I think in the near future maybe we can have something like usage stats or tokens stats export for the plugins, but merging this for now because it looks much nicer than what we have. Thanks a lot!

@robinebers robinebers merged commit 0b63ade into main Feb 23, 2026
2 checks passed
@robinebers robinebers deleted the style/compact-token-usage-lines branch February 23, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants