HomePhabricator
Diffusion Comm 4755e04a8254

[native] Create the community roles screen

Description

[native] Create the community roles screen

Summary:
This diff handles creating the screen that will display all roles in a given community, alongside a count of how many members are assigned each role. There is also a button that will allow admins to create a new role - the functionality of the button will be implemented in the next diff. The designs for this screen can be found on the Figma.

Note: For now, I pull the threadInfo directly from the navigation params, but in a later diff I plan to pull the updated threadInfo from the redux store (a solution discussed in my 1:1 with Ashoat) in order to make sure the roles list is always kept up to date as new roles are added and users are navigated back to this screen. This will need to be done after the screen for creating a custom role is complete, so that's why it's going to be implemented later.

Depends on D8358

ENG-4168.

Test Plan:
Confirm that for communities, the correct roles and role counts show up in the new screen. Also verified that for communities with several custom roles, the scroll container looks fine.

Reviewers: atul, ginsu

Reviewed By: atul, ginsu

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8359

Details

Provenance
rohanAuthored on Jun 27 2023, 8:13 AM
Reviewer
atul
Differential Revision
D8359: [native] Create the community roles screen
Parents
rCOMM613f1ede8c32: [native] Navigate from the community action sheet to the new community roles…
Branches
Unknown
Tags
Unknown