From 2e1aae54ffe45dd8986ef90007e6a551b6a0678b Mon Sep 17 00:00:00 2001 From: David Newell Date: Mon, 17 Jun 2024 14:57:12 +0100 Subject: [PATCH] chore: rename existing recordings logic --- .../scenes/session-recordings/SessionRecordings.tsx | 10 +++++----- .../session-recordings/playlist/playlistUtils.ts | 2 +- ...onRecordingsLogic.ts => sessionReplaySceneLogic.ts} | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) rename frontend/src/scenes/session-recordings/{sessionRecordingsLogic.ts => sessionReplaySceneLogic.ts} (93%) diff --git a/frontend/src/scenes/session-recordings/SessionRecordings.tsx b/frontend/src/scenes/session-recordings/SessionRecordings.tsx index 78694a5144cc5..b82171522363b 100644 --- a/frontend/src/scenes/session-recordings/SessionRecordings.tsx +++ b/frontend/src/scenes/session-recordings/SessionRecordings.tsx @@ -25,13 +25,13 @@ import { createPlaylist } from './playlist/playlistUtils' import { SessionRecordingsPlaylist } from './playlist/SessionRecordingsPlaylist' import { SavedSessionRecordingPlaylists } from './saved-playlists/SavedSessionRecordingPlaylists' import { savedSessionRecordingPlaylistsLogic } from './saved-playlists/savedSessionRecordingPlaylistsLogic' -import { humanFriendlyTabName, sessionRecordingsLogic } from './sessionRecordingsLogic' +import { humanFriendlyTabName, sessionReplaySceneLogic } from './sessionReplaySceneLogic' function Header(): JSX.Element { const { guardAvailableFeature } = useValues(upgradeModalLogic) const playlistsLogic = savedSessionRecordingPlaylistsLogic({ tab: ReplayTabs.Recent }) const { playlists } = useValues(playlistsLogic) - const { tab } = useValues(sessionRecordingsLogic) + const { tab } = useValues(sessionReplaySceneLogic) const { currentTeam } = useValues(teamLogic) const recordingsDisabled = currentTeam && !currentTeam?.session_recording_opt_in const { reportRecordingPlaylistCreated } = useActions(eventUsageLogic) @@ -176,7 +176,7 @@ function Warnings(): JSX.Element { } function MainPanel(): JSX.Element { - const { tab } = useValues(sessionRecordingsLogic) + const { tab } = useValues(sessionReplaySceneLogic) return (
@@ -198,7 +198,7 @@ function MainPanel(): JSX.Element { } function PageTabs(): JSX.Element { - const { tab, tabs } = useValues(sessionRecordingsLogic) + const { tab, tabs } = useValues(sessionReplaySceneLogic) return ( { switch (tab) { @@ -24,8 +24,8 @@ export const humanFriendlyTabName = (tab: ReplayTabs): string => { export const PLAYLIST_LIMIT_REACHED_MESSAGE = `You have reached the free limit of ${SESSION_RECORDINGS_PLAYLIST_FREE_COUNT} saved playlists` -export const sessionRecordingsLogic = kea([ - path(() => ['scenes', 'session-recordings', 'root']), +export const sessionReplaySceneLogic = kea([ + path(() => ['scenes', 'session-recordings', 'sessionReplaySceneLogic']), connect({ values: [featureFlagLogic, ['featureFlags']], }),