Skip to content

improve(ui): refine Activity at phone width - #190393

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/mobile-activity-rows
Nov 2, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/mobile-activity-rows

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

At phone width the Activity page spends most of the first screen on controls. On Sessions, search and the person filter sit on separate rows and an empty 33px gap holds the feed down. The session row breaks: titles and agent names truncate after a few characters, the person and time drop to a stray line, and Inspect run floats mid-row. On Live activity, three header buttons crowd the section title, the toolbar takes 135px because the filter button wraps to its own row, and Active sessions scrolls inside a capped card that cuts a row at its edge.

User Impact

Phone only. Desktop is unchanged.

  • Sessions: search and the person filter share a row, with the time range below it. The blank gap is gone and the first session moves up 54px. The person button is one people icon and shows an active state when a person is selected. Everyone in its popover clears the filter.
  • Rows: title, then one meta line (person, agent, time), then the recap. A running session's status line sits between the title and the meta line. Inspect run sits at the right of a short recap's line. Under a longer recap it wraps to its own line at a fixed gap, including while the recap loads.
  • Raw ids: when an owner has no display name, the card omits the person and uses the same generic person avatar as the person filter, so the row shows no digit from the id and the line reads agent, then time. Real names stay.
  • Live activity: search and the filter button share a row. Status checkboxes and auto-follow move into the existing filter popover, where all labels share one style. Expand all, Collapse all and Clear move to a three-dots menu. The filter button shows as active when any of those filters is off. Active sessions scroll with the page. Rows separate with spacing instead of hairlines.

Why This Change Was Made

Every control stays reachable, and no copy or features are added.

  • The numeric value on some rows is the session owner's raw actor id, not a session id. Removing it from the phone card is safe because it stays reachable: the person filter lists it under Unresolved identities, and selecting it shows the full id in the identity header. Run Inspector does not show it.
  • Errors and retries still don't move results. The feedback box floats over the feed instead of reserving empty space.

The session row moved to session-activity-row.tsx to stay under the file line cap.

Evidence

Mock data layer at 390px with real clicks. A local fixture patch, not part of this change, supplied the Live tool events, the people list, the recaps, the second running session, and the fictional names shown here (the repo fixture's own names are replaced in these images). This PR branches from main, so images show today's top bar until the header PR lands.

Before After
Live before Live after, dark, rows expanded Live after, CRT, actions open
Person filter active Real Safari 27.0.1, Sessions Real Safari 27.0.1, Live filter, scrolled with OS wheel input

Local checks: oxfmt, stylelint, oxlint, ui:i18n:verify, the Control UI controller guard and tsgo:ui pass, as do the Activity page tests and the Activity browser flows. At 1280px, the desktop Sessions content area is pixel-identical to main.

ui:check-performance:base reports the total CSS budget: main is already over the raw and gzip caps, and this change adds to both.

Integration validation

Removed new cosmetic test assertions while retaining filtering, navigation, full identity access, expansion/clearing, retry and content-position coverage. Twenty-three unit/browser tests and three Activity feed E2Es passed, as did the test typecheck and touched checks. The full own-diff source review found no blocking issues. The existing captures document the approved original revision.

CI 41447765451 is not green: CSS increased by 451 bytes gzip and 3257 bytes raw; chat boot JavaScript increased by 513 bytes. The measured budget failures use the authorized exception while preserving the approved design. All other planned jobs passed.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR compacts Activity controls and rearranges session cards at phone widths.

Example: Open Activity at a 390px viewport.

  • Before: Search occupies its own row, session metadata crowds titles, and Live actions consume header space.
  • After: Search shares a row with filters, session metadata sits beneath titles, and Live actions use a menu.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful and visually demonstrated, with focused correctness and validation blockers remaining.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Phone users see crowded controls, heavily truncated session information, and awkwardly positioned run links.
Reason: The maintainer-authored direction has clear visual value and retains existing controls, routes, and desktop presentation.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep open: this maintainer-authored PR improves phone usability, but the missing menu translation, overflowing person names, and CSS budget failure need correction.

Priority: P3
Reviewed head: e327c666cb714f260cf1e30a9302746e43c274de

Before merge

  • [P2] Give the phone actions menu a valid translation key (P2) - At widths up to 640px, the menu label and tooltip call t("common.moreActions"), but that key is absent from the composed English sources. The translator returns the key itself, exposing "common.moreActions" to assistive technology and in the tooltip; referenced-key verification also rejects it. Define and register the intended copy or use an appropriate existing catalog key, correcting both references.
  • [P2] Clip person names when the metadata flex item shrinks (P2) - On a 390px card, a display name such as "Alexandria Montgomery-Sutherland" can exceed the space remaining beside the agent and timestamp. The new metadata line inherits white-space: nowrap, while this item can shrink to zero and retains overflow: visible. Its text therefore paints over neighboring metadata instead of staying within its allocated width. Add clipping and ellipsis, or an equivalent bounded layout, to the person-name item.
  • [P2] Bring the added styles within the enforced CSS growth allowance (P2) - The exact-head performance check attributes failures to total CSS raw and gzip growth from this change. Although the base already exceeds both caps, the checker permits only 64 bytes of further variance; the added phone rules exceed that allowance in both measures. Consolidate or reduce the stylesheet changes so the comparison passes rather than treating the inherited overage as permission for further growth.

Findings

  • [P2] [P2] Give the phone actions menu a valid translation key — ui/src/pages/activity/activity-page-view.tsx:474-478
  • [P2] [P2] Clip person names when the metadata flex item shrinks — ui/src/styles/activity.css:1305-1309
  • [P2] [P2] Bring the added styles within the enforced CSS growth allowance — ui/src/styles/activity.css:1166-1171

Tests

  • Missing end-to-end proof: The supplied evidence lacks the UI guide’s real-Gateway layout-shift measurements at 400, 820, and 1280px during route entry and data arrival, and does not show the new regressions failing on the base.
Agent review details

How this fits together

The Control UI Activity views turn Gateway session, presence, recap, and tool-event data into filterable session cards and a live activity stream.

flowchart TD
  A[Gateway session and presence data] --> B[Activity page owner]
  C[Live tool events] --> B
  B --> D[Session feed renderer]
  B --> E[Live activity renderer]
  D --> F[Responsive cards and filters]
  E --> G[Filter popover and actions menu]
Loading

Technical review

Best possible solution:

Retain the compact phone design, correct menu localization and person-name clipping, and reduce CSS growth to the enforced allowance.

Do we have a high-confidence way to reproduce the issue?

The supplied before screenshots establish the cramped phone layout, and source inspection establishes the missing translation and overflow paths; no target code was executed.

Is this the best way to solve the issue?

The existing media-query, Popover, Menu, and Activity owners are appropriate; the extracted row replaces its original implementation and is justified by the documented file-size constraint.

Full review comments:

  • [P2] [P2] Give the phone actions menu a valid translation key — ui/src/pages/activity/activity-page-view.tsx:474-478
    At widths up to 640px, the menu label and tooltip call t("common.moreActions"), but that key is absent from the composed English sources. The translator returns the key itself, exposing "common.moreActions" to assistive technology and in the tooltip; referenced-key verification also rejects it. Define and register the intended copy or use an appropriate existing catalog key, correcting both references.
    Confidence: 0.99
  • [P2] [P2] Clip person names when the metadata flex item shrinks — ui/src/styles/activity.css:1305-1309
    On a 390px card, a display name such as "Alexandria Montgomery-Sutherland" can exceed the space remaining beside the agent and timestamp. The new metadata line inherits white-space: nowrap, while this item can shrink to zero and retains overflow: visible. Its text therefore paints over neighboring metadata instead of staying within its allocated width. Add clipping and ellipsis, or an equivalent bounded layout, to the person-name item.
    Confidence: 0.89
  • [P2] [P2] Bring the added styles within the enforced CSS growth allowance — ui/src/styles/activity.css:1166-1171
    The exact-head performance check attributes failures to total CSS raw and gzip growth from this change. Although the base already exceeds both caps, the checker permits only 64 bytes of further variance; the added phone rules exceed that allowance in both measures. Consolidate or reduce the stylesheet changes so the comparison passes rather than treating the inherited overage as permission for further growth.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 49600b5cf8f3.

Provenance checked

  • Phone feedback placement changes intended behavior with a stated reason (16a3670: Reserve feedback space so passive refresh failures and explicit Retry progress do not move retained Activity content.)
  • Live toolbar controls changes intended behavior with a stated reason (c2602de: Keep search and primary status controls visible while moving the secondary Tool selector into a disclosure; this PR explicitly further compacts the phone presentation.)
  • Session renderer ownership changes intended behavior with a stated reason (03ee297: Fold private presentation into its owning renderer; this PR explains the row extraction as necessary to remain below the file line cap and removes the original implementation.)
  • Session navigation and shared projections keeps the original intent (f27b11a: Share application-scoped observations while retaining consumer lifetimes and existing navigation ownership.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm ui:i18n:verify
  • pnpm lint:ui:styles
  • pnpm tsgo:ui
  • pnpm test:ui:e2e ui/src/e2e/activity-session-feed.capture.e2e.test.ts --maxWorkers=1
  • pnpm ui:check-performance:base

What I checked:

  • Verified introduced changes: Reviewed the pinned introduction diff; comparison with fetched main shows that main does not contain these Activity presentation changes. (e327c666cb71)
  • Missing menu translation: The new menu references common.moreActions twice; the English catalog defines browser.moreActions but no common.moreActions, and the translator returns missing keys verbatim. (ui/src/pages/activity/activity-page-view.tsx:474, e327c666cb71)
  • Person-name overflow: The new metadata line prevents wrapping and permits its person-name flex item to shrink without clipping overflowing text; the timestamp remains non-shrinking. (ui/src/styles/activity.css:1305, e327c666cb71)
  • Attributed CSS gate failure: The exact-head performance check reports total CSS raw and gzip growth beyond the permitted 64-byte variance over an already over-budget base; the PR body independently acknowledges growth in both measures. (ui/src/styles/activity.css:1166, e327c666cb71)
  • Inspected visual evidence: Inspected all eight linked screenshots, including Sessions before/after, Live before/after, the open actions menu, person selection, and Safari Sessions/filter views; they demonstrate the visible phone layout improvements using disclosed synthetic data. (e327c666cb71)
  • Preserved refresh intent: The reserved feedback region originated in fix(ui): prevent activity pages jumping during live refresh #137868 to prevent refresh and Retry feedback from moving retained results; this PR explicitly substitutes a phone overlay while retaining the stability tests. (ui/src/styles/activity.css:134, 16a3670347fd)

PR surface

Source +318, Tests +263. Total +581 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 616 298 +318
Tests 2 268 5 +263
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 884 303 +581

Labels

Label changes:

  • add P3: The change improves phone layout and control ergonomics without changing Gateway operations or persisted state.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: The change improves phone layout and control ergonomics without changing Gateway operations or persisted state.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 1, 2026, 9:56 AM ET / 14:56 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 73f784f into main Nov 2, 2026
83 of 86 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/mobile-activity-rows branch November 2, 2026 13:17
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
Removed new cosmetic test assertions while retaining filtering, navigation, full identity access, expansion/clearing, retry and content-position coverage. Twenty-three unit/browser tests and three Activity feed E2Es passed, as did the test typecheck and touched checks. The full own-diff source review found no blocking issues.

CI41447765451 retains the authorized budget exception: CSS+451B gzip/+3257B raw and chat boot JS+513B. All other planned jobs passed.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant