Skip to content

fix(dashboards): Fix global filter showing "All" instead of selected value#111514

Merged
gggritso merged 2 commits intomasterfrom
georgegritsouk/dain-1407-global-filter-label-doesnt-match-internal-value
Mar 25, 2026
Merged

fix(dashboards): Fix global filter showing "All" instead of selected value#111514
gggritso merged 2 commits intomasterfrom
georgegritsouk/dain-1407-global-filter-label-doesnt-match-internal-value

Conversation

@gggritso
Copy link
Member

@gggritso gggritso commented Mar 25, 2026

Fix the global filter selector trigger displaying "All" when a specific value is saved but tag values fail to load.

e.g.,

Screenshot 2026-03-24 at 11 03 59 PM

Two bugs combined to cause this:

  1. The trigger rendered stagedFilterValues (in-flight dropdown state) instead of activeFilterValues (the committed filter). Before the dropdown was opened, staged values were empty → "All".

  2. isAllSelected compared against options.length. When tag values failed to load, options only contained the already-selected values, making the comparison a tautology. Now it simply checks for an empty selection.

Refs DAIN-1407

gggritso and others added 2 commits March 25, 2026 07:44
…value

When tag values fail to load, the options array only contains the
already-selected values. The isAllSelected check compared
activeFilterValues.length against options.length, which was always
true in this case, incorrectly showing "All" as the trigger label.

Remove the options.length comparison so "All" only shows when no
filter values are selected. Also fix the multi-select trigger to
use activeFilterValues instead of stagedFilterValues for consistency
with the single-select path.

Refs DAIN-1407
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@gggritso gggritso requested a review from a team as a code owner March 25, 2026 13:00
@linear-code
Copy link

linear-code bot commented Mar 25, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 25, 2026
Copy link
Member

@nikkikapadia nikkikapadia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@gggritso gggritso merged commit ffb7e08 into master Mar 25, 2026
76 of 77 checks passed
@gggritso gggritso deleted the georgegritsouk/dain-1407-global-filter-label-doesnt-match-internal-value branch March 25, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants