Repository navigation
Agent: show actual models in usage charts - #1625
Merged
Merged
Conversation
Select named model series from usage in the displayed range and metric. Keep overflow models inspectable and share the active palette across usage views. Scope-risk: Usage aggregation and presentation in native and web clients; no billing API or catalog changes. Not-tested: Full native workspace test suite and live-account billing integration. Focused native usage tests, native CI lint, and the full web test suite passed.
Contributor
|
Maple development preview: https://69238bff.maple-ca8.pages.dev Commit: Uses development API, billing, flags and PCR configuration. Cloudflare Access applies. |
Reuse the existing tuple-ID pattern for model and pricing labels while preserving their accessible names. Not-tested: Full local CI is partial: 65 runtime/store tests fail on this macOS host. App tests and ci-extra pass.
matthewrball
marked this pull request as ready for review
November 17, 2026 06:50
Sort borrowed model IDs before building tooltip labels, avoiding a stored ID copy and the extra overflow structure. Preserve aggregation and deterministic ordering. Checked cargo fmt and all 18 usage tests.
A model slot past the palette, or a model series without a label, now falls back to the More models color and name. Neither can happen today; this removes the two panics from the render path. Checked cargo fmt, clippy for maple-agent-app and the 24 usage tests. Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Usage history can hide most of an account's activity in “More models,” making it difficult to see where credits, requests, and tokens are going.
Native, dark and light:
Web breakdown, dark and light
Notes
just cipassed before the allocation-only cleanup; the cleanup passed formatting and all 18 usage tests.