Skip to content

Add new state for label that's selected but not applied

What does this MR do and why?

This MR fixes a UX issue where if you slect label or labels and close the dropdown you can't see what has been selected before you applie the filter which is confusing.

Screenshots or screen recordings

Before After
before-sm after-sm

How to set up and validate locally

  1. This MR requires advanced search to be configured and enabled.
  2. enable feature flag
    echo 'Feature.enable(:search_issue_label_aggregation)' | rails c
  3. Visit the Advanced search page: http://gdk.test:3000/search?scope=issues&search=%2A
  4. select some labels and observe unapplied pills to appear above the dropdown

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 #416607 (closed)

Edited by Tomas Bulva

Merge request reports