Refactor protected environments list UI
What does this MR do and why?
GlAccordion doesn't allow for extra HTML in its header area, which we need to show the rules counts. There were also some inconsistencies between the designed UI and GlAccordion.
To save the footprint of the existing component, a new UI component was created to iterate over the list of environments and pass it back via a slot.
Screenshots or screen recordings
How to set up and validate locally
- Enable the feature flag:
Feature.enable(:multiple_environment_approval_rules_fe)
- Navigate to a project's environments page Deployments > Environments
- Add an environment
- Navigate to the CI/CD settings page Settings > CI/CD
- Protect the environment, with approvers
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.