Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(frontend): release settings, replay player, and logs graphs from the shell (#63146)

Paul D'Ambra262bae64e58b
diff --git a/frontend/src/layout/GlobalModals.tsx b/frontend/src/layout/GlobalModals.tsx
index 0bd4d0f0fe4d..4eb04bf6359b 100644
--- a/frontend/src/layout/GlobalModals.tsx
+++ b/frontend/src/layout/GlobalModals.tsx
@@ -1,4 +1,5 @@
import { useActions, useValues } from 'kea'
+import { Suspense, lazy } from 'react'
import { ItemSelectModal } from 'lib/components/FileSystem/ItemSelectModal/ItemSelectModal'
import { LinkToModal } from 'lib/components/FileSystem/LinkTo/LinkTo'
@@ -9,11 +10,12 @@ import { superpowersLogic } from 'lib/components/Superpowers/superpowersLogic'
import { TimeSensitiveAuthenticationModal } from 'lib/components/TimeSensitiveAuthentication/TimeSensitiveAuthentication'
import { GlobalCustomUnitModal } from 'lib/components/UnitPicker/GlobalCustomUnitModal'
import { UpgradeModal } from 'lib/components/UpgradeModal/UpgradeModal'
+import { useKeepMountedWhileOpen } from 'lib/hooks/useKeepMountedWhileOpen'
import { TwoFactorSetupModal } from 'scenes/authentication/two-factor-setup/TwoFactorSetupModal'
import { PaymentEntryModal } from 'scenes/billing/PaymentEntryModal'
import { CreateOrganizationModal } from 'scenes/organization/CreateOrganizationModal'
import { CreateProjectModal } from 'scenes/project/CreateProjectModal'
-import { SessionPlayerModal } from 'scenes/session-recordings/player/modal/SessionPlayerModal'
+import { sessionPlayerModalLogic } from 'scenes/session-recordings/player/modal/sessionPlayerModalLogic'
import { inviteLogic } from 'scenes/settings/organization/inviteLogic'
import { InviteModal } from 'scenes/settings/organization/InviteModal'
import { PreviewingCustomCssModal } from 'scenes/themes/PreviewingCustomCssModal'
@@ -22,16 +24,36 @@ import { MaybeWelcomeDialog } from 'scenes/welcome/WelcomeDialog'
import { promotedProductLogic } from '~/layout/panel-layout/ai-first/promotedProductLogic'
import { ComposeTicketModal } from 'products/conversations/frontend/components/ComposeTicket'
-import { LogsViewerModal } from 'products/logs/frontend/components/LogsViewer/LogsViewerModal'
+import { logsViewerModalLogic } from 'products/logs/frontend/components/LogsViewer/LogsViewerModal/logsViewerModalLogic'
import { globalModalsLogic } from './globalModalsLogic'
import { navigationLogic } from './navigation/navigationLogic'
import { ConfigureHomeModal } from './scenes/ConfigureHomeModal'
import { ConfigurePromotedProductModal } from './scenes/ConfigurePromotedProductModal'
+// The session player modal anchors the entire replay player graph; loading it only when a
+// recording is opened keeps that graph out of the chunk every logged-in page downloads.
+const SessionPlayerModal = lazy(() =>
+ import('scenes/session-recordings/player/modal/SessionPlayerModal').then((m) => ({
+ default: m.SessionPlayerModal,
+ }))
+)
+
+// Same trick for the logs viewer, whose sparkline anchors chart.js.
+const LogsViewerModal = lazy(() =>
+ import('products/logs/frontend/components/LogsViewer/LogsViewerModal').then((m) => ({
+ default: m.LogsViewerModal,
+ }))
+)
+
export function GlobalModals(): JSX.Element {
const { isCreateOrganizationModalShown, isCreateProjectModalShown } = useValues(globalModalsLogic)
const { hideCreateOrganizationModal, hideCreateProjectModal } = useActions(globalModalsLogic)
+ const { activeSessionRecording } = useValues(sessionPlayerModalLogic)
+ const { isOpen: isLogsViewerModalOpen } = useValues(logsViewerModalLogic)
+ // Grace-extended so the modals' exit animations finish before the lazy subtree unmounts.
+ const shouldRenderSessionPlayerModal = useKeepMountedWhileOpen(!!activeSessionRecording)
+ const shouldRenderLogsViewerModal = useKeepMountedWhileOpen(isLogsViewerModalOpen)
const { isInviteModalShown } = useValues(inviteLogic)
const { hideInviteModal } = useActions(inviteLogic)
const { superpowersEnabled } = useValues(superpowersLogic)
@@ -47,8 +69,16 @@ export function GlobalModals(): JSX.Element {
<CreateProjectModal isVisible={isCreateProjectModalShown} onClose={hideCreateProjectModal} />
<UpgradeModal />
<TimeSensitiveAuthenticationModal />
- <SessionPlayerModal />
- <LogsViewerModal />
+ {shouldRenderSessionPlayerModal ? (
+ <Suspense fallback={null}>
+ <SessionPlayerModal />
+ </Suspense>
+ ) : null}
+ {shouldRenderLogsViewerModal ? (
+ <Suspense fallback={null}>
+ <LogsViewerModal />
+ </Suspense>
+ ) : null}
<PreviewingCustomCssModal />
<TwoFactorSetupModal />
<HedgehogMode />
diff --git a/frontend/src/lib/components/ExportButton/exportsLogic.ts b/frontend/src/lib/components/ExportButton/exportsLogic.ts
index b6cb8cb1f7ac..7f6558a71825 100644
--- a/frontend/src/lib/components/ExportButton/exportsLogic.ts
+++ b/frontend/src/lib/components/ExportButton/exportsLogic.ts
@@ -9,7 +9,7 @@ import { dayjs } from 'lib/dayjs'
import { lemonToast } from 'lib/lemon-ui/LemonToast'
import { delay } from 'lib/utils'
import { newInternalTab } from 'lib/utils/newInternalTab'
-import { SessionRecordingPlayerMode } from 'scenes/session-recordings/player/sessionRecordingPlayerLogic'
+import type { SessionRecordingPlayerMode } from 'scenes/session-recordings/player/sessionRecordingPlayerLogic'
import { urls } from 'scenes/urls'
import { cohortsModel } from '~/models/cohortsModel'
diff --git a/frontend/src/lib/components/Scenes/InsightOrDashboard/SceneExportDropdownMenu.tsx b/frontend/src/lib/components/Scenes/InsightOrDashboard/SceneExportDropdownMenu.tsx
index 60bb27baf725..19d4a443e2d2 100644
--- a/frontend/src/lib/components/Scenes/InsightOrDashboard/SceneExportDropdownMenu.tsx
+++ b/frontend/src/lib/components/Scenes/InsightOrDashboard/SceneExportDropdownMenu.tsx
@@ -1,3 +1,5 @@
+import { useActions } from 'kea'
+
import { IconDownload } from '@posthog/icons'
import { ButtonPrimitive, DisabledReasonsObject } from 'lib/ui/Button/ButtonPrimitives'
@@ -32,10 +34,10 @@ export function SceneExportDropdownMenu({
dropdownMenuItems,
disabledReasons,
}: SceneExportDropdownMenuProps): JSX.Element | null {
- const { actions } = exportsLogic
+ const { startExport } = useActions(exportsLogic)
const onExportClick = async (triggerExportProps: TriggerExportProps): Promise<void> => {
- actions.startExport(triggerExportProps)
+ startExport(triggerExportProps)
}
const isDisabled = disabledReasons ? Object.values(disabledReasons).some(Boolean) : false
diff --git a/frontend/src/lib/components/Search/searchLogic.tsx b/frontend/src/lib/components/Search/searchLogic.tsx
index b98a14c84554..aa7ab7c256c7 100644
--- a/frontend/src/lib/components/Search/searchLogic.tsx
+++ b/frontend/src/lib/components/Search/searchLogic.tsx
@@ -1,4 +1,4 @@
-import { actions, connect, kea, key, listeners, path, props, reducers, selectors } from 'kea'
+import { actions, afterMount, connect, kea, key, listeners, path, props, reducers, selectors } from 'kea'
import { loaders } from 'kea-loaders'
import { IconBell, IconClock, IconDownload, IconLeave, IconNotification } from '@posthog/icons'
@@ -10,7 +10,6 @@ import { toSentenceCase } from 'lib/utils'
import { GroupQueryResult, mapGroupQueryResponse } from 'lib/utils/groups'
import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'
import { organizationIntegrationsLogic } from 'scenes/settings/organization/organizationIntegrationsLogic'
-import { matchesFlagDefinition } from 'scenes/settings/settingsLogic'
import { urls } from 'scenes/urls'
import { userLogic } from 'scenes/userLogic'
@@ -21,8 +20,8 @@ import { groupsModel } from '~/models/groupsModel'
import { recentItemsModel } from '~/models/recentItemsModel'
import { getTreeItemsMetadata, getTreeItemsNew, getTreeItemsProducts } from '~/products'
import { FileSystemEntry, GroupsQueryResponse } from '~/queries/schema/schema-general'
-import { SETTINGS_MAP } from '~/scenes/settings/SettingsMap'
-import { Setting, SettingSectionId } from '~/scenes/settings/types'
+import { matchesFlagDefinition } from '~/scenes/settings/flagGating'
+import { Setting, SettingSection, SettingSectionId } from '~/scenes/settings/types'
import { ActivityTab, FileSystemIconColor, GroupTypeIndex, PersonType, SearchResponse } from '~/types'
import type { searchLogicType } from './searchLogicType'
@@ -114,6 +113,27 @@ const SEARCH_LIMIT = 5
/** Safely extract a string — returns undefined for objects/arrays to avoid rendering [object Object]. */
const safeString = (val: unknown): string | undefined => (typeof val === 'string' ? val : undefined)
+/**
+ * Lean projection of SETTINGS_MAP for search. The full map statically imports every
+ * settings component (the whole configuration UI graph), so it is loaded dynamically
+ * on mount and only the searchable metadata is kept.
+ */
+export interface SettingsSectionSummary {
+ id: SettingSection['id']
+ level: SettingSection['level']
+ titleString: string | null
+ hideFromNavigation?: boolean
+ flag?: SettingSection['flag']
+ to?: string
+ settings: {
+ id: string
+ hasTitle: boolean
+ titleString: string | null
+ descriptionString: string | null
+ keywords?: string[]
+ }[]
+}
+
export const searchLogic = kea<searchLogicType>([
path((logicKey) => ['lib', 'components', 'Search', 'searchLogic', logicKey]),
props({} as SearchLogicProps),
@@ -140,6 +160,7 @@ export const searchLogic = kea<searchLogicType>([
})),
actions({
setSearch: (search: string) => ({ search }),
+ setSettingsSections: (sections: SettingsSectionSummary[]) => ({ sections }),
}),
loaders(({ values }) => ({
searchedRecents: [
@@ -274,6 +295,12 @@ export const searchLogic = kea<searchLogicType>([
loadUnifiedSearchResultsFailure: () => false,
},
],
+ settingsSections: [
+ [] as SettingsSectionSummary[],
+ {
+ setSettingsSections: (_, { sections }) => sections,
+ },
+ ],
}),
selectors({
isSearching: [
@@ -661,8 +688,8 @@ export const searchLogic = kea<searchLogicType>([
],
],
settingsItems: [
- (s) => [s.featureFlags, s.organizationIntegrations],
- (featureFlags, organizationIntegrations): SearchItem[] => {
+ (s) => [s.featureFlags, s.organizationIntegrations, s.settingsSections],
+ (featureFlags, organizationIntegrations, settingsSections): SearchItem[] => {
const checkFlag = (flagKey: Pick<Setting, 'flag'>['flag']): boolean =>
matchesFlagDefinition(flagKey, featureFlags)
@@ -671,7 +698,7 @@ export const searchLogic = kea<searchLogicType>([
// Skip project-level sections as they are duplicates of environment sections
const seenSectionIds = new Set<string>()
- for (const section of SETTINGS_MAP) {
+ for (const section of settingsSections) {
// Skip sections hidden from navigation (they are only accessible
// from their product's own configuration page)
if (section.hideFromNavigation) {
@@ -709,19 +736,16 @@ export const searchLogic = kea<searchLogicType>([
const levelPrefix = toSentenceCase(effectiveLevel)
const settings = section.settings
- .filter((setting) => !!setting.title)
+ .filter((setting) => setting.hasTitle)
.flatMap((setting) => [
toSentenceCase(setting.id.replace(/[-]/g, ' ')),
- ...(typeof setting.title === 'string' ? [setting.title] : []),
- ...(typeof setting.description === 'string' ? [setting.description] : []),
+ ...(setting.titleString ? [setting.titleString] : []),
+ ...(setting.descriptionString ? [setting.descriptionString] : []),
...(setting.keywords ?? []),
])
// Create the display name for each settings section
- const displayName =
- typeof section.title === 'string'
- ? section.title
- : toSentenceCase(section.id.replace(/[-]/g, ' '))
+ const displayName = section.titleString ?? toSentenceCase(section.id.replace(/[-]/g, ' '))
const displayNameSuffix =
displayName === 'General' || displayName === 'Danger zone' || displayName === 'Integrations'
@@ -1127,4 +1151,31 @@ export const searchLogic = kea<searchLogicType>([
}
},
})),
+ afterMount(({ actions }) => {
+ import('~/scenes/settings/SettingsMap')
+ .then(({ SETTINGS_MAP }) => {
+ actions.setSettingsSections(
+ SETTINGS_MAP.map((section) => ({
+ id: section.id,
+ level: section.level,
+ titleString: typeof section.title === 'string' ? section.title : null,
+ hideFromNavigation: section.hideFromNavigation,
+ flag: section.flag,
+ to: section.to,
+ settings: section.settings.map((setting) => ({
+ id: setting.id,
+ // A JSX-titled setting has no title string to search but must stay
+ // findable via its id token — hasTitle preserves that distinction.
+ hasTitle: !!setting.title,
+ titleString: typeof setting.title === 'string' ? setting.title : null,
+ descriptionString: typeof setting.description === 'string' ? setting.description : null,
+ keywords: setting.keywords,
+ })),
+ }))
+ )
+ })
+ .catch((error) => {
+ console.error('Failed to load SETTINGS_MAP for settings search:', error)
+ })
+ }),
])
diff --git a/products/logs/frontend/hooks/useKeepMountedWhileOpen.ts b/frontend/src/lib/hooks/useKeepMountedWhileOpen.ts
similarity index 100%
rename from products/logs/frontend/hooks/useKeepMountedWhileOpen.ts
rename to frontend/src/lib/hooks/useKeepMountedWhileOpen.ts
diff --git a/frontend/src/scenes/session-recordings/player/inspector/components/ImagePreview.scss b/frontend/src/lib/utils/autocapture-previews.scss
similarity index 100%
rename from frontend/src/scenes/session-recordings/player/inspector/components/ImagePreview.scss
rename to frontend/src/lib/utils/autocapture-previews.scss
diff --git a/frontend/src/lib/utils/autocapture-previews.tsx b/frontend/src/lib/utils/autocapture-previews.tsx
index 8d9000d6da71..133dbd3a9009 100644
--- a/frontend/src/lib/utils/autocapture-previews.tsx
+++ b/frontend/src/lib/utils/autocapture-previews.tsx
@@ -1,3 +1,5 @@
+import './autocapture-previews.scss'
+
import posthog from 'posthog-js'
import { Tooltip } from 'lib/lemon-ui/Tooltip'
diff --git a/frontend/src/scenes/session-recordings/player/inspector/components/ItemEvent.tsx b/frontend/src/scenes/session-recordings/player/inspector/components/ItemEvent.tsx
index 16e5f5867a9c..aa920c032c9c 100644
--- a/frontend/src/scenes/session-recordings/player/inspector/components/ItemEvent.tsx
+++ b/frontend/src/scenes/session-recordings/player/inspector/components/ItemEvent.tsx
@@ -1,5 +1,3 @@
-import './ImagePreview.scss'
-
import clsx from 'clsx'
import { useActions, useValues } from 'kea'
import { useEffect, useState } from 'react'
diff --git a/frontend/src/scenes/settings/flagGating.test.ts b/frontend/src/scenes/settings/flagGating.test.ts
new file mode 100644
index 000000000000..6db88cf81cf0
--- /dev/null
+++ b/frontend/src/scenes/settings/flagGating.test.ts
@@ -0,0 +1,25 @@
+import { FEATURE_FLAGS } from 'lib/constants'
+
+import { matchesFlagDefinition } from './flagGating'
+
+const flagKeys = Object.keys(FEATURE_FLAGS) as (keyof typeof FEATURE_FLAGS)[]
+const FLAG_A = flagKeys[0]
+const FLAG_B = flagKeys[1]
+
+describe('matchesFlagDefinition', () => {
+ it.each([
+ ['no flag condition', undefined, {}, true],
+ ['plain flag enabled', FLAG_A, { [FEATURE_FLAGS[FLAG_A]]: true }, true],
+ ['plain flag disabled', FLAG_A, {}, false],
+ ['plain flag variant value', FLAG_A, { [FEATURE_FLAGS[FLAG_A]]: 'test' }, true],
+ ['negated flag absent', `!${FLAG_A}`, {}, true],
+ ['negated flag enabled', `!${FLAG_A}`, { [FEATURE_FLAGS[FLAG_A]]: true }, false],
+ ['tuple flag matching value', [[FLAG_A, 'control']], { [FEATURE_FLAGS[FLAG_A]]: 'control' }, true],
+ ['tuple flag wrong value', [[FLAG_A, 'control']], { [FEATURE_FLAGS[FLAG_A]]: 'test' }, false],
+ ['tuple flag missing', [[FLAG_A, 'control']], {}, false],
+ ['all of multiple conditions met', [FLAG_A, `!${FLAG_B}`], { [FEATURE_FLAGS[FLAG_A]]: true }, true],
+ ['one of multiple conditions failing', [FLAG_A, FLAG_B], { [FEATURE_FLAGS[FLAG_A]]: true }, false],
+ ])('%s', (_name, flagKey, featureFlags, expected) => {
+ expect(matchesFlagDefinition(flagKey as any, featureFlags as any)).toBe(expected)
+ })
+})
diff --git a/frontend/src/scenes/settings/flagGating.ts b/frontend/src/scenes/settings/flagGating.ts
new file mode 100644
index 000000000000..e6e2eca59c2b
--- /dev/null
+++ b/frontend/src/scenes/settings/flagGating.ts
@@ -0,0 +1,45 @@
+import { FEATURE_FLAGS } from 'lib/constants'
+import type { FeatureFlagsSet } from 'lib/logic/featureFlagLogic'
+
+import { Setting } from '~/scenes/settings/types'
+
+/**
+ * Kept apart from settingsLogic so consumers (e.g. command palette search) can gate on
+ * setting flags without statically importing the full SettingsMap component graph.
+ */
+export const matchesFlagDefinition = (
+ flagKey: Pick<Setting, 'flag'>['flag'],
+ featureFlags: FeatureFlagsSet
+): boolean => {
+ // No flag condition
+ if (!flagKey) {
+ return true
+ }
+
+ const flagsArray = Array.isArray(flagKey) ? flagKey : [flagKey]
+ for (const flagCondition of flagsArray) {
+ // Tuple flag condition ([flag, value])
+ if (Array.isArray(flagCondition)) {
+ const [flag, value] = flagCondition
+ const isConditionMet = featureFlags[FEATURE_FLAGS[flag]] === value
+ if (!isConditionMet) {
+ return false
+ }
+ // Negated flag condition (`!${FeatureFlagKey}`)
+ } else if (flagCondition.startsWith('!')) {
+ const flag = flagCondition.slice(1) as keyof typeof FEATURE_FLAGS
+ const isConditionMet = !featureFlags[FEATURE_FLAGS[flag]]
+ if (!isConditionMet) {
+ return false
+ }
+ // Normal flag condition (FeatureFlagKey)
+ } else {
+ const flag = flagCondition as keyof typeof FEATURE_FLAGS
+ const isConditionMet = !!featureFlags[FEATURE_FLAGS[flag]]
+ if (!isConditionMet) {
+ return false
+ }
+ }
+ }
+ return true
+}
diff --git a/frontend/src/scenes/settings/settingsLogic.ts b/frontend/src/scenes/settings/settingsLogic.ts
index cb13f6b94fc3..324eb4540186 100644
--- a/frontend/src/scenes/settings/settingsLogic.ts
+++ b/frontend/src/scenes/settings/settingsLogic.ts
@@ -4,9 +4,8 @@ import { loaders } from 'kea-loaders'
import { actionToUrl, router, urlToAction } from 'kea-router'
import api from 'lib/api'
-import { FEATURE_FLAGS } from 'lib/constants'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
-import { featureFlagLogic, FeatureFlagsSet } from 'lib/logic/featureFlagLogic'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { createFuse } from 'lib/utils/fuseSearch'
import { billingLogic } from 'scenes/billing/billingLogic'
import { organizationLogic } from 'scenes/organizationLogic'
@@ -15,6 +14,7 @@ import { organizationIntegrationsLogic } from 'scenes/settings/organization/orga
import { teamLogic } from 'scenes/teamLogic'
import { userLogic } from 'scenes/userLogic'
+import { matchesFlagDefinition } from './flagGating'
import type { settingsLogicType } from './settingsLogicType'
import { SETTINGS_MAP } from './SettingsMap'
import { Setting, SettingId, SettingLevelId, SettingSection, SettingSectionId, SettingsLogicProps } from './types'
@@ -75,43 +75,6 @@ const getSectionStringValue = (section: SettingSection): string => {
return section.id
}
-export const matchesFlagDefinition = (
- flagKey: Pick<Setting, 'flag'>['flag'],
- featureFlags: FeatureFlagsSet
-): boolean => {
- // No flag condition
- if (!flagKey) {
- return true
- }
-
- const flagsArray = Array.isArray(flagKey) ? flagKey : [flagKey]
- for (const flagCondition of flagsArray) {
- // Tuple flag condition ([flag, value])
- if (Array.isArray(flagCondition)) {
- const [flag, value] = flagCondition
- const isConditionMet = featureFlags[FEATURE_FLAGS[flag]] === value
- if (!isConditionMet) {
- return false
- }
- // Negated flag condition (`!${FeatureFlagKey}`)
- } else if (flagCondition.startsWith('!')) {
- const flag = flagCondition.slice(1) as keyof typeof FEATURE_FLAGS
- const isConditionMet = !featureFlags[FEATURE_FLAGS[flag]]
- if (!isConditionMet) {
- return false
- }
- // Normal flag condition (FeatureFlagKey)
- } else {
- const flag = flagCondition as keyof typeof FEATURE_FLAGS
- const isConditionMet = !!featureFlags[FEATURE_FLAGS[flag]]
- if (!isConditionMet) {
- return false
- }
- }
- }
- return true
-}
-
export const settingsLogic = kea<settingsLogicType>([
props({} as SettingsLogicProps),
key((props) => props.logicKey ?? 'global'),
diff --git a/products/logs/frontend/components/LogsViewer/LogsViewerModal/LogsViewerModal.tsx b/products/logs/frontend/components/LogsViewer/LogsViewerModal/LogsViewerModal.tsx
index 137ad48a088b..23601c5a7231 100644
--- a/products/logs/frontend/components/LogsViewer/LogsViewerModal/LogsViewerModal.tsx
+++ b/products/logs/frontend/components/LogsViewer/LogsViewerModal/LogsViewerModal.tsx
@@ -5,9 +5,9 @@ import { IconX } from '@posthog/icons'
import { LemonButton, LemonModal } from '@posthog/lemon-ui'
import { FloatingContainerContext } from 'lib/hooks/useFloatingContainerContext'
+import { useKeepMountedWhileOpen } from 'lib/hooks/useKeepMountedWhileOpen'
import { LogsViewer } from 'products/logs/frontend/components/LogsViewer'
-import { useKeepMountedWhileOpen } from 'products/logs/frontend/hooks/useKeepMountedWhileOpen'
import { logsViewerModalLogic } from './logsViewerModalLogic'
diff --git a/products/logs/frontend/components/LogsViews/SavedViewsModal.tsx b/products/logs/frontend/components/LogsViews/SavedViewsModal.tsx
index d34afeb6bb27..e3e4ba6d29e7 100644
--- a/products/logs/frontend/components/LogsViews/SavedViewsModal.tsx
+++ b/products/logs/frontend/components/LogsViews/SavedViewsModal.tsx
@@ -3,10 +3,10 @@ import { useActions, useValues } from 'kea'
import { LemonButton, LemonDialog, LemonInput, LemonModal, LemonTable, LemonTableColumns } from '@posthog/lemon-ui'
import { TZLabel } from 'lib/components/TZLabel'
+import { useKeepMountedWhileOpen } from 'lib/hooks/useKeepMountedWhileOpen'
import { More } from 'lib/lemon-ui/LemonButton/More'
import { LemonMenuOverlay } from 'lib/lemon-ui/LemonMenu/LemonMenu'
-import { useKeepMountedWhileOpen } from 'products/logs/frontend/hooks/useKeepMountedWhileOpen'
import { getFiltersSummaryLines } from 'products/logs/frontend/utils'
import { logsViewsListLogic } from './logsViewsListLogic'