Files
buzz/desktop/tests
Matt Toohey 48fccaca32 fix(desktop): fence pre-join rosters to read-only
PR #6852 review found the newly reachable pre-join open-channel roster
was not actually read-only: member rows still surfaced community
moderation (Ban/Timeout, from the relay role) and managed-agent
lifecycle, access, and activity controls (from the viewer's agent
directory), since those authorities don't derive from channel role.

Derive one explicit fence, isReadOnlyRoster = channel.isMember !== true,
in MembersSidebar and apply it to every non-profile affordance and its
supporting action-data fetch: add/search (previously the only gate),
community moderation and the restrictions query, role changes, removal,
managed-agent bulk lists, and the agent runtimes query. Member cards
take a readOnly prop that suppresses the entire row actions menu while
identity, presence, status badges, and profile opening stay.

Adds a Playwright regression that seeds the strongest pre-join viewer —
a community admin who owns a running managed bot inside the unjoined
channel — and proves no row menus or bulk controls render before Join,
then that moderation and agent lifecycle/access controls appear after.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
2026-09-24 11:40:01 +10:00
..