Repository navigation
improve(ui): float the phone page header - #190409
Conversation
At phone width every page except chat gets a floating header: menu, centered page title, and a joined pill with new session and search. Content scrolls under a fade, the page body drops its repeated title and keeps its description, and connection state uses the chat page's notice in place of the status dot. FloatingHeaderActions lets a page place buttons in the pill through its existing header actions.
|
🦞👀 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. |
The draft shares chat's drawer button, so opening a session must not move it.
Pill geometry no longer reaches rows of a menu opened from the pill, a menu trigger's icon stays centered, and SettingsPageHeader resolves its actions once so a portal cannot mount twice.
|
Codex review: needs changes before merge. What this changesThis PR replaces the phone-sized page topbar with a floating title and action pill and shares chat’s connection notice. Example: Open Sessions in a 390 × 844 browser viewport.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep this maintainer-authored PR open: the visual refinement is useful, but consumer tests, asset budgets, and unused page-action machinery need attention before merge. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI shell combines route, viewport, theme, and Gateway connection facts into navigation chrome around the retained page outlet. flowchart TD
A[Route and viewport] --> B[Shell view state]
C[Gateway connection] --> B
B --> D[Floating topbar]
B --> E[Page outlet]
C --> F[Shared connection notice]
F --> D
Technical reviewBest possible solution: Keep the shell-owned floating header and shared notice, complete the consumer-test cutover, restore asset-budget compliance, and defer the portal machinery until its first page consumer. Do we have a high-confidence way to reproduce the issue? The before image and current-main source establish the existing brand-row layout; this PR proposes a presentation change rather than repairing a reported runtime defect. Is this the best way to solve the issue? Reusing the shell’s route and viewport decisions and extracting one shared notice is appropriate, but the unused portal layer is unnecessary for the delivered visual change. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e7301f9550a2. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +296, Tests +205. Total +501 across 20 files. Added test files: 2. View PR surface stats
Review metrics
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:41 AM ET / 14:41 UTC. |
Give phone pages a shared floating header while preserving draft/chat handoff, page actions, reconnect controls and native/tablet chrome. Validated with 28 focused unit tests,13 mobile E2Es and independent source review. Cosmetic test assertions were removed; navigation, focus, portal lifetime and content stability remain covered. CI run41429680535/1 remains red for approved CSS/chat-JS budgets and five unrelated isolated component cases. Their test/owner inputs match the tested main baseline and do not construct the changed header paths. All six E2E shards, other UI shards, lint/types/guards and security passed.
Released Gateway 2026.11.10 includes openclaw/openclaw#190409, which hides the in-page route heading under the phone floating header. Headless Edge's default 756x488 viewport matches that layout, so the Skills route proof never saw a visible Skills heading and main timed out deterministically. Pin the owned CDP page to 1280x900 before navigation, assert it in the native Edge smoke, and report the viewport in the route probe state. Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
At phone width every page spends its first 58px on a brand row with a hairline, then repeats the page title in the body. The connection state is a dot on the menu button plus a status line, while chat already has its own notice for this. The new session draft sat under that same brand row, so its header changed completely when a session opened.
User Impact
On pages other than chat and the new session draft, the header now floats over the content: menu on the left, the page title centered, and one joined pill with new session and search on the right. Content scrolls under a fade. The body keeps its description and loses the repeated title, which stays available to assistive tech. While the connection is down, chat's notice floats below the header at chat's position, including Retry when offline, and the title stays. As on chat, it can sit over the description line, and taps pass through to the page beneath. Square themes keep square corners.
The new session draft uses chat's header at phone width. Draft, incognito and search share one pill there, and their row below the header is gone, so the page gains that space. An active toggle shows its icon in the accent color. When a session opens the menu button and the pill's right edge stay put, and the pill changes to the session's controls.
Widths above phone and native hosts are unchanged.
Why This Change Was Made
This is the base for the mobile page refinements. Pages add their own buttons to the pill with
FloatingHeaderActions, passed through theactionsthey already give their header. Itsfallbackrenders in place at every other width, so a page declares one set of actions.SettingsPageHeadernow resolvesactionsonce, because reading it twice would mount a portal twice.The floating layout applies at 600px and below, plus landscape phones. Tablets from 601px keep today's top bar. The notice moved out of the chat header into a shared component, with one change: its radius now follows the theme, so it is square in CRT. It looks the same in Absolutely.
The draft renders the real
ChatPaneMobileHeader, the one session creation already shows, and the shell passes it the drawer state and connection status the way it does for chat. Its content now starts at the same edges as chat, so the composer lines up with the session it opens. That widens the draft's composer from a 20px to a 16px inset, andcontrol-ui-boot-modules.jsonis regenerated because the header now loads with the draft.Above 560px Draft stays in the composer as it does today, so the pill holds incognito and search. Coming from a floating page, the menu button goes from 45px to 40px, which is intended. Chat's header keeps its round controls in CRT, so the draft's do too.
Evidence
Images use the mock data layer at 390px, 320px where noted. The Reconnecting image comes from stopping a real Gateway at 390px, the only image here that doesn't use the mock. Stopping and restarting it put the notice at the same box as chat (x 12, y 62, 28px tall) on Automations and the new session draft, left the title unmoved, and cleared the notice on reconnect.
The Safari image is Safari 27.0.1 on macOS, with the page in a 390px frame inside its own window and OS-level clicks. A temporary local proxy, not part of this change, set the theme and added a page script that read state.
Checks
Run locally:
tsgo:ui, oxfmt, oxlint and stylelint on touched files, unit tests for the shell and top bar, and the affected browser tests including a newmobile-floating-header.e2e.test.ts.mobile-new-conversation.e2e.test.tsnow covers the draft's header, its toggles, the notice, the path into chat with the header's position compared at each step, and native hosts keeping their chrome.ui:check-performance:basereports only the total CSS budget, which main already exceeds. Boot JS and CSS requests are unchanged from main.Title at 320px: a 2-button pill leaves 104px for a title centered on the screen, so longer titles sit left of center instead of being cut. Measured offsets at 15px: Privacy & Security -12.6px, Cloud environments -19px, Communications -7.4px, all whole. Short titles stay centered, and at 360px the largest offset is -3.8px. A title with no room left truncates with an ellipsis.
Icons: draft is Lucide
message-circle-dashedand incognito is Lucidehat-glasses, both from lucide-static 1.66.0, replacing the pencil and the custom incognito icon. This covers the new session header and composer controls, the composer's draft menu item, the session row's unsent draft and incognito badges, and chat's incognito header on desktop and phone.Not verified
--safe-area-topin Chromium and a browser test, where the header moves down with the shell.