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(customer-analytics): remove the customer profile config flag (#95548)

posthog[bot]963540f869b3
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index b6f92948759f..178fdca0dcdc 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -284,7 +284,6 @@ export const FEATURE_FLAGS = {
CUSTOMER_ANALYTICS_FEATURE_REQUESTS: 'customer-analytics-feature-requests',
CUSTOMER_ANALYTICS_JOURNEYS: 'customer-analytics-journeys', // owner: @arthurdedeus #team-customer-analytics
CUSTOMER_ANALYTICS_TRACK_RULES: 'customer-analytics-track-rules', // owner: @arthurdedeus #team-customer-analytics
- CUSTOMER_PROFILE_CONFIG_BUTTON: 'customer-profile-config-button', // owner: @arthurdedeus #team-customer-analytics
DASHBOARD_AUTO_PREVIEW_LIMIT: 'dashboard-auto-preview-limit', // owner: @pauldambra #team-product-analytics
DASHBOARD_CUSTOMIZATION: 'dashboard-customization', // owner: @MattPua #team-analytics-platform
DASHBOARD_EXPORT_NUDGE: 'dashboard-export-nudge', // owner: #team-analytics-platform multivariate=control,test, nudges people who just exported a dashboard toward a recurring subscription
diff --git a/products/customer_analytics/frontend/components/CustomerProfileMenu.tsx b/products/customer_analytics/frontend/components/CustomerProfileMenu.tsx
index 65cdfbda8f51..73a4c56199dd 100644
--- a/products/customer_analytics/frontend/components/CustomerProfileMenu.tsx
+++ b/products/customer_analytics/frontend/components/CustomerProfileMenu.tsx
@@ -5,8 +5,8 @@ import { LemonButton, LemonMenu, LemonMenuSection, LemonSwitch } from '@posthog/
import { customerProfileLogic } from '../customerProfileLogic'
-export function CustomerProfileMenu(): JSX.Element | null {
- const { changed, isProfileConfigEnabled, defaultContent, content } = useValues(customerProfileLogic)
+export function CustomerProfileMenu(): JSX.Element {
+ const { changed, defaultContent, content } = useValues(customerProfileLogic)
const { removeNode, addNode, resetToDefaults, saveChanges } = useActions(customerProfileLogic)
const handleChange = (nodeType: string | undefined, checked: boolean): void => {
@@ -33,10 +33,6 @@ export function CustomerProfileMenu(): JSX.Element | null {
},
]
- if (!isProfileConfigEnabled) {
- return null
- }
-
return (
<div className="flex flex-row items-center">
<LemonMenu items={items} closeOnClickInside={false}>
diff --git a/products/customer_analytics/frontend/customerProfileLogic.ts b/products/customer_analytics/frontend/customerProfileLogic.ts
index 653528742bd7..8d87e2beeba4 100644
--- a/products/customer_analytics/frontend/customerProfileLogic.ts
+++ b/products/customer_analytics/frontend/customerProfileLogic.ts
@@ -113,7 +113,6 @@ export interface customerProfileLogicValues {
changed: boolean
content: JSONContent[]
defaultContent: JSONContent[]
- isProfileConfigEnabled: boolean | string | undefined
profileLocalContent: JSONContent[] | null
scopedAddAttrFunction: ({ attrs, node, children }: AddAttrsToNodeProps) => JSONContent
scopedSidebarContent: JSONContent[]
@@ -233,7 +232,6 @@ export interface customerProfileLogicMeta {
storedContent: JSONContent[] | null,
defaultContent: JSONContent[]
) => boolean
- isProfileConfigEnabled: (featureFlags: FeatureFlagsSet) => boolean | string | undefined
scopedSidebarContent: (arg: any) => JSONContent[]
scopedAddAttrFunction: (arg: any) => ({ attrs, node, children }: AddAttrsToNodeProps) => JSONContent
defaultContent: (
@@ -258,8 +256,7 @@ export interface customerProfileLogicMeta {
content: (
defaultContent: JSONContent[],
storedContent: JSONContent[] | null,
- profileLocalContent: JSONContent[] | null,
- isProfileConfigEnabled: boolean | string | undefined
+ profileLocalContent: JSONContent[] | null
) => JSONContent[]
}
}
@@ -344,11 +341,6 @@ export const customerProfileLogic = kea<customerProfileLogicType>([
return hasChanged
},
],
- isProfileConfigEnabled: [
- (s) => [s.featureFlags],
- (featureFlags: import('lib/logic/featureFlagLogic').FeatureFlagsSet) =>
- featureFlags[FEATURE_FLAGS.CUSTOMER_PROFILE_CONFIG_BUTTON],
- ],
scopedSidebarContent: [
() => [(_, props) => props.scope],
(scope) =>
@@ -447,21 +439,17 @@ export const customerProfileLogic = kea<customerProfileLogicType>([
},
],
content: [
- (s) => [s.defaultContent, s.storedContent, s.profileLocalContent, s.isProfileConfigEnabled],
+ (s) => [s.defaultContent, s.storedContent, s.profileLocalContent],
(
defaultContent: JSONContent[],
storedContent: JSONContent[] | null,
- profileLocalContent: JSONContent[] | null,
- isProfileConfigEnabled: boolean | string | undefined
+ profileLocalContent: JSONContent[] | null
): JSONContent[] => {
- // Return default content if flag is disabled
- if (isProfileConfigEnabled) {
- if (profileLocalContent !== null) {
- return profileLocalContent
- }
- if (storedContent !== null) {
- return storedContent
- }
+ if (profileLocalContent !== null) {
+ return profileLocalContent
+ }
+ if (storedContent !== null) {
+ return storedContent
}
return defaultContent
},