Page MenuHomePhabricator

[native] Show Roles option in community action sheet
ClosedPublic

Authored by rohan on Jun 27 2023, 8:21 AM.
Tags
None
Referenced Files
F3388670: D8333.diff
Fri, Nov 29, 3:33 PM
Unknown Object (File)
Sat, Nov 23, 2:23 PM
Unknown Object (File)
Sat, Nov 23, 2:23 PM
Unknown Object (File)
Sat, Nov 23, 2:23 PM
Unknown Object (File)
Sat, Nov 23, 1:18 PM
Unknown Object (File)
Sun, Nov 10, 4:17 AM
Unknown Object (File)
Thu, Nov 7, 10:37 PM
Unknown Object (File)
Thu, Nov 7, 10:37 PM

Details

Summary

In the community action sheet, we want to introduce a 'Roles' option that will navigate to a screen listing all of the community roles and respective member counts. Since that involves navigation, the action key/value will come later, and this just shows the option in the action sheet (the entire stack will be landed together, so this won't be an issue).

Depends on D8332

ENG-4166

Test Plan

Confirm that a 'Roles' option appears for those who have permissions to change roles, and it should not appear if otherwise.

Simulator Screen Shot - iPhone 14 Pro - 2023-06-27 at 11.22.55.png (2×1 px, 403 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rohan edited the summary of this revision. (Show Details)
rohan edited the test plan for this revision. (Show Details)
rohan requested review of this revision.Jun 27 2023, 8:39 AM
atul added inline comments.
native/components/community-actions-button.react.js
87 ↗(On Diff #28178)

Should it be "Roles" or "Manage Roles" for symmetry w/ "Manage Invite Links"

CC @ashoat for copy

This revision is now accepted and ready to land.Jun 27 2023, 9:21 AM

Please always check with me about any copy you get from @ted

native/components/community-actions-button.react.js
69 ↗(On Diff #28178)

This copy should have never shipped. In other places we use lowercase (eg. "Create new subchannel"). I suspect @ted's copy was taken without checking with me on this one... as it is right now, developers need to be extremely critical and careful with any copy they get from @ted

Can you update this diff to make it lowercase? cc @tomek

76 ↗(On Diff #28178)

Lowercase

87 ↗(On Diff #28178)

Let's go with Manage roles

native/components/community-actions-button.react.js
69 ↗(On Diff #28178)

Yeah, that was the case - sorry for that. But I'm wondering if it could be more efficient if the copies were approved before giving the design to a developer to implement it.