Repository navigation
improve(ui): remove Usage Activity by time - #199161
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes Usage’s Activity by time chart and hour filters while preserving daily charts, the calendar, analytics, session details, exports, and the public Gateway API. Example: Open Usage for August 17–November 14, 2026.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the intentional feature removal is coherent, and no actionable introduced defect was found; it remains a draft with substantive hosted checks skipped. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI Usage page sends session filters to sessions.usage and renders the returned aggregates, charts, and session roster. flowchart TD
A[Usage controls] --> B[Usage page owner]
B --> C[Session usage request]
C --> D[Gateway usage API]
D --> E[Usage aggregates]
E --> F[Daily charts and calendar]
E --> G[Analytics and sessions]
Technical reviewBest possible solution: Retire the chart and its complete local filter path through the existing Usage owners while retaining the public Gateway contract. Do we have a high-confidence way to reproduce the issue? This is a requested feature retirement; current-main source and the before screenshot establish the existing chart without a bug reproduction. Is this the best way to solve the issue? The removal is appropriately scoped and minimal: it deletes the complete UI path, preserves neighboring analytics and public API behavior, and introduces no new abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 663611cb19e8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -368, Tests -201, Docs 0. Total -569 across 16 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 3:24 PM ET / 20:24 UTC. |
Remove the Activity by time chart and its UI-only hour filter from Usage. Preserve daily selection, error-hour statistics, session comparisons, exports and the public usage API. Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Usage includes an extra hour-of-day/day-of-week Activity by time chart with hour filter chips. It repeats what the daily chart and long-range calendar already show at a finer grain. When precise token samples are missing, the hour placement is estimated from session spans, so the chart can look more exact than its data is. The filter chips also add a second, rarely used way to slice the whole Usage page.
User Impact
Remove that chart and its hour filter chips. Keep daily charts, the long-range calendar, peak error hours, throughput, session details and exports.
Why This Change Was Made
Remove the full Control UI chart, controls, local filter/request wiring, styles, copy and obsolete checks. The public Gateway usage API remains. Data can be precise when samples exist and estimated otherwise; this is a requested feature cut, not a claim that all data is estimated.
What stays available to plugins and integrations
selectedHoursinsessions.usageand still applies it; only the Control UI stopped sending it.Evidence
Actual application, synthetic large-scale Usage fixture, dark theme, 1440×1000. Fixture totals are not production measurements.
Before
After
Requested by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by