Skip to content

fix(ui): show session participation permissions in sharing - #180136

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/sharing-membership-label-fix
Oct 23, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
brzezowski/sharing-membership-label-fix

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

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.

  • Shared and Draft hide the people/permissions section.
  • Read-only and Suggest show the server-projected choices. Inherited Can send remains fixed; editable choices add or remove only the existing explicit grant.
  • Permission chevrons point down when closed and up when expanded, using the existing muted color on desktop, compact header and mobile.
  • Current main's lazy Sharing content, async read/action presentation, and error boundaries are retained. A stable error anchor preserves compact-menu focus when a rejected change is reported.

Risk and coverage

No permission policy, global role, admission, storage, migration or protocol-version change. The optional session.members.listEvidence.permissions field is read-only; legacy session.members.list is 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-disabled override 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 PR 370ec0df94af06bc2d499bbba2e9c645e50ee3c0. Matching synthetic Owner/Alice data in Read-only, Suggest, Shared and Draft. Captures are from that exact published head.

Desktop: main above, PR below.

Desktop main and final PR across all sharing modes

Mobile: main above, PR below.

Mobile main and final PR across all sharing modes

Final permission selector, closed and expanded. Normal focus outlines are unchanged; the chevrons stay neutral.

Final desktop and mobile permission selectors closed and expanded

@clawsweeper

clawsweeper Bot commented Oct 22, 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 October 22, 2026 01:38
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Sharing candidates display Add instead of Visitor on desktop and mobile.

Example: Morgan Reed appears in known identities without an explicit session membership grant.

  • Before: Sharing displays Morgan Reed as Visitor.
  • After: Sharing displays Add; explicit members and the owner retain their labels and checks.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused, source-supported correction with inspected production UI proof, meaningful consumer regressions, and successful exact-head CI.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the production desktop sharing menu and mobile Sharing page with matching synthetic Gateway evidence at the declared base and reviewed head, showing Add for candidates and unchanged Owner/Member checks.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Known people without an explicit session grant appear to have Visitor status even though the UI has no evidence of their account role.
Reason: The maintainer-authored correction restores truthful presentation with a small change and preserves the existing sharing controls.

Regression provenance

Possible 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
Reviewed head: 1245955f6f3577f97826c6ddbd793d799e1da6cc

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Candidate labels and English copy changes intended behavior with a stated reason (c6f1d3d: The earlier PR sought clearer sharing labels using known membership facts.)
  • Shared roster and mobile membership presentation keeps the original intent (ef273ce: Keep sharing presentation derived from native membership evidence without treating membership as effective permission.)
  • Desktop keyed and lazy roster rendering keeps the original intent (b652f39: Defer closed-menu rendering and avatar work while retaining row identity and interaction behavior.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit ef273ce adds ui/src/pages/chat/components/chat-session-sharing-shared.tsx:182 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ef273ce110b1; files: ui/src/pages/chat/components/chat-session-sharing-shared.tsx)
  • Peter Steinberger: Raw commit b652f39 adds ui/src/pages/chat/components/chat-session-sharing.solid.tsx:379 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b652f39e09d5; files: ui/src/pages/chat/components/chat-session-sharing.solid.tsx)

PR surface

Source -10, Tests +73. Total +63 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 22 32 -10
Tests 2 79 6 +73
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 101 38 +63

Review metrics

Metric Value Why it matters
Production versus test LOC Production +22/-32; tests +79/-6 Production shrinks by consolidating desktop presentation into the existing projection; test growth covers visible labels, confirmed add/remove transitions, retained rows, and mobile accessible names.

Labels

Label changes:

  • add P2: The current sharing UI misleadingly classifies established people as visitors, with limited impact because actual permissions remain intact.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The current sharing UI misleadingly classifies established people as visitors, with limited impact because actual permissions remain intact.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 9:54 PM ET / October 22, 2026, 01:54 UTC.

@vyctorbrzezowski vyctorbrzezowski changed the title fix(ui): stop labeling sharing candidates as visitors fix(ui): show session participation permissions in sharing Oct 22, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XL and removed size: S labels Oct 22, 2026
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 23, 2026 15:27
@vyctorbrzezowski
vyctorbrzezowski merged commit e3da7af into main Oct 23, 2026
151 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/sharing-membership-label-fix branch October 23, 2026 16:06
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
…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
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
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 gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XL 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