Skip to content

Conversation

@dmitryk-dk
Copy link
Contributor

Related issue: #357

Describe Your Changes

Replaced Select with Combobox — the new recommended component in Grafana UI, which has built-in virtualization.
Implemented async loading — Combobox supports an options function that returns a Promise<ComboboxOption[]>. Options are loaded when the dropdown opens and when text is entered.
Added debounced search — a 300ms delay during search to prevent request spamming.

Client-side caching and filtering:
All fields are loaded once on the first open
Subsequent searches filter the already loaded data locally
Display limit — 1000 options (MAX_VISIBLE_OPTIONS)

Checklist

The following checks are mandatory:

use lodash debounce, fix parsing

use memoization to avoid errors on render

fix render for Grafana < 11

simplify check

update CHANGELOG.md
@dmitryk-dk dmitryk-dk marked this pull request as ready for review December 9, 2025 13:26
Copy link
Contributor

@arturminchukov arturminchukov left a comment

Choose a reason for hiding this comment

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

LGTM!

dmitryk-dk and others added 2 commits December 10, 2025 09:58
* implement Combobox for different versions of Grafana

implement two types of compatible combobox

fix usage of the components

cleanup

update CHANGELOG.md

* fix nit comments
@dmitryk-dk dmitryk-dk merged commit a3ce1d0 into main Dec 10, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants