Skip to content

feat(ui): sidebar rows use full width; actions overlay with a hover fade - #110959

Merged
steipete merged 1 commit into
mainfrom
claude/sidebar-row-full-width-fade
Jul 18, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/sidebar-row-full-width-fade

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Sidebar session rows permanently reserve the width of the hover-only action cluster (pin + menu, ~50px), so titles truncate — "Home server migr…", "Long running session …" — while the reserved space sits empty at rest. The buttons only matter while hovering; the title matters all the time.

Why This Change Was Made

CSS-only restructure of the row's trailing aside, scoped to sidebar rows (the shared chat session picker is untouched):

  • The aside (relative-time trail + action buttons) now overlays the row absolutely instead of sitting in-flow, so resting titles run to the sidebar edge. It is pointer-events: none at rest — clicks on the newly covered link tail pass through; the buttons re-enable their own pointer-events on hover/focus (existing rule).
  • While the actions are surfaced (row hover/focus), the link content fades out beneath them with a ~28px mask gradient — a mask rather than a background scrim, so the fade is correct over rest, hover, active, and selected row backgrounds without color matching.
  • Rows with a child toggle keep the toggle as the rightmost in-flow control (chevron + count stay legible); the overlaid actions land just left of it, which is the same link-relative geometry as toggle-less rows, so one mask rule fits both.
  • Child rows keep the in-flow aside: their runtime trail is resting content, not a hover swap.
  • Touch pointers keep actions always visible (existing behavior), so the fade is permanent there.

Leading state chrome (unread dot, run spinner) is unaffected; trailing glyphs (dashboard, badges) fade under the buttons only while the row is hovered.

User Impact

Sidebar rows show meaningfully more of every title at rest; hovering swaps the tail for the management controls with a soft fade instead of a layout jump.

Before After
Before: rest After: rest
Before: hover After: hover

Hovered row with a child toggle (actions sit left of the chevron + count, title fades beneath them):

After: hover with child toggle

Evidence

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 18, 2026
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 5:06 PM ET / 21:06 UTC.

Summary
The branch changes sidebar session-row styling so the trailing action cluster overlays the row, allowing titles to use the full resting width and fade beneath controls on hover, focus, and touch layouts.

PR surface: Source +37. Total +37 across 1 file.

Reproducibility: not applicable. This PR proposes a visual sidebar refinement rather than reporting a currently failing behavior. The claimed result is directly observable through a Control UI sidebar run.

Review metrics: none identified.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦐 gold shrimp
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add accessible, redacted Control UI screenshots or a short recording that visibly exercises resting, hover/focus, child-toggle, and coarse-pointer states.
  • After adding proof, update the PR body to trigger a fresh ClawSweeper review; if it does not trigger, ask a maintainer to comment @clawsweeper re-review.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The PR body links before/after screenshots and describes mock-harness verification, but those external visual artifacts could not be independently inspected here; provide accessible redacted before/after screenshots or a short recording that shows resting, hover/focus, child-toggle, and touch behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Risk before merge

  • [P1] The absolute overlay and pointer-events handoff need maintainer-visible confirmation that ordinary link clicks, keyboard focus, action buttons, child toggles, and coarse-pointer layouts remain usable; the linked screenshots were not independently inspectable in this review.

Maintainer options:

  1. Decide the mitigation before merge
    Keep the overlay approach confined to non-child sidebar rows and land it after a maintainer confirms accessible before/after visual proof for resting, hovered, focused, child-toggle, and touch layouts.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] The protected maintainer label and missing independently inspectable real-behavior proof require a maintainer to verify the interaction states before merge.

Security
Cleared: The patch is CSS-only and introduces no dependency, execution, credential, permission, publishing, or supply-chain surface.

Review details

Best possible solution:

Keep the overlay approach confined to non-child sidebar rows and land it after a maintainer confirms accessible before/after visual proof for resting, hovered, focused, child-toggle, and touch layouts.

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

Not applicable: this PR proposes a visual sidebar refinement rather than reporting a currently failing behavior. The claimed result is directly observable through a Control UI sidebar run.

Is this the best way to solve the issue?

Yes, conditionally: keeping the behavior as CSS scoped to the existing sidebar-row structure is the narrowest solution, provided the overlay interaction states are visually confirmed before merge.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add P3: This is a small, localized sidebar presentation refinement rather than a regression in a core user workflow.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body links before/after screenshots and describes mock-harness verification, but those external visual artifacts could not be independently inspected here; provide accessible redacted before/after screenshots or a short recording that shows resting, hover/focus, child-toggle, and touch behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body links before/after screenshots and describes mock-harness verification, but those external visual artifacts could not be independently inspected here; provide accessible redacted before/after screenshots or a short recording that shows resting, hover/focus, child-toggle, and touch behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P3: This is a small, localized sidebar presentation refinement rather than a regression in a core user workflow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body links before/after screenshots and describes mock-harness verification, but those external visual artifacts could not be independently inspected here; provide accessible redacted before/after screenshots or a short recording that shows resting, hover/focus, child-toggle, and touch behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body links before/after screenshots and describes mock-harness verification, but those external visual artifacts could not be independently inspected here; provide accessible redacted before/after screenshots or a short recording that shows resting, hover/focus, child-toggle, and touch behavior.
Evidence reviewed

PR surface:

Source +37. Total +37 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 37 0 +37
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 1 37 0 +37

What I checked:

  • Scoped patch: The submitted patch changes only sidebar-row CSS: it absolutely positions the existing trailing aside, preserves child-row in-flow behavior, applies a hover/focus mask, and adds a touch media rule. (ui/src/styles/layout.css:1942, bb6bbf650061)
  • Related merged sidebar direction: The supplied related history shows the quiet-sidebar direction was recently merged, including thread/sidebar section work that establishes this as adjacent presentation refinement rather than a competing implementation. (ui/src/styles/layout.css:1942, 42bacaa112c5)
  • Current review base: The PR is based on the supplied current main revision and is reported cleanly mergeable, so the review concerns the proposed CSS behavior rather than an unresolved merge conflict. (ui/src/styles/layout.css:1942, 5fe8d6a852ad)

Likely related people:

  • steipete: Recent merged sidebar work in the supplied history covers the same session-list and quiet-sidebar direction, making this the strongest available routing signal for the affected presentation surface. (role: recent area contributor; confidence: medium; commits: 42bacaa112c5, ffb7c9831229, 679f9fcc6819; files: ui/src/styles/layout.css, ui/src/components/app-sidebar.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

Session-row titles run to the sidebar edge instead of reserving the hover
action cluster's width in-flow. The trailing aside overlays the row
(pointer-events off at rest so link clicks pass through) and the link
content fades out beneath the surfaced controls via a mask, which stays
correct over rest/hover/active/selected backgrounds. Rows with a child
toggle keep it rightmost; actions land at the link edge either way. Child
rows keep the in-flow aside since their runtime trail is resting content.
Touch keeps actions visible, so the fade is permanent there.
@steipete
steipete force-pushed the claude/sidebar-row-full-width-fade branch from bb6bbf6 to e6429a2 Compare July 18, 2026 21:38

@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: e6429a2674

ℹ️ 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 +1966 to +1969
.sidebar-recent-session:not(.sidebar-recent-session--child):hover > .sidebar-recent-session__link,
.sidebar-recent-session:not(.sidebar-recent-session--child):focus-within
> .sidebar-recent-session__link {
mask-image: linear-gradient(to right, black calc(100% - 80px), transparent calc(100% - 52px));

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 Size the fade for catalog rows’ single action

When hovering or keyboard-focusing a catalog-only session, the row rendered in ui/src/components/app-sidebar-session-catalogs.ts:411 has only one 24px menu action (ui/src/styles/components.css:5146), but this mask is sized for the normal two-button cluster: it makes the final 52px fully transparent and fades another 28px. This unnecessarily hides roughly an extra button-width of the catalog title—the opposite of the commit’s full-width goal—so the mask width should follow the row/action variant rather than applying the two-action dimensions to every non-child sidebar row.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit 8ff1512 into main Jul 18, 2026
93 checks passed
@steipete
steipete deleted the claude/sidebar-row-full-width-fade branch July 18, 2026 21:47
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 19, 2026
…ade (openclaw#110959)

Session-row titles run to the sidebar edge instead of reserving the hover
action cluster's width in-flow. The trailing aside overlays the row
(pointer-events off at rest so link clicks pass through) and the link
content fades out beneath the surfaced controls via a mask, which stays
correct over rest/hover/active/selected backgrounds. Rows with a child
toggle keep it rightmost; actions land at the link edge either way. Child
rows keep the in-flow aside since their runtime trail is resting content.
Touch keeps actions visible, so the fade is permanent there.
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…ade (openclaw#110959)

Session-row titles run to the sidebar edge instead of reserving the hover
action cluster's width in-flow. The trailing aside overlays the row
(pointer-events off at rest so link clicks pass through) and the link
content fades out beneath the surfaced controls via a mask, which stays
correct over rest/hover/active/selected backgrounds. Rows with a child
toggle keep it rightmost; actions land at the link edge either way. Child
rows keep the in-flow aside since their runtime trail is resting content.
Touch keeps actions visible, so the fade is permanent there.
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 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: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant