Page MenuHomePhabricator

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

Authored by inka on Wed, May 29, 8:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 25, 4:37 AM
Unknown Object (File)
Sun, Jun 23, 5:22 AM
Unknown Object (File)
Tue, Jun 18, 2:16 AM
Unknown Object (File)
Sun, Jun 16, 9:18 PM
Unknown Object (File)
Sat, Jun 15, 11:34 PM
Unknown Object (File)
Fri, Jun 14, 5:30 PM
Unknown Object (File)
Fri, Jun 14, 8:12 AM
Unknown Object (File)
Tue, Jun 11, 5:39 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 test plan for this revision. (Show Details)

Remove the button for community roots even if the permission is present

inka requested review of this revision.Wed, May 29, 9:07 AM

Can you include a video of what this experience looks like?

Since we don't want the users to be able to add users to community roots, we probably want to

Seems like the summary is incomplete

web/modals/threads/members/members-modal.react.js
151–154 ↗(On Diff #40750)

It is a little confusing to call a hook like this

This revision is now accepted and ready to land.Mon, Jun 3, 1:52 AM

  1. The invite link doesn't exist but user can create it
  2. The invite link does exist
  3. The invite link doesn't exist and the user cannot create it
inka edited the summary of this revision. (Show Details)
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)

Address review

Thanks for the detailed video, @inka!