Skip to content

fix(ui): quiet expanded child-session toggles - #110470

Merged
steipete merged 1 commit into
mainfrom
claude/arrow-positioning-grid-c146e6
Jul 18, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/arrow-positioning-grid-c146e6

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Follow-up to #110448/#110459. Parent session rows with children still showed a chevron + child count in every state. When a parent is expanded its children are visible directly below, so both the count and the always-on chevron are redundant chrome that makes the sidebar busier than it needs to be.

Why This Change Was Made

Maintainer request after discussing how to quiet the sidebar: counts should only appear when they carry information (children hidden), and the expanded parent's collapse control should use the same hover-revealed treatment as the existing pin/menu row actions.

User Impact

  • Collapsed parent: unchanged — › N stays always visible (plus running/failed tint), since it is the only signal that hidden children exist.
  • Expanded parent at rest: no chevron, no count — just the title with children listed below.
  • Expanded parent on row hover or keyboard focus: the ⌄ collapse control fades in alongside the pin/menu actions.
  • Touch / coarse-pointer devices keep the collapse control always visible (no hover exists), matching the existing session-action touch override.
Collapsed Expanded (rest) Expanded (hover)
collapsed expanded rest expanded hover

Evidence

  • node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts — 107 tests pass.
  • Live-verified in the Control UI mock harness (screenshots above): collapsed shows › 1; expanded resting row shows nothing; hovering the row reveals the ⌄ control; clicking it still collapses (:focus-within keeps it visible after click, so it remains clickable).
  • Codex autoreview (gpt-5.6-sol) clean: no accepted/actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 18, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 838bfe11f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/styles/layout.css
Comment on lines +1739 to +1743
@media (hover: none), (pointer: coarse) {
.sidebar-child-session-toggle[aria-expanded="true"] {
opacity: 1;
pointer-events: auto;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep collapse toggle visible for hybrid touch input

On hybrid devices whose primary pointer can hover but which also have touch input, this media query does not match because hover/pointer describe the primary input, not every available input (MDN pointer, MDN any-pointer). In that context the expanded toggle stays opacity: 0 with pointer-events: none, so tapping the reserved collapse-control slot cannot collapse the already-expanded parent; include touch-capable hybrids with any-pointer: coarse/similar or avoid disabling pointer events for them.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit b9a0094 into main Jul 18, 2026
111 of 116 checks passed
@steipete
steipete deleted the claude/arrow-positioning-grid-c146e6 branch July 18, 2026 06:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant