Skip to content

improve(macos): organize navigation in a compact dashboard header - #196919

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/macos-dashboard-navigation
Nov 11, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/macos-dashboard-navigation

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The standard macOS dashboard spreads navigation across the titlebar, sidebar header, and rail. Its tall titlebar and separate panel edges make the window feel fragmented.

User Impact

The dashboard uses a compact 40 pt titlebar with sidebar, search, back, and forward controls beside the traffic lights. The sidebar control stays in place, disabled, while Settings is open. New session stays in the original rail.

The rail remains available in desktop Settings. A shared inner contour follows expanded and collapsed navigation; page scrollbars stay below the native titlebar. Existing theme colors are retained. Desktop roster headers show the session title beside the agent avatar, without repeating the agent name. Mobile keeps its existing identity layout.

Implementation

The existing shell, navigation, history, and native drag owners provide the behavior. AppKit and the WebUI share the compact titlebar height. The icon divider and text baseline are aligned, and a side-panel separator appears only with an open panel.

The desktop tab appearance is isolated in #196917. This PR also keeps the newly visible Settings rail clear of Windows/Linux titlebar controls.

Validation

  • UI typecheck, targeted formatting and lint passed. The test-line ratchet passes without changing its limit.
  • Existing navigation, window-control clearance, Inbox and Settings-exit scenarios passed in targeted runs. Shared Settings test preparation now waits for the session panel to hide rather than incorrectly requiring the permanent rail to detach.
  • Reproduced and corrected stale model-test assumptions about duplicate reads and competing rail/Settings agent scopes; the existing scoped-result and reconnect checks pass. The revoked provisional-view check still forbids chat mounting/history reads and permits only the accepted session's narration observer.
  • The integrated main candidate passes all five Workboard/provisional-navigation tests. The new main Workboard test expects the compact native 40px inset. Main integration was conflict-free.
  • The WebKit row-height failure was 35.99999237060547 versus exact 36. The assertion now allows only 0.00005px of numeric tolerance; the 14-case browser suite passed under Chromium.
  • Native tests compile; execution remains for the macOS CI worker. Independent P0–P2 review of the implementation found no actionable issue. Later changes are the clean main integration and the test repairs described above.
  • The previous-head CI budget failure was CSS only: 326913 B gzip against 326575 B (+338 B), 1686554 B raw against 1682231 B (+4323 B). The maintainer authorized the CSS budget exception. No limit, selector or approved visual was removed to conceal it. The repaired head has fresh CI; prior failed runs are not presented as green.
  • Inspected isolated macOS-app and Chromium captures below. The visual implementation was verified on base ce7788f5a24e5e2d0ef146a5dcea3ef4d0bb0983; the subsequent main integration did not resolve any conflict or alter the approved layout. The preview includes the now-merged improve(ui): soften desktop panel tabs #196917 tab styling.

Visual evidence

Baseline before the shell changes:

Before: standard macOS dashboard

Final macOS preview:

After: macOS dashboard, project and session

After: aligned compact native titlebar

Shared browser surfaces, with #196917's tab styling:

Browser session and active panel tab

Browser Settings with permanent rail

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

clawsweeper Bot commented Nov 10, 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.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 10, 2026 23:58
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 11, 2026
@clawsweeper clawsweeper Bot added 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: 🦐 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 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR groups macOS dashboard navigation into a compact 40 pt header and moves New session between the sidebar and collapsed header.

Example: Collapse navigation while viewing “Organize project notes” in the standard macOS dashboard.

  • Before: History and sidebar controls occupy separate groups in a 52 pt titlebar.
  • After: History, sidebar expansion, and New session share a 40 pt header while the navigation rail remains visible.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong visual evidence supports the approved design, but consumer-test cutover and asset-budget failures prevent a clean review.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected native-app before/after screenshots show the changed AppKit and Control UI header, expanded and collapsed navigation, retained composer text, and light/dark themes; the body also records isolated-app interaction checks.
Patch quality 🦐 gold shrimp (3/6) 3 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Navigation is scattered across the macOS window header, sidebar header, and rail, with visually fragmented panel edges.
Reason: The maintainer-authored PR supplies direction approval and visible improvement while reusing existing owners and retaining browser and embedded layouts.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep open: this maintainer-approved layout improvement has useful visual evidence, but affected web and native tests need updating and the emitted assets exceed existing budgets.

Priority: P3
Reviewed head: c3a83dc323fcbddf6bed8039a03737efcf4d3af6

Before merge

  • Update web chrome tests to exercise the relocated controls (P2) - Hiding these controls leaves existing native E2E scenarios clicking .sidebar-session-toolbar__collapse and expecting the rail New session action to remain visible. Exact-head checks-ui-e2e fails on those interactions, while checks-ui fails because the attention fixture measures the hidden old chrome cluster. Update native-page-header-clearance.e2e.test.ts, native-nav-sidebar-toggle.e2e.test.ts, and sidebar-attention-layout.browser.test.ts to exercise the replacement controls and retain their interaction and clearance assertions.
  • Update native smoke and fullscreen tests for compact chrome (P2) - The new .unifiedCompact toolbar contradicts unchanged .unified assertions in DashboardWindowSmokeTests.swift:135 and DashboardFullScreenTests.swift:30. The final sidebar-padding assertion at DashboardWindowSmokeTests.swift:720 also still expects 52 px although the injected override now produces 40 px. These tests fail against the intended implementation; update the affected expectations while preserving toolbar visibility, fullscreen restoration, and web-inset checks.
  • Fit the added chrome assets within existing bundle budgets (P2) - The added styles and rendering code leave the exact-head control-ui-performance check failing: New Session and Chat boot JS exceed their ceilings, raw CSS is 3,189 bytes above its ceiling, and largest-JS growth exceeds the allowance over the measured base. The PR acknowledges overages but does not repair them. Consolidate the added assets and reduce emitted bytes within the existing owners without raising the limits.

Findings

  • [P2] Update web chrome tests to exercise the relocated controls — ui/src/styles/sidebar-rail.css:878-880
  • [P2] Update native smoke and fullscreen tests for compact chrome — apps/macos/Sources/OpenClaw/DashboardWindow.swift:9-10
  • [P2] Fit the added chrome assets within existing bundle budgets — ui/src/styles/layout.css:317-325
Agent review details

How this fits together

AppKit hosts the dashboard WebView and supplies window geometry; the Control UI renders navigation using the existing shell, sidebar, history, and session-navigation owners.

flowchart LR
  A[AppKit dashboard window] --> B[Native chrome metadata]
  B --> C[Control UI shell]
  C --> D[Titlebar controls]
  C --> E[Sidebar and rail]
  D --> F[Existing navigation owners]
  E --> F
Loading

Technical review

Best possible solution:

Keep the compact layout on existing navigation owners, update affected consumer tests, and reduce emitted assets to meet the current budgets.

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

This is a layout preference change rather than a reported runtime bug; supplied native screenshots demonstrate the before/after appearance, and exact-head CI establishes the web test failures.

Is this the best way to solve the issue?

Reusing existing sidebar, history, drag, and New session owners is appropriate; the smallest complete change also updates their existing tests and preserves the asset limits.

Full review comments:

  • [P2] Update web chrome tests to exercise the relocated controls — ui/src/styles/sidebar-rail.css:878-880
    Hiding these controls leaves existing native E2E scenarios clicking .sidebar-session-toolbar__collapse and expecting the rail New session action to remain visible. Exact-head checks-ui-e2e fails on those interactions, while checks-ui fails because the attention fixture measures the hidden old chrome cluster. Update native-page-header-clearance.e2e.test.ts, native-nav-sidebar-toggle.e2e.test.ts, and sidebar-attention-layout.browser.test.ts to exercise the replacement controls and retain their interaction and clearance assertions.
    Confidence: 1
  • [P2] Update native smoke and fullscreen tests for compact chrome — apps/macos/Sources/OpenClaw/DashboardWindow.swift:9-10
    The new .unifiedCompact toolbar contradicts unchanged .unified assertions in DashboardWindowSmokeTests.swift:135 and DashboardFullScreenTests.swift:30. The final sidebar-padding assertion at DashboardWindowSmokeTests.swift:720 also still expects 52 px although the injected override now produces 40 px. These tests fail against the intended implementation; update the affected expectations while preserving toolbar visibility, fullscreen restoration, and web-inset checks.
    Confidence: 0.99
  • [P2] Fit the added chrome assets within existing bundle budgets — ui/src/styles/layout.css:317-325
    The added styles and rendering code leave the exact-head control-ui-performance check failing: New Session and Chat boot JS exceed their ceilings, raw CSS is 3,189 bytes above its ceiling, and largest-JS growth exceeds the allowance over the measured base. The PR acknowledges overages but does not repair them. Consolidate the added assets and reduce emitted bytes within the existing owners without raising the limits.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5e8ed5f5b437.

Provenance checked

  • Native toolbar sizing changes intended behavior with a stated reason (b2b87e9: An empty unified toolbar established a 52 pt titlebar so traffic lights aligned with hosted web controls and could not be collapsed through Hide Toolbar.)
  • Desktop navigation placement changes intended behavior with a stated reason (f7138f2: Rail-era navigation removed duplicate controls and aligned panel headers with native titlebars; this PR explains its compact macOS-specific replacement.)
  • Sidebar and New session ownership keeps the original intent (e80558a: The Solid migration preserved the shell-owned sidebar, routes, focus, and existing plain TypeScript owners; this PR continues using those owners.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/components/sidebar-attention-layout.browser.test.ts --maxWorkers=1
  • pnpm test:ui:e2e ui/src/e2e/native-nav-sidebar-toggle.e2e.test.ts ui/src/e2e/native-page-header-clearance.e2e.test.ts ui/src/e2e/native-desktop-titlebar.e2e.test.ts --maxWorkers=1
  • swift test --package-path apps/macos --build-system native --filter 'DashboardWindowSmokeTests|DashboardFullScreenTests'
  • pnpm ui:build
  • pnpm ui:check-performance

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit eb0d883 adds ui/src/styles/layout.css:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: eb0d8830e7dc; files: ui/src/styles/layout.css)
  • Peter Steinberger: Raw commit f7138f2 adds ui/src/styles/layout.css:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f7138f28c327; files: ui/src/styles/layout.css)

PR surface

Source +255. Total +255 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 11 264 9 +255
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 264 9 +255

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: The user-facing change is desktop layout polish; the identified blockers are focused validation and asset-budget repairs.
  • 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:

  • P3: The user-facing change is desktop layout polish; the identified blockers are focused validation and asset-budget repairs.
  • 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 10, 2026, 7:16 PM ET / November 11, 2026, 00:16 UTC.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…enclaw#196919)

Use a compact macOS dashboard titlebar and retain navigation in Settings. Keep the existing theme surfaces, align header controls, and update affected interaction tests for the persistent rail.

Validated with targeted browser tests, native test compilation, and an independent implementation review. Integrated main without conflicts. The maintainer authorized the CSS budget exception and landing without waiting for full CI; the repaired head retains separate successful security and dependency review.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos app: web-ui App: web-ui 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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