Skip to content

[Improve] Show Cost Analytics tokens as a trend line - #2448

Merged
brunobergher merged 2 commits into
developfrom
improve/cost-analytics-token-line-0ak3c2lbs71kh
Sep 10, 2026
Merged

[Improve] Show Cost Analytics tokens as a trend line#2448
brunobergher merged 2 commits into
developfrom
improve/cost-analytics-token-line-0ak3c2lbs71kh

Conversation

@roomote-roomote

@roomote-roomote roomote-roomote Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

​Created by Roomote. Follow up by mentioning @roomote-roomote, in the web UI, or in Slack.

What changed

  • Replaced the grouped token bar stacks in Cost Analytics with one aggregate token trend line for each selected time bucket.
  • Kept grouped cost bars and their existing drilldowns unchanged.
  • Preserved per-group token counts and zero-cost token usage in the shared tooltip breakdown.
  • Increased mobile axis space and used a clear continuous foreground-colored line so both USD and token scales remain readable without implying an error state.

Why this change was made

Showing cost and token breakdowns as adjacent stacked bars made the chart visually dense. A single token trend line makes total usage easier to follow while the tooltip retains the detailed relationship between groups, spend, and tokens.

Impact

Cost Analytics presents a clearer cost-versus-volume comparison without changing its table, filtering, grouping, token accounting, or cost drilldown behavior.

Screenshots

Cost Analytics token line uses the neutral theme foreground color

@roomote-community

roomote-community Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

Reviewed fdd3d96

@roomote-roomote
roomote-roomote Bot marked this pull request as ready for review September 10, 2026 08:56
@roomote-roomote

roomote-roomote Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

Updated the aggregate token line and points to use the theme foreground color in fdd3d96, preserving grouped cost and tooltip breakdown colors.

@brunobergher
brunobergher merged commit 7e39d3b into develop Sep 10, 2026
17 checks passed
@brunobergher
brunobergher deleted the improve/cost-analytics-token-line-0ak3c2lbs71kh branch September 10, 2026 09:32
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.

2 participants