feat(web): merge Usage route into Stats as tab (UC-3) #264
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#264
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As an operator, I want to see task stats and Pro-Max quota on the same page behind tabs, so that the two "how much have we spent" surfaces live together and the top nav drops one more entry.
Acceptance criteria
Tabbed layout
/app/statsrenders a Base UITabscontrol with three panels: Tasks (today's/statscontent), Quota (today's/usagecontent), Cost caps (new empty panel with a placeholder "Populated by issue #231" note — scaffolding only).?tab=tasks|quota|caps; defaulttasks.validateSearchdrops malformed values.rounded-pilland the accent token set perapps/web/CLAUDE.md. No raw hex.Route + redirect
/app/usageroute file is deleted; the router resolves the old path via a redirect to/app/stats?tab=quota(with any existing search params preserved). Today's usage window selector (week / day / all) stays owned by the Quota panel as local component state — no URL param migration needed.UsageRoutecomponent's body is moved into aStatsQuotaPanelcomponent that the Tasks-panel-is-today's-Stats code can import cleanly.Nav
components/app-shell.tsxdrops theUsageentry from both nav arrays.Statslabel +tostay as-is.Tests
/statsdefaults to the Tasks tab;?tab=quotaopens the Quota tab; malformed?tab=xyzfalls back to Tasks.replace: true./app/usageURL lands on/app/stats?tab=quotawith the threshold banner visible.Out of scope
/statsor/usageserver endpoints.References
specs/ui-consolidation.md§ UC-3 (Merge Usage into Stats as a tab)apps/web/src/routes/usage.tsx(deleted; body moved tocomponents/stats/quota-panel.tsx)apps/web/src/routes/stats.tsx(extended)apps/web/src/components/app-shell.tsx(nav prune)Dependencies