Skip to content

fix(model-usage): keep the daily chart tooltip from spilling off the card - #417

Closed
Yuyz0112 wants to merge 1 commit into
mainfrom
fix/neu-738-usage-tooltip-overflow
Closed

Yuyz0112 wants to merge 1 commit into
mainfrom
fix/neu-738-usage-tooltip-overflow

Conversation

@Yuyz0112

@Yuyz0112 Yuyz0112 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The daily-chart tooltip on the Model Usage page rendered one row per API key. With ~15 keys active on a day it grew to roughly twice the height of the 240px chart and overflowed the card (NEU-738).

The tooltip now sorts its rows by tokens descending, shows the eight biggest contributors, and collapses the remainder into a single +N more line carrying their combined total. The footer total still covers every series, and the complete per-key breakdown is unchanged in the detail table below — which still narrows to a single day when that day is clicked in the chart.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pages/model-usage/list.tsx 0.00% 6 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

…card

With many API keys active on a single day the tooltip grew one row per key,
reaching roughly twice the height of the 240px chart and overflowing the card.

Sort the rows by tokens descending, show the eight biggest contributors, and
collapse the rest into a single "+N more" line carrying their combined total.
The complete per-key breakdown is unchanged in the detail table below, which
still narrows to a day when that day is clicked in the chart.
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