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(persons): move the persons scene into products/persons (#99771)

Thomas Obermüller28c4f516f4ef
diff --git a/common/storybook/storybook-timings.json b/common/storybook/storybook-timings.json
index 643fb5d99f63..3035b220faa0 100644
--- a/common/storybook/storybook-timings.json
+++ b/common/storybook/storybook-timings.json
@@ -1151,7 +1151,7 @@
"chromium": 12.236,
"webkit": 2.119
},
- "frontend/src/scenes/persons/PersonScene.stories.tsx": {
+ "products/persons/frontend/pages/PersonScene.stories.tsx": {
"chromium": 14.518,
"webkit": 2.907
},
diff --git a/frontend/src/lib/components/ActivityLog/describers.tsx b/frontend/src/lib/components/ActivityLog/describers.tsx
index 7aa427c4341e..475d6ffe4abc 100644
--- a/frontend/src/lib/components/ActivityLog/describers.tsx
+++ b/frontend/src/lib/components/ActivityLog/describers.tsx
@@ -16,7 +16,6 @@ import { exportedAssetActivityDescriber } from 'scenes/exports/activityDescripti
import { flagActivityDescriber } from 'scenes/feature-flags/activityDescriptions'
import { hogFunctionActivityDescriber } from 'scenes/hog-functions/misc/activityDescriptions'
import { notebookActivityDescriber } from 'scenes/notebooks/Notebook/notebookActivityDescriber'
-import { personActivityDescriber } from 'scenes/persons/activityDescriptions'
import { productTourActivityDescriber } from 'scenes/product-tours/activityDescriptions'
import { insightActivityDescriber } from 'scenes/saved-insights/activityDescriptions'
import { replayActivityDescriber } from 'scenes/session-recordings/activityDescription'
@@ -45,6 +44,7 @@ import { ticketActivityDescriber } from 'products/conversations/frontend/activit
import { externalDataSourceActivityDescriber } from 'products/data_warehouse/frontend/shared/components/activityDescriptions'
import { endpointActivityDescriber } from 'products/endpoints/frontend/activityDescriber'
import { groupActivityDescriber } from 'products/groups/frontend/activityDescriptions'
+import { personActivityDescriber } from 'products/persons/frontend/activityDescriptions'
import { signalScoutConfigActivityDescriber } from 'products/signals/frontend/activityDescriber'
import { stamphogRepoConfigActivityDescriber } from 'products/stamphog/frontend/activityDescriber'
import { workflowActivityDescriber } from 'products/workflows/frontend/Workflows/misc/workflowActivityDescriber'
diff --git a/frontend/src/lib/components/CompactList/CompactList.stories.tsx b/frontend/src/lib/components/CompactList/CompactList.stories.tsx
index 033ed2666fb1..0bd0b1dbfbe1 100644
--- a/frontend/src/lib/components/CompactList/CompactList.stories.tsx
+++ b/frontend/src/lib/components/CompactList/CompactList.stories.tsx
@@ -1,9 +1,10 @@
import { Meta } from '@storybook/react'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import { CompactList, CompactListProps } from './CompactList'
const meta: Meta<CompactListProps> = {
diff --git a/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx b/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx
index 5b67ab7790e0..b29243f86f5a 100644
--- a/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx
+++ b/frontend/src/lib/components/PropertiesTable/PropertiesTable.tsx
@@ -14,7 +14,6 @@ import { preflightLogic } from 'lib/logic/preflightLogic'
import { userPreferencesLogic } from 'lib/logic/userPreferencesLogic'
import { isObject, isKeyOf } from 'lib/utils/guards'
import { isURL } from 'lib/utils/url'
-import { NewProperty } from 'scenes/persons/NewProperty'
import { urls } from 'scenes/urls'
import { propertyDefinitionsModel } from '~/models/propertyDefinitionsModel'
@@ -28,6 +27,8 @@ import {
import { PROPERTY_KEYS } from '~/taxonomy/taxonomy'
import { PropertyDefinitionType, PropertyType } from '~/types'
+import { NewProperty } from 'products/persons/frontend/components/NewProperty'
+
import { CopyToClipboardInline } from '../CopyToClipboard'
import { JSONViewer } from '../JSONViewer'
import { PROPERTY_FILTER_TYPE_TO_TAXONOMIC_FILTER_GROUP_TYPE } from '../PropertyFilters/utils'
diff --git a/frontend/src/lib/components/PropertyFilters/components/GroupKeyFilterTooltip.tsx b/frontend/src/lib/components/PropertyFilters/components/GroupKeyFilterTooltip.tsx
index a4e96631b42f..05faa9b64852 100644
--- a/frontend/src/lib/components/PropertyFilters/components/GroupKeyFilterTooltip.tsx
+++ b/frontend/src/lib/components/PropertyFilters/components/GroupKeyFilterTooltip.tsx
@@ -3,10 +3,11 @@ import { useValues } from 'kea'
import { CopyToClipboardInline } from 'lib/components/CopyToClipboard'
import { TZLabel } from 'lib/components/TZLabel'
import { Spinner } from 'lib/lemon-ui/Spinner'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
import { Group, GroupTypeIndex } from '~/types'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
+
import { groupKeyTooltipLogic } from './groupKeyTooltipLogic'
export interface GroupKeyFilterTooltipProps {
diff --git a/frontend/src/lib/components/PropertyFilters/components/GroupKeySelect.tsx b/frontend/src/lib/components/PropertyFilters/components/GroupKeySelect.tsx
index 18147d0d7d9c..8dd49704cdfa 100644
--- a/frontend/src/lib/components/PropertyFilters/components/GroupKeySelect.tsx
+++ b/frontend/src/lib/components/PropertyFilters/components/GroupKeySelect.tsx
@@ -3,10 +3,11 @@ import { useMemo } from 'react'
import { LemonInputSelect, LemonInputSelectOption } from 'lib/lemon-ui/LemonInputSelect/LemonInputSelect'
import { isOperatorMulti } from 'lib/utils/operators'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
import type { GroupTypeIndex, PropertyFilterValue, PropertyOperator } from '~/types'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
+
import { GroupInfoCard, GroupKeyFilterTooltip } from './GroupKeyFilterTooltip'
import { groupKeySelectLogic } from './groupKeySelectLogic'
diff --git a/frontend/src/lib/components/PropertyFilters/components/distinctIdSelectLogic.ts b/frontend/src/lib/components/PropertyFilters/components/distinctIdSelectLogic.ts
index 3ccf9551909c..4c95049ef233 100644
--- a/frontend/src/lib/components/PropertyFilters/components/distinctIdSelectLogic.ts
+++ b/frontend/src/lib/components/PropertyFilters/components/distinctIdSelectLogic.ts
@@ -2,11 +2,12 @@ import { MakeLogicType, actions, afterMount, connect, kea, key, listeners, path,
import { loaders } from 'kea-loaders'
import api from 'lib/api'
-import { asDisplay } from 'scenes/persons/person-utils'
import { teamLogic } from 'scenes/teamLogic'
import { PersonType } from '~/types'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
export interface DistinctIdSelectLogicProps {
/** Stable per-instance key so two pickers mounted side-by-side don't share state. */
instanceKey: string
diff --git a/frontend/src/lib/components/PropertyFilters/components/groupKeySelectLogic.ts b/frontend/src/lib/components/PropertyFilters/components/groupKeySelectLogic.ts
index f2e09a41e68b..4e9bac558c72 100644
--- a/frontend/src/lib/components/PropertyFilters/components/groupKeySelectLogic.ts
+++ b/frontend/src/lib/components/PropertyFilters/components/groupKeySelectLogic.ts
@@ -4,11 +4,12 @@ import posthog from 'posthog-js'
import api from 'lib/api'
import { ApiError } from 'lib/api-error'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
import { teamLogic } from 'scenes/teamLogic'
import { Group, GroupTypeIndex } from '~/types'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
+
export interface GroupKeySelectLogicProps {
groupTypeIndex: GroupTypeIndex
value: string[]
diff --git a/frontend/src/lib/components/SurveyResponseDisplay/SurveyResponseDisplay.tsx b/frontend/src/lib/components/SurveyResponseDisplay/SurveyResponseDisplay.tsx
index 45b1221586fc..5b5a65eec6f4 100644
--- a/frontend/src/lib/components/SurveyResponseDisplay/SurveyResponseDisplay.tsx
+++ b/frontend/src/lib/components/SurveyResponseDisplay/SurveyResponseDisplay.tsx
@@ -8,7 +8,6 @@ import { TZLabel } from 'lib/components/TZLabel'
import ViewRecordingButton, { ViewRecordingButtonVariant } from 'lib/components/ViewRecordingButton/ViewRecordingButton'
import { IconLink } from 'lib/lemon-ui/icons'
import { countryCodeToFlag } from 'lib/utils/country'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { NewSurvey } from 'scenes/surveys/constants'
import { getThumbIcon } from 'scenes/surveys/hooks/useSurveyResponseColumns'
import { surveyLogic } from 'scenes/surveys/surveyLogic'
@@ -17,6 +16,8 @@ import { urls } from 'scenes/urls'
import { Survey, SurveyEventProperties as SurveyEventPropertyNames, SurveyQuestion } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
interface SurveyResponseDisplayProps {
eventProperties: Record<string, any>
eventName?: string
diff --git a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
index 121417beda97..aceae5c76fb5 100644
--- a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
+++ b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
@@ -86,7 +86,6 @@ import {
} from 'scenes/hog-functions/filters/HogFunctionFiltersInternal'
import { MaxContextTaxonomicFilterOption } from 'scenes/max/maxTypes'
import { NotebookType } from 'scenes/notebooks/types'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
import { projectLogic } from 'scenes/projectLogic'
import { SavedFiltersTaxonomicGroup } from 'scenes/session-recordings/filters/SavedFiltersTaxonomicGroup'
import { teamLogic } from 'scenes/teamLogic'
@@ -121,6 +120,7 @@ import {
import { joinsLogic } from 'products/data_warehouse/frontend/shared/logics/joinsLogic'
import { experimentsLogic } from 'products/experiments/frontend/scenes/experimentsLogic'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
import { HogFlowTaxonomicFilters } from 'products/workflows/frontend/Workflows/hogflows/filters/HogFlowTaxonomicFilters'
import type { Noun } from '../../../models/groupsModel'
diff --git a/frontend/src/lib/components/TaxonomicFilter/utils/buildGroupAnalyticsGroups.ts b/frontend/src/lib/components/TaxonomicFilter/utils/buildGroupAnalyticsGroups.ts
index b4783d7ae54d..f054d1d5592a 100644
--- a/frontend/src/lib/components/TaxonomicFilter/utils/buildGroupAnalyticsGroups.ts
+++ b/frontend/src/lib/components/TaxonomicFilter/utils/buildGroupAnalyticsGroups.ts
@@ -4,10 +4,11 @@ import { TaxonomicFilterGroup, TaxonomicFilterGroupType } from 'lib/components/T
import { capitalizeFirstLetter } from 'lib/utils/strings'
import { toParams } from 'lib/utils/url'
import { getPropertyDefinitionIcon } from 'scenes/data-management/events/DefinitionHeader'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
import { Group, GroupType } from '~/types'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
+
export type AggregationLabel = (groupTypeIndex: number) => { singular: string; plural: string }
/**
diff --git a/frontend/src/models/cohortsModel.ts b/frontend/src/models/cohortsModel.ts
index 671ded2a2eb2..e09a1b481ef5 100644
--- a/frontend/src/models/cohortsModel.ts
+++ b/frontend/src/models/cohortsModel.ts
@@ -25,7 +25,6 @@ import { deleteWithUndo } from 'lib/utils/deleteWithUndo'
import { permanentlyMount } from 'lib/utils/kea-logic-builders'
import { COHORT_EVENT_TYPES_WITH_EXPLICIT_DATETIME } from 'scenes/cohorts/CohortFilters/constants'
import { BehavioralFilterKey } from 'scenes/cohorts/CohortFilters/types'
-import { personsLogic } from 'scenes/persons/personsLogic'
import { isAuthenticatedTeam, teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -40,6 +39,8 @@ import {
FilterLogicalOperator,
} from '~/types'
+import { personsLogic } from 'products/persons/frontend/logics/personsLogic'
+
import type { TeamPublicType, TeamType } from '../types'
const POLL_TIMEOUT = 5000
diff --git a/frontend/src/productScenes.tsx b/frontend/src/productScenes.tsx
index 21033318c606..2aa1158fe366 100644
--- a/frontend/src/productScenes.tsx
+++ b/frontend/src/productScenes.tsx
@@ -128,6 +128,8 @@ export const productScenes: Record<string, () => Promise<any>> = {
McpGatewayAgent: () => import('../../products/mcp_store/frontend/gateway/GatewayAgentScene'),
McpGatewayMember: () => import('../../products/mcp_store/frontend/gateway/GatewayMemberScene'),
Metrics: () => import('../../products/metrics/frontend/MetricsScene'),
+ Person: () => import('../../products/persons/frontend/pages/PersonScene'),
+ Persons: () => import('../../products/persons/frontend/pages/PersonsScene'),
TaskTracker: () => import('../../products/posthog_ai/frontend/scenes/TaskTracker/TaskTracker'),
Pulse: () => import('../../products/pulse/frontend/PulseScene'),
ReplayVision: () => import('../../products/replay_vision/frontend/replay_scanners/ReplayScannersScene'),
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index 67a7d6174fe9..5a89a8804229 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -213,6 +213,9 @@ export const productRoutes: Record<string, [string, string]> = {
'/mcp-servers': ['McpGateway', 'mcpGateway'],
'/mcp-servers/:tab': ['McpGateway', 'mcpGatewayTab'],
'/metrics': ['Metrics', 'metrics'],
+ '/person/*': ['Person', 'personByDistinctId'],
+ '/persons/*': ['Person', 'personByUUID'],
+ '/persons': ['Persons', 'persons'],
'/tasks': ['TaskTracker', 'taskTracker'],
'/tasks/:taskId': ['TaskTracker', 'taskDetail'],
'/pulse': ['Pulse', 'pulse'],
@@ -874,6 +877,14 @@ export const productConfiguration: Record<string, any> = {
iconType: 'metrics',
docsHref: 'https://posthog.com/docs/metrics',
},
+ Person: { projectBased: true, name: 'People', activityScope: ActivityScope.PERSON, iconType: 'user' },
+ Persons: {
+ projectBased: true,
+ name: 'Persons',
+ description: 'A catalog of all the people behind your events',
+ activityScope: ActivityScope.PERSON,
+ iconType: 'persons',
+ },
TaskTracker: {
name: 'Tasks',
projectBased: true,
diff --git a/frontend/src/queries/nodes/DataTable/DataTable.tsx b/frontend/src/queries/nodes/DataTable/DataTable.tsx
index aa9ceb17f5ca..980ed7526142 100644
--- a/frontend/src/queries/nodes/DataTable/DataTable.tsx
+++ b/frontend/src/queries/nodes/DataTable/DataTable.tsx
@@ -16,7 +16,6 @@ import { useAttachedLogic } from 'lib/logic/scenes/useAttachedLogic'
import { EventDetails } from 'scenes/activity/explore/EventDetails'
import { ViewLinkButton } from 'scenes/data-warehouse/ViewLinkModal'
import { InsightEmptyState, InsightErrorState } from 'scenes/insights/EmptyStates'
-import { PersonDeleteModal } from 'scenes/persons/PersonDeleteModal'
import { createMarketingAnalyticsOrderBy } from 'scenes/web-analytics/tabs/marketing-analytics/frontend/logic/utils'
import { DataNodeLogicProps, dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'
@@ -93,6 +92,8 @@ import { CampaignMappingCellActions } from '~/scenes/web-analytics/tabs/marketin
import { getMappableColumn } from '~/scenes/web-analytics/tabs/marketing-analytics/frontend/components/CampaignMapping/mappingUtils'
import { EventType, InsightLogicProps } from '~/types'
+import { PersonDeleteModal } from 'products/persons/frontend/components/PersonDeleteModal'
+
import { GroupPropertyFilters } from '../GroupsQuery/GroupPropertyFilters'
import { GroupsSearch } from '../GroupsQuery/GroupsSearch'
import { DataTableOpenEditor } from './DataTableOpenEditor'
diff --git a/frontend/src/queries/nodes/DataTable/TableView/tableViewLogic.ts b/frontend/src/queries/nodes/DataTable/TableView/tableViewLogic.ts
index 9e9214d113b4..0ad6822e9a02 100644
--- a/frontend/src/queries/nodes/DataTable/TableView/tableViewLogic.ts
+++ b/frontend/src/queries/nodes/DataTable/TableView/tableViewLogic.ts
@@ -8,8 +8,6 @@ import posthog from 'posthog-js'
import api from 'lib/api'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
import { getCurrentTeamId } from 'lib/utils/getAppContext'
-import { PERSON_EVENTS_CONTEXT_KEY } from 'scenes/persons/personsLogic'
-import { PEOPLE_LIST_CONTEXT_KEY, PEOPLE_LIST_DEFAULT_QUERY } from 'scenes/persons/personsSceneLogic'
import { userLogic } from 'scenes/userLogic'
import { defaultDataTableColumns } from '~/queries/nodes/DataTable/utils'
@@ -18,6 +16,8 @@ import { isEventsQuery } from '~/queries/utils'
import { AnyPropertyFilter, PropertyOperator } from '~/types'
import { GROUPS_LIST_DEFAULT_QUERY } from 'products/groups/frontend/logics/groupsListLogic'
+import { PERSON_EVENTS_CONTEXT_KEY } from 'products/persons/frontend/logics/personsLogic'
+import { PEOPLE_LIST_CONTEXT_KEY, PEOPLE_LIST_DEFAULT_QUERY } from 'products/persons/frontend/logics/personsSceneLogic'
import { ColumnConfigurationApi } from 'products/product_analytics/frontend/generated/api.schemas'
import type { UserType } from '../../../../types'
diff --git a/frontend/src/queries/nodes/DataTable/clipboardUtils.ts b/frontend/src/queries/nodes/DataTable/clipboardUtils.ts
index a6191a015353..fe79f0a407f0 100644
--- a/frontend/src/queries/nodes/DataTable/clipboardUtils.ts
+++ b/frontend/src/queries/nodes/DataTable/clipboardUtils.ts
@@ -3,12 +3,13 @@ import Papa from 'papaparse'
import { lemonToast } from '@posthog/lemon-ui'
import { copyToClipboard } from 'lib/utils/copyToClipboard'
-import { asDisplay } from 'scenes/persons/person-utils'
import { extractExpressionComment } from '~/queries/nodes/DataTable/utils'
import { DataTableNode } from '~/queries/schema/schema-general'
import { isEventsQuery, isHogQLQuery, isMarketingAnalyticsTableQuery, isPersonsNode } from '~/queries/utils'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { DataTableRow } from './dataTableLogic'
export function projectExportRows(rows: DataTableRow[], columns: string[], exportColumns: string[]): DataTableRow[] {
diff --git a/frontend/src/queries/nodes/DataTable/renderColumn.tsx b/frontend/src/queries/nodes/DataTable/renderColumn.tsx
index 164c4988dd7f..35178fd385ee 100644
--- a/frontend/src/queries/nodes/DataTable/renderColumn.tsx
+++ b/frontend/src/queries/nodes/DataTable/renderColumn.tsx
@@ -17,9 +17,6 @@ import { COUNTRY_CODE_TO_LONG_NAME, countryCodeToFlag } from 'lib/utils/country'
import { formatCurrency } from 'lib/utils/currency'
import { autoCaptureEventToDescription } from 'lib/utils/events'
import { isURL } from 'lib/utils/url'
-import { GroupActorDisplay } from 'scenes/persons/GroupActorDisplay'
-import { pickBestPersonDistinctId } from 'scenes/persons/person-utils'
-import { PersonDisplay, PersonDisplayProps } from 'scenes/persons/PersonDisplay'
import { sessionColumnRenderers } from 'scenes/sessions/sessionColumnRenderers'
import { urls } from 'scenes/urls'
@@ -46,6 +43,9 @@ import {
import { AnyPropertyFilter, EventType, PersonType, PropertyFilterType, PropertyOperator } from '~/types'
import { aiObservabilityColumnRenderers } from 'products/ai_observability/frontend/aiObservabilityColumnRenderers'
+import { GroupActorDisplay } from 'products/persons/frontend/components/GroupActorDisplay'
+import { PersonDisplay, PersonDisplayProps } from 'products/persons/frontend/components/PersonDisplay'
+import { pickBestPersonDistinctId } from 'products/persons/frontend/person-utils'
import { extractExpressionComment, removeExpressionComment } from './utils'
diff --git a/frontend/src/queries/nodes/PersonsNode/DeletePersonButton.tsx b/frontend/src/queries/nodes/PersonsNode/DeletePersonButton.tsx
index 8e41b3a42bd9..432344330193 100644
--- a/frontend/src/queries/nodes/PersonsNode/DeletePersonButton.tsx
+++ b/frontend/src/queries/nodes/PersonsNode/DeletePersonButton.tsx
@@ -3,11 +3,12 @@ import { useActions } from 'kea'
import { IconTrash } from '@posthog/icons'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
-import { personDeleteModalLogic } from 'scenes/persons/personDeleteModalLogic'
import { dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'
import { PersonType } from '~/types'
+import { personDeleteModalLogic } from 'products/persons/frontend/logics/personDeleteModalLogic'
+
interface DeletePersonButtonProps {
person: PersonType
}
diff --git a/frontend/src/scenes/activity/live/LiveEventsFeed.tsx b/frontend/src/scenes/activity/live/LiveEventsFeed.tsx
index 97a6edbd2dbb..78e6883934c4 100644
--- a/frontend/src/scenes/activity/live/LiveEventsFeed.tsx
+++ b/frontend/src/scenes/activity/live/LiveEventsFeed.tsx
@@ -12,11 +12,12 @@ import { TZLabel } from 'lib/components/TZLabel'
import ViewRecordingButton, { RecordingPlayerType } from 'lib/components/ViewRecordingButton/ViewRecordingButton'
import { More } from 'lib/lemon-ui/LemonButton/More'
import { LemonTable, LemonTableColumn } from 'lib/lemon-ui/LemonTable'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { EventCopyLinkButton } from '~/queries/nodes/DataTable/EventRowActions'
import { LiveEvent } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
export type LiveEventsFeedColumn = 'event' | 'person' | 'url' | 'recording' | 'timestamp' | 'more'
const ALL_COLUMNS: LiveEventsFeedColumn[] = ['event', 'person', 'url', 'recording', 'timestamp', 'more']
diff --git a/frontend/src/scenes/appScenes.ts b/frontend/src/scenes/appScenes.ts
index 56f959165042..7f454aeebcec 100644
--- a/frontend/src/scenes/appScenes.ts
+++ b/frontend/src/scenes/appScenes.ts
@@ -72,8 +72,6 @@ export const appScenes: Record<Scene | string, () => any> = {
[Scene.CredentialReview]: () => import('./authentication/account/credential-review/CredentialReview'),
[Scene.PasswordReset]: () => import('./authentication/password-reset/PasswordReset'),
[Scene.TwoFactorReset]: () => import('./authentication/two-factor-reset/TwoFactorReset'),
- [Scene.Person]: () => import('./persons/PersonScene'),
- [Scene.Persons]: () => import('./persons/PersonsScene'),
[Scene.PreflightCheck]: () => import('./PreflightCheck/PreflightCheck'),
[Scene.ProjectCreateFirst]: () => import('./project/Create'),
[Scene.ProjectHomepage]: () => import('./project-homepage/ProjectHomepage'),
diff --git a/frontend/src/scenes/cohorts/PersonSelectList.tsx b/frontend/src/scenes/cohorts/PersonSelectList.tsx
index b25c9fa2ba9c..70613d759a4e 100644
--- a/frontend/src/scenes/cohorts/PersonSelectList.tsx
+++ b/frontend/src/scenes/cohorts/PersonSelectList.tsx
@@ -11,12 +11,13 @@ import { LemonButton, LemonCheckbox, LemonTag } from '@posthog/lemon-ui'
import { AutoSizer } from 'lib/components/AutoSizer'
import { LemonInput } from 'lib/lemon-ui/LemonInput/LemonInput'
import { Spinner } from 'lib/lemon-ui/Spinner'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
import { dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'
import { ActorsQuery } from '~/queries/schema/schema-general'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
const ROW_HEIGHT = 44
interface PersonRowData {
diff --git a/frontend/src/scenes/cohorts/cohortEditLogic.ts b/frontend/src/scenes/cohorts/cohortEditLogic.ts
index e29d4cc65867..7d0aa5aa5dbf 100644
--- a/frontend/src/scenes/cohorts/cohortEditLogic.ts
+++ b/frontend/src/scenes/cohorts/cohortEditLogic.ts
@@ -42,7 +42,6 @@ import {
isCohortCriteriaGroup,
validateGroup,
} from 'scenes/cohorts/cohortUtils'
-import { personsLogic } from 'scenes/persons/personsLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -67,6 +66,7 @@ import {
import { cohortsUsedInRetrieve } from 'products/cohorts/frontend/generated/api'
import type { CohortUsedInResponseApi } from 'products/cohorts/frontend/generated/api.schemas'
+import { personsLogic } from 'products/persons/frontend/logics/personsLogic'
import type { UserBasicType } from '../../types'
diff --git a/frontend/src/scenes/cohorts/cohortsSceneLogic.ts b/frontend/src/scenes/cohorts/cohortsSceneLogic.ts
index 07add017252d..158ae198fa70 100644
--- a/frontend/src/scenes/cohorts/cohortsSceneLogic.ts
+++ b/frontend/src/scenes/cohorts/cohortsSceneLogic.ts
@@ -10,7 +10,6 @@ import { exportsLogic } from 'lib/components/ExportButton/exportsLogic'
import { trackedActionToUrl } from 'lib/logic/scenes/trackedActionToUrl'
import { deleteWithUndo } from 'lib/utils/deleteWithUndo'
import { objectsEqual } from 'lib/utils/objects'
-import { personsLogic } from 'scenes/persons/personsLogic'
import { urls } from 'scenes/urls'
import { SIDE_PANEL_CONTEXT_KEY, SidePanelSceneContext } from '~/layout/navigation-3000/sidepanel/types'
@@ -18,6 +17,8 @@ import { deleteFromTree, refreshTreeItem } from '~/layout/panel-layout/ProjectTr
import { processCohort } from '~/models/cohortsModel'
import { ActivityScope, Breadcrumb, CohortType, ExporterFormat } from '~/types'
+import { personsLogic } from 'products/persons/frontend/logics/personsLogic'
+
import type { TriggerExportProps } from '../../lib/components/ExportButton/exporter'
export interface CohortFilters {
diff --git a/frontend/src/scenes/experiments/ExperimentView/ExperimentBehaviorComparison.tsx b/frontend/src/scenes/experiments/ExperimentView/ExperimentBehaviorComparison.tsx
index f9a1c32dbd30..3ec3bdf0fa3f 100644
--- a/frontend/src/scenes/experiments/ExperimentView/ExperimentBehaviorComparison.tsx
+++ b/frontend/src/scenes/experiments/ExperimentView/ExperimentBehaviorComparison.tsx
@@ -13,7 +13,6 @@ import { cn } from 'lib/utils/css-classes'
import { humanFriendlyDuration } from 'lib/utils/durations'
import { humanFriendlyNumber } from 'lib/utils/numbers'
import { pluralize } from 'lib/utils/strings'
-import { asDisplay } from 'scenes/persons/person-utils'
import { urls } from 'scenes/urls'
import { Experiment } from '~/types'
@@ -26,6 +25,7 @@ import {
type ExperimentSessionEventDeltaResponseApi,
type ExperimentWatchCardApi,
} from 'products/experiments/frontend/generated/api.schemas'
+import { asDisplay } from 'products/persons/frontend/person-utils'
import {
type ExperimentReplayRecording,
diff --git a/frontend/src/scenes/hog-functions/configuration/hogFunctionConfigurationLogic.tsx b/frontend/src/scenes/hog-functions/configuration/hogFunctionConfigurationLogic.tsx
index ebb081492255..c05a2132b736 100644
--- a/frontend/src/scenes/hog-functions/configuration/hogFunctionConfigurationLogic.tsx
+++ b/frontend/src/scenes/hog-functions/configuration/hogFunctionConfigurationLogic.tsx
@@ -33,7 +33,6 @@ import { dayjs } from 'lib/dayjs'
import { deleteWithUndo } from 'lib/utils/deleteWithUndo'
import { uuid } from 'lib/utils/dom'
import { addProductIntent } from 'lib/utils/product-intents'
-import { asDisplay } from 'scenes/persons/person-utils'
import { projectLogic } from 'scenes/projectLogic'
import { buildSurveyExampleInvocationGlobals } from 'scenes/surveys/utils'
import { teamLogic } from 'scenes/teamLogic'
@@ -81,6 +80,8 @@ import {
SurveyEventProperties,
} from '~/types'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import type { GroupType, GroupTypeIndex, HogFunctionMappingTemplateType, ProjectType } from '../../../types'
import type { TeamPublicType, TeamType } from '../../../types'
import { matchingFiltersToPropertyGroup } from '../filters/matchingFilters'
diff --git a/frontend/src/scenes/hog-functions/invocations/HogInvocations.tsx b/frontend/src/scenes/hog-functions/invocations/HogInvocations.tsx
index 50afab0e2b46..3a6ec63c04cc 100644
--- a/frontend/src/scenes/hog-functions/invocations/HogInvocations.tsx
+++ b/frontend/src/scenes/hog-functions/invocations/HogInvocations.tsx
@@ -29,13 +29,14 @@ import { TZLabel } from 'lib/components/TZLabel'
import { dayjs } from 'lib/dayjs'
import { Link } from 'lib/lemon-ui/Link'
import { DATE_TIME_FORMAT, formatDateRange } from 'lib/utils/datetime'
-import { asDisplay } from 'scenes/persons/person-utils'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
import { escapeHogQLString, hogql } from '~/queries/utils'
import { DateMappingOption, HogFunctionTypeType, PersonType } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { LogsViewer } from '../logs/LogsViewer'
import { LogsViewerLogicProps } from '../logs/logsViewerLogic'
import { renderHogFunctionMessage } from '../logs/renderHogFunctionMessage'
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodeGroup.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodeGroup.tsx
index 6ea69f7278a1..381ab874f6cd 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodeGroup.tsx
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodeGroup.tsx
@@ -14,7 +14,6 @@ import { formatCurrency } from 'lib/utils/currency'
import stringWithWBR from 'lib/utils/stringWithWBR'
import { createPostHogWidgetNode } from 'scenes/notebooks/Nodes/NodeWrapper'
import { defineNotebookWidgetViews, getNotebookWidgetDefaultView } from 'scenes/notebooks/notebookWidgetCatalog'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -24,6 +23,7 @@ import { CurrencyCode, NodeKind } from '~/queries/schema/schema-general'
import { Group, PropertyFilterType, PropertyOperator } from '~/types'
import { groupLogic } from 'products/groups/frontend/logics/groupLogic'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
import { NotebookNodeProps, NotebookNodeType } from '../types'
import { DataSourceIcon } from './components/DataSourceIcon'
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodeMap.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodeMap.tsx
index b8e2524e82a0..78dae5526ff6 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodeMap.tsx
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodeMap.tsx
@@ -5,7 +5,8 @@ import { LemonSkeleton } from '@posthog/lemon-ui'
import { NotFound } from 'lib/components/NotFound'
import { createPostHogWidgetNode } from 'scenes/notebooks/Nodes/NodeWrapper'
-import { personLogic } from 'scenes/persons/personLogic'
+
+import { personLogic } from 'products/persons/frontend/logics/personLogic'
import { Map } from '../../../lib/components/Map/Map'
import { NotebookNodeProps, NotebookNodeType } from '../types'
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodePerson.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodePerson.tsx
index 6d80ae9ea25b..ba35016e0afa 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodePerson.tsx
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodePerson.tsx
@@ -14,9 +14,6 @@ import { formatCurrency } from 'lib/utils/currency'
import { compactNumber } from 'lib/utils/numbers'
import { createPostHogWidgetNode } from 'scenes/notebooks/Nodes/NodeWrapper'
import { defineNotebookWidgetViews, getNotebookWidgetDefaultView } from 'scenes/notebooks/notebookWidgetCatalog'
-import { asDisplay } from 'scenes/persons/person-utils'
-import { PersonIcon } from 'scenes/persons/PersonDisplay'
-import { personLogic } from 'scenes/persons/personLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -25,6 +22,10 @@ import { Query } from '~/queries/Query/Query'
import { NodeKind } from '~/queries/schema/schema-general'
import { PersonType } from '~/types'
+import { PersonIcon } from 'products/persons/frontend/components/PersonDisplay'
+import { personLogic } from 'products/persons/frontend/logics/personLogic'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { NotebookNodeProps, NotebookNodeType } from '../types'
import { DataSourceIcon } from './components/DataSourceIcon'
import { notebookNodeLogic } from './notebookNodeLogic'
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonFeed/NotebookNodePersonFeed.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonFeed/NotebookNodePersonFeed.tsx
index 3eab6a6874e1..3490e0fb21d2 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonFeed/NotebookNodePersonFeed.tsx
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonFeed/NotebookNodePersonFeed.tsx
@@ -6,10 +6,11 @@ import { NotFound } from 'lib/components/NotFound'
import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'
import { useAttachedLogic } from 'lib/logic/scenes/useAttachedLogic'
import { NotebookNodeProps, NotebookNodeType } from 'scenes/notebooks/types'
-import { personLogic } from 'scenes/persons/personLogic'
import { PersonType } from '~/types'
+import { personLogic } from 'products/persons/frontend/logics/personLogic'
+
import { getCustomerProfileRemoveMenuItem } from '../customerProfileNotebookNodeMenu'
import { createPostHogWidgetNode } from '../NodeWrapper'
import { notebookNodeLogic } from '../notebookNodeLogic'
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonProperties.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonProperties.tsx
index caec3836adc8..c4691e40ad58 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonProperties.tsx
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodePersonProperties.tsx
@@ -5,10 +5,11 @@ import { LemonSkeleton } from '@posthog/lemon-ui'
import { NotFound } from 'lib/components/NotFound'
import { userPreferencesLogic } from 'lib/logic/userPreferencesLogic'
import { createPostHogWidgetNode } from 'scenes/notebooks/Nodes/NodeWrapper'
-import { personLogic } from 'scenes/persons/personLogic'
import { PropertyDefinitionType } from '~/types'
+import { personLogic } from 'products/persons/frontend/logics/personLogic'
+
import { NotebookNodeProps, NotebookNodeType } from '../types'
import { Properties } from './components/Properties'
import { notebookNodeLogic } from './notebookNodeLogic'
diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodeRecording.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodeRecording.tsx
index f7f6ee8fc292..b4bde5409845 100644
--- a/frontend/src/scenes/notebooks/Nodes/NotebookNodeRecording.tsx
+++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodeRecording.tsx
@@ -9,7 +9,6 @@ import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'
import { colonDelimitedDuration } from 'lib/utils/durations'
import { createPostHogWidgetNode } from 'scenes/notebooks/Nodes/NodeWrapper'
import { defineNotebookWidgetViews, getNotebookWidgetDefaultView } from 'scenes/notebooks/notebookWidgetCatalog'
-import { asDisplay } from 'scenes/persons/person-utils'
import { sessionRecordingDataCoordinatorLogic } from 'scenes/session-recordings/player/sessionRecordingDataCoordinatorLogic'
import {
SessionRecordingPlayer,
@@ -27,6 +26,8 @@ import { urls } from 'scenes/urls'
import { SessionRecordingId } from '~/types'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { NotebookNodeAttributeProperties, NotebookNodeProps, NotebookNodeType } from '../types'
import { notebookNodeLogic } from './notebookNodeLogic'
diff --git a/frontend/src/scenes/scenes.ts b/frontend/src/scenes/scenes.ts
index 9495deb5e2ea..5bfe4e770473 100644
--- a/frontend/src/scenes/scenes.ts
+++ b/frontend/src/scenes/scenes.ts
@@ -310,19 +310,6 @@ export const sceneConfigurations: Record<Scene | string, SceneConfig> = {
[Scene.VercelConnect]: { allowUnauthenticated: true, layout: 'plain', name: 'Connect to Vercel' },
[Scene.VercelLinkError]: { layout: 'plain', name: 'Vercel account mismatch' },
[Scene.AgenticAccountMismatch]: { layout: 'plain', name: 'Account mismatch', allowUnauthenticated: true },
- [Scene.Person]: {
- projectBased: true,
- name: 'People',
- activityScope: ActivityScope.PERSON,
- iconType: 'user',
- },
- [Scene.Persons]: {
- projectBased: true,
- name: 'Persons',
- description: 'A catalog of all the people behind your events',
- activityScope: ActivityScope.PERSON,
- iconType: 'persons',
- },
[Scene.AccountConnected]: {
name: 'Account connected',
layout: 'plain',
@@ -799,9 +786,6 @@ export const routes: Record<string, [Scene | string, string]> = {
[urls.replayPlaylist(':id')]: [Scene.ReplayPlaylist, 'replayPlaylist'],
[urls.replaySettings()]: [Scene.ReplaySettings, 'replaySettings'],
[urls.sessionProfile(':id')]: [Scene.SessionProfile, 'sessionProfile'],
- [urls.personByDistinctId('*', false)]: [Scene.Person, 'personByDistinctId'],
- [urls.personByUUID('*', false)]: [Scene.Person, 'personByUUID'],
- [urls.persons()]: [Scene.Persons, 'persons'],
[urls.customCss()]: [Scene.CustomCss, 'customCss'],
[urls.cohort(':id')]: [Scene.Cohort, 'cohort'],
[urls.cohortCalculationHistory(':id')]: [Scene.CohortCalculationHistory, 'cohortCalculationHistory'],
diff --git a/frontend/src/scenes/session-recordings/components/RecordingRow.tsx b/frontend/src/scenes/session-recordings/components/RecordingRow.tsx
index fa9b3456019c..e52899885f5c 100644
--- a/frontend/src/scenes/session-recordings/components/RecordingRow.tsx
+++ b/frontend/src/scenes/session-recordings/components/RecordingRow.tsx
@@ -5,12 +5,13 @@ import { IconPlayCircle } from 'lib/lemon-ui/icons'
import { LemonSnack } from 'lib/lemon-ui/LemonSnack'
import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'
import { humanFriendlyDuration } from 'lib/utils/durations'
-import { asDisplay } from 'scenes/persons/person-utils'
import { sessionPlayerModalLogic } from 'scenes/session-recordings/player/modal/sessionPlayerModalLogic'
import { sessionRecordingEventUsageLogic } from 'scenes/session-recordings/sessionRecordingEventUsageLogic'
import { SessionRecordingType } from '~/types'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { ProjectHomePageCompactListItem } from '../../project-homepage/ProjectHomePageCompactListItem'
export interface RecordingRowProps {
diff --git a/frontend/src/scenes/session-recordings/player/player-meta/PlayerPersonMeta.tsx b/frontend/src/scenes/session-recordings/player/player-meta/PlayerPersonMeta.tsx
index e6e99e9d6482..e994f53f34b4 100644
--- a/frontend/src/scenes/session-recordings/player/player-meta/PlayerPersonMeta.tsx
+++ b/frontend/src/scenes/session-recordings/player/player-meta/PlayerPersonMeta.tsx
@@ -3,11 +3,12 @@ import './PlayerMeta.scss'
import { useActions, useValues } from 'kea'
import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'
-import { PersonIcon } from 'scenes/persons/PersonDisplay'
import { playerMetaLogic } from 'scenes/session-recordings/player/player-meta/playerMetaLogic'
import { SessionRecordingSidebarTab } from '~/types'
+import { PersonIcon } from 'products/persons/frontend/components/PersonDisplay'
+
import { playerSettingsLogic } from '../playerSettingsLogic'
import { sessionRecordingPlayerLogic } from '../sessionRecordingPlayerLogic'
import { playerSidebarLogic } from '../sidebar/playerSidebarLogic'
diff --git a/frontend/src/scenes/session-recordings/player/sidebar/PlayerSidebarOverviewTab.tsx b/frontend/src/scenes/session-recordings/player/sidebar/PlayerSidebarOverviewTab.tsx
index 0dc0c2dd3c0e..2f84a16293cd 100644
--- a/frontend/src/scenes/session-recordings/player/sidebar/PlayerSidebarOverviewTab.tsx
+++ b/frontend/src/scenes/session-recordings/player/sidebar/PlayerSidebarOverviewTab.tsx
@@ -2,7 +2,8 @@ import { useValues } from 'kea'
import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'
import { Tooltip } from 'lib/lemon-ui/Tooltip'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
+
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import { playerMetaLogic } from '../player-meta/playerMetaLogic'
import { sessionRecordingPlayerLogic } from '../sessionRecordingPlayerLogic'
diff --git a/frontend/src/scenes/session-recordings/playlist/SessionRecordingPreview.tsx b/frontend/src/scenes/session-recordings/playlist/SessionRecordingPreview.tsx
index 23769c984ac7..9df0af17f7fc 100644
--- a/frontend/src/scenes/session-recordings/playlist/SessionRecordingPreview.tsx
+++ b/frontend/src/scenes/session-recordings/playlist/SessionRecordingPreview.tsx
@@ -16,7 +16,6 @@ import { Tooltip } from 'lib/lemon-ui/Tooltip'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { colonDelimitedDuration } from 'lib/utils/durations'
import { DraggableToNotebook } from 'scenes/notebooks/AddToNotebook/DraggableToNotebook'
-import { asDisplay } from 'scenes/persons/person-utils'
import { SimpleTimeLabel } from 'scenes/session-recordings/components/SimpleTimeLabel'
import { countryTitleFrom } from 'scenes/session-recordings/player/player-meta/playerMetaLogic'
import { TimestampFormat, playerSettingsLogic } from 'scenes/session-recordings/player/playerSettingsLogic'
@@ -25,6 +24,8 @@ import { urls } from 'scenes/urls'
import { RecordingsQuery } from '~/queries/schema/schema-general'
import { SessionRecordingType } from '~/types'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { sessionRecordingsListPropertiesLogic } from './sessionRecordingsListPropertiesLogic'
import {
DEFAULT_RECORDING_FILTERS_ORDER_BY,
diff --git a/frontend/src/scenes/sessions/SessionProfileScene.tsx b/frontend/src/scenes/sessions/SessionProfileScene.tsx
index 6a77c3c84971..f88b6d439cd1 100644
--- a/frontend/src/scenes/sessions/SessionProfileScene.tsx
+++ b/frontend/src/scenes/sessions/SessionProfileScene.tsx
@@ -7,7 +7,6 @@ import { CopyToClipboardInline } from 'lib/components/CopyToClipboard'
import { NotFound } from 'lib/components/NotFound'
import { TZLabel } from 'lib/components/TZLabel'
import { SpinnerOverlay } from 'lib/lemon-ui/Spinner/Spinner'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { sceneConfigurations } from 'scenes/scenes'
import { Scene, SceneExport } from 'scenes/sceneTypes'
import { urls } from 'scenes/urls'
@@ -16,6 +15,8 @@ import { SceneContent } from '~/layout/scenes/components/SceneContent'
import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
import { ActivityTab } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import { SessionDetailsCard } from './components/SessionDetailsCard'
import { SessionEventsList } from './components/SessionEventsList'
import { SessionMetricsCard } from './components/SessionMetricsCard'
diff --git a/frontend/src/scenes/surveys/SurveyResultDemo.tsx b/frontend/src/scenes/surveys/SurveyResultDemo.tsx
index 200fb1ce6b0b..6c7236b7de2c 100644
--- a/frontend/src/scenes/surveys/SurveyResultDemo.tsx
+++ b/frontend/src/scenes/surveys/SurveyResultDemo.tsx
@@ -5,13 +5,14 @@ import { IconGraph, IconInfo } from '@posthog/icons'
import { LemonBanner, LemonButton, LemonTable } from '@posthog/lemon-ui'
import { TZLabel } from 'lib/components/TZLabel'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { SurveyQuestionVisualization } from 'scenes/surveys/components/question-visualizations/SurveyQuestionVisualization'
import { surveyLogic } from 'scenes/surveys/surveyLogic'
import { SurveyStatsSummaryWithData } from 'scenes/surveys/SurveyStatsSummary'
import { SurveyQuestionType } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
function SurveyResponsesByQuestionV2Demo(): JSX.Element {
const { survey, surveyDemoData } = useValues(surveyLogic)
diff --git a/frontend/src/scenes/surveys/components/question-visualizations/VirtualizedResponseList.tsx b/frontend/src/scenes/surveys/components/question-visualizations/VirtualizedResponseList.tsx
index d5da08d06cc8..50b881870254 100644
--- a/frontend/src/scenes/surveys/components/question-visualizations/VirtualizedResponseList.tsx
+++ b/frontend/src/scenes/surveys/components/question-visualizations/VirtualizedResponseList.tsx
@@ -6,10 +6,11 @@ import { TZLabel } from 'lib/components/TZLabel'
import ViewRecordingButton, { ViewRecordingButtonVariant } from 'lib/components/ViewRecordingButton/ViewRecordingButton'
import { useWindowSize } from 'lib/hooks/useWindowSize'
import { Popover } from 'lib/lemon-ui/Popover'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { OpenQuestionResponseData } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
interface VirtualizedResponseListProps {
responses: OpenQuestionResponseData[]
maxHeight?: number
diff --git a/frontend/src/scenes/surveys/hooks/useSurveyResponseColumns.tsx b/frontend/src/scenes/surveys/hooks/useSurveyResponseColumns.tsx
index 87feb6436d6c..f8dce9cf175b 100644
--- a/frontend/src/scenes/surveys/hooks/useSurveyResponseColumns.tsx
+++ b/frontend/src/scenes/surveys/hooks/useSurveyResponseColumns.tsx
@@ -4,7 +4,6 @@ import { useMemo } from 'react'
import { IconLlmAnalytics, IconThumbsDown, IconThumbsUp } from '@posthog/icons'
import { LemonButton, LemonTag, Tooltip } from '@posthog/lemon-ui'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { surveyLogic } from 'scenes/surveys/surveyLogic'
import { getSurveyResponseStatus, isScaleTwoRating } from 'scenes/surveys/utils'
import { urls } from 'scenes/urls'
@@ -13,6 +12,8 @@ import { EventRowActions } from '~/queries/nodes/DataTable/EventRowActions'
import { QueryContextColumn } from '~/queries/types'
import { EventType } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
const getTraceIdFromRecord = (record: unknown): string | null => {
if (!Array.isArray(record)) {
return null
diff --git a/frontend/src/scenes/trends/persons-modal/PersonsModal.tsx b/frontend/src/scenes/trends/persons-modal/PersonsModal.tsx
index 9fd83ece5f30..456837bd9294 100644
--- a/frontend/src/scenes/trends/persons-modal/PersonsModal.tsx
+++ b/frontend/src/scenes/trends/persons-modal/PersonsModal.tsx
@@ -34,9 +34,6 @@ import { isGroupType, isSessionType } from 'lib/utils/guards'
import { capitalizeFirstLetter, midEllipsis, pluralize } from 'lib/utils/strings'
import { InsightErrorState, InsightValidationError } from 'scenes/insights/EmptyStates'
import { isOtherBreakdown } from 'scenes/insights/utils'
-import { GroupActorDisplay, groupDisplayId } from 'scenes/persons/GroupActorDisplay'
-import { asDisplay, pickBestPersonDistinctId } from 'scenes/persons/person-utils'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { teamLogic } from 'scenes/teamLogic'
import { isSharedView } from '~/exporter/exporterViewLogic'
@@ -53,6 +50,10 @@ import {
PropertyDefinitionType,
} from '~/types'
+import { GroupActorDisplay, groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+import { asDisplay, pickBestPersonDistinctId } from 'products/persons/frontend/person-utils'
+
import {
cleanedInsightActorsQueryOptions,
funnelBreakdownSelectValue,
diff --git a/frontend/src/scenes/trends/persons-modal/SessionActorDisplay.tsx b/frontend/src/scenes/trends/persons-modal/SessionActorDisplay.tsx
index bef7336ecc7d..371f12902f68 100644
--- a/frontend/src/scenes/trends/persons-modal/SessionActorDisplay.tsx
+++ b/frontend/src/scenes/trends/persons-modal/SessionActorDisplay.tsx
@@ -1,10 +1,11 @@
import { CopyToClipboardInline } from 'lib/components/CopyToClipboard'
import { humanFriendlyDuration } from 'lib/utils/durations'
-import { asDisplay } from 'scenes/persons/person-utils'
import { gatherIconProperties, PropertyIcons } from 'scenes/session-recordings/playlist/SessionRecordingPreview'
import { SessionActorType } from '~/types'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
export function SessionActorDisplay({ actor }: { actor: SessionActorType }): JSX.Element {
const iconProps = gatherIconProperties(actor.person?.properties)
diff --git a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LivePersonDrillDownRow.tsx b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LivePersonDrillDownRow.tsx
index 2f52a94c2a07..1f11140b7161 100644
--- a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LivePersonDrillDownRow.tsx
+++ b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/LivePersonDrillDownRow.tsx
@@ -3,12 +3,13 @@ import { LemonButton, Link } from '@posthog/lemon-ui'
import { TZLabel } from 'lib/components/TZLabel'
import { pluralize } from 'lib/utils/strings'
-import { pickBestPersonDistinctId } from 'scenes/persons/person-utils'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
import { PersonsTabType, PersonType } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+import { pickBestPersonDistinctId } from 'products/persons/frontend/person-utils'
+
interface LivePersonDrillDownRowProps {
person: PersonType
recordingCount?: number
diff --git a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/livePersonDrillDownLogic.ts b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/livePersonDrillDownLogic.ts
index fa4656368576..63415e6f2623 100644
--- a/frontend/src/scenes/web-analytics/LiveMetricsDashboard/livePersonDrillDownLogic.ts
+++ b/frontend/src/scenes/web-analytics/LiveMetricsDashboard/livePersonDrillDownLogic.ts
@@ -2,7 +2,6 @@ import { deepEqual as equal } from 'fast-equals'
import { MakeLogicType, actions, connect, events, kea, key, listeners, path, props, reducers, selectors } from 'kea'
import { loaders } from 'kea-loaders'
-import { parsePersonFromHogQLRow } from 'scenes/persons/person-utils'
import { teamLogic } from 'scenes/teamLogic'
import { WEB_ANALYTICS_DEFAULT_QUERY_TAGS } from 'scenes/web-analytics/common'
@@ -11,6 +10,8 @@ import { HogQLQueryResponse, NodeKind } from '~/queries/schema/schema-general'
import { hogql } from '~/queries/utils'
import { PersonType } from '~/types'
+import { parsePersonFromHogQLRow } from 'products/persons/frontend/person-utils'
+
import type { TeamPublicType, TeamType } from '../../../types'
import { LiveMetricsSlidingWindow } from './LiveMetricsSlidingWindow'
import { LivePersonDrillDownBreakdownType, livePersonDrillDownDrawerLogic } from './livePersonDrillDownDrawerLogic'
diff --git a/frontend/src/scenes/web-analytics/tiles/WebAnalyticsRecordings.tsx b/frontend/src/scenes/web-analytics/tiles/WebAnalyticsRecordings.tsx
index 2ac4afcfb84b..0f3aa4d8b7ba 100644
--- a/frontend/src/scenes/web-analytics/tiles/WebAnalyticsRecordings.tsx
+++ b/frontend/src/scenes/web-analytics/tiles/WebAnalyticsRecordings.tsx
@@ -11,7 +11,6 @@ import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { useAttachedLogic } from 'lib/logic/scenes/useAttachedLogic'
import { humanFriendlyDuration } from 'lib/utils/durations'
-import { asDisplay } from 'scenes/persons/person-utils'
import { ActivityScoreLabel } from 'scenes/session-recordings/components/RecordingRow'
import { sessionRecordingsPlaylistLogic } from 'scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic'
import { teamLogic } from 'scenes/teamLogic'
@@ -22,6 +21,8 @@ import { webAnalyticsLogic } from 'scenes/web-analytics/webAnalyticsLogic'
import { ProductIntentContext, ProductKey } from '~/queries/schema/schema-general'
import { SessionRecordingType } from '~/types'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
export function WebAnalyticsRecordingsTile({ tile }: { tile: ReplayTile }): JSX.Element {
const { layout } = tile
const { replayFilters, webAnalyticsFilters } = useValues(webAnalyticsLogic)
diff --git a/frontend/src/test/insight-testing/mocks.ts b/frontend/src/test/insight-testing/mocks.ts
index 7d69c8a0b919..9160939023ef 100644
--- a/frontend/src/test/insight-testing/mocks.ts
+++ b/frontend/src/test/insight-testing/mocks.ts
@@ -60,7 +60,7 @@ export interface MockResponse {
/** Build an ActorsQueryResponse shaped like the server response, with one row
* per canned person. Each person's display name is driven by the email
- * property (see `asDisplay` in scenes/persons/person-utils). */
+ * property (see `asDisplay` in products/persons/frontend/person-utils). */
export function buildActorsResponse(
persons: Array<{ email: string; id?: string; distinctId?: string }>
): ActorsQueryResponse {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8f6ee4309547..1d053f315e5a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -4103,6 +4103,9 @@ importers:
products/persons:
dependencies:
+ '@posthog/brand':
+ specifier: 'catalog:'
+ version: 0.11.0([email protected])
'@posthog/icons':
specifier: 'catalog:'
@@ -4112,6 +4115,9 @@ importers:
clsx:
specifier: '*'
version: 1.2.1
+ fast-equals:
+ specifier: 'catalog:'
+ version: 6.0.1
fuse.js:
specifier: '*'
version: 6.6.2
@@ -4124,9 +4130,16 @@ importers:
kea-router:
specifier: 'catalog:'
version: 3.4.1([email protected](patch_hash=139b8d1f1304f9d9da452a9a1244c94ea679dbcb85687d8999563146879fb6f5)([email protected]))
+ posthog-js:
+ specifier: 'catalog:'
+ version: 1.430.3(@types/[email protected])([email protected])
react:
specifier: 18.3.1
version: 18.3.1
+ devDependencies:
+ kea-test-utils:
+ specifier: 'catalog:'
+ version: 0.2.4([email protected](patch_hash=139b8d1f1304f9d9da452a9a1244c94ea679dbcb85687d8999563146879fb6f5)([email protected]))
products/platform_features: {}
diff --git a/products/ai_observability/frontend/AIObservabilityTraceScene.tsx b/products/ai_observability/frontend/AIObservabilityTraceScene.tsx
index a98640d5ec16..475497242cdf 100644
--- a/products/ai_observability/frontend/AIObservabilityTraceScene.tsx
+++ b/products/ai_observability/frontend/AIObservabilityTraceScene.tsx
@@ -52,7 +52,6 @@ import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { useAttachedLogic } from 'lib/logic/scenes/useAttachedLogic'
import { identifierToHuman, pluralize } from 'lib/utils/strings'
import { InsightEmptyState, InsightErrorState } from 'scenes/insights/EmptyStates'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { SceneExport } from 'scenes/sceneTypes'
import { urls } from 'scenes/urls'
@@ -63,6 +62,7 @@ import { LLMTrace, LLMTraceEvent } from '~/queries/schema/schema-general'
import { AccessControlLevel, AccessControlResourceType, SidePanelTab } from '~/types'
import type { BranchPRMatchApi } from 'products/engineering_analytics/frontend/generated/api.schemas'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import { PersonData, getFilterIdentifier, getTracesUrlWithPersonFilter } from './aiObservabilityColumnRenderers'
import { EnrichedTraceTreeNode, findNodeForEvent, aiObservabilityTraceDataLogic } from './aiObservabilityTraceDataLogic'
diff --git a/products/ai_observability/frontend/aiObservabilityColumnRenderers.tsx b/products/ai_observability/frontend/aiObservabilityColumnRenderers.tsx
index 3c3b101fa3f3..5bf82c424c3d 100644
--- a/products/ai_observability/frontend/aiObservabilityColumnRenderers.tsx
+++ b/products/ai_observability/frontend/aiObservabilityColumnRenderers.tsx
@@ -6,7 +6,6 @@ import { IconFilter } from '@posthog/icons'
import { LemonButton, LemonTag, Link } from '@posthog/lemon-ui'
import { Tooltip } from 'lib/lemon-ui/Tooltip'
-import { PersonDisplay, PersonIcon } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
import { DataTableNode, DataVisualizationNode } from '~/queries/schema/schema-general'
@@ -15,6 +14,8 @@ import { QueryContextColumn } from '~/queries/types'
import { hogql, isDataTableNode, isEventsQuery } from '~/queries/utils'
import { AnyPropertyFilter, PropertyFilterType, PropertyOperator } from '~/types'
+import { PersonDisplay, PersonIcon } from 'products/persons/frontend/components/PersonDisplay'
+
import { aiObservabilitySharedLogic } from './aiObservabilitySharedLogic'
import { AIDataLoading } from './components/AIDataLoading'
import { SentimentBar } from './components/SentimentTag'
diff --git a/products/conversations/frontend/scenes/ticket/RelatedGroupsPanel.tsx b/products/conversations/frontend/scenes/ticket/RelatedGroupsPanel.tsx
index c4fc10a07a70..2a07dd9fe531 100644
--- a/products/conversations/frontend/scenes/ticket/RelatedGroupsPanel.tsx
+++ b/products/conversations/frontend/scenes/ticket/RelatedGroupsPanel.tsx
@@ -2,13 +2,12 @@ import { useValues } from 'kea'
import { LemonCollapse, LemonTag, Spinner, Tooltip } from '@posthog/lemon-ui'
-import { GroupActorDisplay } from 'scenes/persons/GroupActorDisplay'
-
import { groupsModel } from '~/models/groupsModel'
import { ActorType, Group, GroupActorType } from '~/types'
import { RelatedGroups } from 'products/groups/frontend/components/RelatedGroups'
import { relatedGroupsLogic } from 'products/groups/frontend/logics/relatedGroupsLogic'
+import { GroupActorDisplay } from 'products/persons/frontend/components/GroupActorDisplay'
import { creationGroupLogic } from './creationGroupLogic'
diff --git a/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx b/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx
index d82d3c974cc2..f06186035c17 100644
--- a/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx
+++ b/products/conversations/frontend/scenes/ticket/SupportTicketScene.tsx
@@ -13,7 +13,6 @@ import { dayjs } from 'lib/dayjs'
import { LemonCalendarSelectInput } from 'lib/lemon-ui/LemonCalendar/LemonCalendarSelect'
import { getAccessControlDisabledReason, accessLevelSatisfied } from 'lib/utils/accessControlUtils'
import { newInternalTab } from 'lib/utils/newInternalTab'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { SceneExport } from 'scenes/sceneTypes'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -24,6 +23,8 @@ import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
import { ProductKey } from '~/queries/schema/schema-general'
import { AccessControlLevel, AccessControlResourceType, Breadcrumb } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import { AssigneeIconDisplay, AssigneeLabelDisplay, AssigneeSelect } from '../../components/Assignee'
import { ChannelsTag, getChannelThreadUrl } from '../../components/Channels/ChannelsTag'
import { ChatView } from '../../components/Chat/ChatView'
diff --git a/products/conversations/frontend/scenes/tickets/ticketColumns.tsx b/products/conversations/frontend/scenes/tickets/ticketColumns.tsx
index ad2326ba74a2..26f3f1f114a6 100644
--- a/products/conversations/frontend/scenes/tickets/ticketColumns.tsx
+++ b/products/conversations/frontend/scenes/tickets/ticketColumns.tsx
@@ -6,7 +6,8 @@ import { LemonBadge, LemonTableColumns, LemonTag, Spinner, Tooltip } from '@post
import { ObjectTags } from 'lib/components/ObjectTags/ObjectTags'
import { TZLabel } from 'lib/components/TZLabel'
import { stripMarkdown } from 'lib/utils/markdown'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
+
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import { AssigneeDisplay, AssigneeResolver } from '../../components/Assignee'
import { ChannelsTag, getChannelThreadUrl } from '../../components/Channels/ChannelsTag'
diff --git a/products/customer_analytics/frontend/components/PersonDisplayNameNudgeBanner.tsx b/products/customer_analytics/frontend/components/PersonDisplayNameNudgeBanner.tsx
index 711534ed2c38..7ee3bcddfadc 100644
--- a/products/customer_analytics/frontend/components/PersonDisplayNameNudgeBanner.tsx
+++ b/products/customer_analytics/frontend/components/PersonDisplayNameNudgeBanner.tsx
@@ -4,13 +4,14 @@ import { useEffect } from 'react'
import { LemonBanner, LemonSkeleton } from '@posthog/lemon-ui'
import { isUUIDLike } from 'lib/utils/guards'
-import { personsSceneLogic } from 'scenes/persons/personsSceneLogic'
import { urls } from 'scenes/urls'
import { dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'
import { insightVizDataNodeKey } from '~/queries/nodes/InsightViz/insightVizKeys'
import { ActorsQueryResponse } from '~/queries/schema/schema-general'
+import { personsSceneLogic } from 'products/persons/frontend/logics/personsSceneLogic'
+
interface PersonDisplayNameNudgeBannerProps {
uniqueKey: string
}
diff --git a/products/dashboards/frontend/widgets/activity/ActivityEventsWidgetRow.tsx b/products/dashboards/frontend/widgets/activity/ActivityEventsWidgetRow.tsx
index 97528c68c797..26da001b4192 100644
--- a/products/dashboards/frontend/widgets/activity/ActivityEventsWidgetRow.tsx
+++ b/products/dashboards/frontend/widgets/activity/ActivityEventsWidgetRow.tsx
@@ -3,9 +3,10 @@ import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'
import { TZLabel } from 'lib/components/TZLabel'
import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'
import { Link } from 'lib/lemon-ui/Link'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
export type ActivityEventsWidgetEvent = {
uuid: string
event: string
diff --git a/products/dashboards/frontend/widgets/conversations/ConversationsWidget.tsx b/products/dashboards/frontend/widgets/conversations/ConversationsWidget.tsx
index 953d8461a1f2..3cc256db2615 100644
--- a/products/dashboards/frontend/widgets/conversations/ConversationsWidget.tsx
+++ b/products/dashboards/frontend/widgets/conversations/ConversationsWidget.tsx
@@ -12,13 +12,13 @@ import { TZLabel } from 'lib/components/TZLabel'
import { Link } from 'lib/lemon-ui/Link'
import { cn } from 'lib/utils/css-classes'
import { stripMarkdown } from 'lib/utils/markdown'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
import { AssigneeDisplay, AssigneeResolver, AssigneeSelect } from 'products/conversations/frontend/components/Assignee'
import { channelIcon } from 'products/conversations/frontend/components/Channels/ChannelsTag'
import { channelOptions } from 'products/conversations/frontend/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import {
WIDGET_LIST_COUNT_TICKETS,
diff --git a/products/dashboards/frontend/widgets/surveys/SurveyResultsWidget.tsx b/products/dashboards/frontend/widgets/surveys/SurveyResultsWidget.tsx
index 9fcafb04a219..3200bf0c6df0 100644
--- a/products/dashboards/frontend/widgets/surveys/SurveyResultsWidget.tsx
+++ b/products/dashboards/frontend/widgets/surveys/SurveyResultsWidget.tsx
@@ -9,12 +9,12 @@ import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { LemonTag } from 'lib/lemon-ui/LemonTag'
import { Link } from 'lib/lemon-ui/Link'
import { humanFriendlyNumber } from 'lib/utils/numbers'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { StackedBar, type StackedBarSegment } from 'scenes/surveys/components/StackedBar'
import { urls } from 'scenes/urls'
import { SurveyEventName, type SurveyRates, type SurveyStats } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import type { SurveyResponseAnswerApi, SurveyResponseRowApi } from 'products/surveys/frontend/generated/api.schemas'
import { WidgetCardBodyMessage, WidgetCardContent } from '../../components/WidgetCard'
diff --git a/products/early_access_features/frontend/EarlyAccessFeature.tsx b/products/early_access_features/frontend/EarlyAccessFeature.tsx
index f54b75d30c34..3760408fe8ac 100644
--- a/products/early_access_features/frontend/EarlyAccessFeature.tsx
+++ b/products/early_access_features/frontend/EarlyAccessFeature.tsx
@@ -34,7 +34,6 @@ import { MenuOpenIndicator } from 'lib/ui/Menus/Menus'
import { getAccessControlDisabledReason } from 'lib/utils/accessControlUtils'
import { JSONEditorInput } from 'scenes/feature-flags/JSONEditorInput'
import { LinkedHogFunctions } from 'scenes/hog-functions/list/LinkedHogFunctions'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { interProjectCopyLogic } from 'scenes/resource-transfer/interProjectCopyLogic'
import { SceneExport } from 'scenes/sceneTypes'
import { teamLogic } from 'scenes/teamLogic'
@@ -81,6 +80,7 @@ import {
AssigneeLabelDisplay,
} from 'products/error_tracking/frontend/components/Assignee/AssigneeDisplay'
import { AssigneeSelect } from 'products/error_tracking/frontend/components/Assignee/AssigneeSelect'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import { EarlyAccessFeatureLogicProps, earlyAccessFeatureLogic } from './earlyAccessFeatureLogic'
import { InstructionsModal } from './InstructionsModal'
diff --git a/products/error_tracking/frontend/components/EventsTable/EventsTable.tsx b/products/error_tracking/frontend/components/EventsTable/EventsTable.tsx
index 833da632ffcc..b6eec2616613 100644
--- a/products/error_tracking/frontend/components/EventsTable/EventsTable.tsx
+++ b/products/error_tracking/frontend/components/EventsTable/EventsTable.tsx
@@ -19,8 +19,9 @@ import {
TableRow,
} from 'lib/ui/quill'
import { cn } from 'lib/utils/css-classes'
-import { asDisplay } from 'scenes/persons/person-utils'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
+
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+import { asDisplay } from 'products/persons/frontend/person-utils'
import { RuntimeIcon } from '../RuntimeIcon'
import { EventActions } from './EventActions'
diff --git a/products/groups/frontend/components/RelatedGroups.tsx b/products/groups/frontend/components/RelatedGroups.tsx
index c048d10c6048..eff24e9ff729 100644
--- a/products/groups/frontend/components/RelatedGroups.tsx
+++ b/products/groups/frontend/components/RelatedGroups.tsx
@@ -6,13 +6,13 @@ import { LemonTag, Tooltip } from '@posthog/lemon-ui'
import { LemonTable, LemonTableColumns } from 'lib/lemon-ui/LemonTable'
import { capitalizeFirstLetter } from 'lib/utils/strings'
-import { GroupActorDisplay } from 'scenes/persons/GroupActorDisplay'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { groupsModel } from '~/models/groupsModel'
import { ActorType } from '~/types'
import { relatedGroupsLogic } from 'products/groups/frontend/logics/relatedGroupsLogic'
+import { GroupActorDisplay } from 'products/persons/frontend/components/GroupActorDisplay'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
export interface RelatedGroupsProps {
groupTypeIndex: number | null
diff --git a/products/groups/frontend/logics/groupLogic.ts b/products/groups/frontend/logics/groupLogic.ts
index aa9c0e253548..09fc488f2c8e 100644
--- a/products/groups/frontend/logics/groupLogic.ts
+++ b/products/groups/frontend/logics/groupLogic.ts
@@ -11,7 +11,6 @@ import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { objectsEqual } from 'lib/utils/objects'
import { capitalizeFirstLetter } from 'lib/utils/strings'
import { getRelativeNextPath, toParams } from 'lib/utils/url'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
import { Scene } from 'scenes/sceneTypes'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -24,6 +23,7 @@ import { isDataTableNode } from '~/queries/utils'
import { ActivityScope, Breadcrumb, Group, GroupTypeIndex, PropertyFilterType, PropertyOperator } from '~/types'
import { CUSTOMER_ANALYTICS_DEFAULT_QUERY_TAGS } from 'products/customer_analytics/frontend/constants'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
import type { FeatureFlagsSet } from '../../../../frontend/src/lib/logic/featureFlagLogic'
import type { Noun } from '../../../../frontend/src/models/groupsModel'
diff --git a/products/groups/frontend/pages/Group.tsx b/products/groups/frontend/pages/Group.tsx
index 32ce44d700e3..67c232500cc5 100644
--- a/products/groups/frontend/pages/Group.tsx
+++ b/products/groups/frontend/pages/Group.tsx
@@ -16,8 +16,6 @@ import { Spinner, SpinnerOverlay } from 'lib/lemon-ui/Spinner/Spinner'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { NotebookSelectButton } from 'scenes/notebooks/NotebookSelectButton/NotebookSelectButton'
import { NotebookNodeType } from 'scenes/notebooks/types'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
-import { RelatedFeatureFlags } from 'scenes/persons/RelatedFeatureFlags'
import { SceneExport } from 'scenes/sceneTypes'
import { SessionRecordingsPlaylist } from 'scenes/session-recordings/playlist/SessionRecordingsPlaylist'
import { DEFAULT_RECORDING_FILTERS } from 'scenes/session-recordings/playlist/sessionRecordingsPlaylistLogic'
@@ -42,6 +40,8 @@ import {
import { FeedbackButton } from 'products/customer_analytics/frontend/components/FeedbackButton'
import { GroupProfileCanvas } from 'products/customer_analytics/frontend/components/GroupProfileCanvas'
import { GroupLogicProps, groupLogic } from 'products/groups/frontend/logics/groupLogic'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
+import { RelatedFeatureFlags } from 'products/persons/frontend/components/RelatedFeatureFlags'
import { GroupDashboardCard } from '../cards/GroupDashboardCard'
import { GroupNotebookCard } from '../cards/GroupNotebookCard'
diff --git a/products/growth/frontend/IdentityMatchingDetail.tsx b/products/growth/frontend/IdentityMatchingDetail.tsx
index ab7ccaf86916..0a73b42ea273 100644
--- a/products/growth/frontend/IdentityMatchingDetail.tsx
+++ b/products/growth/frontend/IdentityMatchingDetail.tsx
@@ -2,9 +2,10 @@ import { IconArrowRight, IconCheck, IconExternal } from '@posthog/icons'
import { LemonButton, LemonTag, Tooltip } from '@posthog/lemon-ui'
import { dayjs } from 'lib/dayjs'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import type { IdentityMatchingLinkApi } from './generated/api.schemas'
import {
CATEGORY_LABELS,
diff --git a/products/growth/frontend/IdentityMatchingScene.tsx b/products/growth/frontend/IdentityMatchingScene.tsx
index 54b4151e00d6..e2e097394df5 100644
--- a/products/growth/frontend/IdentityMatchingScene.tsx
+++ b/products/growth/frontend/IdentityMatchingScene.tsx
@@ -25,13 +25,14 @@ import { dayjs } from 'lib/dayjs'
import { LemonDialog } from 'lib/lemon-ui/LemonDialog'
import { LemonField } from 'lib/lemon-ui/LemonField'
import { lemonToast } from 'lib/lemon-ui/LemonToast'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { SceneExport } from 'scenes/sceneTypes'
import { urls } from 'scenes/urls'
import { userLogic } from 'scenes/userLogic'
import { SceneContent } from '~/layout/scenes/components/SceneContent'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import type { IdentityMatchingLinkApi } from './generated/api.schemas'
import { IdentityMatchingDetail } from './IdentityMatchingDetail'
import { LINKS_PAGE_SIZE, identityMatchingLogic } from './identityMatchingLogic'
diff --git a/products/growth/frontend/PaidAttributionTimeline.tsx b/products/growth/frontend/PaidAttributionTimeline.tsx
index de898bcb3248..192229a5230e 100644
--- a/products/growth/frontend/PaidAttributionTimeline.tsx
+++ b/products/growth/frontend/PaidAttributionTimeline.tsx
@@ -2,9 +2,10 @@ import { IconArrowRight, IconExternal, IconTarget } from '@posthog/icons'
import { LemonButton, LemonTable, LemonTableColumns, LemonTag, Tooltip } from '@posthog/lemon-ui'
import { dayjs } from 'lib/dayjs'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import type { IdentityMatchingLinkApi, IdentityMatchingPersonApi } from './generated/api.schemas'
import {
PERSON_CAMPAIGN_FIELDS,
diff --git a/products/logs/frontend/components/LogsViewer/LogAttributes.tsx b/products/logs/frontend/components/LogsViewer/LogAttributes.tsx
index 2d8e2fefc5dd..9d88e0f12174 100644
--- a/products/logs/frontend/components/LogsViewer/LogAttributes.tsx
+++ b/products/logs/frontend/components/LogsViewer/LogAttributes.tsx
@@ -10,7 +10,6 @@ import ViewRecordingButton, {
} from 'lib/components/ViewRecordingButton/ViewRecordingButton'
import { IconTableChart } from 'lib/lemon-ui/icons'
import { cn } from 'lib/utils/css-classes'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { PropertyFilterType, PropertyOperator } from '~/types'
@@ -18,6 +17,7 @@ import { AttributeBreakdowns } from 'products/logs/frontend/AttributeBreakdowns'
import { logsViewerLogic } from 'products/logs/frontend/components/LogsViewer/logsViewerLogic'
import { logsConfigLogic } from 'products/logs/frontend/logsConfigLogic'
import { isDistinctIdKey, isSessionIdKey } from 'products/logs/frontend/utils'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
export interface LogAttributesProps {
attributes: Record<string, string>
diff --git a/products/logs/frontend/components/LogsViewer/LogsImpactCounts.tsx b/products/logs/frontend/components/LogsViewer/LogsImpactCounts.tsx
index 696c6b319c4a..f26088cfca53 100644
--- a/products/logs/frontend/components/LogsViewer/LogsImpactCounts.tsx
+++ b/products/logs/frontend/components/LogsViewer/LogsImpactCounts.tsx
@@ -5,9 +5,9 @@ import ViewRecordingButton, {
ViewRecordingButtonVariant,
} from 'lib/components/ViewRecordingButton/ViewRecordingButton'
import { humanFriendlyLargeNumber, percentage } from 'lib/utils/numbers'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import type { _LogsImpactResponseApi, _LogsImpactTopValueApi } from 'products/logs/frontend/generated/api.schemas'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
export interface LogsImpactCountsProps {
impact: _LogsImpactResponseApi
diff --git a/products/logs/frontend/components/VirtualizedLogsList/cells/AttributeCell.tsx b/products/logs/frontend/components/VirtualizedLogsList/cells/AttributeCell.tsx
index 473e32dc0d1c..de7544687097 100644
--- a/products/logs/frontend/components/VirtualizedLogsList/cells/AttributeCell.tsx
+++ b/products/logs/frontend/components/VirtualizedLogsList/cells/AttributeCell.tsx
@@ -8,7 +8,6 @@ import ViewRecordingButton, {
ViewRecordingButtonVariant,
} from 'lib/components/ViewRecordingButton/ViewRecordingButton'
import { getAccessControlDisabledReason } from 'lib/utils/accessControlUtils'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { AccessControlLevel, AccessControlResourceType, PropertyFilterType } from '~/types'
@@ -18,6 +17,7 @@ import { LogRowScrollButtons } from 'products/logs/frontend/components/Virtualiz
import { useCellScroll } from 'products/logs/frontend/components/VirtualizedLogsList/useCellScroll'
import { logsConfigLogic } from 'products/logs/frontend/logsConfigLogic'
import { isDistinctIdKey, isSessionIdKey } from 'products/logs/frontend/utils'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import { traceUrl } from 'products/tracing/frontend/traceLinks'
export interface AttributeCellProps {
diff --git a/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx b/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx
index 19245aacccdf..e4385903b86a 100644
--- a/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx
+++ b/products/mcp_analytics/frontend/MCPAnalyticsToolDetail.tsx
@@ -31,7 +31,6 @@ import { FEATURE_FLAGS } from 'lib/constants'
import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { copyToClipboard } from 'lib/utils/copyToClipboard'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { teamLogic } from 'scenes/teamLogic'
import { FeaturePreviewSceneGate } from '~/layout/scenes/components/FeaturePreviewSceneGate'
@@ -40,6 +39,8 @@ import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
import type { MCPToolFailureOccurrenceItem } from '~/queries/schema/schema-general'
import { SceneExport } from '~/scenes/sceneTypes'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import { ToolDetailIntentsSection } from './clustering/ToolDetailIntentsSection'
import { formatMs, formatMsAsSeconds, formatNumber } from './dashboard/formatters'
import { HarnessLogo, HarnessPill } from './dashboard/harness'
diff --git a/products/mcp_analytics/frontend/missingCapabilities/MCPAnalyticsMissingCapabilities.tsx b/products/mcp_analytics/frontend/missingCapabilities/MCPAnalyticsMissingCapabilities.tsx
index 80bcab1a8483..295d57d7e0f2 100644
--- a/products/mcp_analytics/frontend/missingCapabilities/MCPAnalyticsMissingCapabilities.tsx
+++ b/products/mcp_analytics/frontend/missingCapabilities/MCPAnalyticsMissingCapabilities.tsx
@@ -7,10 +7,11 @@ import { LemonBanner, LemonButton, LemonInput, LemonTable } from '@posthog/lemon
import { pngHoggie } from 'lib/brand/hoggies'
import { CommandBlock } from 'lib/components/CommandBlock/CommandBlock'
import { TZLabel } from 'lib/components/TZLabel'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { MCPMissingCapabilitiesItem } from '~/queries/schema/schema-general'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import { McpDateFilter } from '../components/McpDateFilter'
import { HarnessLogo } from '../dashboard/harness'
import { useMCPAnalyticsWizardCommand } from '../onboarding/MCPAnalyticsInstall'
diff --git a/frontend/src/scenes/persons/activityDescriptions.tsx b/products/persons/frontend/activityDescriptions.tsx
similarity index 98%
rename from frontend/src/scenes/persons/activityDescriptions.tsx
rename to products/persons/frontend/activityDescriptions.tsx
index b32019df556d..01891194b3c6 100644
--- a/frontend/src/scenes/persons/activityDescriptions.tsx
+++ b/products/persons/frontend/activityDescriptions.tsx
@@ -7,9 +7,10 @@ import {
import { SentenceList } from 'lib/components/ActivityLog/SentenceList'
import { Link } from 'lib/lemon-ui/Link'
import { isObject } from 'lib/utils/guards'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
+import { PersonDisplay } from './components/PersonDisplay'
+
export function personActivityDescriber(logItem: ActivityLogItem, asNotification?: boolean): HumanizedChange {
if (logItem.scope != 'Person') {
console.error('person describer received a non-person activity')
diff --git a/frontend/src/scenes/persons/GroupActorDisplay.tsx b/products/persons/frontend/components/GroupActorDisplay.tsx
similarity index 94%
rename from frontend/src/scenes/persons/GroupActorDisplay.tsx
rename to products/persons/frontend/components/GroupActorDisplay.tsx
index 51fd229cfeb0..369d045c132a 100644
--- a/frontend/src/scenes/persons/GroupActorDisplay.tsx
+++ b/products/persons/frontend/components/GroupActorDisplay.tsx
@@ -35,7 +35,7 @@ export function GroupActorDisplay({ actor }: GroupActorDisplayProps): JSX.Elemen
)
}
-// Analogue to frontend/src/scenes/persons/PersonDisplay.tsx#asDisplay
+// Analogue to products/persons/frontend/components/PersonDisplay.tsx#asDisplay
export function groupDisplayId(groupKey: string, properties: Record<string, any>): string {
if (properties?.name) {
return String(properties.name)
diff --git a/frontend/src/scenes/persons/MergeSplitPerson.tsx b/products/persons/frontend/components/MergeSplitPerson.tsx
similarity index 97%
rename from frontend/src/scenes/persons/MergeSplitPerson.tsx
rename to products/persons/frontend/components/MergeSplitPerson.tsx
index 996eec19e27a..705a935d37ae 100644
--- a/frontend/src/scenes/persons/MergeSplitPerson.tsx
+++ b/products/persons/frontend/components/MergeSplitPerson.tsx
@@ -8,8 +8,8 @@ import { pluralize } from 'lib/utils/strings'
import { PersonType } from '~/types'
-import { mergeSplitPersonLogic, SplitMode } from './mergeSplitPersonLogic'
-import { personsLogic } from './personsLogic'
+import { mergeSplitPersonLogic, SplitMode } from '../logics/mergeSplitPersonLogic'
+import { personsLogic } from '../logics/personsLogic'
export function MergeSplitPerson({ person }: { person: PersonType }): JSX.Element {
const { urlId } = useValues(personsLogic)
diff --git a/frontend/src/scenes/persons/NewProperty.tsx b/products/persons/frontend/components/NewProperty.tsx
similarity index 100%
rename from frontend/src/scenes/persons/NewProperty.tsx
rename to products/persons/frontend/components/NewProperty.tsx
diff --git a/frontend/src/scenes/persons/PersonCohorts.tsx b/products/persons/frontend/components/PersonCohorts.tsx
similarity index 96%
rename from frontend/src/scenes/persons/PersonCohorts.tsx
rename to products/persons/frontend/components/PersonCohorts.tsx
index 761b945465f2..87fd3f4d577f 100644
--- a/frontend/src/scenes/persons/PersonCohorts.tsx
+++ b/products/persons/frontend/components/PersonCohorts.tsx
@@ -7,7 +7,7 @@ import { urls } from 'scenes/urls'
import { CohortType } from '~/types'
-import { personsLogic } from './personsLogic'
+import { personsLogic } from '../logics/personsLogic'
export function PersonCohorts(): JSX.Element {
const { cohorts, cohortsLoading, person } = useValues(personsLogic)
diff --git a/frontend/src/scenes/persons/PersonDeleteModal.tsx b/products/persons/frontend/components/PersonDeleteModal.tsx
similarity index 97%
rename from frontend/src/scenes/persons/PersonDeleteModal.tsx
rename to products/persons/frontend/components/PersonDeleteModal.tsx
index 860648f7baf2..4ebf358ce634 100644
--- a/frontend/src/scenes/persons/PersonDeleteModal.tsx
+++ b/products/persons/frontend/components/PersonDeleteModal.tsx
@@ -4,11 +4,11 @@ import { useState } from 'react'
import { LemonBanner, LemonButton, LemonCheckbox, LemonDivider, LemonInput, LemonModal, Link } from '@posthog/lemon-ui'
import { matchesConfirmationText } from 'lib/utils/confirmationText'
-import { personDeleteModalLogic } from 'scenes/persons/personDeleteModalLogic'
import { PersonType } from '~/types'
-import { asDisplay } from './person-utils'
+import { personDeleteModalLogic } from '../logics/personDeleteModalLogic'
+import { asDisplay } from '../person-utils'
const DELETE_CONFIRMATION_TEXT = 'delete'
diff --git a/frontend/src/scenes/persons/PersonDisplay.scss b/products/persons/frontend/components/PersonDisplay.scss
similarity index 100%
rename from frontend/src/scenes/persons/PersonDisplay.scss
rename to products/persons/frontend/components/PersonDisplay.scss
diff --git a/frontend/src/scenes/persons/PersonDisplay.tsx b/products/persons/frontend/components/PersonDisplay.tsx
similarity index 99%
rename from frontend/src/scenes/persons/PersonDisplay.tsx
rename to products/persons/frontend/components/PersonDisplay.tsx
index dc1d52d32cfa..5323bc90d82c 100644
--- a/frontend/src/scenes/persons/PersonDisplay.tsx
+++ b/products/persons/frontend/components/PersonDisplay.tsx
@@ -18,7 +18,7 @@ import { useNotebookNode } from 'scenes/notebooks/Nodes/NotebookNodeContext'
import { ComposeTicketButton } from 'products/conversations/frontend/components/ComposeTicket'
-import { PersonPropType, asDisplay, asLink, getPersonColorIndex } from './person-utils'
+import { PersonPropType, asDisplay, asLink, getPersonColorIndex } from '../person-utils'
import { PersonPreview } from './PersonPreview'
export interface PersonDisplayProps {
diff --git a/frontend/src/scenes/persons/PersonEmailsTab.tsx b/products/persons/frontend/components/PersonEmailsTab.tsx
similarity index 98%
rename from frontend/src/scenes/persons/PersonEmailsTab.tsx
rename to products/persons/frontend/components/PersonEmailsTab.tsx
index a95441600105..a4bd03ec2710 100644
--- a/frontend/src/scenes/persons/PersonEmailsTab.tsx
+++ b/products/persons/frontend/components/PersonEmailsTab.tsx
@@ -11,7 +11,7 @@ import { urls } from 'scenes/urls'
import { EmailViewerModal } from 'products/workflows/frontend/Workflows/EmailViewerModal'
import { MessageAsset } from 'products/workflows/frontend/Workflows/messageAssetsApi'
-import { personEmailsLogic } from './personEmailsLogic'
+import { personEmailsLogic } from '../logics/personEmailsLogic'
const HedgehogGreek = pngHoggie(greekPng)
diff --git a/frontend/src/scenes/persons/PersonLogsTab.tsx b/products/persons/frontend/components/PersonLogsTab.tsx
similarity index 100%
rename from frontend/src/scenes/persons/PersonLogsTab.tsx
rename to products/persons/frontend/components/PersonLogsTab.tsx
diff --git a/frontend/src/scenes/persons/PersonPreview.tsx b/products/persons/frontend/components/PersonPreview.tsx
similarity index 97%
rename from frontend/src/scenes/persons/PersonPreview.tsx
rename to products/persons/frontend/components/PersonPreview.tsx
index e13b4196a5c3..7eb0cbf1bbde 100644
--- a/frontend/src/scenes/persons/PersonPreview.tsx
+++ b/products/persons/frontend/components/PersonPreview.tsx
@@ -19,8 +19,8 @@ import { ActivityTab, PropertyDefinitionType, PropertyFilterType, PropertyOperat
import { ComposeTicketButton } from 'products/conversations/frontend/components/ComposeTicket'
-import { asDisplay, pickBestPersonDistinctId } from './person-utils'
-import { personLogic } from './personLogic'
+import { personLogic } from '../logics/personLogic'
+import { asDisplay, pickBestPersonDistinctId } from '../person-utils'
export type PersonPreviewProps = {
distinctId?: string
diff --git a/frontend/src/scenes/persons/PersonProfileCanvas.tsx b/products/persons/frontend/components/PersonProfileCanvas.tsx
similarity index 100%
rename from frontend/src/scenes/persons/PersonProfileCanvas.tsx
rename to products/persons/frontend/components/PersonProfileCanvas.tsx
diff --git a/frontend/src/scenes/persons/PersonPushNotificationsTab.tsx b/products/persons/frontend/components/PersonPushNotificationsTab.tsx
similarity index 97%
rename from frontend/src/scenes/persons/PersonPushNotificationsTab.tsx
rename to products/persons/frontend/components/PersonPushNotificationsTab.tsx
index ed2a72b8dd9b..0fbfc6d34653 100644
--- a/frontend/src/scenes/persons/PersonPushNotificationsTab.tsx
+++ b/products/persons/frontend/components/PersonPushNotificationsTab.tsx
@@ -11,7 +11,7 @@ import { urls } from 'scenes/urls'
import { EmailViewerModal } from 'products/workflows/frontend/Workflows/EmailViewerModal'
import { MessageAsset } from 'products/workflows/frontend/Workflows/messageAssetsApi'
-import { personPushNotificationsLogic } from './personPushNotificationsLogic'
+import { personPushNotificationsLogic } from '../logics/personPushNotificationsLogic'
const HedgehogGreek = pngHoggie(greekPng)
diff --git a/frontend/src/scenes/persons/RelatedFeatureFlags.tsx b/products/persons/frontend/components/RelatedFeatureFlags.tsx
similarity index 99%
rename from frontend/src/scenes/persons/RelatedFeatureFlags.tsx
rename to products/persons/frontend/components/RelatedFeatureFlags.tsx
index c8da6c905608..cd640e0594e0 100644
--- a/frontend/src/scenes/persons/RelatedFeatureFlags.tsx
+++ b/products/persons/frontend/components/RelatedFeatureFlags.tsx
@@ -11,7 +11,7 @@ import { urls } from 'scenes/urls'
import { FeatureFlagReleaseType } from '~/types'
-import { RelatedFeatureFlag, relatedFeatureFlagsLogic } from './relatedFeatureFlagsLogic'
+import { RelatedFeatureFlag, relatedFeatureFlagsLogic } from '../logics/relatedFeatureFlagsLogic'
interface Props {
distinctId: string | null
diff --git a/frontend/src/scenes/persons/mergeSplitPersonLogic.test.ts b/products/persons/frontend/logics/mergeSplitPersonLogic.test.ts
similarity index 100%
rename from frontend/src/scenes/persons/mergeSplitPersonLogic.test.ts
rename to products/persons/frontend/logics/mergeSplitPersonLogic.test.ts
diff --git a/frontend/src/scenes/persons/mergeSplitPersonLogic.ts b/products/persons/frontend/logics/mergeSplitPersonLogic.ts
similarity index 95%
rename from frontend/src/scenes/persons/mergeSplitPersonLogic.ts
rename to products/persons/frontend/logics/mergeSplitPersonLogic.ts
index 6365b0d516a8..c05d2183bd0d 100644
--- a/frontend/src/scenes/persons/mergeSplitPersonLogic.ts
+++ b/products/persons/frontend/logics/mergeSplitPersonLogic.ts
@@ -3,13 +3,13 @@ import { loaders } from 'kea-loaders'
import { router } from 'kea-router'
import api from 'lib/api'
+import type { CountedPaginatedResponse } from 'lib/api'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { PersonType } from '~/types'
+import type { PersonListParams } from '~/types'
-import type { CountedPaginatedResponse } from '../../lib/api'
-import type { PersonListParams } from '../../types'
import { personsLogic } from './personsLogic'
export interface SplitPersonLogicProps {
@@ -117,6 +117,8 @@ export const mergeSplitPersonLogic = kea<mergeSplitPersonLogicType>([
: values.selectedPersonToAssignSplit
? { main_distinct_id: values.selectedPersonToAssignSplit }
: {}
+ // personsSplitCreate needs a project id that this logic does not hold.
+ // nosemgrep: prefer-codegen-api
const splitAction = await api.create('api/person/' + values.person.id + '/split/', payload)
if (splitAction.success) {
lemonToast.success(
diff --git a/frontend/src/scenes/persons/personDeleteModalLogic.tsx b/products/persons/frontend/logics/personDeleteModalLogic.tsx
similarity index 96%
rename from frontend/src/scenes/persons/personDeleteModalLogic.tsx
rename to products/persons/frontend/logics/personDeleteModalLogic.tsx
index 22a2b694fdc1..43267d2e2ebd 100644
--- a/frontend/src/scenes/persons/personDeleteModalLogic.tsx
+++ b/products/persons/frontend/logics/personDeleteModalLogic.tsx
@@ -8,7 +8,7 @@ import { toParams } from 'lib/utils/url'
import { PersonType } from '~/types'
-import { asDisplay } from './person-utils'
+import { asDisplay } from '../person-utils'
export interface PersonDeleteModalLogicProps {
person: PersonType
@@ -125,6 +125,8 @@ export const personDeleteModalLogic = kea<personDeleteModalLogicType>([
params.delete_recordings = true
}
+ // The persons delete endpoint has no generated function.
+ // nosemgrep: prefer-codegen-api
await api.delete(`api/person/${person.id}?${toParams(params)}`)
posthog.capture('delete person', params)
diff --git a/frontend/src/scenes/persons/personEmailsLogic.ts b/products/persons/frontend/logics/personEmailsLogic.ts
similarity index 100%
rename from frontend/src/scenes/persons/personEmailsLogic.ts
rename to products/persons/frontend/logics/personEmailsLogic.ts
diff --git a/frontend/src/scenes/persons/personLogic.tsx b/products/persons/frontend/logics/personLogic.tsx
similarity index 99%
rename from frontend/src/scenes/persons/personLogic.tsx
rename to products/persons/frontend/logics/personLogic.tsx
index c8a18fd4a248..25da7ce6c48d 100644
--- a/frontend/src/scenes/persons/personLogic.tsx
+++ b/products/persons/frontend/logics/personLogic.tsx
@@ -12,7 +12,7 @@ import { Breadcrumb, PersonType } from '~/types'
import { CUSTOMER_ANALYTICS_DEFAULT_QUERY_TAGS } from 'products/customer_analytics/frontend/constants'
-import { getHogqlQueryStringForPersonId, parsePersonFromHogQLRow } from './person-utils'
+import { getHogqlQueryStringForPersonId, parsePersonFromHogQLRow } from '../person-utils'
export interface PersonLogicProps {
id: string | undefined
diff --git a/frontend/src/scenes/persons/personPushNotificationsLogic.ts b/products/persons/frontend/logics/personPushNotificationsLogic.ts
similarity index 100%
rename from frontend/src/scenes/persons/personPushNotificationsLogic.ts
rename to products/persons/frontend/logics/personPushNotificationsLogic.ts
diff --git a/frontend/src/scenes/persons/personsLogic.test.ts b/products/persons/frontend/logics/personsLogic.test.ts
similarity index 100%
rename from frontend/src/scenes/persons/personsLogic.test.ts
rename to products/persons/frontend/logics/personsLogic.test.ts
diff --git a/frontend/src/scenes/persons/personsLogic.tsx b/products/persons/frontend/logics/personsLogic.tsx
similarity index 97%
rename from frontend/src/scenes/persons/personsLogic.tsx
rename to products/persons/frontend/logics/personsLogic.tsx
index faf20d4cf927..e121c9e3f3a3 100644
--- a/frontend/src/scenes/persons/personsLogic.tsx
+++ b/products/persons/frontend/logics/personsLogic.tsx
@@ -9,6 +9,7 @@ import { convertPropertyGroupToProperties, isValidPropertyFilter } from 'lib/com
import { FEATURE_FLAGS, PERSON_DISPLAY_NAME_COLUMN_NAME } from 'lib/constants'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+import type { FeatureFlagsSet } from 'lib/logic/featureFlagLogic'
import { trackedActionToUrl } from 'lib/logic/scenes/trackedActionToUrl'
import { delay } from 'lib/utils/async'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
@@ -34,18 +35,17 @@ import {
PersonType,
PersonsTabType,
} from '~/types'
+import type { TeamPublicType, TeamType } from '~/types'
import { CUSTOMER_ANALYTICS_DEFAULT_QUERY_TAGS } from 'products/customer_analytics/frontend/constants'
-import type { FeatureFlagsSet } from '../../lib/logic/featureFlagLogic'
-import type { TeamPublicType, TeamType } from '../../types'
import {
asDisplay,
coercePropertyValue,
getHogqlQueryStringForPersonId,
parsePersonFromHogQLRow,
pickBestPersonDistinctId,
-} from './person-utils'
+} from '../person-utils'
export interface PersonsLogicProps {
cohort?: number | 'new'
@@ -417,6 +417,8 @@ export const personsLogic = kea<personsLogicType>([
newFilters.include_total = true // The total count is slow, but needed for infinite loading
if (props.cohort) {
result = {
+ // This reads the cohorts API, whose generated client belongs to another product.
+ // nosemgrep: prefer-codegen-api
...(await api.get(`api/cohort/${props.cohort}/persons/?${toParams(newFilters)}`)),
offset: 0,
}
@@ -424,6 +426,8 @@ export const personsLogic = kea<personsLogicType>([
result = { ...(await api.persons.list(newFilters)), offset: 0 }
}
} else {
+ // The URL is the pagination link from the previous response.
+ // nosemgrep: prefer-codegen-api
result = { ...(await api.get(url)), offset: parseInt(decodeParams(url).offset) || 0 }
}
return result
@@ -486,6 +490,9 @@ export const personsLogic = kea<personsLogicType>([
if (!values.person?.id) {
return null
}
+ // personsCohortsRetrieve returns Promise<void> because the endpoint declares no
+ // response schema, so it cannot type the CohortType list this loader returns.
+ // nosemgrep: prefer-codegen-api
const response = await api.get(`api/person/cohorts/?person_id=${values.person?.id}`)
return response.results
},
diff --git a/frontend/src/scenes/persons/personsSceneLogic.test.ts b/products/persons/frontend/logics/personsSceneLogic.test.ts
similarity index 100%
rename from frontend/src/scenes/persons/personsSceneLogic.test.ts
rename to products/persons/frontend/logics/personsSceneLogic.test.ts
diff --git a/frontend/src/scenes/persons/personsSceneLogic.ts b/products/persons/frontend/logics/personsSceneLogic.ts
similarity index 99%
rename from frontend/src/scenes/persons/personsSceneLogic.ts
rename to products/persons/frontend/logics/personsSceneLogic.ts
index 793030197ef6..da92712f5779 100644
--- a/frontend/src/scenes/persons/personsSceneLogic.ts
+++ b/products/persons/frontend/logics/personsSceneLogic.ts
@@ -14,8 +14,7 @@ import { urls } from 'scenes/urls'
import { defaultDataTableColumns } from '~/queries/nodes/DataTable/utils'
import { DataTableNode, NodeKind, ProductKey } from '~/queries/schema/schema-general'
import { Breadcrumb } from '~/types'
-
-import type { TeamPublicType, TeamType } from '../../types'
+import type { TeamPublicType, TeamType } from '~/types'
export const PEOPLE_LIST_CONTEXT_KEY = 'people-list'
diff --git a/frontend/src/scenes/persons/relatedFeatureFlagsLogic.test.ts b/products/persons/frontend/logics/relatedFeatureFlagsLogic.test.ts
similarity index 100%
rename from frontend/src/scenes/persons/relatedFeatureFlagsLogic.test.ts
rename to products/persons/frontend/logics/relatedFeatureFlagsLogic.test.ts
diff --git a/frontend/src/scenes/persons/relatedFeatureFlagsLogic.ts b/products/persons/frontend/logics/relatedFeatureFlagsLogic.ts
similarity index 96%
rename from frontend/src/scenes/persons/relatedFeatureFlagsLogic.ts
rename to products/persons/frontend/logics/relatedFeatureFlagsLogic.ts
index 79800685cbb7..ae361658aee8 100644
--- a/frontend/src/scenes/persons/relatedFeatureFlagsLogic.ts
+++ b/products/persons/frontend/logics/relatedFeatureFlagsLogic.ts
@@ -2,6 +2,8 @@ import { MakeLogicType, actions, connect, events, kea, key, listeners, path, pro
import { loaders } from 'kea-loaders'
import { urlToAction } from 'kea-router'
+import type { PaginationManual } from '@posthog/lemon-ui'
+
import api from 'lib/api'
import { toParams } from 'lib/utils/url'
import { FLAGS_PER_PAGE, type FeatureFlagsResult } from 'scenes/feature-flags/featureFlagsLogic'
@@ -10,8 +12,7 @@ import { urls } from 'scenes/urls'
import { FeatureFlagReleaseType, FeatureFlagType } from '~/types'
-import type { PaginationManual } from '../../../@posthog/lemon-ui/src/index'
-import { FeatureFlagMatchReason } from './RelatedFeatureFlags'
+import { FeatureFlagMatchReason } from '../components/RelatedFeatureFlags'
export interface RelatedFeatureFlag extends FeatureFlagType {
value: boolean | string
@@ -181,6 +182,8 @@ export const relatedFeatureFlagsLogic = kea<relatedFeatureFlagsLogicType>([
active: values.filters.active,
type,
}
+ // This reads the feature flags API, whose generated client belongs to another product.
+ // nosemgrep: prefer-codegen-api
const response = await api.get(
`api/projects/${values.currentProjectId}/feature_flags/?${toParams(params)}`
)
@@ -195,6 +198,8 @@ export const relatedFeatureFlagsLogic = kea<relatedFeatureFlagsLogicType>([
{
loadRelatedFeatureFlags: async () => {
actions.loadFeatureFlags()
+ // This reads the feature flags API, whose generated client belongs to another product.
+ // nosemgrep: prefer-codegen-api
const response = await api.get(
`api/projects/${values.currentProjectId}/feature_flags/evaluation_reasons?${toParams({
...(props.distinctId ? { distinct_id: props.distinctId } : {}),
diff --git a/frontend/src/scenes/persons/PersonScene.stories.tsx b/products/persons/frontend/pages/PersonScene.stories.tsx
similarity index 100%
rename from frontend/src/scenes/persons/PersonScene.stories.tsx
rename to products/persons/frontend/pages/PersonScene.stories.tsx
diff --git a/frontend/src/scenes/persons/PersonScene.test.tsx b/products/persons/frontend/pages/PersonScene.test.tsx
similarity index 100%
rename from frontend/src/scenes/persons/PersonScene.test.tsx
rename to products/persons/frontend/pages/PersonScene.test.tsx
diff --git a/frontend/src/scenes/persons/PersonScene.tsx b/products/persons/frontend/pages/PersonScene.tsx
similarity index 97%
rename from frontend/src/scenes/persons/PersonScene.tsx
rename to products/persons/frontend/pages/PersonScene.tsx
index 26fa40a8f927..fd9d138f8a35 100644
--- a/frontend/src/scenes/persons/PersonScene.tsx
+++ b/products/persons/frontend/pages/PersonScene.tsx
@@ -27,8 +27,6 @@ import { pluralize } from 'lib/utils/strings'
import { tryDecodeURIComponent } from 'lib/utils/url'
import { NotebookSelectButton } from 'scenes/notebooks/NotebookSelectButton/NotebookSelectButton'
import { NotebookNodeType } from 'scenes/notebooks/types'
-import { PersonDeleteModal } from 'scenes/persons/PersonDeleteModal'
-import { personDeleteModalLogic } from 'scenes/persons/personDeleteModalLogic'
import { sceneConfigurations } from 'scenes/scenes'
import { Scene, SceneExport } from 'scenes/sceneTypes'
import { SessionRecordingsPlaylist } from 'scenes/session-recordings/playlist/SessionRecordingsPlaylist'
@@ -54,15 +52,17 @@ import { ComposeTicketButton } from 'products/conversations/frontend/components/
import { FeedbackButton } from 'products/customer_analytics/frontend/components/FeedbackButton'
import { RelatedGroups } from 'products/groups/frontend/components/RelatedGroups'
-import { MergeSplitPerson } from './MergeSplitPerson'
-import { asDisplay, pickBestPersonDistinctId } from './person-utils'
-import { PersonCohorts } from './PersonCohorts'
-import { PersonEmailsTab } from './PersonEmailsTab'
-import { PersonLogsTab } from './PersonLogsTab'
-import PersonProfileCanvas from './PersonProfileCanvas'
-import { PersonPushNotificationsTab } from './PersonPushNotificationsTab'
-import { PERSON_EVENTS_CONTEXT_KEY, PersonsLogicProps, personsLogic } from './personsLogic'
-import { RelatedFeatureFlags } from './RelatedFeatureFlags'
+import { MergeSplitPerson } from '../components/MergeSplitPerson'
+import { PersonCohorts } from '../components/PersonCohorts'
+import { PersonDeleteModal } from '../components/PersonDeleteModal'
+import { PersonEmailsTab } from '../components/PersonEmailsTab'
+import { PersonLogsTab } from '../components/PersonLogsTab'
+import PersonProfileCanvas from '../components/PersonProfileCanvas'
+import { PersonPushNotificationsTab } from '../components/PersonPushNotificationsTab'
+import { RelatedFeatureFlags } from '../components/RelatedFeatureFlags'
+import { personDeleteModalLogic } from '../logics/personDeleteModalLogic'
+import { PERSON_EVENTS_CONTEXT_KEY, PersonsLogicProps, personsLogic } from '../logics/personsLogic'
+import { asDisplay, pickBestPersonDistinctId } from '../person-utils'
export const scene: SceneExport<PersonsLogicProps> = {
component: PersonScene,
@@ -161,6 +161,8 @@ function LaunchToolbarButton({ distinctId }: LaunchToolbarButtonProps): JSX.Elem
try {
// Prepare toolbar flags on backend and get cache key
+ // This posts to the user API, which has no generated function.
+ // nosemgrep: prefer-codegen-api
const response = await api.create('api/user/prepare_toolbar_preloaded_flags', {
distinct_id: distinctId,
})
diff --git a/frontend/src/scenes/persons/PersonsScene.tsx b/products/persons/frontend/pages/PersonsScene.tsx
similarity index 99%
rename from frontend/src/scenes/persons/PersonsScene.tsx
rename to products/persons/frontend/pages/PersonsScene.tsx
index b01e4ef00dab..a7ae9aa555d4 100644
--- a/frontend/src/scenes/persons/PersonsScene.tsx
+++ b/products/persons/frontend/pages/PersonsScene.tsx
@@ -28,7 +28,7 @@ import { FeedbackButton } from 'products/customer_analytics/frontend/components/
import { PersonDisplayNameNudgeBanner } from 'products/customer_analytics/frontend/components/PersonDisplayNameNudgeBanner'
import { customerProfileConfigLogic } from 'products/customer_analytics/frontend/customerProfileConfigLogic'
-import { personsSceneLogic } from './personsSceneLogic'
+import { personsSceneLogic } from '../logics/personsSceneLogic'
export const scene: SceneExport = {
component: PersonsScene,
diff --git a/frontend/src/scenes/persons/person-utils.test.ts b/products/persons/frontend/person-utils.test.ts
similarity index 100%
rename from frontend/src/scenes/persons/person-utils.test.ts
rename to products/persons/frontend/person-utils.test.ts
diff --git a/frontend/src/scenes/persons/person-utils.ts b/products/persons/frontend/person-utils.ts
similarity index 99%
rename from frontend/src/scenes/persons/person-utils.ts
rename to products/persons/frontend/person-utils.ts
index d17700558ac4..b328049643ce 100644
--- a/frontend/src/scenes/persons/person-utils.ts
+++ b/products/persons/frontend/person-utils.ts
@@ -1,4 +1,4 @@
-import './PersonDisplay.scss'
+import './components/PersonDisplay.scss'
import { PERSON_DEFAULT_DISPLAY_NAME_PROPERTIES } from 'lib/constants'
import { NUM_LETTERMARK_STYLES } from 'lib/lemon-ui/Lettermark/Lettermark'
diff --git a/products/persons/manifest.tsx b/products/persons/manifest.tsx
index 48e0dd132bed..028667ca8e6b 100644
--- a/products/persons/manifest.tsx
+++ b/products/persons/manifest.tsx
@@ -1,7 +1,29 @@
-import { ProductManifest } from '../../frontend/src/types'
+import { ActivityScope, ProductManifest } from '../../frontend/src/types'
export const manifest: ProductManifest = {
name: 'Persons',
+ scenes: {
+ Person: {
+ projectBased: true,
+ name: 'People',
+ import: () => import('./frontend/pages/PersonScene'),
+ activityScope: ActivityScope.PERSON,
+ iconType: 'user',
+ },
+ Persons: {
+ projectBased: true,
+ name: 'Persons',
+ description: 'A catalog of all the people behind your events',
+ import: () => import('./frontend/pages/PersonsScene'),
+ activityScope: ActivityScope.PERSON,
+ iconType: 'persons',
+ },
+ },
+ routes: {
+ '/person/*': ['Person', 'personByDistinctId'],
+ '/persons/*': ['Person', 'personByUUID'],
+ '/persons': ['Persons', 'persons'],
+ },
urls: {
personByDistinctId: (id: string, encode: boolean = true): string =>
encode ? `/person/${encodeURIComponent(id)}` : `/person/${id}`,
diff --git a/products/persons/package.json b/products/persons/package.json
index 8cd3e3032e0e..c1aff58148c8 100644
--- a/products/persons/package.json
+++ b/products/persons/package.json
@@ -1,11 +1,17 @@
{
"name": "@posthog/products-persons",
"dependencies": {
+ "fast-equals": "catalog:",
"kea": "catalog:",
"kea-loaders": "catalog:",
- "kea-router": "catalog:"
+ "kea-router": "catalog:",
+ "posthog-js": "catalog:"
+ },
+ "devDependencies": {
+ "kea-test-utils": "catalog:"
},
"peerDependencies": {
+ "@posthog/brand": "catalog:",
"@posthog/icons": "catalog:",
"@types/react": "*",
"clsx": "*",
diff --git a/products/product_analytics/frontend/insights/retention/RetentionModal.tsx b/products/product_analytics/frontend/insights/retention/RetentionModal.tsx
index eb0d1bf079a0..e0845b4aaad0 100644
--- a/products/product_analytics/frontend/insights/retention/RetentionModal.tsx
+++ b/products/product_analytics/frontend/insights/retention/RetentionModal.tsx
@@ -12,8 +12,6 @@ import { isGroupType } from 'lib/utils/guards'
import { percentage } from 'lib/utils/numbers'
import { capitalizeFirstLetter } from 'lib/utils/strings'
import { insightLogic } from 'scenes/insights/insightLogic'
-import { groupDisplayId } from 'scenes/persons/GroupActorDisplay'
-import { asDisplay, pickBestPersonDistinctId } from 'scenes/persons/person-utils'
import { MissingPersonsAlert } from 'scenes/trends/persons-modal/PersonsModal'
import { SaveCohortModal } from 'scenes/trends/persons-modal/SaveCohortModal'
import { urls } from 'scenes/urls'
@@ -22,6 +20,9 @@ import { MAX_SELECT_RETURNED_ROWS, startDownload } from '~/queries/nodes/DataTab
import { DataTableNode, NodeKind } from '~/queries/schema/schema-general'
import { AccessControlLevel, AccessControlResourceType, ExporterFormat } from '~/types'
+import { groupDisplayId } from 'products/persons/frontend/components/GroupActorDisplay'
+import { asDisplay, pickBestPersonDistinctId } from 'products/persons/frontend/person-utils'
+
import { retentionModalLogic } from './retentionModalLogic'
import { retentionPeopleLogic } from './retentionPeopleLogic'
import { RetentionTableAppearanceType } from './types'
diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerRunTab.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerRunTab.tsx
index b3a69037f363..9d03cd075c72 100644
--- a/products/replay_vision/frontend/replay_scanners/components/ScannerRunTab.tsx
+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerRunTab.tsx
@@ -7,7 +7,6 @@ import { LemonButton, LemonInput, LemonTable, LemonTag, Link, Spinner, Tooltip }
import { TZLabel } from 'lib/components/TZLabel'
import { LemonTableColumns } from 'lib/lemon-ui/LemonTable'
import { humanFriendlyDuration } from 'lib/utils/durations'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { recordingsQueryToUniversalFilters } from 'scenes/session-recordings/filters/recordingsQueryConversions'
import { ReplayFiltersTab } from 'scenes/session-recordings/filters/RecordingsUniversalFiltersEmbed'
import { sessionPlayerModalLogic } from 'scenes/session-recordings/player/modal/sessionPlayerModalLogic'
@@ -20,6 +19,8 @@ import { urls } from 'scenes/urls'
import { SessionRecordingType } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import { ObservationStatusTag } from '../../components/ObservationCard'
import { getReplayVisionEditDisabledReason } from '../../utils/accessControl'
import { recordingScanBlock } from '../../utils/scanEligibility'
diff --git a/products/signals/frontend/inbox/components/detail/ReviewerSearchList.tsx b/products/signals/frontend/inbox/components/detail/ReviewerSearchList.tsx
index 8fc3370b3da2..12420853be75 100644
--- a/products/signals/frontend/inbox/components/detail/ReviewerSearchList.tsx
+++ b/products/signals/frontend/inbox/components/detail/ReviewerSearchList.tsx
@@ -4,7 +4,7 @@ import { useMemo, useState } from 'react'
import { IconCheck } from '@posthog/icons'
import { LemonInput, Spinner } from '@posthog/lemon-ui'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import { captureInboxReportAction, InboxReportActionSurface } from '../../inboxAnalytics'
import { inboxReportDetailLogic } from '../../logics/inboxReportDetailLogic'
diff --git a/products/signals/frontend/inbox/components/detail/SuggestedReviewersSection.tsx b/products/signals/frontend/inbox/components/detail/SuggestedReviewersSection.tsx
index 407379ec2e2d..2e3c72ea356b 100644
--- a/products/signals/frontend/inbox/components/detail/SuggestedReviewersSection.tsx
+++ b/products/signals/frontend/inbox/components/detail/SuggestedReviewersSection.tsx
@@ -5,7 +5,8 @@ import { IconInfo, IconPeople, IconPlus, IconX } from '@posthog/icons'
import { LemonButton, Link, Spinner, Tooltip } from '@posthog/lemon-ui'
import { LemonDropdown } from 'lib/lemon-ui/LemonDropdown'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
+
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import { inboxReportDetailLogic } from '../../logics/inboxReportDetailLogic'
import { EnrichedReviewer, SignalReport } from '../../types'
diff --git a/products/tracing/frontend/components/TraceDrawer/TraceIdentityChips.test.tsx b/products/tracing/frontend/components/TraceDrawer/TraceIdentityChips.test.tsx
index 80dd6413797c..0a7a15bebc6a 100644
--- a/products/tracing/frontend/components/TraceDrawer/TraceIdentityChips.test.tsx
+++ b/products/tracing/frontend/components/TraceDrawer/TraceIdentityChips.test.tsx
@@ -7,7 +7,7 @@ import { TraceIdentityChips } from './TraceIdentityChips'
// The branch under test is which chips render for a resolved identity, not the link internals:
// both targets mount their own data-fetching logics, so they're stubbed at the boundary.
-jest.mock('scenes/persons/PersonDisplay', () => ({
+jest.mock('products/persons/frontend/components/PersonDisplay', () => ({
PersonDisplay: ({ person }: { person: { distinct_id: string } }) => (
<div data-attr="mock-person-display">{person.distinct_id}</div>
),
diff --git a/products/tracing/frontend/components/TraceDrawer/TraceIdentityChips.tsx b/products/tracing/frontend/components/TraceDrawer/TraceIdentityChips.tsx
index d5a31764d953..15c049f1ecdd 100644
--- a/products/tracing/frontend/components/TraceDrawer/TraceIdentityChips.tsx
+++ b/products/tracing/frontend/components/TraceDrawer/TraceIdentityChips.tsx
@@ -4,7 +4,8 @@ import ViewRecordingButton, {
RecordingPlayerType,
ViewRecordingButtonVariant,
} from 'lib/components/ViewRecordingButton/ViewRecordingButton'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
+
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import type { TraceIdentity } from '../../traceIdentity'
diff --git a/products/tracing/frontend/components/VirtualizedSpanList/SpanAttributes.test.tsx b/products/tracing/frontend/components/VirtualizedSpanList/SpanAttributes.test.tsx
index 4f58521f159f..6146b3768cf2 100644
--- a/products/tracing/frontend/components/VirtualizedSpanList/SpanAttributes.test.tsx
+++ b/products/tracing/frontend/components/VirtualizedSpanList/SpanAttributes.test.tsx
@@ -13,7 +13,7 @@ import { SpanAttributes } from './SpanAttributes'
// The branch under test is which component a value renders as, not the link internals:
// both targets mount their own data-fetching logics, so they're stubbed at the boundary.
-jest.mock('scenes/persons/PersonDisplay', () => ({
+jest.mock('products/persons/frontend/components/PersonDisplay', () => ({
PersonDisplay: ({ person }: { person: { distinct_id: string } }) => (
<div data-attr="mock-person-display">{person.distinct_id}</div>
),
diff --git a/products/tracing/frontend/components/VirtualizedSpanList/SpanAttributes.tsx b/products/tracing/frontend/components/VirtualizedSpanList/SpanAttributes.tsx
index 93f6cb046757..5c5f6437cd7f 100644
--- a/products/tracing/frontend/components/VirtualizedSpanList/SpanAttributes.tsx
+++ b/products/tracing/frontend/components/VirtualizedSpanList/SpanAttributes.tsx
@@ -10,13 +10,13 @@ import ViewRecordingButton, {
ViewRecordingButtonVariant,
} from 'lib/components/ViewRecordingButton/ViewRecordingButton'
import { LemonTableColumns } from 'lib/lemon-ui/LemonTable'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { PropertyFilterType, PropertyOperator } from '~/types'
// The key-matching helpers and their convention lists are shared with Logs, because both
// products resolve the same SDK-emitted attribute keys (posthogDistinctId, sessionId, ...).
import { isDistinctIdKey, isSessionIdKey } from 'products/logs/frontend/utils'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
import { tracingCorrelationConfigLogic } from 'products/tracing/frontend/tracingCorrelationConfigLogic'
import { tracingFiltersLogic } from 'products/tracing/frontend/tracingFiltersLogic'
diff --git a/products/user_interviews/frontend/TranscriptChat.tsx b/products/user_interviews/frontend/TranscriptChat.tsx
index 0ac730007817..f6d932b6148e 100644
--- a/products/user_interviews/frontend/TranscriptChat.tsx
+++ b/products/user_interviews/frontend/TranscriptChat.tsx
@@ -4,11 +4,12 @@ import * as robotPng from '@posthog/brand/hoggies/png/robot'
import { pngHoggie } from 'lib/brand/hoggies'
import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'
-import { asDisplay } from 'scenes/persons/person-utils'
-import { PersonIcon } from 'scenes/persons/PersonDisplay'
import { PersonType } from '~/types'
+import { PersonIcon } from 'products/persons/frontend/components/PersonDisplay'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { TranscriptTurn, parseTranscript } from './parseTranscript'
const HedgehogRobot = pngHoggie(robotPng)
diff --git a/products/user_interviews/frontend/UserInterviewResponse.tsx b/products/user_interviews/frontend/UserInterviewResponse.tsx
index 57bb8140c755..f2214cea086d 100644
--- a/products/user_interviews/frontend/UserInterviewResponse.tsx
+++ b/products/user_interviews/frontend/UserInterviewResponse.tsx
@@ -8,7 +8,6 @@ import api from 'lib/api'
import { NotFound } from 'lib/components/NotFound'
import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'
import { Link } from 'lib/lemon-ui/Link'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { SceneExport } from 'scenes/sceneTypes'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -17,6 +16,8 @@ import { SceneContent } from '~/layout/scenes/components/SceneContent'
import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
import { PersonType } from '~/types'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import { userInterviewTopicsRetrieve, userInterviewTopicsIntervieweesList, userInterviewsList } from './generated/api'
import type { UserInterviewTopicApi, IntervieweeContextApi, UserInterviewApi } from './generated/api.schemas'
import { InterviewLinkCopyButton } from './InterviewLinkCopyButton'
diff --git a/products/workflows/frontend/Workflows/hogflows/panel/testing/HogFlowEditorNotificationPanelTest.tsx b/products/workflows/frontend/Workflows/hogflows/panel/testing/HogFlowEditorNotificationPanelTest.tsx
index 17cdd28277bc..6c5c34ceda8e 100644
--- a/products/workflows/frontend/Workflows/hogflows/panel/testing/HogFlowEditorNotificationPanelTest.tsx
+++ b/products/workflows/frontend/Workflows/hogflows/panel/testing/HogFlowEditorNotificationPanelTest.tsx
@@ -21,10 +21,11 @@ import { LemonField } from 'lib/lemon-ui/LemonField'
import { isEmail } from 'lib/utils/url'
import { HogFunctionTestEditor } from 'scenes/hog-functions/configuration/HogFunctionTest'
import { LogsViewerTable } from 'scenes/hog-functions/logs/LogsViewer'
-import { asDisplay } from 'scenes/persons/person-utils'
import { PersonType } from '~/types'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { renderWorkflowLogMessage } from '../../../logs/log-utils'
import { TRIGGER_NODE_ID, workflowLogic } from '../../../workflowLogic'
import { hogFlowEditorLogic } from '../../hogFlowEditorLogic'
diff --git a/products/workflows/frontend/Workflows/hogflows/panel/testing/HogFlowEditorPanelTest.tsx b/products/workflows/frontend/Workflows/hogflows/panel/testing/HogFlowEditorPanelTest.tsx
index 437e8eab2133..96a7ade6003a 100644
--- a/products/workflows/frontend/Workflows/hogflows/panel/testing/HogFlowEditorPanelTest.tsx
+++ b/products/workflows/frontend/Workflows/hogflows/panel/testing/HogFlowEditorPanelTest.tsx
@@ -23,9 +23,10 @@ import { LemonField } from 'lib/lemon-ui/LemonField'
import { Popover } from 'lib/lemon-ui/Popover/Popover'
import { HogFunctionTestEditor } from 'scenes/hog-functions/configuration/HogFunctionTest'
import { LogsViewerTable } from 'scenes/hog-functions/logs/LogsViewer'
-import { asDisplay } from 'scenes/persons/person-utils'
import { urls } from 'scenes/urls'
+import { asDisplay } from 'products/persons/frontend/person-utils'
+
import { renderWorkflowLogMessage } from '../../../logs/log-utils'
import { TRIGGER_NODE_ID, workflowLogic } from '../../../workflowLogic'
import { hogFlowEditorLogic } from '../../hogFlowEditorLogic'
diff --git a/products/workflows/frontend/Workflows/logs/log-utils.tsx b/products/workflows/frontend/Workflows/logs/log-utils.tsx
index d9b9a801afbe..89904da00792 100644
--- a/products/workflows/frontend/Workflows/logs/log-utils.tsx
+++ b/products/workflows/frontend/Workflows/logs/log-utils.tsx
@@ -1,9 +1,10 @@
import { IconTrash } from '@posthog/icons'
import { Link } from '@posthog/lemon-ui'
-import { PersonDisplay } from 'scenes/persons/PersonDisplay'
import { urls } from 'scenes/urls'
+import { PersonDisplay } from 'products/persons/frontend/components/PersonDisplay'
+
import { EmailViewerChip } from '../EmailViewerModal'
import { getHogFlowStep } from '../hogflows/steps/HogFlowSteps'
import { HogFlow } from '../hogflows/types'