: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(growth): drop unreachable product setup modal state (#115617)
Rafael Audibert228851c9be4e
diff --git a/frontend/src/lib/components/ProductSetup/productSetupLogic.ts b/frontend/src/lib/components/ProductSetup/productSetupLogic.tsindex 2d5208e0f551..61e48eb7d692 100644--- a/frontend/src/lib/components/ProductSetup/productSetupLogic.ts+++ b/frontend/src/lib/components/ProductSetup/productSetupLogic.ts@@ -39,7 +39,6 @@ export interface productSetupLogicValues {completionPercent: numberfirstAvailableTask: SetupTaskWithState | nullisDismissed: boolean- isModalOpen: booleanisSetupComplete: booleanproductConfig: ProductSetupConfig | nullremainingCount: number@@ -84,19 +83,12 @@ export interface productSetupLogicActions {showInviteModal: () => {value: true} // inviteLogic- loadHasReverseProxy: () => any // reverseProxyCheckerLogic- closeSetupModal: () => {- value: true- }dismissSetup: () => {value: true}loadCompletionData: () => {value: true}- openSetupModal: () => {- value: true- }runTask: (taskId: SetupTaskId) => {taskId: AvailableSetupTaskIdsEnumApi}@@ -157,7 +149,7 @@ export type productSetupLogicType = MakeLogicType<* This logic is keyed by productKey and handles:* 1. Reading task state (selectors derive from team.onboarding_tasks)* 2. Running task actions (navigation, opening modals, etc.)- * 3. Product-specific UI state (isDismissed, isModalOpen)+ * 3. Product-specific UI state (isDismissed)* 4. Product-specific loaders (customEventsCount, hasSentAIEvent)** Task completion is handled by globalSetupLogic - this logic just reads and displays state.@@ -182,8 +174,6 @@ export const productSetupLogic = kea<productSetupLogicType>([actions: [inviteLogic,['showInviteModal'],- reverseProxyCheckerLogic,- ['loadHasReverseProxy'],globalSetupLogic,['openGlobalSetup',@@ -203,8 +193,6 @@ export const productSetupLogic = kea<productSetupLogicType>([// UI actionssetExpandedTaskId: (taskId: SetupTaskId | null) => ({ taskId }),- openSetupModal: true,- closeSetupModal: true,dismissSetup: true,undismissSetup: true,setShowCelebration: (show: boolean) => ({ show }),@@ -213,13 +201,6 @@ export const productSetupLogic = kea<productSetupLogicType>([loadCompletionData: true,}),reducers(({ props }) => ({- isModalOpen: [- false,- {- openSetupModal: () => true,- closeSetupModal: () => false,- },- ],isDismissed: [false,{ persist: true, prefix: `${DISMISSED_STORAGE_KEY}_${props.productKey}` },@@ -422,14 +403,5 @@ export const productSetupLogic = kea<productSetupLogicType>([total_count: values.totalTasks,})},- openSetupModal: () => {- // Attempt to capture whether reverse proxy is enabled- actions.loadHasReverseProxy()-- posthog.capture('product setup modal opened', {- product: props.productKey,- remaining_tasks: values.remainingCount,- })- },})),])