[codex] Redesign analytics dashboard#60
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 2, 2026, 8:08 PM ET / 00:08 UTC. Summary Reproducibility: not applicable. This PR adds a redesigned analytics/dashboard experience and daily usage aggregation rather than reporting a failing current-main behavior. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land after maintainers confirm the UTC calendar-day usage semantics and dashboard direction, or preserve the existing rolling summary/providers/events while using daily buckets only for chart rendering. Do we have a high-confidence way to reproduce the issue? Not applicable; this PR adds a redesigned analytics/dashboard experience and daily usage aggregation rather than reporting a failing current-main behavior. Is this the best way to solve the issue? Unclear; the implementation is coherent, but the best final shape depends on maintainer acceptance of replacing the dashboard and changing usage-window semantics. A safer compatibility path would keep rolling summary totals and add daily buckets only for chart series. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d39ef9cfa07f. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Summary
Why
The previous dashboard was visually heavy and the Usage screen had aggregate counters and tables but no trustworthy time-series data. Building a 30-day chart from the latest 100 events would undercount busy installations, so this change adds daily aggregation at the ledger boundary and uses it across Home and Usage.
Validation
node --test admin/test/*.test.mjs— 22 passednode --test worker/test/usage-sharding.test.mjs— 3 passed--noEmitcheck passedgit diff --checkpassedNotes
The full workspace
pnpm checkcould not run in this environment because the internal package registry returned 403 for@cloudflare/workers-types@4.20260621.1. The focused touched-surface checks above passed.