We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348a404 commit 2dc0079Copy full SHA for 2dc0079
.changeset/happy-buses-occur.md
@@ -0,0 +1,5 @@
1
+---
2
+"@hyperdx/app": patch
3
4
+
5
+feat: Sort dashboard filter options
packages/app/src/DashboardFilters.tsx
@@ -54,16 +54,19 @@ const DashboardFilterSelect = ({
54
},
55
);
56
57
+ const selectValues = keys?.[0]?.value
58
+ .map(value => String(value))
59
+ .sort()
60
+ .map(value => ({
61
+ value,
62
+ label: value,
63
+ }));
64
65
return (
66
<Select
67
placeholder={filter.name}
68
value={value ?? null} // null clears the select, undefined makes the select uncontrolled
- data={
- keys?.[0]?.value.map(value => ({
- value: String(value),
- label: String(value),
- })) || []
- }
69
+ data={selectValues || []}
70
searchable
71
clearable
72
allowDeselect
0 commit comments