Repository navigation
fix(ui): quiet expanded child-session toggles - #110470
Conversation
There was a problem hiding this comment.
💡 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".
| @media (hover: none), (pointer: coarse) { | ||
| .sidebar-child-session-toggle[aria-expanded="true"] { | ||
| opacity: 1; | ||
| pointer-events: auto; | ||
| } |
There was a problem hiding this comment.
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 👍 / 👎.
|
Merged via squash.
|
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
› Nstays always visible (plus running/failed tint), since it is the only signal that hidden children exist.⌄collapse control fades in alongside the pin/menu actions.session-actiontouch override.Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts— 107 tests pass.› 1; expanded resting row shows nothing; hovering the row reveals the⌄control; clicking it still collapses (:focus-withinkeeps it visible after click, so it remains clickable).