Skip to content

Add role badges component

Daniel Tian requested to merge 464104-add-role-badges-component into master

What does this MR do and why?

On the Manage -> Members page, a list of members for the group/project are shown. When the members have a custom role or when their LDAP role is overridden with a manually-selected one, we show a badge next/under the role name, in both the table and the role details drawer that opens when the role is clicked:

ksnip_20240621-170253

To avoid repeating the same code in both places, this MR creates a role_badges.vue component that's shared. The MR also moves the drawer-related components into its own drawer/ folder, in preparation for a future MR.

How to set up and validate locally

Note:

  • please enable FF Feature.enable(:show_role_details_in_drawer)
  • and make sure you're in the non sass environment export GITLAB_SIMULATE_SAAS=0, info

Please follow this video with audio commentary:

2024-06-21_17-40-06

Related to #464104 (closed)

Edited by Samantha Ming

Merge request reports