fix(site/src/pages/AIBridgePage): align token badges with neighboring badge sizing by tracyjohnsonux · Pull Request #28477 · coder/coder · GitHub
Skip to content

fix(site/src/pages/AIBridgePage): align token badges with neighboring badge sizing - #28477

Merged
tracyjohnsonux merged 2 commits into
mainfrom
tracyjohnsonux/token-badges-text-sm
Aug 25, 2026
Merged

fix(site/src/pages/AIBridgePage): align token badges with neighboring badge sizing#28477
tracyjohnsonux merged 2 commits into
mainfrom
tracyjohnsonux/token-badges-text-sm

Conversation

@tracyjohnsonux

@tracyjohnsonux tracyjohnsonux commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The in/out token pills on the AI Gateway sessions pages looked out of place next to the provider/client/model badges: they used Badge size="sm" while their neighbors use the default md, and their arrow icons were size-icon-lg (24px) — taller than the badge itself, inflating the pill height.

Note

The underlying font-size problem (Badge sm = 10px text-2xs) is fixed globally in #28517. This PR handles what that one doesn't: the token pills' size variant, icon sizing, and API cleanup.

Changes

  • Token pills use Badge's default md size, matching the provider/client/model badges next to them.
  • Arrow icons drop from size-icon-lg (24px) to size-icon-xs (14px), the same icon size the neighboring badges use, with gap-0.5 between icon and count.
  • Removed the unused size prop from TokenBadges — no call site ever passed one — and dropped the now-meaningless SizeXs/SizeMd stories.

Affects every TokenBadges consumer: the sessions list, the session summary card, and the timeline prompt/tool-call tables.

🤖 Generated by Coder Agents on behalf of @tracyjohnsonux

@tracyjohnsonux tracyjohnsonux changed the title fix(site): render AI session token badges at text-sm fix(site): match AI session token badges to provider/client badge sizing Aug 24, 2026
@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

@tracyjohnsonux tracyjohnsonux changed the title fix(site): match AI session token badges to provider/client badge sizing fix(site/src/pages/AIBridgePage): align token badges with neighboring badge sizing Aug 24, 2026
@tracyjohnsonux
tracyjohnsonux merged commit e98e2b9 into main Aug 25, 2026
34 checks passed
@tracyjohnsonux
tracyjohnsonux deleted the tracyjohnsonux/token-badges-text-sm branch August 25, 2026 07:21
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants