Skip to content

Add info popover for empty linked items groups

Artur Fedorov requested to merge 485408-policies-disabled-dropdown into master

What does this MR do and why?

Scope of this MR:

  1. Adds popover for empty dropdown with linked groups
  2. Adds dirty state for a dropdown, so empty red border is not rendered right away

MR acceptance checklist

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

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Description UI
empty.mov

How to set up and validate locally

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

  1. Enable feature flag:

    echo "Feature.enable(:policy_group_scope)" | rails c
  2. Go to a group without linked security project

  3. Secure -> Policies

  4. New policy => any type

  5. Make sure there is an option all projects in linked groups

  6. Select new option and make sure that dropdown is disabled and popover is visible

Related to #485408 (closed)

Merge request reports

Loading