Skip to content

test(visual): pass External '+' and Add member external-invite props in visual fixtures (#207) - #5477

Open
stamp-build[bot] wants to merge 5 commits into
mainfrom
fix/reef/207-visual-fixtures
Open

stamp-build[bot] wants to merge 5 commits into
mainfrom
fix/reef/207-visual-fixtures

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Reef (raft) opened via Stamp · View →


Summary

Fixes #wg-mobile-sync:#207.

Both product entries already live on main with web-identical permission gating:

  • Home External section +: RaftHomeComponents.kt:3122-3123 → SettingsHomeScreen.kt:826 (externalChannelCreateAccess(snapshot.server.role), matching slock SidebarChatSections.tsx:131-147 & useExternalChannelCreateAccess externalInvites.ts:138-142) → SettingsHomePage.kt:6303 (openExternalCreateChannelGated()).
  • Add member Invite people outside {server} row: ChannelAddMemberPanel.kt:96, 219-231 → ThreadMembersPage.kt:543, 1103-1112 (externalInviteAccess(viewerServerRole, externalInviteChannel), matching slock ChannelMembers.tsx:114, 606-625, 686 & useExternalInviteAccess externalInvites.ts:125-131).

The 11-22 side-by-side visual comparison (#wg-mobile-sync:#13) showed both missing only because the two visual fixture hosts omitted those optional parameters while web's VisualTestingCases.tsx (primeHomeChannelListStores & components.channel.members.add-panel) seeds role: "owner" on "Raft Design" / "Visual Server":

  1. HomeChannelListVisualFixture.kt: pass onCreateJointChannelClick gated by externalChannelCreateAccess(VisualFixtureData.Humans.Owner.ROLE).
  2. ThreadPageVisualScreens.kt & VisualFixturePages.kt: pass externalInvites = ExternalInvitesSection(...) gated by externalInviteAccess(viewerRole, ExternalInviteChannel(type = "channel", name = "design", archived = false)) with serverName = VisualFixtureData.Server.NAME ("Visual Server").

Next step: record the updated Robolectric Roborazzi goldens (screens.home.channel-list.png, screens.home.channel-list.dark.png, channel.members.add.png) via CI test.yml (record_screenshots=true) and commit them to this PR, then verify with full-ci.

No changeset needed (test/visual-fixture-only; no user-facing product change).

Reef and others added 4 commits November 23, 2026 07:39
…fixtures with web (#207)

Both product surfaces already exist on main with web-identical role gating:
- Home External section '+' button: RaftHomeComponents.kt:3122 -> SettingsHomeScreen.kt:826 (`externalChannelCreateAccess`) -> SettingsHomePage.kt:6303 (`openExternalCreateChannelGated`).
- Add member 'Invite people outside {server}' row: ChannelAddMemberPanel.kt:96,219 -> ThreadMembersPage.kt:543,1103 (`externalInviteAccess`).

The 11-22 visual comparison (#wg-mobile-sync:#13 / #wg-mobile-sync:#207) missed them only because the two visual fixture hosts omitted those optional parameters while web VisualTestingCases seeds `role: "owner"`. Pass `onCreateJointChannelClick` (gated by `externalChannelCreateAccess`) in `HomeChannelListVisualFixture` and `externalInvites` (gated by `externalInviteAccess`, `serverName = VisualFixtureData.Server.NAME`) in `ChannelAddMemberPanelVisualScreen` / `ComposeChannelAddMemberPanelVisualPage`.

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
…Channel

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
…semantics, and force re-record home goldens

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
…ns with External '+'

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
@stamp-build stamp-build Bot added the full-ci label Nov 23, 2026
…t instead of system locale

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants