Skip to content

fix(usage): 显示缓存 Token 明细#3347

Merged
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
SavitarC:fix/usage-cache-token-tooltip
Jun 21, 2026
Merged

fix(usage): 显示缓存 Token 明细#3347
Wei-Shaw merged 1 commit into
Wei-Shaw:mainfrom
SavitarC:fix/usage-cache-token-tooltip

Conversation

@SavitarC

Copy link
Copy Markdown
Contributor

Summary

  • Extend admin usage stats response typing with cache creation/read token fields.
  • Show cache tokens in the Total Tokens card alongside input/output tokens.
  • Add a cache token tooltip with creation/read breakdown values.
  • Add English and Chinese locale entries for the cache token labels.
  • Add a component test covering cache total and breakdown rendering.

Validation

  • npm --prefix frontend run test:run -- src/components/admin/usage/__tests__/UsageStatsCards.spec.ts
  • npm --prefix frontend run typecheck
  • git diff --check origin/main...HEAD

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@SavitarC

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jun 18, 2026
@Wei-Shaw Wei-Shaw merged commit 92ce5bf into Wei-Shaw:main Jun 21, 2026
3 of 4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants