: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(workflows): remove workflows-guided-onboarding flag (#114342)
Meikel Ratz60515ada5ca6
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 460f8aee17cb..8e68216e2a0e 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -2433,9 +2433,9 @@ snapshots:components-product-empty-state--web-vitals-waiting-for-data--light:hash: v1.k794b7964.68143ec0b4e11838e50d77e1153ace37ea97095a2744c7bb21056fc823ec8c61.k3H3_be9rW05TYUGjusSxRuP3-Hb0skCExHyumjxet0components-product-empty-state--workflows-needs-setup--dark:- hash: v1.k794b7964.5715b2b6618e07bbfb8f79e9d5693ab827f784a258ee467db80efc020864e878.89v_z0AYjKYJJsLJOg_DNCSfkBAb_b8D7luHlZem-b0+ hash: v1.k794b7964.d8329786e1fc56b0655b07f2f37d494b9a078f28a014972f394d031a01f32def.5F0XKwQ0YoQVh-iZOyO-498LFhBV0R2m5tnr0a04Osscomponents-product-empty-state--workflows-needs-setup--light:- hash: v1.k794b7964.7224c6486a41259cae1f14e8c4681a4c724cfa55732bb73a8790e69e5ce0ff3b.FAgjbudwnM6xpKppdCytepsCZSZPI5FudRun6qm6Re8+ hash: v1.k794b7964.c5bc6f5eed393fbe9f27ffd5dd91d320a1fc48639ec4b803a66ba90551e50bc5.lv-YGHgfoFbrQMHofczh-_Bt7zq4-3JDvshYCFihvKocomponents-productpushwelcomemodal--dashboards--dark:hash: v1.k794b7964.093e430930815868657ad56de557f36d9d8c86f9f5739e8c6f0300f81e680c0b.4S-pxcGMqO00c_k9y4xYz4PSJda1F0i8LMrriMPrKIocomponents-productpushwelcomemodal--dashboards--light:diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 30e6ce9c66d9..caf5e61217eb 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -639,7 +639,6 @@ export const FEATURE_FLAGS = {WORKFLOWS_AI_FIRST_NEW: 'workflows-ai-first-new', // owner: @mayteio #team-workflowsWORKFLOWS_DELAY_UNTIL_DATE: 'workflows-delay-until-date', // owner: @dmarchuk #team-workflowsWORKFLOWS_EMAIL_SENDER_ROTATION: 'workflows-email-sender-rotation', // owner: @arthurdedeus #team-workflows- WORKFLOWS_GUIDED_ONBOARDING: 'workflows-guided-onboarding', // owner: #team-workflows, first-run path choice and the messaging setup guideWORKFLOWS_INTERNAL_EVENT_FILTERS: 'workflows-internal-event-filters', // owner: @haven #team-workflowsWORKFLOWS_ISP_SENDING_HEALTH: 'workflows-isp-sending-health', // owner: #team-workflowsWORKFLOWS_LINEAR_VIEW: 'workflows-linear-view', // owner: #team-workflowsdiff --git a/products/workflows/frontend/MessagingSetup.tsx b/products/workflows/frontend/MessagingSetup.tsxindex 75da34635181..fa3444e1f049 100644--- a/products/workflows/frontend/MessagingSetup.tsx+++ b/products/workflows/frontend/MessagingSetup.tsx@@ -1,10 +1,5 @@-import { useValues } from 'kea'-import { LemonButton } from '@posthog/lemon-ui'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import {MESSAGING_SETUP_TAB_KEYS,MESSAGING_TAB_CONTENT,@@ -22,12 +17,9 @@ export interface MessagingSetupProps {/** The sending setup tabs behind one "Messaging" tab, with a side menu that keeps each tab's own URL. */export function MessagingSetup({ tab, linkFor }: MessagingSetupProps): JSX.Element {- const { featureFlags } = useValues(featureFlagLogic)- const guidedOnboardingEnabled = !!featureFlags[FEATURE_FLAGS.WORKFLOWS_GUIDED_ONBOARDING]-return (<>- {guidedOnboardingEnabled && <MessagingSetupGuide linkFor={linkFor} />}+ <MessagingSetupGuide linkFor={linkFor} /><div className="flex flex-col gap-4 @min-[48rem]/main-content:flex-row"><navclassName="flex flex-row flex-wrap gap-1 shrink-0 @min-[48rem]/main-content:flex-col @min-[48rem]/main-content:w-52"@@ -39,7 +31,7 @@ export function MessagingSetup({ tab, linkFor }: MessagingSetupProps): JSX.Elemesize="small"to={linkFor(key)}active={key === tab}- sideIcon={guidedOnboardingEnabled ? <MessagingSetupMenuStatus tab={key} /> : undefined}+ sideIcon={<MessagingSetupMenuStatus tab={key} />}data-attr={`messaging-setup-menu-${key}`}>{MESSAGING_TAB_LABELS[key]}diff --git a/products/workflows/frontend/Workflows/WorkflowsTable.tsx b/products/workflows/frontend/Workflows/WorkflowsTable.tsxindex 061d8a0868e8..8402a82ca81a 100644--- a/products/workflows/frontend/Workflows/WorkflowsTable.tsx+++ b/products/workflows/frontend/Workflows/WorkflowsTable.tsx@@ -118,7 +118,6 @@ function WorkflowActionsSummary({ workflow }: { workflow: HogFlow }): JSX.Elemenexport function WorkflowsTable(): JSX.Element {const { featureFlags } = useValues(featureFlagLogic)const selfOptimisingEnabled = !!featureFlags[FEATURE_FLAGS.SELF_OPTIMISING_WORKFLOWS]- const guidedOnboardingEnabled = !!featureFlags[FEATURE_FLAGS.WORKFLOWS_GUIDED_ONBOARDING]const logic = workflowsLogic()const {workflowsLoading,@@ -131,7 +130,6 @@ export function WorkflowsTable(): JSX.Element {} = useValues(logic)// Only an unfiltered Automations tab is truly empty. With a search or filter, the plain message fits.const showAutomationEmptyState =- guidedOnboardingEnabled &&filters.type === 'automation' &&!filters.search &&filters.createdBy === null &&@@ -403,7 +401,7 @@ export function WorkflowsTable(): JSX.Element {return (<div className="workflows-section" data-attr="workflows-table" data-loading={workflowsLoading}><>- {guidedOnboardingEnabled && <MessagingSetupReminderBanner />}+ <MessagingSetupReminderBanner /><div className="mb-3"><LemonSegmentedButton<WorkflowTypeFilter>size="small"@@ -485,7 +483,7 @@ export function WorkflowsTable(): JSX.Element {nouns={['workflow', 'workflows']}emptyState={showAutomationEmptyState ? <AutomationEmptyState /> : 'No workflows matching filters'}/>- {guidedOnboardingEnabled && <AutomationSuggestionBanner />}+ <AutomationSuggestionBanner /></></div>)diff --git a/products/workflows/frontend/WorkflowsScene.tsx b/products/workflows/frontend/WorkflowsScene.tsxindex 4b386ef129cb..a7af4b7b9e0b 100644--- a/products/workflows/frontend/WorkflowsScene.tsx+++ b/products/workflows/frontend/WorkflowsScene.tsx@@ -4,9 +4,7 @@ import { router, urlToAction } from 'kea-router'import { LemonButton } from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'-import { FEATURE_FLAGS } from 'lib/constants'import { LemonTabs } from 'lib/lemon-ui/LemonTabs'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { trackedActionToUrl } from 'lib/logic/scenes/trackedActionToUrl'import { removeProjectIdIfPresent } from 'lib/utils/kea-router'import { addProductIntent } from 'lib/utils/product-intents'@@ -175,8 +173,6 @@ function topTabFor(tab: WorkflowsSceneTab): WorkflowsTopTab {export function WorkflowsScene(props: WorkflowsSceneProps = {}): JSX.Element {const { currentTab } = useValues(workflowsSceneLogic(props))- const { featureFlags } = useValues(featureFlagLogic)- const guidedOnboardingEnabled = !!featureFlags[FEATURE_FLAGS.WORKFLOWS_GUIDED_ONBOARDING]const { startNewWorkflow } = useActions(newWorkflowLogic)const { setTypeFilter } = useActions(workflowTemplatesLogic)const { filters } = useValues(workflowsLogic)@@ -251,7 +247,7 @@ export function WorkflowsScene(props: WorkflowsSceneProps = {}): JSX.Element {content: <WorkflowsTemplates tab={currentTab === 'templates' ? 'templates' : 'library'} />,},{- label: guidedOnboardingEnabled ? <MessagingSetupTabLabel /> : 'Messaging',+ label: <MessagingSetupTabLabel />,key: 'messaging-setup',link: urls.workflows('channels'),content: (diff --git a/products/workflows/frontend/emptyState/workflowsEmptyState.tsx b/products/workflows/frontend/emptyState/workflowsEmptyState.tsxindex 1725b5a05b65..e9ac6ffe87e7 100644--- a/products/workflows/frontend/emptyState/workflowsEmptyState.tsx+++ b/products/workflows/frontend/emptyState/workflowsEmptyState.tsx@@ -3,13 +3,11 @@ import { IconDecisionTree } from '@posthog/icons'import { pngHoggie } from 'lib/brand/hoggies'import type { SceneProductEmptyState } from 'lib/components/ProductEmptyState/types'-import { FEATURE_FLAGS } from 'lib/constants'import { Scene } from 'scenes/sceneTypes'import { ProductKey } from '~/queries/schema/schema-general'import { WorkflowsPathChoice } from '../setupGuide/WorkflowsPathChoice'-import { urlForNewWorkflowComposer } from '../Workflows/newWorkflowLogic'import { WorkflowsPreview } from './WorkflowsPreview'import { workflowsSetupLogic } from './workflowsSetupLogic'@@ -30,28 +28,13 @@ export const workflowsEmptyState: SceneProductEmptyState = {hedgehog: HedgehogWorkflows,text: {'needs-setup': {- headline: 'Message users when it matters',- lead: 'Build journeys on a canvas: trigger on any event or cohort, wait, branch on behavior, and send email, SMS, or push. Connect a channel and design your first message along the way.',+ headline: 'What do you want to build first?',+ lead: 'Message your users with email, SMS and push, send a one-off broadcast, or automate work with Slack alerts, webhooks and AI tasks. You can do all of them later. This choice only picks where we start.',},},- primaryAction: {- label: 'New workflow',- // The same "start from nothing" intent as the list page's button, so it reaches the same surface.- to: urlForNewWorkflowComposer(),- },+ PrimaryAction: WorkflowsPathChoice,docsUrl: 'https://posthog.com/docs/workflows',previewLabel: 'Your journeys, once running',Preview: WorkflowsPreview,- featureFlagOverrides: {- [FEATURE_FLAGS.WORKFLOWS_GUIDED_ONBOARDING]: {- text: {- 'needs-setup': {- headline: 'What do you want to build first?',- lead: 'Message your users with email, SMS and push, send a one-off broadcast, or automate work with Slack alerts, webhooks and AI tasks. You can do all of them later. This choice only picks where we start.',- },- },- PrimaryAction: WorkflowsPathChoice,- },- },},}