Skip to content

improve(ui): remove Usage Activity by time - #199161

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
review/usage-activity-time-removal-20261114
Nov 14, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
review/usage-activity-time-removal-20261114

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The Gateway still accepts selectedHours in sessions.usage and still applies it; only the Control UI stopped sending it.
  • Hourly and daily usage data, peak error hours, throughput and exports are unchanged.
  • Removed code was UI-only (the mosaic component, its filter state and styles). No protocol, SDK or published package changed.

Evidence

  • 65 focused Usage checks passed. Actual Control UI with a synthetic Gateway confirms the chart is gone and the 90-day calendar and session list remain.
  • UI typecheck, focused lint, CSS lint, i18n verification, formatting, diff checks and production UI build passed. No live Gateway/provider or broad CI claim.
  • Simplification: 10 additions / 579 deletions, including tests and docs. No new state or abstraction.
  • Independent local autoreview (Codex, GPT-6.1 Sol, P0–P2) found no actionable findings in the full diff against 427ebcc. Unchanged surrounding source was not supplied; the reviewer did not rerun tests.

Actual application, synthetic large-scale Usage fixture, dark theme, 1440×1000. Fixture totals are not production measurements.

Before

Usage before

After

Usage after

Requested by @vyctorbrzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Activity by time appears between the token calendar and Sessions, with selectable hourly bars.
  • After: Sessions follows the token calendar, without the weekday/hour chart or hour filter chips.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, minimal removal with direct visual proof and no actionable finding; reported local checks support it, while substantive hosted validation has not run.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual Control UI Usage route with a synthetic Gateway at 1440×1000 in dark theme, showing the removed chart and retained calendar and session roster; no live-provider claim is needed for this presentation removal.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: The requester wants the additional weekday/hour activity visualization and hour filtering removed from Usage.
Reason: Collaborator authorship supplies the direction decision, and the patch implements that narrow retirement without replacing or restricting agent capabilities.

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
Reviewed head: 2f8cb24ee1f7c7f3a272eb5a4552b97e68003656

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Activity chart and hour-filter semantics changes intended behavior with a stated reason (refactor(usage): add precise token buckets for Usage Mosaic #74337: Prefer precise per-turn token buckets while retaining session-span estimates when samples are unavailable; selecting hours filters whole sessions.)
  • Solid chart renderer and server-backed overview changes intended behavior with a stated reason (e33b7f6: Port Usage to Solid while preserving behavior; subsequent overview work moved accounting and filtering to the server.)
  • Chart styling and retained presentation changes intended behavior with a stated reason (f6f59b1: Improve Usage composition and readability; later performance work retained chart identity during filter refreshes.)
  • Hour-filter regression coverage changes intended behavior with a stated reason (fix(ui): prevent Usage hour filters from freezing during DST #146919: Keep hour selection responsive through repeated daylight-saving hours; the PR removes that UI interaction while retaining other calendar and peak-error coverage.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 11d0746 adds ui/src/pages/usage/view-controls.tsx:366 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 11d0746f524a; files: ui/src/pages/usage/view-controls.tsx)

PR surface

Source -368, Tests -201, Docs 0. Total -569 across 16 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 6 374 -368
Tests 6 3 204 -201
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 10 579 -569

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: Intentional UI simplification with limited scope and no established runtime defect.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Intentional UI simplification with limited scope and no established runtime defect.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 3:24 PM ET / 20:24 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 14, 2026 21:03
@vyctorbrzezowski
vyctorbrzezowski merged commit f357291 into main Nov 14, 2026
172 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the review/usage-activity-time-removal-20261114 branch November 14, 2026 21:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants