Skip to content

fix(ui): reduce sidebar title movement on hover - #132415

Merged
steipete merged 1 commit into
mainfrom
openclaw/if-we-have-a-unread-indicator-and-we-hover-we-could-hide-it-so-5
Aug 29, 2026
Merged

steipete merged 1 commit into
mainfrom
openclaw/if-we-have-a-unread-indicator-and-we-hover-we-could-hide-it-so-5

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Closes #132401

What Problem This Solves

Resolves a problem where hovering or keyboard-focusing a single-line sidebar session squeezed its title more than necessary: the unread and pull-request icons kept consuming space while pin/menu actions appeared.

Why This Change Was Made

Temporarily collapse unread/PR icons and their otherwise-empty layout containers at the existing sidebar hover/focus boundary. Reuse the canonical badge renderer and CSS; no new JavaScript state, dependency, or setting.

User Impact

Single-line session titles keep more room when actions appear. Icons return afterward without marking the session read. Running/attention indicators, other badges, two-line rows, and child rows retain their existing behavior.

Evidence

  • Focused browser suites: 11 assertions/tests passed across chat-flow.sidebar-presentation.e2e.test.ts and session-management.trailing-state.e2e.test.ts on the refreshed branch. Command: OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-flow.sidebar-presentation.e2e.test.ts ui/src/e2e/session-management.trailing-state.e2e.test.ts.
  • Covers hover and keyboard focus, restoration afterward, reclaimed title width, unread/PR coexistence, active-state preservation, touch actions, and two-line geometry.
  • Original implementation reproduced the failure before adding the CSS rule. Current-main refresh removes the retired PR-icon selector and uses the canonical shared PR badge.
  • Production LOC: +12/-0 CSS. Tests: +64/-3. Growth implements the requested presentation capability at the existing layout owner; no new runtime state or event handlers.
  • Standalone live-flow attempt: an isolated loopback Gateway was started with a temporary state directory, no ambient channels, and no provider credentials. Its normal UI gates conversation creation at Connect a verified AI model, so live session-row proof could not proceed. The screenshots below are inspected Chromium screenshots of the real Control UI with a mocked Gateway, not live provider/Gateway proof.
  • Production UI build passed: node scripts/ui.js build. Branch and rebase-adaptation autoreview passes both returned no accepted/actionable findings.
  • One refreshed full browser run passed all 11 tests but hit the wrapper no-output watchdog during synchronous temporary-directory deletion (exit 137). A process sample identified filesystem cleanup, not a running test. The two changed scenarios then passed with exit 0 under the normal limits: the same command plus -t 'keeps session titles on the first line|aligns trailing unread dots'. The changed-check run initially hit stale local dependencies (@types/jsdom missing); pnpm install --frozen-lockfile repaired the install without source changes. The remaining core/UI types, targeted oxlint, and stylelint commands then passed. Exact-head CI also passed: https://github.com/openclaw/openclaw/actions/runs/33237186869.

Resting row

Unread and PR icons at rest

Hovered row

Unread and PR icons collapse beside the hover actions

AI-assisted. Requested and reviewed as a small Control UI presentation improvement; no configuration, protocol, provider, persistence, or security-boundary changes.

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 29, 2026
@steipete
steipete marked this pull request as ready for review August 29, 2026 05:53
@steipete steipete self-assigned this Aug 29, 2026
@steipete

steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Landing review for head 779c66d529302687312df6de11387b0680fb7c0e:

No blocking findings. The sidebar layout owner now trades unread/PR glyph tracks for hover/focus action space on single-line non-child rows, restoring them afterward without changing unread or PR state. Current-main comparison preserves the consolidated PR badge renderer. Running indicators, other badges, two-line metadata, and child rows keep their existing paths.

Best-fix verdict: shared CSS is the appropriate owner. Opacity would retain the occupied width; permanent action reservation would shrink resting titles; pointer handlers would duplicate CSS state. Production +12/-0 CSS; tests +64/-3. The added CSS implements the requested visual behavior without new state, configuration, dependency, or runtime paths.

Validation:

  • Exact-head hosted CI passed: https://github.com/openclaw/openclaw/actions/runs/33237186869 (type/lint checks and UI/browser lanes included).
  • node scripts/ui.js build — passed.
  • Fresh branch autoreview plus rebase-selector adaptation autoreview — no accepted/actionable findings.
  • OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-flow.sidebar-presentation.e2e.test.ts ui/src/e2e/session-management.trailing-state.e2e.test.ts — all 11 assertions passed. The refreshed run later exited 137 while synchronously deleting temporary files; process sampling confirmed cleanup, not a running test.
  • Same test command with -t 'keeps session titles on the first line|aligns trailing unread dots' and without capture — 2 changed scenarios passed, exit 0, normal limits unchanged.
  • node scripts/check-changed.mjs -- ui/src/styles/layout.css ui/src/e2e/chat-flow.sidebar-presentation.e2e.test.ts ui/src/e2e/session-management.trailing-state.e2e.test.ts — formatting, policy, export, and i18n gates passed; local typechecking found a stale install missing the already-declared @types/jsdom. Frozen-lockfile refresh completed without source changes. pnpm tsgo:core:test, pnpm tsgo:ui, and the exact remaining run-oxlint.mjs / run-stylelint.mts commands from the changed-check plan then all passed (exit 0). Hosted exact-head type/lint gates also passed.
  • git diff --check — passed.

The PR body contains inspected resting/hover screenshots from the real compiled Control UI with a mocked Gateway. A standalone isolated Gateway attempt hit its normal Connect a verified AI model gate before it could create conversation rows, so this is not claimed as live Gateway/provider proof. The temporary Gateway/browser were stopped.

Latest ClawSweeper review (#132415 (comment)) has no actionable correctness/security findings. Its next step is normal maintainer exact-head landing checks; those are complete, including native OPENCLAW_TESTBOX=1 scripts/pr prepare-run 132415. Its incidental vector/embedding storage warning is a false positive: the entire production diff is 12 CSS lines, with no storage, schema, migration, or embedding changes. No migration proof applies. No additional Rank-up moves are listed. Named follow-up: synchronous E2E temporary-directory cleanup can exceed the no-output watchdog under filesystem pressure; no timeout increase or weaker assertion was used here.

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 2:03 AM ET / 06:03 UTC.

ClawSweeper review

What this changes

The PR hides unread and pull-request indicators while single-line sidebar rows show hover or keyboard-focus actions, giving session titles more room.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this fresh maintainer PR open: current main still reserves hover-action width without collapsing the unread or pull-request tracks, while the introduced CSS applies the requested owner-local presentation change. No blocking correctness or security defect was found.

Priority: P3
Reviewed head: 779c66d529302687312df6de11387b0680fb7c0e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-local CSS change with targeted browser coverage and no identified correctness or security defect.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply. The PR body provides focused browser evidence and before/after screenshot links; attachment download could not be rechecked because outbound DNS was unavailable, which is a reviewer limitation rather than a contributor-proof failure.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply. The PR body provides focused browser evidence and before/after screenshot links; attachment download could not be rechecked because outbound DNS was unavailable, which is a reviewer limitation rather than a contributor-proof failure.
Evidence reviewed 8 items Current main does not yet implement the requested layout: Current main reserves action space for a hovered or focused single-line row but has no rule that removes unread or pull-request tracks, so the central presentation improvement remains necessary.
Introduced change is at the layout owner: The introduced selector removes only unread and pull-request indicators, plus their containers when empty, at the same single-line hover/focus boundary that reserves row-action space.
Renderer and badge boundaries preserve other state: The row renderer composes shared badges, trailing unread/running state, and pin/menu actions separately; the shared badge renderer identifies pull-request badges specifically, supporting the narrow CSS selector rather than new state logic.
Findings None None.
Security None None.

How this fits together

The Control UI renders Gateway session state into sidebar rows, including unread, pull-request, running, and action indicators. The changed stylesheet governs how those indicators share space when row actions become visible.

flowchart LR
  A[Gateway session data] --> B[Sidebar row renderer]
  C[Pull-request summary] --> D[Shared row badges]
  B --> E[Unread and running state]
  D --> F[Sidebar row layout]
  E --> F
  G[Hover or keyboard focus] --> H[Session actions]
  H --> F
  F --> I[Visible title and indicators]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed because no actionable defect was found; retain this protected maintainer PR for normal exact-head landing checks.
Agent review details

Security

None.

PR surface

Source +12, Tests +61. Total +73 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 12 0 +12
Tests 2 64 3 +61
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 76 3 +73

Review metrics

Metric Value Why it matters
Production versus test LOC production +12/-0; tests +64/-3 The small CSS addition is localized to the existing layout owner, with focused browser coverage for its hover and focus behavior.

Stored data model

Persistent data-model change detected: vector/embedding metadata: ui/src/styles/layout.css. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #132401
Summary: This PR is the explicit candidate implementation for the open sidebar title-stability request.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Land the owner-local CSS refinement through normal maintainer gates; it reclaims layout space without adding state, configuration, or a parallel rendering path.

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

Yes, from source: current main reserves action width while retaining the unread/PR tracks, and the added browser assertions that wait for those tracks to become hidden would fail without the introduced selector.

Is this the best way to solve the issue?

Yes. The stylesheet owns both the action-space reservation and visual layout, so a narrow CSS rule avoids unnecessary JavaScript state or renderer changes.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against aa4e4be7a027.

Labels

Label changes:

  • add P3: This is a contained Control UI presentation refinement with no data, security, availability, or delivery impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is a contained Control UI presentation refinement with no data, security, availability, or delivery impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Current main does not yet implement the requested layout: Current main reserves action space for a hovered or focused single-line row but has no rule that removes unread or pull-request tracks, so the central presentation improvement remains necessary. (ui/src/styles/layout.css:2114, aa4e4be7a027)
  • Introduced change is at the layout owner: The introduced selector removes only unread and pull-request indicators, plus their containers when empty, at the same single-line hover/focus boundary that reserves row-action space. (ui/src/styles/layout.css:2121, 779c66d52930)
  • Renderer and badge boundaries preserve other state: The row renderer composes shared badges, trailing unread/running state, and pin/menu actions separately; the shared badge renderer identifies pull-request badges specifically, supporting the narrow CSS selector rather than new state logic. (ui/src/components/app-sidebar-session-row-render.ts:379, 779c66d52930)
  • Shared catalog rows use the same layout contract: Catalog rows intentionally use the same single-line row classes, shared badges, and action-reserve mechanism, so the stylesheet remains the common presentation boundary rather than duplicating behavior in a renderer. (ui/src/components/app-sidebar-session-catalog-render.ts:536, 779c66d52930)
  • Focused regression coverage exercises the new states: The added browser assertions verify unread-title width reclamation, hover and focus restoration, and pull-request/unread indicator collapse without changing the surrounding session state. (ui/src/e2e/chat-flow.sidebar-presentation.e2e.test.ts:621, 779c66d52930)
  • Exact-head CI status is green for UI coverage: The supplied PR status lists successful checks-ui, all checks-ui-e2e shards, and checks-ui-e2e-real-gateway for the reviewed head. (779c66d52930)

Likely related people:

  • steipete: The PR author also appears in recent history for the exact shared sidebar stylesheet, including the immediately preceding area change. (role: recent area contributor; confidence: high; commits: 779c66d52930, 1c40abdb63b8; files: ui/src/styles/layout.css, ui/src/components/app-sidebar-session-row-render.ts)
  • Vyctor H. Brzezowski: Recent history for the same stylesheet includes a focused session-action layout change, making this a relevant adjacent UI owner. (role: recent adjacent contributor; confidence: medium; commits: a1e4e4ec5257; files: ui/src/styles/layout.css)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit cb7eecd into main Aug 29, 2026
158 checks passed
@steipete
steipete deleted the openclaw/if-we-have-a-unread-indicator-and-we-hover-we-could-hide-it-so-5 branch August 29, 2026 06:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 29, 2026
#132415 landed in parallel using the sidebar dashboard badge as its
stable trailing icon; with row badges removed, the only-unread-track-
collapses invariant stays covered by the busy-row endcap opacity poll.
steipete added a commit that referenced this pull request Aug 29, 2026
…ssion hovercard (#132388)

* improve(ui): move sidebar dashboard and automation badges into the session hovercard

Session rows and the Home nav item no longer render the always-visible
'dashboard available' grid badge or the 'automation attached' clock; both
facts now appear as metadata rows in the session hovercard, sourced from
the row-borne boardFace and hasAutomation fields. This deletes the
BoardAvailabilityController probe fleet (a board.get RPC per visible
sidebar session with event resubscription and retry backoff) plus the
boardAvailability cache — the hovercard reads recorded facts instead of
client-side probing. Attention/state badges (approval, attention, PR,
cloud placement, disk, incognito, draft) and the child-session expand
toggle are unchanged. Startup JS drops below the committed baseline;
boot manifest regenerated; assertion-safety baseline shrinks by the
deleted file's entry.

# Conflicts:
#	ui/src/e2e/chat-flow.sidebar-presentation.e2e.test.ts

* improve(ui): label the hovercard dashboard fact as the recorded preference

'Opens as dashboard' states the persisted boardFace fact directly instead
of claiming board existence, which boardFace does not prove (review
finding: a populated board switched to chat face would lose the old
'available' claim while an empty dashboard-face session gained it).

* test(ui): adapt title-shift e2e to the badge-less endcap

#132415 landed in parallel using the sidebar dashboard badge as its
stable trailing icon; with row badges removed, the only-unread-track-
collapses invariant stays covered by the busy-row endcap opacity poll.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
…ssion hovercard (openclaw#132388)

* improve(ui): move sidebar dashboard and automation badges into the session hovercard

Session rows and the Home nav item no longer render the always-visible
'dashboard available' grid badge or the 'automation attached' clock; both
facts now appear as metadata rows in the session hovercard, sourced from
the row-borne boardFace and hasAutomation fields. This deletes the
BoardAvailabilityController probe fleet (a board.get RPC per visible
sidebar session with event resubscription and retry backoff) plus the
boardAvailability cache — the hovercard reads recorded facts instead of
client-side probing. Attention/state badges (approval, attention, PR,
cloud placement, disk, incognito, draft) and the child-session expand
toggle are unchanged. Startup JS drops below the committed baseline;
boot manifest regenerated; assertion-safety baseline shrinks by the
deleted file's entry.

# Conflicts:
#	ui/src/e2e/chat-flow.sidebar-presentation.e2e.test.ts

* improve(ui): label the hovercard dashboard fact as the recorded preference

'Opens as dashboard' states the persisted boardFace fact directly instead
of claiming board existence, which boardFace does not prove (review
finding: a populated board switched to chat face would lose the old
'available' claim while an empty dashboard-face session gained it).

* test(ui): adapt title-shift e2e to the badge-less endcap

openclaw#132415 landed in parallel using the sidebar dashboard badge as its
stable trailing icon; with row badges removed, the only-unread-track-
collapses invariant stays covered by the busy-row endcap opacity poll.
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 maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve sidebar title stability when unread and PR icons trade space with hover actions

1 participant