Repository navigation
Refresh daily usage charts and keep unpriced token days visible - #1062
Conversation
Re-authored from #1039. The card re-reads chart data when the published usage values change or the local day rolls over. A refresh that only moves updatedAt no longer starts another transcript scan. Days with tokens but no known price draw a dashed bar labelled Unpriced instead of an empty one. Co-authored-by: ZGHJP <43691496+ZGHJP@users.noreply.github.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
Local CI for head |
|
Self-review for head |
Re-authored from #1039 by @ZGHJP (credited with
Co-authored-by). Supersedes #1039.Summary
cost.used) instead ofupdatedAt. A refresh that only movesupdatedAtno longer starts another transcript scan. This addresses the CodeRabbit finding on Keep daily usage charts current and retain unpriced token days #1039.estimateNote: ""instead ofnull).Commands run (Windows host,
apps/desktop-tauri)pnpm exec vitest run --maxWorkers=4 src/components/MenuCard.chartRefresh.test.tsx src/components/card/InlineDashboard.test.tsx src/lib: passedpnpm exec tsc --noEmit -p .: passedoxlint: 0 errorsNot run locally: the full Vitest suite; CircleCI runs it. CUA proof not captured for the dashed Unpriced bar.