Repository navigation
<
8000
a hidden="" id="code-view-repo-link" href="/InfinityPacer/meterleaf" data-discover="true">
feat(web): merge the overview tabs and filter it by time range - #9
Merged
Merged
Conversation
The overview is one page again. A date range picker, defaulting to all history, drives the summary strip, trend and model distribution, while account quotas always follow their current period. The summary keeps the cache hit rate in its own cell with an input-side composition bar, shows daily averages for all history and period-over-period change otherwise. Reports gain the same summary, a cache hit rate column and a totals row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 25, 2026
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 suggestio
3242
n 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.
Problem
The overview was split into 「累计总览」 (lifetime totals and account quotas) and 「时间段用量」 (range metrics, trend and model distribution). The overview could not be filtered by time while still showing totals and quotas first, and the range page duplicated the reports page. The range statistics were also thin.
Result
#periodlinks and saved page preferences open the overview.previousTokenSummaryandpreviousCounton both computation paths.Verification
bun test testspasses 336 tests. New tests cover the all-history range, preference persistence, previous-period fields, the summary builders, trend insights and the report cache hit rate.bun run buildpasses.bun tests/browser.smoke.tspasses against an isolated headless Chrome at 1440×1000 and 390×844. It covers the all-history default, range switching without changing quotas, the#periodredirect, model drill-down to reports, the report summary, cache hit rate column and totals row, and the existing checks.tests/mobile-app.browser.tsis updated for the merged overview. It still fails on three older assertions that also fail onmainbefore this change. They expect the drawer border colour from before the 0.3.0 redesign and N/A weekly estimates that the demo ledger now provides. They were left unchanged rather than weakened. With only those three bypassed, the run passes across 84 screens.🤖 Generated with Claude Code