Repository navigation
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
Open
stamp-build[bot] wants to merge 5 commits into
stamp-build[bot] wants to merge 5 commits into
Conversation
…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>
…t instead of system locale Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes
#wg-mobile-sync:#207.Both product entries already live on
mainwith web-identical permission gating:+:RaftHomeComponents.kt:3122-3123→SettingsHomeScreen.kt:826(externalChannelCreateAccess(snapshot.server.role), matchingslockSidebarChatSections.tsx:131-147&useExternalChannelCreateAccessexternalInvites.ts:138-142) →SettingsHomePage.kt:6303(openExternalCreateChannelGated()).Invite people outside {server}row:ChannelAddMemberPanel.kt:96, 219-231→ThreadMembersPage.kt:543, 1103-1112(externalInviteAccess(viewerServerRole, externalInviteChannel), matchingslockChannelMembers.tsx:114, 606-625, 686&useExternalInviteAccessexternalInvites.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'sVisualTestingCases.tsx(primeHomeChannelListStores&components.channel.members.add-panel) seedsrole: "owner"on"Raft Design"/"Visual Server":HomeChannelListVisualFixture.kt: passonCreateJointChannelClickgated byexternalChannelCreateAccess(VisualFixtureData.Humans.Owner.ROLE).ThreadPageVisualScreens.kt&VisualFixturePages.kt: passexternalInvites = ExternalInvitesSection(...)gated byexternalInviteAccess(viewerRole, ExternalInviteChannel(type = "channel", name = "design", archived = false))withserverName = 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 CItest.yml(record_screenshots=true) and commit them to this PR, then verify withfull-ci.No changeset needed (test/visual-fixture-only; no user-facing product change).