Page MenuHomePhabricator

[native] Navigate to invite links instead of add members modal
ClosedPublic

Authored by inka on Mon, Jun 3, 6:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 4:57 AM
Unknown Object (File)
Fri, Jun 21, 6:27 AM
Unknown Object (File)
Fri, Jun 21, 3:57 AM
Unknown Object (File)
Thu, Jun 20, 5:23 PM
Unknown Object (File)
Thu, Jun 20, 2:20 AM
Unknown Object (File)
Wed, Jun 19, 7:51 PM
Unknown Object (File)
Sun, Jun 16, 4:44 PM
Unknown Object (File)
Fri, Jun 14, 7:08 PM
Subscribers

Details

Summary

issue: ENG-7793
We don't want users to be able to add users to community roots - invite links should be used instead.

Test Plan

[for non-community-root] Tested that for chats the "Add members" button still navigates to "Add members" modal.
[for community root] Tested that if invite link exists, "Add members" button navigates to "Invite link" modal.
[for community root] Tested that if invite link doesn't exist, but user has permissions to create one, "Add members" button navigates to "Manage invite links" modal.
[for community root] Tested that if invite link doesn't exist and the user doesn't have premissions to creat it, the button is disabled.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka edited the summary of this revision. (Show Details)
inka edited the test plan for this revision. (Show Details)
inka edited the summary of this revision. (Show Details)
inka requested review of this revision.Mon, Jun 3, 7:17 AM
tomek added inline comments.
native/chat/settings/thread-settings.react.js
1316–1332 ↗(On Diff #40859)

I've seen a similar logic somewhere in the stack. Can we reuse it?

native/invite-links/invite-links-navigator.react.js
55–57 ↗(On Diff #40859)
61–63 ↗(On Diff #40859)
This revision is now accepted and ready to land.Mon, Jun 3, 7:52 AM
inka edited the test plan for this revision. (Show Details)

Fix types