Compliance center > Edit Framework > Requirements Modal updates
What does this MR do and why?
- Move the trash icon to a top-aligned position.
- Add consistency to the order of requirements
3. Fix control form when editing external controls
- Add pre-close requirement modal form validation
- Update add control button styling
References
Comment in MR requests changing the alignment on this.
- Custom Compliance Framework UI fixes (#526947 - closed)
- Add external control to add/edit requirement UI (#513435 - closed)
- Add controls to add/edit requirement UI (#510160 - closed)
Screenshots and screen recordings
Move the trash icon to a top-aligned position.
| Before | After |
|---|---|
![]() |
![]() |
Add consistency to the order of requirements
| Before | After |
|---|---|
| Screen_Recording_2025-03-27_at_10.22.44_PM | Screen_Recording_2025-03-27_at_10.21.36_PM |
### Fix control form when editing external controls
Add pre-close requirement modal form validation
| Before | After |
|---|---|
| Screen_Recording_2025-03-27_at_10.33.46_PM | Screen_Recording_2025-03-27_at_10.31.43_PM |
Update add control button styling
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the feature flag
Feature.enable(:enable_standards_adherence_dashboard_v2)
- Head to the Compliance center
- Click on
New frameworkand create a new framework - Head to the Compliance center
- Edit your new framework
Move the trash icon to a top-aligned position.
Add consistency to the order of requirements
- Create 2+ new requirements
- Refresh the edit frameworks page and verify that they're in the same order as before the refresh
### Fix control form when editing external controls
1. Create a new requirement with an external control
2. Refresh the page
3. Edit your requirement with the external control and verify that saving the requirement without any changes works
Add pre-close requirement modal form validation
- Click on
New requirement - Click on
Add an external control - Add a requirement name and description and click on the
Save changes to the frameworkbutton - Verify the modal doesn't close and the fields' error messages are shown
- Add valid data to the fields and click the
Save changes to the frameworkbutton - Verify the requirement was saved correctly
Update add control button styling
- Click on
New requirement - Verify the add control buttons are the correct size and color (see after screenshot)
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 Dakota Dux





