From cf8a1c38500e64567e5e8fd496feee5bf2e3b0b7 Mon Sep 17 00:00:00 2001 From: Raunak Burrows Date: Tue, 24 Nov 2026 12:19:37 +0000 Subject: [PATCH] fix: suggest filter values by their label and in any case (#12582) A filter's value suggestions matched the typed text against the option's value only, case-sensitively. On the Runs page "timeframe:within" listed nothing, since every timeframe starts with "Within", and "job_trigger_kind:pub" did not find GCP Pub/Sub, whose value is "gcp". Suggestions now match the label too, ignoring case. --- frontend/src/lib/components/FilterSearchbar.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/FilterSearchbar.svelte b/frontend/src/lib/components/FilterSearchbar.svelte index 46cfdc332e..76c0fa1cdb 100644 --- a/frontend/src/lib/components/FilterSearchbar.svelte +++ b/frontend/src/lib/components/FilterSearchbar.svelte @@ -498,7 +498,8 @@ .filter((o) => { if (selectedValues.includes(o.value)) return false if (!searchSuffix) return true - return o.value.includes(searchSuffix) + const q = searchSuffix.toLowerCase() + return [o.value, o.label].some((t) => t?.toLowerCase().includes(q)) }) .map((option) => ({ type: 'option' as const,