Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/thin-lies-write.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperdx/app': patch
---

add faceted filters to the sessions page
11 changes: 4 additions & 7 deletions packages/app/src/DBSearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ import {
useSavedSearch,
useUpdateSavedSearch,
} from '@/savedSearch';
import { useSearchPageFilterState } from '@/searchFilters';
import {
formatDroppedFiltersMessage,
useSearchPageFilterState,
} from '@/searchFilters';
import { getEventBody, useSource, useSources } from '@/source';
import { useAppTheme, usePageTitle } from '@/theme/ThemeProvider';
import {
Expand Down Expand Up @@ -890,12 +893,6 @@ export function useDefaultOrderBy(sourceID: string | undefined | null) {
}, [source, tableMetadata]);
}

function formatDroppedFiltersMessage(count: number): string {
const noun = count === 1 ? 'filter' : 'filters';
const verb = count === 1 ? 'was' : 'were';
return `${count} ${noun} didn't apply to this source and ${verb} removed.`;
}

// This is outside as it needs to be a stable reference
const queryStateMap = {
source: parseAsString,
Expand Down
Loading
Loading