Skip to content

Improve compliance framework status drawer for passed controls

What does this MR do and why?

Improve the compliance framework status drawer user experience for passed controls by showing different content based on control status. When a compliance control has passed, users now see a "What passed" section with success information instead of the "How to fix" section that's only relevant for failed controls.

The changes include:

  • Add conditional logic to show different content for passed vs failed compliance controls
  • Replace "How to fix" section with "What passed" section when control status is PASS
  • Show success message and "Learn more" buttons for passed controls
  • Maintain existing "How to fix" functionality for failed controls

This provides a clearer and more intuitive user experience by showing contextually relevant information based on the control's status.

References

Relates to #568755 (closed)

Screenshots or screen recordings

Before After
Compliance-center--Gitlab-Org--GitLab-09-10-2025_02_18_PM Compliance-center--Gitlab-Org--GitLab-09-10-2025_04_20_PM

How to set up and validate locally

  1. Set up a project with compliance framework controls
  2. Configure some controls to pass and others to fail
  3. Navigate to the compliance standards adherence report
  4. Open the details drawer for different controls
  5. Verify that:
    • Failed controls show "How to fix" section with remediation steps
    • Passed controls show "What passed" section with success message
    • "Learn more" buttons appear for passed controls instead of fix-specific buttons

MR acceptance checklist

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

Edited by Nate Rosandich

Merge request reports

Loading