Skip to content

fix(dashboards): Move global filter loading spinner to dropdown footer#116342

Merged
DominikB2014 merged 3 commits into
masterfrom
dominikbuszowiecki/dain-1636-global-filter-shifts-back-and-forth-on-dashboard
May 29, 2026
Merged

fix(dashboards): Move global filter loading spinner to dropdown footer#116342
DominikB2014 merged 3 commits into
masterfrom
dominikbuszowiecki/dain-1636-global-filter-shifts-back-and-forth-on-dashboard

Conversation

@DominikB2014
Copy link
Copy Markdown
Contributor

@DominikB2014 DominikB2014 commented May 27, 2026

Summary

Move the loading indicator from dropdown trigger to the dropdown list. This is exactly how the other search bars handle it (for example searching in the explore search bar). This resolves two issues:

  1. Having the spinner in the trigger causes the trigger to change widths when it goes from not-loading -> loading, this results in some annoying shifting (See DAIN-1636 for video)
  2. Having the trigger on the dropdown list more accurately reflects the state, the list of options are loading. Before it looked like the selected item is being changed.

Before

image

After

image

Refs DAIN-1636

The global filter dropdown trigger replaced the selected value with a
spinner while tag values refetched as the user typed. This was confusing
because the selected value had not changed.

Keep the selected value visible in the trigger and surface the loading
state as a small indicator at the bottom of the dropdown list instead.

Refs DAIN-1636
Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 27, 2026

DAIN-1636

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.59%

@DominikB2014 DominikB2014 marked this pull request as ready for review May 27, 2026 21:03
@DominikB2014 DominikB2014 requested a review from a team as a code owner May 27, 2026 21:03
The filter selector trigger now always displays the selected value
(or "All"), so the accessible names of the trigger buttons include
that text in tests.

Co-Authored-By: Claude <noreply@anthropic.com>
…sBar

The global filter trigger no longer renders a loading indicator while
tag values fetch, so waitForElementToBeRemoved on that testid errors
immediately. Wait for the filter trigger button to appear instead.

Co-Authored-By: Claude <noreply@anthropic.com>
@DominikB2014 DominikB2014 merged commit d58a6df into master May 29, 2026
77 checks passed
@DominikB2014 DominikB2014 deleted the dominikbuszowiecki/dain-1636-global-filter-shifts-back-and-forth-on-dashboard branch May 29, 2026 17:18
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