Skip to content

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 standard
Staandard - closed image
Dimmed Dimmed

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Toggle the feature flag with the below
echo "Feature.enable(:scan_result_policy_settings)" | rails c
  1. Navigate to a project/group => Secure => Policies => New policy => Scan result policy
  2. Verify setting updates appropriately and changes if changed in yaml mode
  3. 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.

Related to #418751 (closed)

Edited by Alexander Turinske

Merge request reports