Skip to content

improve(ui): give the Logs stream the phone viewport - #190380

Merged
vyctorbrzezowski merged 5 commits into
mainfrom
brzezowski/mobile-logs-filters
Nov 2, 2026
Merged

vyctorbrzezowski merged 5 commits into
mainfrom
brzezowski/mobile-logs-filters

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

At phone width, the Logs filters and page actions pushed the stream to the lower half of the screen, inside a card within a card, capped at 380 px. Messages wrapped in a 184 px column, the search placeholder sat on the right, and the subsystem was hidden even though current file logs do not repeat it in the message, so a search could match a row for a reason the row did not show.

User Impact

On a phone, the stream now starts right under one row of search, filter and three-dots, and fills the rest of the screen with no frames. Each row has the time, level and subsystem on one line and the message at full width below. Level checkboxes, Auto-follow and the log file path are in the filter popover, which shows the active state when a level is off. Refresh and Export are in three-dots. The page keeps its heading, with the description directly under it. Desktop is unchanged; the phone layout applies up to 640 px.

Why This Change Was Made

This follows the approved phone design for list pages, using the existing filter trigger, Popover and Menu. The stream keeps its element across the layout change, so scrolling and follow behavior are untouched. dev:ui:mock had no logs.tail response, so its Logs page only ever showed an error; it now returns rows in the Gateway's file format.

The heading stays visible here because this PR doesn't move the title anywhere. Once #190409 lands, its shared rule hides the title visually at the widths where its header carries it, keeps it for assistive tech and collapses the space. Checked with both merged: at 390 and 600 px the header shows Logs and the description sits right below it, and at 620 px the page keeps its own title.

Evidence

Mock Gateway data at 390 px with real taps. Images show today's top bar until the floating header PR lands. Before: stream at y 479, capped at 380 px, message column 184 px. After: stream at y 190, 638 px tall, message column 366 px, no page scroll. With #190409 merged: stream at y 150, 678 px tall. The ring on three-dots after a tap is the focus ring that #190535 removes.

Before, Absolutely light After, Absolutely light After, Absolutely dark
After, CRT Filter open, levels off Three-dots open
620 px Real Safari 27.0.1, filter opened with a real click

Checks run locally: oxfmt, stylelint and oxlint on touched files, ui:i18n:verify, the Control UI controller guard, tsgo:ui, Logs unit tests (30 passed), and the four Logs browser suites (9 passed). logs-scroll now reaches Refresh and Auto-follow through their new phone controls, and logs-layout adds a 390 px case and covers the heading. ui:check-performance:base fails only on total CSS size (raw and gzip), which main already exceeds.

Integration validation

Integrated the phone toolbar with the shared desktop RefreshButton and preserved Meetings and Logs mock fixtures. Eight owner tests passed. Four layout/scroll E2E cases passed, and the remaining resize case passed after waiting for the same visible-heading condition to settle. UI and E2E typechecks, touched checks and the integrated source review passed. The existing captures document the approved original revision.

CI 41448717520 is not green: CSS increased by 638 bytes gzip and 2850 bytes raw; chat boot JavaScript increased by 117 bytes. The measured budget failures use the authorized exception while preserving the approved design. One chat speed-selection unit case also failed before its first session patch. The case mounts no UI or Logs server; ten owner/helper/dependency objects are byte-identical between tested merge ea59b69a and its main parent1c8d7583. This failure is attributed outside the Logs diff. Its internal cause was not reproduced, and no passing rerun is claimed as a fix.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: L labels Nov 1, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature 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 gives phone-sized Logs pages a compact toolbar and full-width messages while retaining the existing stream and scrolling owner.

Example: Open Logs in a 390 × 844 viewport.

  • Before: Controls push the stream down to y=479, and messages occupy a 184 px column.
  • After: The stream starts at y=176, messages occupy 366 px, and filters and actions open from the toolbar.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong visual evidence supports a useful, focused layout change, but the attributable CSS budget failure blocks merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the production Control UI Logs route with mock Gateway rows at phone width and show the changed toolbar, full-width messages, visible subsystems, and expanded stream across light, dark, and CRT themes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Phone users lose much of the viewport to Logs controls and read messages in a narrow column with subsystem names hidden.
Reason: The inspected screenshots demonstrate substantial usable space and readability gains, and the maintainer author's direction is already an owner decision.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the maintainer-authored phone layout has clear visual value, but its added CSS causes the performance gate to fail beyond the allowance for an already over-budget base.

Priority: P2
Reviewed head: d1cf961b8a2b03291ba5d022677657c121ebf808

Before merge

  • Bring the added CSS within the performance gate's growth allowance (P2) - The new stylesheet rules make the exact-head control-ui-performance check fail for additional CSS growth. Its annotations report 1567.3 KiB raw against 1564.6 KiB allowed and 303.0 KiB gzip against 302.5 KiB allowed. The checker already compensates for an over-budget base by allowing base size plus 64 B, so the existing main overage does not explain away this failure. Consolidate or offset the added styles while preserving the phone layout, then pass the performance comparison; rerunning the unchanged patch will retain this blocker.

Findings

  • [P2] Bring the added CSS within the performance gate's growth allowance — ui/src/styles/logs.css:128-132

Tests

  • Missing end-to-end proof: The supplied browser-check summary does not show the added phone regression failing on the base.
Agent review details

How this fits together

The Control UI Logs route polls Gateway logs.tail, parses and filters retained entries, and renders them through the existing virtualizer; toolbar actions change filters, refresh the tail, or export displayed rows.

flowchart TD
  A[Gateway logs tail] --> B[Logs page owner]
  B --> C[Parsing and retained rows]
  C --> D[Filtering and virtualizer]
  D --> E[Log stream]
  F[Phone toolbar] --> B
  F --> D
Loading

Technical review

Best possible solution:

Keep the compact phone controls and existing stream owner while consolidating the stylesheet enough to satisfy the measured CSS growth gate.

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

Current-main mobile rules cap the stream at 380 px and retain the large control stack; the supplied before screenshot independently shows the cramped layout, without a new execution during this review.

Is this the best way to solve the issue?

The responsive presentation uses the existing Menu, Popover, media-query primitive, and stream owner appropriately; the remaining repair is its measured stylesheet growth.

Full review comments:

  • [P2] Bring the added CSS within the performance gate's growth allowance — ui/src/styles/logs.css:128-132
    The new stylesheet rules make the exact-head control-ui-performance check fail for additional CSS growth. Its annotations report 1567.3 KiB raw against 1564.6 KiB allowed and 303.0 KiB gzip against 302.5 KiB allowed. The checker already compensates for an over-budget base by allowing base size plus 64 B, so the existing main overage does not explain away this failure. Consolidate or offset the added styles while preserving the phone layout, then pass the performance comparison; rerunning the unchanged patch will retain this blocker.
    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 d20f161513f7.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm lint:ui:styles
  • pnpm ui:check-performance:base
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/logs-layout.e2e.test.ts ui/src/e2e/logs-scroll.e2e.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 06a71d7 adds ui/src/styles/logs.css:59 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 06a71d75b01e; files: ui/src/styles/logs.css)
  • Peter Steinberger: Raw commit 372a1aa adds ui/src/styles/logs.css:45 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 372a1aa5e4a1; files: ui/src/styles/logs.css)
  • Vincent Koc: Raw commit f1d2565 adds ui/src/styles/logs.css:33 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: f1d25657141a; files: ui/src/styles/logs.css)

PR surface

Source +305, Tests +143, Other +113. Total +561 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 374 69 +305
Tests 3 148 5 +143
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 113 0 +113
Total 8 635 74 +561

Labels

Label changes:

  • add P2: This improves readability and control access on the phone Logs page, with limited impact outside that route.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This improves readability and control access on the phone Logs page, with limited impact outside that route.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 1, 2026, 9:27 AM ET / 14:27 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 6d60cc1 into main Nov 2, 2026
98 of 102 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/mobile-logs-filters branch November 2, 2026 13:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
Integrated the phone toolbar with the shared desktop RefreshButton and preserved Meetings and Logs mock fixtures. Eight owner tests passed. Four layout/scroll E2E cases passed, and the remaining resize case passed after waiting for the same visible-heading condition to settle. UI and E2E typechecks, touched checks and the integrated source review passed.

CI41448717520 retains the authorized budget exception: CSS+638B gzip/+2850B raw and chat boot JS+117B. One chat speed-selection unit case also failed before its first session patch. The case mounts no UI or Logs server; ten owner/helper/dependency objects are byte-identical between tested merge ea59b69a and its main parent1c8d7583. This failure is attributed outside the Logs diff. Its internal cause was not reproduced, and no passing rerun is claimed as a fix.
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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