Skip to content

fix(ui): make empty session panels consistent on desktop and mobile - #181892

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/side-panel-empty-states
Oct 24, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/side-panel-empty-states

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Empty session panels start at inconsistent heights, use different typography, and show mismatched action buttons. Some mobile panels move their content vertically when a description or action is absent.

User Impact

Full-page empty states now begin consistently below each panel's controls, with the same messages and necessary actions. Mobile content starts 64 px below those controls; desktop content starts 140 px below them, including the existing 12 px host inset. Browser and Terminal use the same existing button appearance.

Why This Change Was Made

Reuse PanelEmptyState across the session panels and full-page mobile Details views. Group only the content that is present, remove duplicate wrapper spacing, and keep compact notices, loading, errors, permission restrictions, and unavailable content distinct. Consumers without an explicit session presentation retain their previous layout.

Evidence

  • CI and the CI gate passed for 295e42935b658ef9e6df6ef6e0a4a190911a1b6a: completed run 40024356071.
  • Test-only CI follow-up at 295e42935b658ef9e6df6ef6e0a4a190911a1b6a: run 40022142962 exposed a stale .bp-btn selector in the stopped-browser routing test. The unchanged Start button now uses the shared .btn style. Replaced that selector with the button's accessible role/name, retaining the click-to-start, screenshot recovery, and no-historical-focus assertions. Reproduced the original failure locally; all 13 routing tests and 6 startup/recovery sibling tests pass. The changed file took 4.57 seconds wall time (1.10 seconds reported by Vitest); the corrected case passed in 0.213 seconds in CI (run 40024356071). No new test cases or production changes.
  • Production UI builds, UI typecheck, targeted CSS lint, formatting, and diff checks passed.
  • Existing tests: 11 sidebar contract tests in 30.03 seconds; 19 presentation/retention tests in 1.06 seconds; 14 Discussion tests in 1.88 seconds. No new permanent tests. The changed cold-open test took 7.18 seconds locally; its failing CI invocation took 6.58 seconds.
  • Fixed the actual CI failure in run 40016876675: the generic cold-open classifier began recognizing Subagents as an empty state after its migration and incorrectly required a button. The test now checks its exact informational title, explanation, and absence of an action; actionable panels retain the enabled-action assertion.
  • Compiled app: 46 matched scenarios per side with desktop/mobile and dark/light captures for every applicable panel below. Terminal's empty Sessions picker was opened through its visible control. Browser and Terminal buttons both measure 38.14 px tall, with 8 × 14 px padding, the same radius, background, foreground, and font.
  • Six mobile Details pages mount through the real ChatDetails owner and lazy mobile host, with native CSS, synthetic properties/Gateway responses, and a 390 × 844 viewport for each capture. These are component-boundary screenshots, not end-to-end child-page navigation proof. Optional-content combinations and long text at 280 px width/220 px content height retain reachable actions without horizontal overflow. The default presentation's measured geometry is unchanged. The real Task progress menu passed hit-testing and Show in chat interaction at 390 × 844 and 390 × 480; its 88 px footer reserve and Goal's 72 px reserve remain intact.
  • Independent Codex review: no actionable P0–P2 findings.
  • Native asset-budget comparison passed: total CSS 1,596,850 → 1,596,395 bytes (−455 bytes); CSS gzip −7 bytes. Startup and New Session boot CSS are unchanged; Chat boot CSS gzip increases by 70 bytes within its budget.

Risk and coverage: this changes presentation, not available capabilities. Targeted oxlint still reports the inherited max-lines error in chat-sidebar-region.runtime.tsx (713 counted lines on the pinned main, 712 here; limit 700) and the existing props.createStop reactivity warning outside this diff. These are not claimed as passing lint.

Surface Coverage and retained distinctions
Subagents, Processes, Side chat, Review Real app desktop/mobile, both themes. Inline native-subagent and no-running-process notices remain compact. Side chat keeps its composer.
Files Real app mobile empty/no-match view; desktop tree remains a compact catalog beside its reader.
Browser, Terminal Browser empty/not-running, plus real mobile Terminal Sessions picker. Existing actions retained. Desktop Terminal cold entry opens a shell; the compact picker is not converted to a page empty state.
Portal, Link Reader, Discussion Real app desktop/mobile, both themes. Link Reader retains its integrated URL form. Discussion keeps unavailable/access explanations and external links while using the native presentation.
Desktop Requested-unavailable state captured with Retry. It remains a status notice; the separate genuine-empty presenter uses the shared native variant.
Dashboard, plugin tabs, Conversation Missing Dashboard is removed from the restored layout; widget/app internals are unchanged. A retained unavailable plugin tab exercises the shared host fallback. Conversation is the internal primary slot, not another offered side-panel tab.
Mobile Details Goal, Outputs, Automations, Task progress, Versions, and Pull requests compared through the real mobile Details owner at a phone viewport. Desktop summary cards remain unchanged.

Before screenshots use pinned main a8aee07. After screenshots use production head 3f00998 on the same main. Production files are byte-identical at test-only follow-up 295e42935b658ef9e6df6ef6e0a4a190911a1b6a, so the existing visual and asset-budget evidence remains applicable. All fixture content is synthetic. Contact sheets use crops from the native screenshot frames; full frames were also retained.

Desktop panels

Before:
Desktop empty states before

After:
Desktop empty states after

Mobile panels

Before:
Mobile empty states before

After:
Mobile empty states after

Mobile Details — real component comparison

Before:
Mobile Details empty pages before

After:
Mobile Details empty pages after

Light theme

Before:
Light-theme panels before

After:
Light-theme panels after

Other panel states

Before:
Other panel states before

After:
Other panel states after

@clawsweeper

clawsweeper Bot commented Oct 23, 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 October 23, 2026 20:08
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR reuses the shared empty-state presenter across desktop session panels and mobile Details pages.

Example: Open Subagents in a conversation with no child sessions.

  • Before: A small sentence appears near the panel edge.
  • After: The panel shows a bot icon, a Subagents heading, and the existing explanation using the shared desktop or mobile presentation.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful visual evidence and a small, coherent implementation; the introduced cold-open test failure prevents a clean review.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored PR is outside the ordinary contributor proof gate; four inspected compiled-app before/after captures directly demonstrate the central desktop and mobile presentation changes, while the body identifies mobile Details comparisons as component-boundary evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Empty session panels use inconsistent typography, spacing, and placement across desktop and mobile.
Reason: The maintainer-authored direction extends an existing shared presentation contract and removes duplicate styling while preserving meaningful state distinctions.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored PR open: the visual consolidation is useful, but it introduces a focused cold-open test failure that needs repair.

Priority: P3
Reviewed head: f6f1e37ebb685640c027b0f593a56eff8b465d51

Before merge

  • Update the cold-open contract for the Subagents empty state (P2) - Replacing the desktop Subagents sentence with PanelEmptyState makes readColdOpenOutcome return generic-empty instead of content. This assertion then requires an enabled action, although an empty Subagents list has no action and had none before the patch. The exact-head UI E2E shard fails here with “Subagents offers an enabled action.” Add an explicit Subagents expectation for its heading, explanation, and actionless state, as the test already does for Processes; retain action checks for actionable panels.

Findings

  • [P2] Update the cold-open contract for the Subagents empty state — ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts:838-839
Agent review details

How this fits together

Control UI presenters consume existing session-owner results and render empty panels, retaining the owners’ loading, error, navigation, and action behavior.

flowchart TD
  A[Session data owners] --> B[Panel state branches]
  B --> C[Loading and error presenters]
  B --> D[Populated panel content]
  B --> E[PanelEmptyState]
  E --> F[Desktop presentation]
  E --> G[Mobile presentation]
Loading

Technical review

Best possible solution:

Keep the shared presentation owner and update the cold-open test to accept the explicitly explained, actionless Subagents state.

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

Current-main source retains the inconsistent Subagents presentation, and the inspected before captures show it; no target code was executed during this review.

Is this the best way to solve the issue?

Reusing the existing presenter is the smallest complete presentation fix, with one omitted consumer-test update.

Full review comments:

  • [P2] Update the cold-open contract for the Subagents empty state — ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts:838-839
    Replacing the desktop Subagents sentence with PanelEmptyState makes readColdOpenOutcome return generic-empty instead of content. This assertion then requires an enabled action, although an empty Subagents list has no action and had none before the patch. The exact-head UI E2E shard fails here with “Subagents offers an enabled action.” Add an explicit Subagents expectation for its heading, explanation, and actionless state, as the test already does for Processes; retain action checks for actionable panels.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test:ui:e2e ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 5b4ee4d adds ui/src/pages/chat/components/chat-sidebar-region.runtime.tsx:100 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5b4ee4d1465a; files: ui/src/pages/chat/components/chat-sidebar-region.runtime.tsx)

PR surface

Source -28. Total -28 across 22 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 22 83 111 -28
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 22 83 111 -28

Labels

Label changes:

  • add P3: The user-facing change improves visual consistency; the identified blocker is a narrow test-contract mismatch.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit 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 improves visual consistency; the identified blocker is a narrow test-contract mismatch.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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 October 23, 2026, 4:25 PM ET / 20:25 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 904ab2e into main Oct 24, 2026
103 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-panel-empty-states branch October 24, 2026 00:11
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
…penclaw#181892)

* fix(ui): align empty states across session panels

* test(ui): find browser start action by accessible name
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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