From 03c97b8d8407569ae202bc7c7cded63c27f709bd Mon Sep 17 00:00:00 2001 From: Eric P Green Date: Tue, 16 Apr 2024 11:09:47 -0700 Subject: [PATCH] Revert "Disable search for non-string dimensions (#4517)" This reverts commit 96322c2347f47f47cf5c083136ea3b83f3529445. --- .../RemovableListChip.svelte | 34 +++++++------- .../RemovableListMenu.svelte | 35 +++++++-------- .../dimension-table/DimensionDisplay.svelte | 12 +---- .../dimension-table/DimensionHeader.svelte | 3 +- .../dashboards/filters/FilterChips.svelte | 3 +- .../dashboards/filters/Filters.svelte | 1 + .../dimension-filters/DimensionFilter.svelte | 39 ++++++---------- .../dimension-filters/getDimensionType.ts | 20 --------- .../features/dashboards/selectors/index.ts | 44 ++++++++----------- 9 files changed, 69 insertions(+), 122 deletions(-) delete mode 100644 web-common/src/features/dashboards/filters/dimension-filters/getDimensionType.ts diff --git a/web-common/src/components/chip/removable-list-chip/RemovableListChip.svelte b/web-common/src/components/chip/removable-list-chip/RemovableListChip.svelte index 86cb62167e6..0aa9e64397a 100644 --- a/web-common/src/components/chip/removable-list-chip/RemovableListChip.svelte +++ b/web-common/src/components/chip/removable-list-chip/RemovableListChip.svelte @@ -29,7 +29,6 @@ are details left to the consumer of the component; this component should remain export let name: string; export let selectedValues: string[]; export let allValues: string[] | null; - export let enableSearch = true; /** an optional type label that will appear in the tooltip */ export let typeLabel: string; @@ -55,29 +54,29 @@ are details left to the consumer of the component; this component should remain { toggleFloatingElement(); dispatch("click"); }} on:remove={() => dispatch("remove")} + {active} + {...colors} + {label} outline - removable > @@ -88,11 +87,11 @@ are details left to the consumer of the component; this component should remain
@@ -109,15 +108,14 @@ are details left to the consumer of the component; this component should remain
diff --git a/web-common/src/components/chip/removable-list-chip/RemovableListMenu.svelte b/web-common/src/components/chip/removable-list-chip/RemovableListMenu.svelte index 6fbb9eedecd..245e49f389c 100644 --- a/web-common/src/components/chip/removable-list-chip/RemovableListMenu.svelte +++ b/web-common/src/components/chip/removable-list-chip/RemovableListMenu.svelte @@ -11,7 +11,6 @@ export let excludeMode: boolean; export let selectedValues: string[]; export let allValues: string[] | null = []; - export let enableSearch = true; let searchText = ""; @@ -38,27 +37,25 @@ - {#if enableSearch} - -
- -
- {/if} + +
+ +
@@ -98,7 +95,7 @@ {/if}