Skip to content

Update compliance frameworks create & edit to use modals

What does this MR do and why?

Updates the Compliance Frameworks create and edit UI to use a modal. This avoids full page loads and redirects.

The compliance frameworks data is re-fetched after successfully adding or editing, the same as how the current delete functionality works.

Removes the HAML view, controller, and JS page entry files.

Converted the usage of gl-alert for success messages to gl-toast, inline with guidance from pajamas: If you are immediately confirming a user's action while they remain in the same view, use a toast instead [of alert].

Screenshots or screen recordings

compliance-framework-refactor-2

How to set up and validate locally

  1. Visit a top level group
  2. Click Settings -> General
  3. Scroll down and expand Compliance Frameworks
  4. Add / Edit flows now use modal instead of full page redirects

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #324032 (closed)

Edited by Elwyn Benson

Merge request reports