[Frontend] Add the ability to manage a default project compliance framework on groups
Problem description
This issue is an iteration in developing Group-level setting for default compliance fram... (&8815 - closed).
Proposal
Update the existing group compliance framework settings UI to enable users to select and remove a default framework.
Designs
Implementation plan
frontend
Related issue to update the list to match the designs: Compliance Framework – Update settings (#371013 - closed)
- Update the GraphQL query to also fetch the
default
status of each framework. - Add a mutation to the list view to set the
default
attribute of a framework.- Note: Setting one framework to
default: true
sets all others todefault: false
. This is worth considering if there's any caching. Ie we mutate one framework todefault: true
but the previous default framework also shows as default.
- Note: Setting one framework to
- Add an ellipses icon in a
GlButton
to the end of the actions. - Move the delete action to the ellipses dropdown.
- Note: Default frameworks cannot be deleted.
- Add an action for marking the framework as
default
when not default. - Add an action for removing the
default
status of a framework when it is default. - Update
list_item.vue
to display aGlBadge
when the item isdefault
. - Update specs.
- Update documentation https://docs.gitlab.com/ee/user/group/manage.html#compliance-frameworks
Edited by Jiaan Louw