Repository navigation
improve(ui): give the Logs stream the phone viewport - #190380
Conversation
|
🦞👀 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 changes before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d20f161513f7. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +305, Tests +143, Other +113. Total +561 across 8 files. Added test files: 0. View PR surface stats
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 1, 2026, 9:27 AM ET / 14:27 UTC. |
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.
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:mockhad nologs.tailresponse, 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.
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-scrollnow reaches Refresh and Auto-follow through their new phone controls, andlogs-layoutadds a 390 px case and covers the heading.ui:check-performance:basefails 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.