Skip to content

Searching in the Issues label or assignee filter shows non-matching selected items without their color or display name #43572

Done

Description

@AymanKhan9

Bug

In the web /issues Filters menu (apps/web/src/components/issue/IssueListFilterPickers.tsx), typing a search query in the Labels or Assignee submenu shows already-selected items that do not match the query, strips their color or display name, and prevents the empty state from appearing.

Steps to reproduce

  1. Open /issues and select a known label (for example bug, with a color) in Filters -> Labels.
  2. Type a query that matches a different label (for example docs) or matches nothing (for example zzzz).
  3. Repeat with a known assignee in Filters -> Assignee.

Observed behavior

  • The selected label (bug) remains prepended at the top of search results with a grey dot (color: null) even when it does not match the query.
  • Searching for a non-existent label never renders "No labels found" while any label is selected.
  • The selected assignee remains prepended at the top of search results without their display name (name: null) even when they do not match the query.

Cause

LabelChoices and AssigneeChoices check props.value against the post-search found list instead of the full known candidates list, and prepend missing entries after filtering rather than filtering unoffered and known entries together (unlike mobile's IssueFilterSearchScreen.tsx).

Expected behavior

  • Unoffered selected labels/assignees (for example from a URL or saved view) should be identified against the full known list, then combined with known and filtered by the search query so non-matching selected items are hidden and "No labels found" appears when nothing matches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions