Repository navigation
fix(ui): prevent owner filter row overlap - #138281
vyctorbrzezowski wants to merge 4 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 11:38 AM ET / 15:38 UTC. ClawSweeper reviewWhat this changesThis 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 provenancePossible 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 Review scores
Verification
How this fits togetherThe 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
Before merge
Agent review detailsSecurityNone. PR surfaceSource -30, Tests +92. Total +62 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Superseded by #141405 from @steipete, which landed on |
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 ownerlabel 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 ownerlabel remains fully readable and shares the left edge ofAll ownersat 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.
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 passedOPENCLAW_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 passedPATH=/tmp/xowner-pnpm-bin:$PATH OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/check-changed.mjs— passedRisk and coverage
Provenance
The selected avatar and display-name treatment regressed in
2bb2f63a435f03902b49b65c2411776837a62c46from #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.