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(workflows): remove workflows-onboarding-wizard flag (#114344)

Meikel Ratz5cba778281db
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 29d4b862844f..f95ca93f4aff 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -642,7 +642,6 @@ export const FEATURE_FLAGS = {
WORKFLOWS_INTERNAL_EVENT_FILTERS: 'workflows-internal-event-filters', // owner: @haven #team-workflows
WORKFLOWS_ISP_SENDING_HEALTH: 'workflows-isp-sending-health', // owner: #team-workflows
WORKFLOWS_LINEAR_VIEW: 'workflows-linear-view', // owner: #team-workflows
- WORKFLOWS_ONBOARDING_WIZARD: 'workflows-onboarding-wizard', // owner: #team-workflows, step-by-step setup after the first-run path choice, needs workflows-guided-onboarding
WORKFLOWS_PUSH_NOTIFICATIONS: 'workflows-push-notifications', // owner: #team-workflows
WORKFLOWS_TRIGGER_VOLUME_ESTIMATE: 'workflows-trigger-volume-estimate', // owner: @mayteio #team-workflows
XAA_AUTHENTICATION: 'xaa-authentication', // owner: @reecejones #team-platform-features
diff --git a/products/workflows/frontend/setupGuide/AutomationEmptyState.tsx b/products/workflows/frontend/setupGuide/AutomationEmptyState.tsx
index 1a2f93b15a8c..3098d79c6e86 100644
--- a/products/workflows/frontend/setupGuide/AutomationEmptyState.tsx
+++ b/products/workflows/frontend/setupGuide/AutomationEmptyState.tsx
@@ -1,20 +1,15 @@
-import { useActions, useValues } from 'kea'
+import { useActions } from 'kea'
import posthog from 'posthog-js'
import { IconBolt } from '@posthog/icons'
import { LemonButton } from '@posthog/lemon-ui'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
-
import { onboardingWizardUrl } from './wizard/onboardingWizardSteps'
import { workflowsSetupGuideLogic } from './workflowsSetupGuideLogic'
/** The Automations list tab with no automations: a way back into the guided automation setup. */
export function AutomationEmptyState(): JSX.Element {
- const { featureFlags } = useValues(featureFlagLogic)
const { browseTemplates } = useActions(workflowsSetupGuideLogic)
- const wizardEnabled = !!featureFlags[FEATURE_FLAGS.WORKFLOWS_ONBOARDING_WIZARD]
// pinned: analytics event name - renaming breaks dashboards
const capture = (action: 'guided-setup' | 'browse-templates'): void => {
@@ -33,18 +28,16 @@ export function AutomationEmptyState(): JSX.Element {
</p>
</div>
<div className="flex flex-wrap justify-center gap-2">
- {wizardEnabled && (
- <LemonButton
- type="primary"
- to={onboardingWizardUrl('automation')}
- onClick={() => capture('guided-setup')}
- data-attr="workflows-automation-empty-state-guided-setup"
- >
- Guided setup
- </LemonButton>
- )}
<LemonButton
- type={wizardEnabled ? 'secondary' : 'primary'}
+ type="primary"
+ to={onboardingWizardUrl('automation')}
+ onClick={() => capture('guided-setup')}
+ data-attr="workflows-automation-empty-state-guided-setup"
+ >
+ Guided setup
+ </LemonButton>
+ <LemonButton
+ type="secondary"
onClick={() => {
capture('browse-templates')
browseTemplates('automation')
diff --git a/products/workflows/frontend/setupGuide/AutomationSuggestionBanner.tsx b/products/workflows/frontend/setupGuide/AutomationSuggestionBanner.tsx
index d39798a35750..70767db1cd6a 100644
--- a/products/workflows/frontend/setupGuide/AutomationSuggestionBanner.tsx
+++ b/products/workflows/frontend/setupGuide/AutomationSuggestionBanner.tsx
@@ -2,18 +2,13 @@ import { useActions, useValues } from 'kea'
import { LemonBanner } from '@posthog/lemon-ui'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
-
import { onboardingWizardUrl } from './wizard/onboardingWizardSteps'
import { workflowsSetupGuideLogic } from './workflowsSetupGuideLogic'
/** A one-time suggestion for people who started with messaging, so they learn that workflows also automate work. */
export function AutomationSuggestionBanner(): JSX.Element | null {
const { showAutomationSuggestion } = useValues(workflowsSetupGuideLogic)
- const { dismissAutomationSuggestion, browseTemplates } = useActions(workflowsSetupGuideLogic)
- const { featureFlags } = useValues(featureFlagLogic)
- const wizardEnabled = !!featureFlags[FEATURE_FLAGS.WORKFLOWS_ONBOARDING_WIZARD]
+ const { dismissAutomationSuggestion } = useActions(workflowsSetupGuideLogic)
if (!showAutomationSuggestion) {
return null
@@ -24,19 +19,11 @@ export function AutomationSuggestionBanner(): JSX.Element | null {
type="info"
className="mt-4"
onClose={dismissAutomationSuggestion}
- action={
- wizardEnabled
- ? {
- children: 'Set up an automation',
- to: onboardingWizardUrl('automation'),
- 'data-attr': 'workflows-automation-suggestion',
- }
- : {
- children: 'See automation templates',
- onClick: () => browseTemplates('automation'),
- 'data-attr': 'workflows-automation-suggestion',
- }
- }
+ action={{
+ children: 'Set up an automation',
+ to: onboardingWizardUrl('automation'),
+ 'data-attr': 'workflows-automation-suggestion',
+ }}
>
You can also automate other work, for example a Slack alert when a large company signs up.
</LemonBanner>
diff --git a/products/workflows/frontend/setupGuide/MessagingSetupGuide.tsx b/products/workflows/frontend/setupGuide/MessagingSetupGuide.tsx
index 4b28ed141022..34067562f50d 100644
--- a/products/workflows/frontend/setupGuide/MessagingSetupGuide.tsx
+++ b/products/workflows/frontend/setupGuide/MessagingSetupGuide.tsx
@@ -3,9 +3,7 @@ import { useActions, useValues } from 'kea'
import { IconCheckCircle, IconCircleDashed } from '@posthog/icons'
import { LemonButton } from '@posthog/lemon-ui'
-import { FEATURE_FLAGS } from 'lib/constants'
import { LemonCard } from 'lib/lemon-ui/LemonCard'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import type { MessagingNavTabKey } from '../messagingTabs'
import { SETUP_GUIDE_STEP_LABELS, SETUP_GUIDE_STEP_TABS } from './setupGuideSteps'
@@ -15,7 +13,6 @@ import { workflowsSetupGuideLogic } from './workflowsSetupGuideLogic'
/** The messaging setup checklist. Each step opens the real setup page, so people learn where things live. */
export function MessagingSetupGuide({ linkFor }: { linkFor: (tab: MessagingNavTabKey) => string }): JSX.Element | null {
const { steps, showGuide, completedCount, nextStep } = useValues(workflowsSetupGuideLogic)
- const { featureFlags } = useValues(featureFlagLogic)
const { hideGuide, stepClicked } = useActions(workflowsSetupGuideLogic)
if (!showGuide || !steps) {
@@ -27,16 +24,14 @@ export function MessagingSetupGuide({ linkFor }: { linkFor: (tab: MessagingNavTa
<div className="flex flex-wrap items-center justify-between gap-2">
<h3 className="mb-0 text-base font-semibold">Set up messaging</h3>
<div className="flex flex-wrap items-center gap-2">
- {featureFlags[FEATURE_FLAGS.WORKFLOWS_ONBOARDING_WIZARD] && (
- <LemonButton
- size="small"
- type="primary"
- to={onboardingWizardUrl('messaging')}
- data-attr="messaging-setup-guide-open-wizard"
- >
- Guided setup
- </LemonButton>
- )}
+ <LemonButton
+ size="small"
+ type="primary"
+ to={onboardingWizardUrl('messaging')}
+ data-attr="messaging-setup-guide-open-wizard"
+ >
+ Guided setup
+ </LemonButton>
<span className="text-secondary text-sm">{`${completedCount} of ${steps.length} done`}</span>
<LemonButton
size="small"
diff --git a/products/workflows/frontend/setupGuide/workflowsSetupGuideLogic.ts b/products/workflows/frontend/setupGuide/workflowsSetupGuideLogic.ts
index c75f13e0a1dd..31677d32bb37 100644
--- a/products/workflows/frontend/setupGuide/workflowsSetupGuideLogic.ts
+++ b/products/workflows/frontend/setupGuide/workflowsSetupGuideLogic.ts
@@ -4,14 +4,11 @@ import { router } from 'kea-router'
import { subscriptions } from 'kea-subscriptions'
import posthog from 'posthog-js'
-import { FEATURE_FLAGS } from 'lib/constants'
import { integrationsLogic } from 'lib/integrations/integrationsLogic'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { projectLogic } from 'scenes/projectLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
-import type { FeatureFlagsSet } from '../../../../frontend/src/lib/logic/featureFlagLogic'
import type { IntegrationType } from '../../../../frontend/src/types'
import { newBroadcastAgentLogic } from '../Broadcasts/newBroadcastAgentLogic'
import { hogFlowsList } from '../generated/api'
@@ -37,7 +34,6 @@ const EMPTY_TEAM_STATE: TeamSetupGuideState = { path: null, guideHidden: false,
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface workflowsSetupGuideLogicValues {
- featureFlags: FeatureFlagsSet // featureFlagLogic
integrations: IntegrationType[] | null // integrationsLogic
templates: MessageTemplate[] // messageTemplatesLogic
templatesLoading: boolean // messageTemplatesLogic
@@ -146,8 +142,6 @@ export const workflowsSetupGuideLogic = kea<workflowsSetupGuideLogicType>([
['currentTeamId'],
projectLogic,
['currentProjectId'],
- featureFlagLogic,
- ['featureFlags'],
integrationsLogic,
['integrations'],
optOutCategoriesLogic,
@@ -275,17 +269,11 @@ export const workflowsSetupGuideLogic = kea<workflowsSetupGuideLogicType>([
} else {
router.actions.push(onboardingWizardUrl(path))
}
- } else if (values.featureFlags[FEATURE_FLAGS.WORKFLOWS_ONBOARDING_WIZARD]) {
+ } else if (path === 'messaging' && values.isComplete) {
// A finished messaging setup has nothing left to guide, so it goes straight to the journeys.
- if (path === 'messaging' && values.isComplete) {
- actions.browseTemplates('messaging')
- } else {
- router.actions.push(onboardingWizardUrl(path))
- }
- } else if (path === 'messaging') {
- router.actions.push(urls.workflows('channels'))
+ actions.browseTemplates('messaging')
} else {
- actions.browseTemplates('automation')
+ router.actions.push(onboardingWizardUrl(path))
}
},
hideGuide: () => {