-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ordered playlist results (#20493)
- Loading branch information
Showing
16 changed files
with
299 additions
and
69 deletions.
There are no files selected for viewing
Binary file modified
BIN
+551 Bytes
(100%)
frontend/__snapshots__/posthog-3000-navigation--navigation-3000--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-646 Bytes
(99%)
frontend/__snapshots__/posthog-3000-navigation--navigation-3000--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+18 Bytes
(100%)
frontend/__snapshots__/scenes-app-data-management--ingestion-warnings--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-789 Bytes
(98%)
frontend/__snapshots__/scenes-app-data-management--ingestion-warnings--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+167 Bytes
(100%)
...apshots__/scenes-app-insights--funnel-left-to-right-breakdown--dark--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
frontend/src/scenes/session-recordings/filters/OrderingFilters.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { useActions, useValues } from 'kea' | ||
import { LemonRadio } from 'lib/lemon-ui/LemonRadio' | ||
|
||
import { sessionRecordingsPlaylistLogic } from '../playlist/sessionRecordingsPlaylistLogic' | ||
|
||
export const OrderingFilters = (): JSX.Element => { | ||
const { orderBy } = useValues(sessionRecordingsPlaylistLogic) | ||
const { setOrderBy } = useActions(sessionRecordingsPlaylistLogic) | ||
|
||
return ( | ||
<LemonRadio | ||
value={orderBy} | ||
onChange={setOrderBy} | ||
options={[ | ||
{ | ||
value: 'start_time', | ||
label: 'Latest', | ||
'data-attr': 'session-replay-ordering-latest', | ||
}, | ||
{ | ||
value: 'console_error_count', | ||
label: 'Most console errors', | ||
'data-attr': 'session-replay-ordering-errors', | ||
}, | ||
{ | ||
value: 'active_seconds', | ||
label: 'Longest (active duration)', | ||
'data-attr': 'session-replay-ordering-active', | ||
}, | ||
{ | ||
value: 'duration', | ||
label: 'Longest (total duration)', | ||
'data-attr': 'session-replay-ordering-duration', | ||
}, | ||
]} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.