: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(persons): show the person in the /persons/<uuid> breadcrumb (#112277)
Adam Leith4fe72a8ba396
diff --git a/products/persons/frontend/logics/personsLogic.tsx b/products/persons/frontend/logics/personsLogic.tsxindex 4e7589866b5c..3b94a40d8f2a 100644--- a/products/persons/frontend/logics/personsLogic.tsx+++ b/products/persons/frontend/logics/personsLogic.tsx@@ -323,7 +323,8 @@ export interface personsLogicMeta {hash: stringpathname: stringsearch: string- }+ },+ featureFlags: FeatureFlagsSet) => Breadcrumb[]sidePanelContext: (person: PersonType | null) => SidePanelSceneContextexporterProps: (listFilters: PersonListParams, arg: any) => TriggerExportProps[]@@ -613,16 +614,19 @@ export const personsLogic = kea<personsLogicType>([(feedEnabled: boolean) => (feedEnabled ? PersonsTabType.PROFILE : PersonsTabType.PROPERTIES),],breadcrumbs: [- (s) => [s.person, router.selectors.location],+ (s) => [s.person, router.selectors.location, s.featureFlags],(person: PersonType | null,location: {hash: stringpathname: stringsearch: string- }+ },+ featureFlags: FeatureFlagsSet): Breadcrumb[] => {- const showPerson = person && location.pathname.match(/\/person\/.+/)+ // The Today rail names recent persons from this crumb, and opens them by UUID under `/persons/`.+ const personPath = featureFlags[FEATURE_FLAGS.TODAY_RAIL_NAV] ? /\/persons?\/.+/ : /\/person\/.+/+ const showPerson = person && location.pathname.match(personPath)const breadcrumbs: Breadcrumb[] = [{key: Scene.Persons,