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.

fix(data-warehouse): correct webhook step copy to not contradict the wizard's own gating (#89456)

Tom Owersbb9b07e67177
diff --git a/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene.tsx b/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene.tsx
index 8a184bb20b27..dc65158058f7 100644
--- a/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene.tsx
+++ b/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene.tsx
@@ -658,6 +658,7 @@ function WebhookSetupStep({
onCreateWebhook={createWebhook}
formLogic={sourceWizardLogicProps ? sourceWizardLogic(sourceWizardLogicProps) : sourceWizardLogic}
formKey="webhookFieldInputs"
+ isWizardStep
/>
)
}
diff --git a/products/data_warehouse/frontend/shared/components/forms/WebhookSetupForm.tsx b/products/data_warehouse/frontend/shared/components/forms/WebhookSetupForm.tsx
index d53de5800db3..43601a176449 100644
--- a/products/data_warehouse/frontend/shared/components/forms/WebhookSetupForm.tsx
+++ b/products/data_warehouse/frontend/shared/components/forms/WebhookSetupForm.tsx
@@ -44,6 +44,13 @@ interface WebhookSetupFormProps {
/** kea-forms logic and formKey for the manual webhook field inputs form */
formLogic?: LogicWrapper | BuiltLogic<any>
formKey?: string
+ /**
+ * Set from the new-source wizard only. The wizard's own Next button stays disabled on this step
+ * until the webhook is set up (tables using webhook sync won't receive data otherwise), so this
+ * shows a hint that leaving the wizard is fine and the webhook can be finished later from the
+ * source's settings — without claiming the in-wizard Next action itself skips the step.
+ */
+ isWizardStep?: boolean
}
/**
@@ -61,6 +68,7 @@ export function WebhookSetupForm({
onCreateWebhook,
formLogic,
formKey,
+ isWizardStep = false,
}: WebhookSetupFormProps): JSX.Element {
const webhookFields = sourceConfig?.webhookFields ?? []
// A blocked connection is manual-only in practice, so it takes the same path as a source that
@@ -114,10 +122,13 @@ export function WebhookSetupForm({
<LemonButton type="primary" onClick={onCreateWebhook}>
{manualOnly ? 'Generate webhook URL' : 'Create webhook'}
</LemonButton>
- <p className="text-sm text-muted mb-0">
- This step is optional. Your source is already connected, so you can continue without a webhook and
- set one up later in the source settings.
- </p>
+ {isWizardStep && (
+ <p className="text-sm text-muted mb-0">
+ Your source is already connected. If you'd rather not finish this now, you can leave the wizard
+ and set up the webhook later from the source's settings — tables using webhook sync just won't
+ receive data until then.
+ </p>
+ )}
</WebhookSetupCard>
)
}