HomePhabricator
Diffusion Comm 36ee6cd417ce

[lib][native] Introduce `useRoleNamesToSpecialRole` to remove `"Admins"` string…

Description

[lib][native] Introduce useRoleNamesToSpecialRole to remove "Admins" string check in RolePanelEntry

Summary:
Context: https://linear.app/comm/issue/ENG-6950/update-rolepanelentrypanel-to-use-specialrole-field

We introduce this hook so we can get rid of "sketchy" string check in RolePanelEntry.


Depends on D11204

Test Plan:

  • Log value of specialRole in RolePanelEntry to ensure it's being passed in properly
  • Look at RolePanelEntry before/after and ensure that things continue to look as expected (will add screenshots shortly)

Reviewers: ginsu, tomek, kamil, michal

Reviewed By: tomek

Subscribers: ashoat

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