: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
feat(workflows): release the date-based delay step to everyone (#117750)
Daniel Marchukfbbde33c0065
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 7519495e3b94..d74899f8299f 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -8091,9 +8091,9 @@ snapshots:products-workflows-customerioimportmodal--step-4-track-not-configured--light:hash: v1.k794b7964.0954891b73cdc0b1bce1275fa11a5fa4af2055b83b518bce82f3fde886097659.mgEq2W8sZg7x-vt8z2EpwEHPBGRzPI1GWtn-9tu-46oproducts-workflows-editor-configuration-panel--build--dark:- hash: v1.k794b7964.6a3a36479e35b8bbaf372cb2dd57294057c194cfd1bb775cb6768643aea59847.FNZpZtUWTFG5zmQsJSRSUbtrsKygyth8_0FX_XdG8WA+ hash: v1.k794b7964.ba77097ed29985565b93fbc6783a05e1d057fe5a12779705eaa6d744aa77cfb7.dXBhkcHPwydmzF6HM-fUZqF060li4rZDdMxjFRtqwjQproducts-workflows-editor-configuration-panel--build--light:- hash: v1.k794b7964.905239fe74addd7193db04313fae18a0c2f5591ff8d7140338b1bad229d7db8e.2Vd6rHRkdUNu8CsIO-BLe6rqrkuwPRGWIexIma9HyE0+ hash: v1.k794b7964.68f9e8d6025533cc2b82375fa065822c639c4174d0112a13de8b8fcdf0a673f0.VgfO6Zb4jIczGth1k5UuTFh_X65d8wT8wYkuM886TqEproducts-workflows-editor-configuration-panel--build-palette--dark:hash: v1.k794b7964.3068ced5ff38e16c729b66f333023f90f8a5b14f9ad13c6b877f3080f1730736.AtL5g22RJZPiX90k6O3D-0da2DtdPLMg-NQNKJ4Ficwproducts-workflows-editor-configuration-panel--build-palette--light:diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 4c0fc9585a51..11226c16c830 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -646,7 +646,6 @@ export const FEATURE_FLAGS = {WORKFLOWS_BROADCAST_RECIPIENT_LISTS: 'workflows-broadcast-recipient-lists', // owner: @mayteio #team-workflowsWORKFLOWS_COHORT_CONDITIONS: 'workflows-cohort-conditions', // owner: @meikelmosby #team-workflowsWORKFLOWS_DATA_SUGGESTIONS: 'workflows-data-suggestions', // owner: #team-workflows, suggests workflows built from the project's events on the empty state- WORKFLOWS_DELAY_UNTIL_DATE: 'workflows-delay-until-date', // owner: @dmarchuk #team-workflowsWORKFLOWS_EMAIL_MEDIA_LIBRARY: 'workflows-email-media-library', // owner: @mayteio #team-workflows, backs the email editor's Uploads tab with the media libraryWORKFLOWS_EMAIL_SENDER_ROTATION: 'workflows-email-sender-rotation', // owner: @arthurdedeus #team-workflowsWORKFLOWS_INTERNAL_EVENT_FILTERS: 'workflows-internal-event-filters', // owner: @haven #team-workflowsdiff --git a/products/workflows/frontend/Workflows/hogflows/steps/StepDelay.stories.tsx b/products/workflows/frontend/Workflows/hogflows/steps/StepDelay.stories.tsxindex 80a3459ab5ba..974da100498f 100644--- a/products/workflows/frontend/Workflows/hogflows/steps/StepDelay.stories.tsx+++ b/products/workflows/frontend/Workflows/hogflows/steps/StepDelay.stories.tsx@@ -3,8 +3,6 @@ import { Node } from '@xyflow/react'import { BindLogic, useActions } from 'kea'import { useEffect } from 'react'-import { FEATURE_FLAGS } from 'lib/constants'-import { WorkflowLogicProps, workflowLogic } from '../../workflowLogic'import { hogFlowEditorLogic } from '../hogFlowEditorLogic'import { HogFlowAction } from '../types'@@ -17,10 +15,6 @@ const LOGIC_PROPS: WorkflowLogicProps = { id: 'new' }const meta: Meta<typeof StepDelayConfiguration> = {title: 'Products/Workflows/Steps/Delay',component: StepDelayConfiguration,- parameters: {- // The stories show the panel an author sees once the date mode is rolled out- featureFlags: [FEATURE_FLAGS.WORKFLOWS_DELAY_UNTIL_DATE],- },}export default metadiff --git a/products/workflows/frontend/Workflows/hogflows/steps/StepDelay.tsx b/products/workflows/frontend/Workflows/hogflows/steps/StepDelay.tsxindex b5f3e73110e1..6e87f803456a 100644--- a/products/workflows/frontend/Workflows/hogflows/steps/StepDelay.tsx+++ b/products/workflows/frontend/Workflows/hogflows/steps/StepDelay.tsx@@ -5,9 +5,7 @@ import { LemonInputSelect, LemonSelect, LemonSwitch } from '@posthog/lemon-ui'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'import { TaxonomicStringPopover } from 'lib/components/TaxonomicPopover/TaxonomicPopover'-import { FEATURE_FLAGS } from 'lib/constants'import { LemonField } from 'lib/lemon-ui/LemonField'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { timeZoneLabel } from 'lib/utils/timezones'import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'@@ -37,14 +35,9 @@ export function StepDelayConfiguration({const config = action.configconst { logicProps } = useValues(workflowLogic)- const { featureFlags } = useValues(featureFlagLogic)const { setDelayWorkflowActionConfig, setDelayMode, setDelayProperty, setDelayOffset, setDelayTimezone } =useActions(stepDelayLogic({ workflowLogicProps: logicProps }))- // A step already configured for a date keeps its controls even without the flag, so the panel- // can't quietly turn a date wait into a fixed duration.- const dateModeAvailable = !!featureFlags[FEATURE_FLAGS.WORKFLOWS_DELAY_UNTIL_DATE] || !!config.delay_until-const mode = getDelayMode(config)const expression = config.delay_until?.expression ?? ''const property = parseDelayExpression(expression)@@ -53,20 +46,6 @@ export function StepDelayConfiguration({const customExpression = expression.trim() && !property ? expression : nullconst maxDelayText = getDurationText(config.max_delay_duration ?? '') ?? getDurationText(DEFAULT_MAX_DELAY_DURATION)- if (!dateModeAvailable) {- return (- <>- <StepSchemaErrors />-- <p className="mb-0">Wait for a specified duration.</p>- <HogFlowDuration- value={config.delay_duration ?? ''}- onChange={(value) => setDelayWorkflowActionConfig(action.id, { delay_duration: value })}- />- </>- )- }-return (<><StepSchemaErrors />