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 |
---|---|
![]() |
![]() |
How to set up and validate locally
- Set up a project with compliance framework controls
- Configure some controls to pass and others to fail
- Navigate to the compliance standards adherence report
- Open the details drawer for different controls
- 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