Skip to content

fix(external-invites,member-connect): align invite and Connect your servers UX with web - #5486

Open
stamp-build[bot] wants to merge 5 commits into
mainfrom
fix/reef/319-pr3-invite-parity
Open

stamp-build[bot] wants to merge 5 commits into
mainfrom
fix/reef/319-pr3-invite-parity

Conversation

@stamp-build

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

Copy link
Copy Markdown
Contributor

Reef (raft) opened via Stamp · View →


Summary

Implements #proj-mobile:#319 PR 3: closes all 7 web-vs-mobile UX and interaction parity gaps in channel external invites ("Invite people outside {server}") and "Connect your servers" (JointMemberConnectSheet), matching botiverse/slock (staging 959447b5).

What changed

  1. Direct Members-page invite button & Add Member preservation (ThreadMembersPage.kt, ChannelMembersPage.kt):
    • Added a dedicated bottom-bar "Invite people outside {server}" button directly below "Add member" (gated on externalInviteAccess, independent of canAddMembers).
    • Kept the Add Member panel open behind ExternalInviteSheet so dismissing the invite sheet returns to Add Member with search/selection intact.
    • Made member roster search match open external invites (and return them instead of "No matches").
  2. Free-plan external slot prefetch & channel-named upgrade context (RaftUpgradeDialog.kt, ExternalInvites.kt, SettingsHomePage.kt, ThreadMembersPage.kt):
    • Added RaftUpgradeExternalContext.Slot(channelName) (holdsExternalSlot, externalSlotUpgradeContext, externalSlotChannelsKey) and 8-locale channel-named upgrade copy (upgrade_dialog_limit_external_limit_channel, plus iOS App Store Guideline 3.1.1 view-only neutral copy).
    • Added generation-fenced Free external-channel slot prefetching in ExternalInvitesStore and SettingsHomePage so opening is immediate when the slot is free, and shows loading / re-reads + passes #channel context when taken.
  3. Review-step Back button & busy guards (ExternalInvitesUi.kt, CreateExternalChannel.kt, CreateExternalChannelUi.kt):
    • Kept the review step's Back control visible and disabled while submitting instead of disappearing or morphing into Close; guarded SetText while busy.
  4. "Connect your servers" Free-limit preflight & inline Upgrade / Ask an owner actions (JointMemberConnectApi.kt, JointMemberConnect.kt, JointChannelConnectionsStore.kt, JointMemberConnectSheet.kt, RaftChoiceList.kt):
    • Wired GET /channels/:id/connect-my-servers limits when opening JointMemberConnectSheet, disabling atLimit rows (Free · in another external channel), pruning them from selection safely without mid-submit flicker, and showing inline "Upgrade" (owner) or "Ask an owner to upgrade" (admin) actions targeting that specific server (omitted on iOS when upgrade offers are off).
  5. Immediate channel & home refresh after connect/invite mutations (ChannelSettingsPage.kt, JointChannelConnectionsPage.kt, ThreadMembersPage.kt):
    • Triggered immediate channel settings, members, and home store refresh on successful connect/invite mutations (including partial connects).
  6. 8-locale strings, tests & changeset:
    • Added 6 new string keys across all 8 locales (en, es, ja, ko, pt-BR, ru, zh-CN, zh-TW), matching web messages verbatim.
    • Added unit and Robolectric Compose UI tests (ExternalInvitesUiTest, JointMemberConnectSheetUiTest, ExternalInvitesServersStoreTest, JointMemberConnectStoreTest, JointMemberConnectApiTest, CreateExternalChannelStoreTest, RaftUpgradeDialogTest).
    • Added change-logs/1.29.0/changesets/external-invite-and-member-connect-ux-parity.md.

Verification

  • Independent 3-round adversarial review (b6dc673a): VERDICT: PASS.
  • python3 scripts/ci/check_source_constraints.py && python3 scripts/ci/check_string_edge_spaces.py: PASS (0 offenders across 8 locales).
  • full-ci label will be applied after populating pull_request in the changeset so Robolectric UI tests and iOS compile execute in full.

Reef and others added 4 commits November 23, 2026 09:14
… web (#319 PR 3)

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
- Use RaftButtonSize.Md in JointMemberConnectSheet inline upgrade action
- Add missing DataRequestPriority and kotlinx.coroutines.launch imports in ChannelSettingsPage
- Replace ::refreshMembers with lambda in rememberUpdatedState and wrap homeStore in ThreadMembersPage
- Freeze RaftSpinner (LocalRaftSpinnerStillStep) and provide LocalActivity in ExternalInvitesUiTest
- Return early when targetServerId is absent in openRaftUpgradeDialog and guard blank serverId in holdsExternalSlot
- Reset prefetched Free external-channel limit on refetch, guard server switch / plan change in SettingsHomePage, and prevent stale FreeLimitUpgrade emits in ExternalInvitesStore
- Avoid mutating memberConnectSheet.selected mid-submit when limits arrive and exclude at-limit rows from retry
- Align showInlineTrailing padding and layout branch in RaftChoiceList, guard SetText while busy in CreateExternalChannel, use visibleInvites("") in ThreadMembersPage, and polish changeset copy + tests

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

- Prune at-limit servers from memberConnectSheet.selected on whole-request failure too when limits arrive mid-submit
- Fall back to reached result when a newer gated prefetch is still pending during RequestOpen so user taps are never dropped

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

Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
@stamp-build stamp-build Bot added the full-ci label Nov 23, 2026
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