[FE] Improve list custom roles feature
On the Roles and Permissions page, there is a list of custom permissions:
![]() |
We should make the following improvements:
-
Remove unused fields in the member roles query, specifically
baseAccessLevel.stringValueandenabledPermissions.value. -
Move the available permissions query from
ListMemberRolestoCreateMemberRole.ListMemberRolesdoesn't use the query, it just passes it toCreateMemberRole. -
The logic for showing the role name is incorrect, it takes the enum (i.e.
GUEST,DEVELOPER) from the backend and humanizes it, but this breaks localization because it will always be in English.
Edited by Daniel Tian
