: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
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.tsxindex 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-analyticsCUSTOMER_ANALYTICS_TRACK_RULES: 'customer-analytics-track-rules', // owner: @arthurdedeus #team-customer-analytics- CUSTOMER_PROFILE_CONFIG_BUTTON: 'customer-profile-config-button', // owner: @arthurdedeus #team-customer-analyticsDASHBOARD_AUTO_PREVIEW_LIMIT: 'dashboard-auto-preview-limit', // owner: @pauldambra #team-product-analyticsDASHBOARD_CUSTOMIZATION: 'dashboard-customization', // owner: @MattPua #team-analytics-platformDASHBOARD_EXPORT_NUDGE: 'dashboard-export-nudge', // owner: #team-analytics-platform multivariate=control,test, nudges people who just exported a dashboard toward a recurring subscriptiondiff --git a/products/customer_analytics/frontend/components/CustomerProfileMenu.tsx b/products/customer_analytics/frontend/components/CustomerProfileMenu.tsxindex 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.tsindex 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: booleancontent: JSONContent[]defaultContent: JSONContent[]- isProfileConfigEnabled: boolean | string | undefinedprofileLocalContent: JSONContent[] | nullscopedAddAttrFunction: ({ attrs, node, children }: AddAttrsToNodeProps) => JSONContentscopedSidebarContent: JSONContent[]@@ -233,7 +232,6 @@ export interface customerProfileLogicMeta {storedContent: JSONContent[] | null,defaultContent: JSONContent[]) => boolean- isProfileConfigEnabled: (featureFlags: FeatureFlagsSet) => boolean | string | undefinedscopedSidebarContent: (arg: any) => JSONContent[]scopedAddAttrFunction: (arg: any) => ({ attrs, node, children }: AddAttrsToNodeProps) => JSONContentdefaultContent: (@@ -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},