Skip to content

[FE] Improve list custom roles feature

On the Roles and Permissions page, there is a list of custom permissions:

ksnip_20240120-000519

We should make the following improvements:

  1. Remove unused fields in the member roles query, specifically baseAccessLevel.stringValue and enabledPermissions.value.

  2. Move the available permissions query from ListMemberRoles to CreateMemberRole. ListMemberRoles doesn't use the query, it just passes it to CreateMemberRole.

  3. 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