: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): hide generic schedule trigger from selector (#60938)
Daniel Marchuk02b3560c5f7b
diff --git a/products/workflows/frontend/Workflows/hogflows/steps/StepTrigger.tsx b/products/workflows/frontend/Workflows/hogflows/steps/StepTrigger.tsxindex ff6fac78cb57..bff2e996306d 100644--- a/products/workflows/frontend/Workflows/hogflows/steps/StepTrigger.tsx+++ b/products/workflows/frontend/Workflows/hogflows/steps/StepTrigger.tsx@@ -239,12 +239,19 @@ export function StepTriggerConfiguration({ node }: { node: Node<TriggerAction> }},]: []),- {- label: 'Schedule',- description: 'Run your workflow on a schedule',- value: 'schedule',- icon: <IconClock />,- },+ // The generic "schedule" trigger is hidden from new workflows. It's only offered when the+ // current trigger is already a schedule, so existing workflows still render and can be+ // switched to a different trigger type without crashing.+ ...(type === 'schedule'+ ? [+ {+ label: 'Schedule',+ description: 'Run your workflow on a schedule',+ value: 'schedule',+ icon: <IconClock />,+ },+ ]+ : []),{label: 'Tracking pixel',description: 'Trigger your workflow using a 1x1 tracking pixel',