: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(data-warehouse): redirect to new source after onboarding wizard (#64566)
Tom Owers06b88f94997b
diff --git a/products/data_warehouse/frontend/scenes/NewSourceScene/sourceWizardLogic.tsx b/products/data_warehouse/frontend/scenes/NewSourceScene/sourceWizardLogic.tsxindex b89d1be05423..95de772dec50 100644--- a/products/data_warehouse/frontend/scenes/NewSourceScene/sourceWizardLogic.tsx+++ b/products/data_warehouse/frontend/scenes/NewSourceScene/sourceWizardLogic.tsx@@ -825,6 +825,7 @@ export const sourceWizardLogic = kea<sourceWizardLogicType>([s.hasWebhookSchemas,(_, props) => props.onComplete,s.returnConfig,+ s.sourceId,],(currentStep,@@ -832,7 +833,8 @@ export const sourceWizardLogic = kea<sourceWizardLogicType>([isDirectQueryMode,hasWebhookSchemas,onComplete,- returnConfig+ returnConfig,+ sourceId): string => {if (currentStep === 3 && isManualLinkingSelected) {return 'Link'@@ -861,6 +863,9 @@ export const sourceWizardLogic = kea<sourceWizardLogicType>([if (returnConfig) {return `Return to ${returnConfig.returnLabel}`}+ if (sourceId) {+ return 'Go to source'+ }return 'Return to sources'}@@ -1255,8 +1260,11 @@ export const sourceWizardLogic = kea<sourceWizardLogicType>([},closeWizard: () => {const returnUrl = values.returnConfig?.returnUrl+ const sourceUrl = values.sourceId ? urls.dataWarehouseSource(values.sourceId, 'schemas') : undefinedactions.cancelWizard()- router.actions.push(returnUrl ?? urls.sources())+ // Prefer an explicit caller-provided return URL, then drop the user on the+ // source they just created, falling back to the sources list.+ router.actions.push(returnUrl ?? sourceUrl ?? urls.sources())},cancelWizard: () => {actions.onClear()