Repository navigation
fix(ui): show session participation permissions in sharing - #180136
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: needs maintainer review before merge. What this changesSharing candidates display Add instead of Visitor on desktop and mobile. Example: Morgan Reed appears in known identities without an explicit session membership grant.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR fixes a misleading sharing label still present on main; the focused patch, inspected screenshots, and green exact-head CI support merging without further repair. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI projects Gateway identity and explicit membership evidence into desktop and mobile sharing controls, forwarding user actions to the existing membership owner. flowchart TD
A[Gateway sharing evidence] --> B[Shared roster projection]
B --> C[Desktop sharing menu]
B --> D[Mobile sharing page]
C --> E[Existing membership actions]
D --> E
Technical reviewBest possible solution: Use the existing shared roster projection to label unselected candidates Add while preserving confirmed membership and existing actions. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically renders Visitor for a known non-owner absent from explicit membership, and the supplied before screenshots show that result on both surfaces; no target code was run during this review. Is this the best way to solve the issue? This is a focused correction at the existing presentation owner, removes duplicate desktop membership derivation, and avoids inventing account-role or effective-access facts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d1ec8393ca6f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -10, Tests +73. Total +63 across 6 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 9:54 PM ET / October 22, 2026, 01:54 UTC. |
|
Merged via squash.
|
…180136) * fix(ui): stop labeling sharing candidates as visitors * fix(ui): show session participation permissions in sharing * fix(ui): keep permission chevrons neutral and reflect expansion * fix(ui): retire sharing check styles and preserve disabled menus * fix(ui): type permission fixtures and drop retired disabled selector
The Session access picker labeled people without an explicit grant as Visitor, even when their configured permissions already allowed participation. It now displays the server-projected session permissions.
Risk and coverage
No permission policy, global role, admission, storage, migration or protocol-version change. The optional
session.members.listEvidence.permissionsfield is read-only; legacysession.members.listis unchanged. Rendering does not mutate grants.The final integration has 55 focused UI tests passing, including permission transitions, opaque identity IDs, refresh/retirement, and pending/rejected focus retention. UI typecheck, targeted lint, formatting, stylelint and diff checks pass. Fresh independent review of the full PR against main found no actionable P0–P2 defects; this review was static.
Browser proof uses the actual application with a synthetic Gateway: eight matching mode/viewport scenarios passed on main (19.89 s) and the final candidate (eight cases plus two expanded-menu captures in 16.56 s). Computed chevron color remains
rgb(139, 139, 148)through expansion. This is browser proof, not a live Team server test.CI also caught an undefined
aria-disabledoverride in the shared submenu trigger and three people-search fixtures that still assumed the old Shared-mode member list. Native disabled state is now preserved; the fixtures exercise Read-only permission submenus without dropping search or keyboard assertions. Existing disabled-menu cases reproduced the failure before the fix. All 23 menu browser cases and 9 people-search cases now pass, in addition to the 55 sharing tests (87 focused tests total).The CSS gate caught +595 raw bytes / +79 gzip bytes. Removing five styles retired by this PR and the empty old check marker reduces the measured delta to +29 raw bytes / −36 gzip bytes locally, within the unchanged 64-byte allowances. The same base-comparison command passes against the latest failing CI base. The obsolete disabled-button hover condition is also removed from the replacement div rows; the new permission fixture is explicitly typed and its exact test typecheck leaf passes. The exact-head Linux CI performance job also passes: +62 raw bytes / +27 gzip bytes, within the same 64-byte allowances. Complete desktop/mobile panel PNGs with fixed Owner, inherited Can send and editable Can read rows are byte-identical before/after this cleanup.
The unchanged server projection previously passed handler red/green validation, 39 existing sharing/suggestion tests, and the final 12-test identities rerun. Those results precede the current UI integration; CI validates the published head.
The test audit removed a vacuous row assertion, moved opaque-ID coverage into the existing add/remove interaction, and consolidated duplicate pane setup. The initial refinement removed 50 test lines net and added 14 production lines; integration retains main's additional async coverage rather than deleting it for the line count.
Screenshots
Before = main
0e1123fbfca8e0f7d17a6285f56488fa355a6b73. After = final PR370ec0df94af06bc2d499bbba2e9c645e50ee3c0. Matching synthetic Owner/Alice data in Read-only, Suggest, Shared and Draft. Captures are from that exact published head.Desktop: main above, PR below.
Mobile: main above, PR below.
Final permission selector, closed and expanded. Normal focus outlines are unchanged; the chevrons stay neutral.