Skip to content

fix(ui): prevent owner filter row overlap - #138281

Closed
vyctorbrzezowski wants to merge 4 commits into
mainfrom
fix/sidebar-filter-owner-row-overlap
Closed

vyctorbrzezowski wants to merge 4 commits into
mainfrom
fix/sidebar-filter-owner-row-overlap

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

When a specific session owner was selected, the filter row rendered the owner avatar and full display name beside the fixed Specific owner label and trailing chevron. Long names consumed the row's remaining space, causing overlap at desktop width and truncating the label in the 390 px mobile drawer. The compact drawer also added a mobile-only group icon, separated the avatar from the chevron, and lost the standard label inset when the icon was removed.

Why This Change Was Made

This uses Option A: the selected row now shows only the owner's avatar. The full display name remains available in the row's accessible label and in the owner submenu, while the fixed label and chevron keep their existing 220 px menu geometry. The compact row now matches desktop by omitting the redundant leading icon, retaining the standard iconless-row inset, and placing the avatar and chevron in one trailing details rail with a 6 px gap. Both templates preserve the standard row inset without a label-specific margin. Compact navigation labels remain direct default-slot content, matching the dropdown's label and accessible-name contract. The full production change remains net negative: +18/-48 lines (net -30).

User Impact

The Specific owner label remains fully readable and shares the left edge of All owners at desktop and mobile widths. The selected avatar stays right-aligned directly beside the chevron, and the mobile drawer no longer shows an extra group icon. Owner selection behavior is unchanged, and compact drill-in rows retain their visible and accessible labels.

Evidence

The captures in this PR use the same long selected owner, built Control UI flow, and mock Gateway response before and after the repair. All four after captures are from the current exact head and were inspected for label alignment and trailing-value spacing.

Width / theme Before After
1440 px / dark Before at 1440 px in dark theme After at 1440 px in dark theme
1440 px / light Before at 1440 px in light theme After at 1440 px in light theme
390 px / dark Before at 390 px in dark theme After at 390 px in dark theme
390 px / light Before at 390 px in light theme After at 390 px in light theme

The alignment regression test failed before the production edit because the compact row's label was about 8 px left of All owners; desktop also had a subpixel mismatch. It passes after the edit and asserts both labels share the same rendered-pixel origin at 390 px and 1440 px, while retaining the no-icon, 0-8 px avatar-to-chevron, visibility, and menu-boundary checks. A shared-renderer regression test also covers icon, iconless, and avatar/details rows so moving or emptying a compact label fails at the owner boundary. The existing chat-header test verifies every compact management drill-in label.

Validation:

  • OPENCLAW_CAPTURE_UI_PROOF=1 OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-owner-filter-keyboard.e2e.test.ts — 4 passed
  • OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test ui/src/pages/chat/components/chat-header-session-menu.test.ts ui/src/components/session-menu-compact.test.ts — 19 passed
  • PATH=/tmp/xowner-pnpm-bin:$PATH OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/check-changed.mjs — passed

Risk and coverage

  • Other rows: generic compact navigation rows retain direct default-slot labels and their configured leading icons; only the owner row omits the redundant group icon.
  • Themes: dark and light captures cover both 1440 px and 390 px layouts.
  • RTL: compact owner-navigation direction coverage passes, including logical arrow placement.
  • Mobile drawer: the 390 px flow opens the real compact drawer, selects the long owner, reopens the menu, and checks icon presence and trailing geometry.
  • Dropdown contract: the default slot remains the visible and accessible row label. The details slot applies a leading margin to each slotted element, so the avatar and chevron are grouped in one slot wrapper and use the existing explicit 6 px gap.
  • Proof and gaps: the built UI flow covers the reported invariant and captures the repaired behavior. Native macOS font rasterization was not separately captured.

Provenance

The selected avatar and display-name treatment regressed in 2bb2f63a435f03902b49b65c2411776837a62c46 from #135525, authored by @vyctorbrzezowski.

Owner decision

Control UI owner decision (maintainer, this PR): the selected-owner row in the constrained filter menu uses the avatar-only presentation. The full owner name stays in the accessible label and in the owner submenu; the density trade-off is accepted because the truncated name overlapped the trailing controls at 220 px and on the 390 px drawer.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 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 September 4, 2026 13:25
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 4, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 11:38 AM ET / 15:38 UTC.

ClawSweeper review

What this changes

This PR replaces the selected owner’s visible name with an avatar in the bounded session-filter row, preserves the full name in accessibility text and the owner submenu, and aligns compact and desktop spacing.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open: current main still contains the selected-owner name layout that this branch removes, and the member-authored PR records the accepted avatar-only presentation. No blocking correctness finding was found; the protected maintainer label requires normal maintainer handling rather than automated cleanup.

Priority: P3
Reviewed head: adde66250ce66459b6b4415755fffd87d7082287

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused, net-negative UI repair with targeted browser and component coverage; the remaining artifact-download limitation is reviewer-side only.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external-contributor proof gate. Its body supplies built Control UI before/after captures and an exact-path browser-test result, although this reviewer could not independently download the attachments because github.com DNS resolution failed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate. Its body supplies built Control UI before/after captures and an exact-path browser-test result, although this reviewer could not independently download the attachments because github.com DNS resolution failed.
Evidence reviewed 6 items Current-main pre-fix state: Fetched main still renders the selected owner as an avatar plus the display-name span, and compact mode supplies a leading users icon; this is the layout this PR changes.
Exact-head owner-row repair: The PR head makes selected details avatar-only, removes the compact leading icon for this row, and uses the standard label wrapper for the desktop submenu row.
Shared compact-menu contract: The shared renderer now emits an icon slot only when a caller supplies one and keeps optional details plus the chevron in one trailing details rail; the other session-menu caller continues to provide its icons.
Findings None None.
Security None None.

How this fits together

The Control UI session filter turns Gateway owner data into a bounded dropdown row. The shared compact menu renderer supplies its label, optional leading icon, and trailing details for both session-management navigation and owner filtering.

flowchart LR
  A[Gateway owner list] --> B[Session filter renderer]
  B --> C[Selected owner state]
  C --> D[Desktop dropdown row]
  C --> E[Compact navigation row]
  D --> F[Accessible label and avatar]
  E --> F
Loading

Before merge

  • Resolve merge risk (P1) - The supplied GitHub before/after captures could not be independently downloaded in this environment because DNS resolution failed; the PR’s visual evidence remains available to maintainers on the PR.
Agent review details

Security

None.

PR surface

Source -30, Tests +92. Total +62 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 4 18 48 -30
Tests 2 210 118 +92
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 228 166 +62

Review metrics

Metric Value Why it matters
Production versus test delta production +18/-48 (net -30); tests +210/-118 (net +92) The bug fix removes obsolete name/overflow styling while adding browser and component regression coverage.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the owner-approved avatar-only presentation, with the accessible label and owner submenu as the full-name surfaces, once normal exact-head maintainer checks complete.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the owner-approved avatar-only presentation, with the accessible label and owner submenu as the full-name surfaces, once normal exact-head maintainer checks complete.

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

Yes, source-reproducible: fetched main renders the selected owner name beside the fixed row label, and the submitted browser test drives a long selected name through 1440 px and 390 px layouts. This read-only review did not execute the browser scenario.

Is this the best way to solve the issue?

Yes. Moving the invariant into the shared compact renderer and removing the selected name at the constrained owner-row boundary is cleaner than adding another overflow rule, while icon-bearing session-management rows retain their existing behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P3: This is a localized Control UI layout repair with no evidence of data, security, message-delivery, or availability impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate. Its body supplies built Control UI before/after captures and an exact-path browser-test result, although this reviewer could not independently download the attachments because github.com DNS resolution failed.

Evidence

What I checked:

Likely related people:

  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-04T13:34:09.109Z sha 9509140 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-04T14:59:10.746Z sha adde662 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Sep 4, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Superseded by #141405 from @steipete, which landed on main today and fixes the same overlap between the selected owner and the "Specific owner" label in the sessions filter menu. main now keeps the selected owner's avatar plus a truncated name beside the label (ui/src/components/app-sidebar-session-menu-renderers.ts, ui/src/styles/sidebar-menus.css, with the keyboard e2e asserting the name), so the avatar-only approach in this PR no longer applies. Closing; if an avatar-only presentation is still wanted, it should be proposed on top of the current layout as a separate change.

@RomneyDa
RomneyDa deleted the fix/sidebar-filter-owner-row-overlap branch October 22, 2026 00:22
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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant