Repository navigation
fix(console): Usage Cost tab — all-model quota first, DeepSeek CNY demoted - #390
Merged
Merged
Conversation
Primary KPIs/chart/table use subscription credits and tokens for every model. DeepSeek list-price CNY stays available as a collapsed optional estimate (chart, priced rows, price catalog) so it no longer dominates.
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.
Why
Follow-up to merged #387 (Usage Cost from external #336). The Cost experience still felt DeepSeek-centric (CNY hero KPI, list-price stacked chart, cost columns dominating the by-model table). User ask: make it all-models, with subscription credits + tokens as the primary visual.
Do not merge until approved.
What changed
Primary (every model equally)
per_model_credits/per_model_tokensfor priced and unpriced modelsDemoted (optional, collapsed by default)
per_modelCNY series still available for this sectionOut of scope (untouched)
Test plan
go test ./internal/accounts/ ./internal/console/ ./internal/store/npm run lint+npm run sync(tsc + vite + embed)Screenshots
None captured in this agent run (no live console session).