Skip to content

Update approve action layout for Approve policy

What does this MR do and why?

The changes are in the JavaScript code for the Security Orchestration feature. They involve updates to components that allow users to select different options, such as approvers, groups, roles, and users, within the policy editor. These updates include improvements to the user interface, such as displaying the correct toggle class and adjusting the toggle text based on user selections. Additionally, there are enhancements to the logic for handling user selections and ensuring accurate representation of the selected items. These changes aim to provide a better user experience and ensure the correct functionality of the policy editor.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Description UI
BEFORE

Screenshot 2024-06-18 at 13.05.32.png

All selected

Screenshot 2024-06-18 at 12.56.35.png

Some selected

Screenshot 2024-06-18 at 12.56.44.png

Mobile screen

Screenshot 2024-06-18 at 12.56.56.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Go to group/project
  2. Secure -> Polices
  3. New policy -> New approve policy
  4. Play around with approve action

Related to #467209 (closed)

Merge request reports