Draft: Create collapsible settings section
What does this MR do and why?
Create collapsible settings section
- make the section collapsible as there will be more settings coming in the future
- dim and disable it when rule mode is disabled
- create new collapsible section
- use it for summary section
- add tests
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Scenario | Screenshot |
---|---|
Standard - open | |
Staandard - closed | |
Dimmed |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Toggle the feature flag with the below
echo "Feature.enable(:scan_result_policy_settings)" | rails c
- Navigate to a project/group => Secure => Policies => New policy => Scan result policy
- Verify setting updates appropriately and changes if changed in yaml mode
- For the dimmed disabled view, navigate to yaml mode and change the yaml to
foo: bar
, and navigate back to rule mode
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #418751 (closed)