Repository navigation
fix(ui): keep chat sharing menu compact - #122322
vyctorbrzezowski merged 3 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 9:16 PM ET / August 12, 2026, 01:16 UTC. ClawSweeper reviewWhat this changesThe PR caps and scrolls the Control UI chat-sharing dropdown for long identity lists, while using distinct person, bot, and channel visuals. Merge readinessNo blocking correctness or security defect was found. This member-authored, maintainer-labeled UI fix has direct screenshots, focused browser coverage, green checks, and a clean three-way merge; it now needs maintainer merge approval. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI receives a session’s sharing policy and selectable identities from the Gateway, then renders them in the chat-header sharing menu. Selecting a visibility or member row calls the existing sharing callbacks back through the Gateway flow. flowchart LR
Gateway[Gateway sharing data] --> Header[Chat header]
Header --> Menu[Sharing menu]
Menu --> Layout[Bounded scroll layout]
Layout --> Choices[Visibility and member choices]
Choices --> GatewayUpdate[Gateway sharing updates]
Decision needed
Why: The patch is correct by source and proof review, but the protected maintainer label requires an explicit human merge decision. Before merge
Agent review detailsSecurityNone. PR surfaceSource +91, Tests +186. Total +277 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the cap, single menu scroll surface, and identity rendering in the existing sharing renderer; no simpler net-neutral refactor is evident because current code has neither menu geometry nor icon slots. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible with high confidence: current main maps all identities into an uncapped menu, and the PR’s browser scenario supplies a long identity list through the real UI boundary. Is this the best way to solve the issue? Yes—the menu renderer is the correct owner: it bounds only presentation while retaining the established Gateway sharing state and callback flow. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9dfc26ba63eb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* fix(ui): keep chat sharing menu compact * fix(ui): refine sharing menu sections * fix(ui): use one sharing menu scroll
Closes #122266
What Problem This Solves
Fixes an issue where owners of shared chats would see a nearly viewport-height sharing dropdown when many member identities were available. The unbounded, text-only list was difficult to scan and did not distinguish people from channel-backed members.
Why This Change Was Made
Long menus are capped at
min(420px, 60vh). The dropdown itself is the single scroll container, so Visibility and Members move together and naturally leave the viewport as the full menu scrolls. There is no nested member-list scroller and no sticky heading behavior.Human rows reuse the existing session-owner avatar treatment; identities shaped like
channel:...or...:channel:...use the existing channel glyph instead of false initials. Section labels and rows share the same 8px left inset. Separators are removed, and Members receives an 8px group gap above its heading so the two sections read as distinct blocks. Selectable items remain direct dropdown children, preserving the component's keyboard navigation. The sharing RPC/state flow is unchanged.User Impact
The sharing menu remains compact with long identity lists, while using one predictable scroll surface. People and channels are visually distinct in both light and dark themes, and the larger inter-group gap makes Visibility and Members easier to scan.
Evidence
All captures use the same 1280×800 viewport. The grouped state has 12 people and 2 channels at the top of the menu. The high-volume state has 30 people and 2 channels with the whole dropdown scrolled 187px; Visibility and the Members heading have both moved above the menu viewport.