diff --git a/frontend/src/scenes/session-recordings/player/inspector/PlayerInspectorControls.tsx b/frontend/src/scenes/session-recordings/player/inspector/PlayerInspectorControls.tsx index bf3fd911e604d..2f717c954008b 100644 --- a/frontend/src/scenes/session-recordings/player/inspector/PlayerInspectorControls.tsx +++ b/frontend/src/scenes/session-recordings/player/inspector/PlayerInspectorControls.tsx @@ -1,4 +1,4 @@ -import { IconBug, IconClock, IconDashboard, IconInfo, IconPause, IconTerminal, IconX } from '@posthog/icons' +import { IconBug, IconDashboard, IconInfo, IconPause, IconTerminal, IconX } from '@posthog/icons' import { LemonButton, LemonCheckbox, LemonInput, LemonSelect, Tooltip } from '@posthog/lemon-ui' import { useActions, useValues } from 'kea' import { FEATURE_FLAGS } from 'lib/constants' @@ -66,9 +66,8 @@ export function PlayerInspectorControls({ onClose }: { onClose: () => void }): J const inspectorLogic = playerInspectorLogic(logicProps) const { tab, windowIdFilter, syncScrollingPaused, windowIds, showMatchingEventsFilter } = useValues(inspectorLogic) const { setWindowIdFilter, setSyncScrollPaused, setTab } = useActions(inspectorLogic) - const { showOnlyMatching, timestampMode, miniFilters, syncScroll, searchQuery } = useValues(playerSettingsLogic) - const { setShowOnlyMatching, setTimestampMode, setMiniFilter, setSyncScroll, setSearchQuery } = - useActions(playerSettingsLogic) + const { showOnlyMatching, miniFilters, syncScroll, searchQuery } = useValues(playerSettingsLogic) + const { setShowOnlyMatching, setMiniFilter, setSyncScroll, setSearchQuery } = useActions(playerSettingsLogic) const mode = logicProps.mode ?? SessionRecordingPlayerMode.Standard @@ -172,24 +171,6 @@ export function PlayerInspectorControls({ onClose }: { onClose: () => void }): J
- setTimestampMode(timestampMode === 'absolute' ? 'relative' : 'absolute')} - tooltipPlacement="left" - tooltip={ - timestampMode === 'absolute' - ? 'Showing absolute timestamps' - : 'Showing timestamps relative to the start of the recording' - } - > - - {capitalizeFirstLetter(timestampMode)}{' '} - - - - seekToEvent()}> - {timestampMode === 'absolute' ? ( + {timestampFormat === TimestampFormat.Absolute ? ( ) : ( <> diff --git a/frontend/src/scenes/session-recordings/player/playerSettingsLogic.ts b/frontend/src/scenes/session-recordings/player/playerSettingsLogic.ts index 15fa227082e51..4a719d0babe95 100644 --- a/frontend/src/scenes/session-recordings/player/playerSettingsLogic.ts +++ b/frontend/src/scenes/session-recordings/player/playerSettingsLogic.ts @@ -182,7 +182,6 @@ export const playerSettingsLogic = kea([ setHideViewedRecordings: (hideViewedRecordings: boolean) => ({ hideViewedRecordings }), setAutoplayDirection: (autoplayDirection: AutoplayDirection) => ({ autoplayDirection }), setTab: (tab: SessionRecordingPlayerTab) => ({ tab }), - setTimestampMode: (mode: 'absolute' | 'relative') => ({ mode }), setMiniFilter: (key: string, enabled: boolean) => ({ key, enabled }), setSearchQuery: (search: string) => ({ search }), setSyncScroll: (enabled: boolean) => ({ enabled }), @@ -279,14 +278,6 @@ export const playerSettingsLogic = kea([ }, ], - timestampMode: [ - 'relative' as 'absolute' | 'relative', - { persist: true }, - { - setTimestampMode: (_, { mode }) => mode, - }, - ], - selectedMiniFilters: [ ['all-automatic', 'console-all', 'events-all', 'performance-all'] as string[], { persist: true },