Skip to content

fix(usage): show model and provider for single-item groups - #3426

Open
dajinglingpake wants to merge 1 commit into
decolua:masterfrom
dajinglingpake:fix/usage-stats-single-model
Open

dajinglingpake wants to merge 1 commit into
decolua:masterfrom
dajinglingpake:fix/usage-stats-single-model

Conversation

@dajinglingpake

@dajinglingpake dajinglingpake commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Usage summary rows always show — for model/provider fields. When a group contains one model/provider record, no detail row is rendered because detail rows are only available for groups with more than one record, hiding the only model/provider used by that group.

Fix

  • Render the unique record's model and provider in the summary row for single-record groups.
  • Keep summary placeholders and expandable detail rows for groups with multiple records.
  • Apply the behavior consistently to the model, account, API key, and endpoint usage tables.
  • Align account summary/detail cells with the table headers.

Validation

  • npm run build
  • npx eslint src/shared/components/UsageStats.js

@dajinglingpake dajinglingpake changed the title fix(usage): show model and provider for single-model groups fix(usage): show model and provider for single-item groups Aug 20, 2026
afandiaziz added a commit to afandiaziz/9router that referenced this pull request Aug 22, 2026
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.

1 participant