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.

chore(paths): move the paths workflow into products/product_analytics (#100064)

Thomas Obermülleredf328c81d65
diff --git a/common/storybook/storybook-timings.json b/common/storybook/storybook-timings.json
index 3035b220faa0..17761a730e40 100644
--- a/common/storybook/storybook-timings.json
+++ b/common/storybook/storybook-timings.json
@@ -1143,7 +1143,7 @@
"chromium": 31.702,
"webkit": 4.317
},
- "frontend/src/scenes/paths/Paths.stories.tsx": {
+ "products/product_analytics/frontend/insights/paths/Paths.stories.tsx": {
"chromium": 17.987,
"webkit": 5.896
},
diff --git a/frontend/src/queries/nodes/InsightViz/EditorFilters.tsx b/frontend/src/queries/nodes/InsightViz/EditorFilters.tsx
index c42ef1efc92c..910bbeb0cb79 100644
--- a/frontend/src/queries/nodes/InsightViz/EditorFilters.tsx
+++ b/frontend/src/queries/nodes/InsightViz/EditorFilters.tsx
@@ -6,12 +6,6 @@ import { Link, Tooltip } from '@posthog/lemon-ui'
import { NON_BREAKDOWN_DISPLAY_TYPES } from 'lib/constants'
import { pluralize } from 'lib/utils/strings'
import { GoalLines } from 'scenes/insights/EditorFilters/GoalLines'
-import { PathsAdvanced } from 'scenes/insights/EditorFilters/PathsAdvanced'
-import { PathsEventsTypes } from 'scenes/insights/EditorFilters/PathsEventTypes'
-import { PathsExclusions } from 'scenes/insights/EditorFilters/PathsExclusions'
-import { PathsHogQL } from 'scenes/insights/EditorFilters/PathsHogQL'
-import { PathsTargetEnd, PathsTargetStart } from 'scenes/insights/EditorFilters/PathsTarget'
-import { PathsWildcardGroups } from 'scenes/insights/EditorFilters/PathsWildcardGroups'
import { PoeFilter } from 'scenes/insights/EditorFilters/PoeFilter'
import { SamplingDeprecationNotice } from 'scenes/insights/EditorFilters/SamplingDeprecationNotice'
import { WebAnalyticsEditorFilters } from 'scenes/insights/EditorFilters/WebAnalyticsEditorFilters'
@@ -39,6 +33,12 @@ import { funnelDataLogic } from 'products/product_analytics/frontend/insights/fu
import { JourneysExclusions } from 'products/product_analytics/frontend/insights/journeys/JourneysExclusions'
import { JourneysSettings } from 'products/product_analytics/frontend/insights/journeys/JourneysSettings'
import { JourneysStepSourcePicker } from 'products/product_analytics/frontend/insights/journeys/JourneysStepSourcePicker'
+import { PathsAdvanced } from 'products/product_analytics/frontend/insights/paths/editor/PathsAdvanced'
+import { PathsEventsTypes } from 'products/product_analytics/frontend/insights/paths/editor/PathsEventTypes'
+import { PathsExclusions } from 'products/product_analytics/frontend/insights/paths/editor/PathsExclusions'
+import { PathsHogQL } from 'products/product_analytics/frontend/insights/paths/editor/PathsHogQL'
+import { PathsTargetEnd, PathsTargetStart } from 'products/product_analytics/frontend/insights/paths/editor/PathsTarget'
+import { PathsWildcardGroups } from 'products/product_analytics/frontend/insights/paths/editor/PathsWildcardGroups'
import { RetentionCondition } from 'products/product_analytics/frontend/insights/retention/editor/RetentionCondition'
import { RetentionOptions } from 'products/product_analytics/frontend/insights/retention/editor/RetentionOptions'
import { CumulativeStickinessFilter } from 'products/product_analytics/frontend/insights/stickiness/editor/CumulativeStickinessFilter'
diff --git a/frontend/src/queries/nodes/InsightViz/InsightDisplayConfig.tsx b/frontend/src/queries/nodes/InsightViz/InsightDisplayConfig.tsx
index 0004c716f9b5..ffc65ad591c2 100644
--- a/frontend/src/queries/nodes/InsightViz/InsightDisplayConfig.tsx
+++ b/frontend/src/queries/nodes/InsightViz/InsightDisplayConfig.tsx
@@ -13,7 +13,6 @@ import { alignResolvedDateRangeToInterval, formatResolvedDateRange } from 'lib/u
import { InsightDateFilter } from 'scenes/insights/filters/InsightDateFilter'
import { insightLogic } from 'scenes/insights/insightLogic'
import { insightVizDataLogic } from 'scenes/insights/insightVizDataLogic'
-import { PathStepPicker } from 'scenes/insights/views/Paths/PathStepPicker'
import { hasBreakdownFilter, isWebAnalyticsInsightQuery } from '~/queries/utils'
import { ChartDisplayType } from '~/types'
@@ -21,6 +20,7 @@ import { ChartDisplayType } from '~/types'
import { FunnelBinsPicker } from 'products/product_analytics/frontend/insights/funnels/filters/FunnelBinsPicker'
import { FunnelDisplayLayoutPicker } from 'products/product_analytics/frontend/insights/funnels/filters/FunnelDisplayLayoutPicker'
import { funnelDataLogic } from 'products/product_analytics/frontend/insights/funnels/funnelDataLogic'
+import { PathStepPicker } from 'products/product_analytics/frontend/insights/paths/filters/PathStepPicker'
import { RetentionBreakdownFilter } from 'products/product_analytics/frontend/insights/retention/filters/RetentionBreakdownFilter'
import { RetentionChartPicker } from 'products/product_analytics/frontend/insights/retention/filters/RetentionChartPicker'
import { RetentionDatePicker } from 'products/product_analytics/frontend/insights/retention/filters/RetentionDatePicker'
diff --git a/frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx b/frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx
index 483521e1c1b7..e10065e14a70 100644
--- a/frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx
+++ b/frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx
@@ -33,8 +33,6 @@ import { isBoxPlotMissingProperty } from 'scenes/insights/utils/queryUtils'
import { BoxPlotLegend } from 'scenes/insights/views/BoxPlot/BoxPlotLegend'
import { BoxPlotResultsTable } from 'scenes/insights/views/BoxPlot/BoxPlotResultsTable'
import { InsightsTable } from 'scenes/insights/views/InsightsTable/InsightsTable'
-import { Paths } from 'scenes/paths/Paths'
-import { PathCanvasLabel } from 'scenes/paths/PathsLabel'
import { WebAnalyticsInsight } from 'scenes/web-analytics/WebAnalyticsInsight'
import { SceneSection } from '~/layout/scenes/components/SceneSection'
@@ -58,6 +56,8 @@ import { FunnelStepsTable } from 'products/product_analytics/frontend/insights/f
import { FunnelTimeToConvertTable } from 'products/product_analytics/frontend/insights/funnels/FunnelTimeToConvertTable/FunnelTimeToConvertTable'
import { FunnelTrendsTable } from 'products/product_analytics/frontend/insights/funnels/FunnelTrendsTable/FunnelTrendsTable'
import { Journeys } from 'products/product_analytics/frontend/insights/journeys/Journeys'
+import { Paths } from 'products/product_analytics/frontend/insights/paths/Paths'
+import { PathCanvasLabel } from 'products/product_analytics/frontend/insights/paths/PathsLabel'
import { RetentionContainer } from 'products/product_analytics/frontend/insights/retention/RetentionContainer'
import { TrendInsight } from 'products/product_analytics/frontend/insights/trends/Trends'
diff --git a/frontend/src/scenes/insights/utils/cleanFilters.ts b/frontend/src/scenes/insights/utils/cleanFilters.ts
index 11bf39c63a0f..79f31fd50089 100644
--- a/frontend/src/scenes/insights/utils/cleanFilters.ts
+++ b/frontend/src/scenes/insights/utils/cleanFilters.ts
@@ -20,7 +20,6 @@ import {
isStickinessFilter,
isTrendsFilter,
} from 'scenes/insights/sharedUtils'
-import { DEFAULT_STEP_LIMIT } from 'scenes/paths/pathsDataLogic'
import {
AnyFilterType,
@@ -42,6 +41,8 @@ import {
TrendsFilterType,
} from '~/types'
+import { DEFAULT_STEP_LIMIT } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
import { LocalFilter, toLocalFilters } from '../filters/ActionFilter/entityFilterLogic'
export function getDefaultEvent(): Entity {
diff --git a/frontend/src/scenes/paths/PathNodeCard.tsx b/products/product_analytics/frontend/insights/paths/PathNodeCard.tsx
similarity index 100%
rename from frontend/src/scenes/paths/PathNodeCard.tsx
rename to products/product_analytics/frontend/insights/paths/PathNodeCard.tsx
diff --git a/frontend/src/scenes/paths/PathNodeCardButton.tsx b/products/product_analytics/frontend/insights/paths/PathNodeCardButton.tsx
similarity index 100%
rename from frontend/src/scenes/paths/PathNodeCardButton.tsx
rename to products/product_analytics/frontend/insights/paths/PathNodeCardButton.tsx
diff --git a/frontend/src/scenes/paths/PathNodeCardMenu.tsx b/products/product_analytics/frontend/insights/paths/PathNodeCardMenu.tsx
similarity index 100%
rename from frontend/src/scenes/paths/PathNodeCardMenu.tsx
rename to products/product_analytics/frontend/insights/paths/PathNodeCardMenu.tsx
diff --git a/frontend/src/scenes/paths/Paths.scss b/products/product_analytics/frontend/insights/paths/Paths.scss
similarity index 100%
rename from frontend/src/scenes/paths/Paths.scss
rename to products/product_analytics/frontend/insights/paths/Paths.scss
diff --git a/frontend/src/scenes/paths/Paths.stories.tsx b/products/product_analytics/frontend/insights/paths/Paths.stories.tsx
similarity index 98%
rename from frontend/src/scenes/paths/Paths.stories.tsx
rename to products/product_analytics/frontend/insights/paths/Paths.stories.tsx
index 946f80889174..9a31eb6e6041 100644
--- a/frontend/src/scenes/paths/Paths.stories.tsx
+++ b/products/product_analytics/frontend/insights/paths/Paths.stories.tsx
@@ -1,5 +1,5 @@
import { Meta, StoryObj } from '@storybook/react'
-import { waitFor } from '@testing-library/dom'
+import { waitFor } from '@testing-library/react'
import {
createInsightStory,
diff --git a/frontend/src/scenes/paths/Paths.tsx b/products/product_analytics/frontend/insights/paths/Paths.tsx
similarity index 100%
rename from frontend/src/scenes/paths/Paths.tsx
rename to products/product_analytics/frontend/insights/paths/Paths.tsx
diff --git a/frontend/src/scenes/paths/PathsLabel.tsx b/products/product_analytics/frontend/insights/paths/PathsLabel.tsx
similarity index 100%
rename from frontend/src/scenes/paths/PathsLabel.tsx
rename to products/product_analytics/frontend/insights/paths/PathsLabel.tsx
diff --git a/frontend/src/scenes/paths/constants.ts b/products/product_analytics/frontend/insights/paths/constants.ts
similarity index 100%
rename from frontend/src/scenes/paths/constants.ts
rename to products/product_analytics/frontend/insights/paths/constants.ts
diff --git a/frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx b/products/product_analytics/frontend/insights/paths/editor/PathsAdvanced.tsx
similarity index 98%
rename from frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx
rename to products/product_analytics/frontend/insights/paths/editor/PathsAdvanced.tsx
index b5ea70045f44..690fc5ea6c3b 100644
--- a/frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx
+++ b/products/product_analytics/frontend/insights/paths/editor/PathsAdvanced.tsx
@@ -5,10 +5,11 @@ import { LemonInput, LemonSwitch } from '@posthog/lemon-ui'
import { PayGateMini } from 'lib/components/PayGateMini/PayGateMini'
import { LemonLabel } from 'lib/lemon-ui/LemonLabel/LemonLabel'
-import { pathsDataLogic } from 'scenes/paths/pathsDataLogic'
import { AvailableFeature, EditorFilterProps, PathEdgeParameters } from '~/types'
+import { pathsDataLogic } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
import { PathCleaningFilter } from '../filters/PathCleaningFilter'
export function PathsAdvanced({ insightProps, ...rest }: EditorFilterProps): JSX.Element {
diff --git a/frontend/src/scenes/insights/EditorFilters/PathsEventTypes.tsx b/products/product_analytics/frontend/insights/paths/editor/PathsEventTypes.tsx
similarity index 95%
rename from frontend/src/scenes/insights/EditorFilters/PathsEventTypes.tsx
rename to products/product_analytics/frontend/insights/paths/editor/PathsEventTypes.tsx
index 3a65db503523..78020cfb3193 100644
--- a/frontend/src/scenes/insights/EditorFilters/PathsEventTypes.tsx
+++ b/products/product_analytics/frontend/insights/paths/editor/PathsEventTypes.tsx
@@ -3,12 +3,12 @@ import { useActions, useValues } from 'kea'
import { LemonButton, LemonButtonWithDropdown } from 'lib/lemon-ui/LemonButton'
import { LemonCheckbox } from 'lib/lemon-ui/LemonCheckbox'
import { capitalizeFirstLetter } from 'lib/utils/strings'
-import { pathsDataLogic } from 'scenes/paths/pathsDataLogic'
+import { humanizePathsEventTypes } from 'scenes/insights/utils'
import { PathsFilter } from '~/queries/schema/schema-general'
import { EditorFilterProps, PathType } from '~/types'
-import { humanizePathsEventTypes } from '../utils'
+import { pathsDataLogic } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
export function PathsEventsTypes({ insightProps }: EditorFilterProps): JSX.Element {
const { pathsFilter } = useValues(pathsDataLogic(insightProps))
diff --git a/frontend/src/scenes/insights/EditorFilters/PathsExclusions.tsx b/products/product_analytics/frontend/insights/paths/editor/PathsExclusions.tsx
similarity index 93%
rename from frontend/src/scenes/insights/EditorFilters/PathsExclusions.tsx
rename to products/product_analytics/frontend/insights/paths/editor/PathsExclusions.tsx
index a5fa5036a732..3c5434c56df5 100644
--- a/frontend/src/scenes/insights/EditorFilters/PathsExclusions.tsx
+++ b/products/product_analytics/frontend/insights/paths/editor/PathsExclusions.tsx
@@ -2,10 +2,11 @@ import { useActions, useValues } from 'kea'
import { PathItemFilters } from 'lib/components/PropertyFilters/PathItemFilters'
import { keyForInsightLogicProps } from 'scenes/insights/sharedUtils'
-import { pathsDataLogic } from 'scenes/paths/pathsDataLogic'
import { EditorFilterProps, EventPropertyFilter, PropertyFilterType, PropertyOperator } from '~/types'
+import { pathsDataLogic } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
export function PathsExclusions({ insightProps }: EditorFilterProps): JSX.Element {
const { pathsFilter, taxonomicGroupTypes } = useValues(pathsDataLogic(insightProps))
const { updateInsightFilter } = useActions(pathsDataLogic(insightProps))
diff --git a/frontend/src/scenes/insights/EditorFilters/PathsHogQL.tsx b/products/product_analytics/frontend/insights/paths/editor/PathsHogQL.tsx
similarity index 91%
rename from frontend/src/scenes/insights/EditorFilters/PathsHogQL.tsx
rename to products/product_analytics/frontend/insights/paths/editor/PathsHogQL.tsx
index e5b70ef5d2b6..4dbf62b3339d 100644
--- a/frontend/src/scenes/insights/EditorFilters/PathsHogQL.tsx
+++ b/products/product_analytics/frontend/insights/paths/editor/PathsHogQL.tsx
@@ -2,11 +2,12 @@ import { useActions, useValues } from 'kea'
import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'
import { TaxonomicPopover } from 'lib/components/TaxonomicPopover/TaxonomicPopover'
-import { pathsDataLogic } from 'scenes/paths/pathsDataLogic'
import { taxonomicEventFilterToHogQL } from '~/queries/utils'
import { EditorFilterProps } from '~/types'
+import { pathsDataLogic } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
export function PathsHogQL({ insightProps }: EditorFilterProps): JSX.Element {
const { pathsFilter } = useValues(pathsDataLogic(insightProps))
const { updateInsightFilter } = useActions(pathsDataLogic(insightProps))
diff --git a/frontend/src/scenes/insights/EditorFilters/PathsTarget.tsx b/products/product_analytics/frontend/insights/paths/editor/PathsTarget.tsx
similarity index 98%
rename from frontend/src/scenes/insights/EditorFilters/PathsTarget.tsx
rename to products/product_analytics/frontend/insights/paths/editor/PathsTarget.tsx
index 854d9689dfd1..4538e042ec38 100644
--- a/frontend/src/scenes/insights/EditorFilters/PathsTarget.tsx
+++ b/products/product_analytics/frontend/insights/paths/editor/PathsTarget.tsx
@@ -6,12 +6,13 @@ import { IconX } from '@posthog/icons'
import { PathItemSelector } from 'lib/components/PropertyFilters/components/PathItemSelector'
import { IconFunnelVertical } from 'lib/lemon-ui/icons'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
-import { pathsDataLogic } from 'scenes/paths/pathsDataLogic'
import { queryNodeToFilter } from '~/queries/nodes/InsightQuery/utils/queryNodeToFilter'
import { FunnelsQuery, PathsQuery } from '~/queries/schema/schema-general'
import { EditorFilterProps, FunnelPathType } from '~/types'
+import { pathsDataLogic } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
export function PathsTargetStart(props: EditorFilterProps): JSX.Element {
return <PathsTarget position="start" {...props} />
}
diff --git a/frontend/src/scenes/insights/EditorFilters/PathsWildcardGroups.tsx b/products/product_analytics/frontend/insights/paths/editor/PathsWildcardGroups.tsx
similarity index 87%
rename from frontend/src/scenes/insights/EditorFilters/PathsWildcardGroups.tsx
rename to products/product_analytics/frontend/insights/paths/editor/PathsWildcardGroups.tsx
index e3a353fbe200..420424ac229f 100644
--- a/frontend/src/scenes/insights/EditorFilters/PathsWildcardGroups.tsx
+++ b/products/product_analytics/frontend/insights/paths/editor/PathsWildcardGroups.tsx
@@ -1,10 +1,11 @@
import { useActions, useValues } from 'kea'
import { LemonInputSelect } from 'lib/lemon-ui/LemonInputSelect/LemonInputSelect'
-import { pathsDataLogic } from 'scenes/paths/pathsDataLogic'
import { EditorFilterProps } from '~/types'
+import { pathsDataLogic } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
export function PathsWildcardGroups({ insightProps }: EditorFilterProps): JSX.Element {
const { pathsFilter } = useValues(pathsDataLogic(insightProps))
const { updateInsightFilter } = useActions(pathsDataLogic(insightProps))
diff --git a/frontend/src/scenes/insights/filters/PathCleaningFilter.tsx b/products/product_analytics/frontend/insights/paths/filters/PathCleaningFilter.tsx
similarity index 89%
rename from frontend/src/scenes/insights/filters/PathCleaningFilter.tsx
rename to products/product_analytics/frontend/insights/paths/filters/PathCleaningFilter.tsx
index 1464e0d58bdb..1c5a86285279 100644
--- a/frontend/src/scenes/insights/filters/PathCleaningFilter.tsx
+++ b/products/product_analytics/frontend/insights/paths/filters/PathCleaningFilter.tsx
@@ -1,10 +1,11 @@
import { useActions, useValues } from 'kea'
import { PathCleaningControls } from 'lib/components/PathCleanFilters/PathCleaningControls'
-import { pathsDataLogic } from 'scenes/paths/pathsDataLogic'
import { EditorFilterProps } from '~/types'
+import { pathsDataLogic } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
export function PathCleaningFilter({ insightProps }: EditorFilterProps): JSX.Element {
const { pathsFilter } = useValues(pathsDataLogic(insightProps))
const { updateInsightFilter } = useActions(pathsDataLogic(insightProps))
diff --git a/frontend/src/scenes/insights/views/Paths/PathStepPicker.tsx b/products/product_analytics/frontend/insights/paths/filters/PathStepPicker.tsx
similarity index 85%
rename from frontend/src/scenes/insights/views/Paths/PathStepPicker.tsx
rename to products/product_analytics/frontend/insights/paths/filters/PathStepPicker.tsx
index fb355cb8d6b9..a2e22c46e557 100644
--- a/frontend/src/scenes/insights/views/Paths/PathStepPicker.tsx
+++ b/products/product_analytics/frontend/insights/paths/filters/PathStepPicker.tsx
@@ -3,12 +3,13 @@ import { useActions, useValues } from 'kea'
import { LemonSelect } from '@posthog/lemon-ui'
import { insightLogic } from 'scenes/insights/insightLogic'
-import { DEFAULT_STEP_LIMIT } from 'scenes/paths/pathsDataLogic'
-import { pathsDataLogic } from 'scenes/paths/pathsDataLogic'
import { userLogic } from 'scenes/userLogic'
import { AvailableFeature } from '~/types'
+import { DEFAULT_STEP_LIMIT } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+import { pathsDataLogic } from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
interface StepOption {
label: string
value: number
diff --git a/frontend/src/scenes/paths/pathUtils.test.ts b/products/product_analytics/frontend/insights/paths/pathUtils.test.ts
similarity index 100%
rename from frontend/src/scenes/paths/pathUtils.test.ts
rename to products/product_analytics/frontend/insights/paths/pathUtils.test.ts
diff --git a/frontend/src/scenes/paths/pathUtils.ts b/products/product_analytics/frontend/insights/paths/pathUtils.ts
similarity index 100%
rename from frontend/src/scenes/paths/pathUtils.ts
rename to products/product_analytics/frontend/insights/paths/pathUtils.ts
diff --git a/frontend/src/scenes/paths/pathsDataLogic.test.ts b/products/product_analytics/frontend/insights/paths/pathsDataLogic.test.ts
similarity index 96%
rename from frontend/src/scenes/paths/pathsDataLogic.test.ts
rename to products/product_analytics/frontend/insights/paths/pathsDataLogic.test.ts
index 6bf7364a819e..9a9fa92da0bd 100644
--- a/frontend/src/scenes/paths/pathsDataLogic.test.ts
+++ b/products/product_analytics/frontend/insights/paths/pathsDataLogic.test.ts
@@ -1,7 +1,6 @@
import { expectLogic } from 'kea-test-utils'
import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'
-import { buildFunnelEventsFromPathNode, pathsDataLogic } from 'scenes/paths/pathsDataLogic'
import { teamLogic } from 'scenes/teamLogic'
import { examples } from '~/queries/examples'
@@ -9,6 +8,11 @@ import { InsightVizNode, NodeKind } from '~/queries/schema/schema-general'
import { initKeaTests } from '~/test/init'
import { InsightLogicProps, PathType, PropertyFilterType, PropertyOperator } from '~/types'
+import {
+ buildFunnelEventsFromPathNode,
+ pathsDataLogic,
+} from 'products/product_analytics/frontend/insights/paths/pathsDataLogic'
+
import { PathNodeData, PathTargetLink } from './pathUtils'
let logic: ReturnType<typeof pathsDataLogic.build>
diff --git a/frontend/src/scenes/paths/pathsDataLogic.ts b/products/product_analytics/frontend/insights/paths/pathsDataLogic.ts
similarity index 97%
rename from frontend/src/scenes/paths/pathsDataLogic.ts
rename to products/product_analytics/frontend/insights/paths/pathsDataLogic.ts
index 7e7cd8bdce0b..1e424b2e2bb7 100644
--- a/frontend/src/scenes/paths/pathsDataLogic.ts
+++ b/products/product_analytics/frontend/insights/paths/pathsDataLogic.ts
@@ -1,10 +1,13 @@
import { MakeLogicType, actions, connect, kea, key, listeners, path, props, selectors } from 'kea'
+import type { DataColorTheme } from 'lib/colors'
import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import type { FeatureFlagsSet } from 'lib/logic/featureFlagLogic'
import { newInternalTab } from 'lib/utils/newInternalTab'
import { MathAvailability } from 'scenes/insights/filters/ActionFilter/ActionFilterRow/types'
import { insightVizDataLogic } from 'scenes/insights/insightVizDataLogic'
+import type { QuerySourceUpdate } from 'scenes/insights/insightVizDataLogic'
import { keyForInsightLogicProps } from 'scenes/insights/sharedUtils'
import { pathsTitle } from 'scenes/trends/persons-modal/persons-modal-utils'
import { OpenPersonsModalProps, openPersonsModal } from 'scenes/trends/persons-modal/PersonsModal'
@@ -12,11 +15,6 @@ import { urls } from 'scenes/urls'
import { actionsAndEventsToSeries } from '~/queries/nodes/InsightQuery/utils/filtersToQueryNode'
import { InsightActorsQuery, InsightVizNode, NodeKind, PathsLink, PathsQuery } from '~/queries/schema/schema-general'
-import { isPathsQuery } from '~/queries/utils'
-import { ActionFilter, FunnelVizType, InsightLogicProps, PathType, PropertyFilterType, PropertyOperator } from '~/types'
-
-import type { DataColorTheme } from '../../lib/colors'
-import type { FeatureFlagsSet } from '../../lib/logic/featureFlagLogic'
import type {
DataNode,
DateRange,
@@ -30,9 +28,11 @@ import type {
TrendsQuery,
WebOverviewQuery,
WebStatsTableQuery,
-} from '../../queries/schema/schema-general'
-import type { PathsV2Query } from '../../queries/schema/schema-general'
-import type { QuerySourceUpdate } from '../insights/insightVizDataLogic'
+} from '~/queries/schema/schema-general'
+import type { PathsV2Query } from '~/queries/schema/schema-general'
+import { isPathsQuery } from '~/queries/utils'
+import { ActionFilter, FunnelVizType, InsightLogicProps, PathType, PropertyFilterType, PropertyOperator } from '~/types'
+
import { PathNodeData } from './pathUtils'
import { Paths, PathsNode } from './types'
diff --git a/frontend/src/scenes/paths/pathsInteractionLogic.test.ts b/products/product_analytics/frontend/insights/paths/pathsInteractionLogic.test.ts
similarity index 100%
rename from frontend/src/scenes/paths/pathsInteractionLogic.test.ts
rename to products/product_analytics/frontend/insights/paths/pathsInteractionLogic.test.ts
diff --git a/frontend/src/scenes/paths/pathsInteractionLogic.ts b/products/product_analytics/frontend/insights/paths/pathsInteractionLogic.ts
similarity index 100%
rename from frontend/src/scenes/paths/pathsInteractionLogic.ts
rename to products/product_analytics/frontend/insights/paths/pathsInteractionLogic.ts
diff --git a/frontend/src/scenes/paths/renderPaths.ts b/products/product_analytics/frontend/insights/paths/renderPaths.ts
similarity index 100%
rename from frontend/src/scenes/paths/renderPaths.ts
rename to products/product_analytics/frontend/insights/paths/renderPaths.ts
diff --git a/frontend/src/scenes/paths/types.ts b/products/product_analytics/frontend/insights/paths/types.ts
similarity index 100%
rename from frontend/src/scenes/paths/types.ts
rename to products/product_analytics/frontend/insights/paths/types.ts