Page MenuHomePhabricator

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

Authored by inka on May 29 2024, 8:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 7:04 AM
Unknown Object (File)
Fri, Nov 15, 6:06 AM
Unknown Object (File)
Thu, Nov 14, 12:39 PM
Unknown Object (File)
Thu, Nov 14, 2:47 AM
Unknown Object (File)
Tue, Nov 12, 9:38 AM
Unknown Object (File)
Mon, Nov 11, 3:56 AM
Unknown Object (File)
Mon, Nov 11, 3:07 AM
Unknown Object (File)
Mon, Nov 11, 12:19 AM
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.May 29 2024, 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.Jun 3 2024, 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!