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.

chore(onboarding): remove ended data warehouse value prop variants (#115682)

Rafael Audibertef7f08044f1f
diff --git a/.agents/skills/implementing-warehouse-sources/SKILL.md b/.agents/skills/implementing-warehouse-sources/SKILL.md
index 662884fb200d..ab8addc9c1d5 100644
--- a/.agents/skills/implementing-warehouse-sources/SKILL.md
+++ b/.agents/skills/implementing-warehouse-sources/SKILL.md
@@ -115,7 +115,7 @@ Follow this order. Each step maps to TODOs in `source.template`.
10. **Add icon.** Place at `frontend/public/services/{source}.png` — **PNG is the repo convention** (~800 png vs ~58 svg, and `source.template` defaults to `.png`). SVG is accepted but not the norm; set `iconPath` to match whichever extension you commit. If the logo isn't already committed, fetch from [Logo.dev](https://docs.logo.dev/introduction) — **ask the user for the Logo.dev API key**; do not hardcode one. Logo.dev's image API returns PNG (not SVG). Keep file size reasonable.
11. **Run migrations.** `DEBUG=1 python manage.py makemigrations && DEBUG=1 ./bin/migrate` (only needed if a new enum value triggers a Django migration).
12. **Regenerate frontend API types**: `hogli build:openapi`. This regenerates `products/warehouse_sources/frontend/generated/api.schemas.ts` from the source-config contract in `source_config.py` and makes the source appear in frontend dropdowns. Re-run whenever `source_config.py` or a source's fields change.
-13. **Release status — a finished source has no `unreleasedSource` flag.** The default for the deliverable this skill produces is **no `unreleasedSource`** — a completed, working source ships visible and connectable. You don't need anyone's sign-off to ship it released; that's just the finished state. The scaffolded stub ships with `unreleasedSource=True` pre-set, so deleting that line is part of finishing the source — go ahead and remove it. (Why it matters: `unreleasedSource=True` **hides the connector from users entirely** — the frontend filters out every source where it's truthy; see `DataWarehouseQueryVariant.tsx`, `InlineSourceSetup.tsx`, and the "coming soon / Notify me" path in `nonHogFunctionTemplatesLogic.tsx`.)
+13. **Release status — a finished source has no `unreleasedSource` flag.** The default for the deliverable this skill produces is **no `unreleasedSource`** — a completed, working source ships visible and connectable. You don't need anyone's sign-off to ship it released; that's just the finished state. The scaffolded stub ships with `unreleasedSource=True` pre-set, so deleting that line is part of finishing the source — go ahead and remove it. (Why it matters: `unreleasedSource=True` **hides the connector from users entirely** — the frontend filters out every source where it's truthy; see `InlineSourceSetup.tsx` and the "coming soon / Notify me" path in `nonHogFunctionTemplatesLogic.tsx`.)
**Deleting that line is mandatory, and it is not gated on anything you can't do in your environment.** In particular, "I couldn't curl the live API" or "I couldn't verify against a real account" is NOT a reason to keep the flag — that is exactly what `releaseStatus=ReleaseStatus.ALPHA` is for (a soft "new, lightly tested" label on a _visible_ source). The only time `unreleasedSource=True` legitimately stays is when the source physically cannot sync yet because it is being landed across several PRs and the implementing code isn't all there. A source with working `get_schemas` / `source_for_pipeline` and passing tests is finished — the flag comes out. **Never write a test that asserts `unreleasedSource is True`** — that locks the bug in and is what kept 166 finished sources hidden until they had to be released in bulk.
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 977c35df9a07..8af4a76d1a33 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -457,7 +457,6 @@ export const FEATURE_FLAGS = {
NOTEBOOK_JUPYTER_MODE: 'notebook-jupyter-mode', // owner: #team-data-tools, lays notebooks out and drives them like JupyterLab
NOTEBOOK_SANDBOX_FREE_COMPUTE: 'notebook-sandbox-free-compute', // owner: #team-data-tools, shows the notebook sandbox rate crossed out at $0.00 / h
NOTEBOOK_SHARING: 'notebook-sharing', // owner: @reecejones #team-platform-features
- ONBOARDING_DATA_WAREHOUSE_VALUE_PROP: 'onboarding-data-warehouse-value-prop', // owner: @fercgomes #team-growth multivariate=control,table,query
ONBOARDING_FLOW_VARIANT: 'onboarding-flow-variant', // owner: @fercgomes #team-growth multivariate=control,self-driving — selects the whole onboarding experience; control is the existing flow (the historical `legacy` value is an alias of control)
ONBOARDING_HIDE_BREADCRUMBS: 'onboarding-hide-breadcrumbs', // owner: @fercgomes #team-growth, multivariate=true, hides breadcrumbs during onboarding to reduce distractions
ONBOARDING_MOBILE_INSTALL_HELPER: 'onboarding-mobile-install-helper', // owner: @fercgomes #team-growth multivariate=control,test — target $device_type=Mobile at the flag level
diff --git a/frontend/src/scenes/onboarding/legacy/data-warehouse/DataWarehouseQueryVariant.tsx b/frontend/src/scenes/onboarding/legacy/data-warehouse/DataWarehouseQueryVariant.tsx
deleted file mode 100644
index 4d15dee7b0e9..000000000000
--- a/frontend/src/scenes/onboarding/legacy/data-warehouse/DataWarehouseQueryVariant.tsx
+++ /dev/null
@@ -1,330 +0,0 @@
-import { BindLogic, useActions, useValues } from 'kea'
-import posthog from 'posthog-js'
-import { useEffect, useState } from 'react'
-
-import { IconArrowLeft, IconArrowRight } from '@posthog/icons'
-import { LemonButton } from '@posthog/lemon-ui'
-
-import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
-
-import { OnboardingStepKey } from '~/types'
-
-import IconPostHog from 'public/posthog-icon.svg'
-import IconHubSpot from 'public/services/hubspot.png'
-import IconPostgres from 'public/services/postgres.png'
-import IconSalesforce from 'public/services/salesforce.png'
-import IconSnowflake from 'public/services/snowflake.png'
-import IconStripe from 'public/services/stripe.png'
-import IconZendesk from 'public/services/zendesk.png'
-
-import { availableSourcesLogic } from 'products/data_warehouse/frontend/scenes/NewSourceScene/availableSourcesLogic'
-import { sourceWizardLogic } from 'products/data_warehouse/frontend/scenes/NewSourceScene/sourceWizardLogic'
-import { InlineSourceSetup } from 'products/data_warehouse/frontend/shared/components/InlineSourceSetup'
-import { SourceConfigResponseApi } from 'products/warehouse_sources/frontend/generated/api.schemas'
-
-import { onboardingLogic } from '../onboardingLogic'
-import { OnboardingStep } from '../OnboardingStep'
-import { ConnectorIconGrid, DataWarehouseOnboardingLoadingPlaceholder, initialOnboardingPhase } from './components'
-
-// The query skeleton is fixed — SELECT, FROM, JOIN, ON stay put.
-// Only the slots (comment, columns, source, posthog table, on clause,
-// final clause) swap with a fade animation.
-interface QueryScene {
- comment: string
- columns: string
- sourceIcon: string
- sourceName: string
- posthogTable: string
- onClause: string
- finalKeyword: string
- finalValue: string
-}
-
-const QUERY_SCENES: QueryScene[] = [
- {
- comment: '-- Which features do paying customers use most?',
- columns: 'plan_name, event, count()',
- sourceIcon: IconStripe,
- sourceName: 'stripe.subscriptions',
- posthogTable: 'posthog.events',
- onClause: 'customer_email = distinct_id',
- finalKeyword: 'GROUP BY',
- finalValue: 'plan_name, event',
- },
- {
- comment: '-- Do leads who see the demo page convert faster?',
- columns: 'lifecycle_stage, avg(days_to_close)',
- sourceIcon: IconHubSpot,
- sourceName: 'hubspot.contacts',
- posthogTable: 'posthog.sessions',
- onClause: 'email = distinct_id',
- finalKeyword: 'WHERE',
- finalValue: "$current_url LIKE '%/demo%'",
- },
- {
- comment: '-- Are power users filing fewer tickets?',
- columns: 'user_segment, count(ticket_id)',
- sourceIcon: IconZendesk,
- sourceName: 'zendesk.tickets',
- posthogTable: 'posthog.persons',
- onClause: 'requester_email = properties.email',
- finalKeyword: 'GROUP BY',
- finalValue: 'user_segment',
- },
- {
- comment: '-- Which signup source has the best close rate?',
- columns: 'initial_utm_source, sum(amount)',
- sourceIcon: IconSalesforce,
- sourceName: 'salesforce.opportunities',
- posthogTable: 'posthog.persons',
- onClause: 'email = properties.email',
- finalKeyword: 'WHERE',
- finalValue: "stage = 'Closed Won'",
- },
- {
- comment: '-- What is the avg order value by feature usage?',
- columns: 'feature_used, avg(order_total)',
- sourceIcon: IconPostgres,
- sourceName: 'app_db.orders',
- posthogTable: 'posthog.events',
- onClause: 'user_id = distinct_id',
- finalKeyword: 'GROUP BY',
- finalValue: 'feature_used',
- },
- {
- comment: '-- Which cohort drives the most revenue?',
- columns: 'cohort_name, sum(revenue)',
- sourceIcon: IconSnowflake,
- sourceName: 'warehouse.revenue',
- posthogTable: 'posthog.cohorts',
- onClause: 'user_id = person_id',
- finalKeyword: 'GROUP BY',
- finalValue: 'cohort_name',
- },
-]
-
-const QUERY_STYLES = `
- @keyframes dwh-query-fade-in {
- from { opacity: 0; transform: translateY(3px); }
- to { opacity: 1; transform: translateY(0); }
- }
- @keyframes dwh-query-glow {
- 0% { text-shadow: 0 0 12px rgba(229, 192, 123, 0.9), 0 0 24px rgba(229, 192, 123, 0.4); }
- 100% { text-shadow: none; }
- }
- @keyframes dwh-query-blink {
- 0%, 100% { opacity: 1; }
- 50% { opacity: 0; }
- }
- .dwh-query-slot-glow {
- animation: dwh-query-fade-in 300ms ease-out, dwh-query-glow 1.2s ease-out;
- }
- .dwh-query-slot-slide {
- animation: dwh-query-fade-in 350ms ease-out;
- }
- .dwh-query-cursor {
- display: inline-block;
- width: 2px;
- height: 1.1em;
- background: #abb2bf;
- margin-left: 2px;
- vertical-align: text-bottom;
- animation: dwh-query-blink 1s step-end infinite;
- }
- @media (prefers-reduced-motion: reduce) {
- .dwh-query-slot-glow { animation: none; }
- .dwh-query-slot-slide { animation: none; }
- .dwh-query-cursor { animation: none; opacity: 1; }
- }
-`
-
-export function DataWarehouseQueryVariant(): JSX.Element {
- const { availableSources, availableSourcesLoading } = useValues(availableSourcesLogic)
-
- if (availableSourcesLoading || availableSources === null) {
- return <DataWarehouseOnboardingLoadingPlaceholder />
- }
-
- return (
- <BindLogic logic={sourceWizardLogic} props={{ availableSources }}>
- <DataWarehouseQueryInner />
- </BindLogic>
- )
-}
-
-function DataWarehouseQueryInner(): JSX.Element {
- const { goToNextStep } = useActions(onboardingLogic)
- const { reportOnboardingStepCompleted } = useActions(eventUsageLogic)
- const { availableSourcesLoading } = useValues(availableSourcesLogic)
- const { connectors } = useValues(sourceWizardLogic)
- const [phase, setPhase] = useState<'value-prop' | 'setup'>(initialOnboardingPhase)
- const [sceneIndex, setSceneIndex] = useState(0)
-
- const visibleConnectors = connectors.filter((c: SourceConfigResponseApi) => !c.unreleasedSource)
- const s = QUERY_SCENES[sceneIndex]
-
- useEffect(() => {
- if (phase !== 'value-prop') {
- return
- }
- const timer = setInterval(() => {
- setSceneIndex((i) => (i + 1) % QUERY_SCENES.length)
- }, 4000)
- return () => clearInterval(timer)
- }, [phase])
-
- const handleConnectClick = (): void => {
- posthog.capture('dwh onboarding connect clicked', { variant: 'query' })
- setPhase('setup')
- }
-
- const handleSourceConnected = (): void => {
- posthog.capture('dwh onboarding source connected', { variant: 'query' })
- reportOnboardingStepCompleted(OnboardingStepKey.LINK_DATA)
- goToNextStep()
- }
-
- // Glow: used on the FROM source (the hero element that changes)
- const glowSlot = (content: React.ReactNode): JSX.Element => (
- <span key={sceneIndex} className="dwh-query-slot-glow">
- {content}
- </span>
- )
- // Slide: used on everything else that changes (comment, columns, etc.)
- const slideSlot = (content: React.ReactNode): JSX.Element => (
- <span key={sceneIndex} className="dwh-query-slot-slide">
- {content}
- </span>
- )
-
- return (
- <OnboardingStep
- title="Import data"
- stepKey={OnboardingStepKey.LINK_DATA}
- showContinue={false}
- showSkip={!availableSourcesLoading}
- >
- {phase === 'value-prop' ? (
- <div className="max-w-2xl mx-auto mt-4 space-y-5">
- <style>{QUERY_STYLES}</style>
-
- {/* HogQL query — fixed skeleton, animated slots */}
- <div
- className="rounded-xl bg-[#1d1f27] p-5 font-mono text-sm leading-loose"
- style={{
- border: '2.5px solid transparent',
- backgroundClip: 'padding-box, border-box',
- backgroundImage:
- 'linear-gradient(#1d1f27, #1d1f27), linear-gradient(135deg, #0143cb 0%, #2b6ff4 25%, #d23401 50%, #ff651f 75%, #fba000 100%)',
- backgroundOrigin: 'border-box',
- }}
- >
- {/* Comment — slide */}
- <div className="text-[#5c6370] italic">{slideSlot(s.comment)}</div>
-
- {/* SELECT — keyword static, columns slide */}
- <div>
- <span className="text-[#c678dd]">SELECT</span>
- <span className="text-[#abb2bf]"> </span>
- {slideSlot(<span className="text-[#abb2bf]">{s.columns}</span>)}
- </div>
-
- {/* FROM — keyword static, source GLOW (the hero) */}
- <div>
- <span className="text-[#c678dd]">FROM</span>
- <span className="text-[#abb2bf]"> </span>
- {glowSlot(
- <span className="inline-flex items-center gap-1.5">
- <img
- src={s.sourceIcon}
- alt=""
- className="size-4 object-contain rounded inline-block"
- />
- <span className="text-[#e5c07b]">{s.sourceName}</span>
- </span>
- )}
- </div>
-
- {/* JOIN — keyword static, posthog table slide */}
- <div>
- <span className="text-[#c678dd]">JOIN</span>
- <span className="text-[#abb2bf]"> </span>
- {slideSlot(
- <span className="inline-flex items-center gap-1.5">
- <img src={IconPostHog} alt="" className="size-4 inline-block" />
- <span className="text-[#98c379]">{s.posthogTable}</span>
- </span>
- )}
- </div>
-
- {/* ON — keyword static, clause slide */}
- <div>
- <span className="text-[#c678dd]">ON</span>
- <span className="text-[#abb2bf]"> </span>
- {slideSlot(<span className="text-[#abb2bf]">{s.onClause}</span>)}
- </div>
-
- {/* Final clause — slide */}
- <div>
- {slideSlot(
- <>
- <span className="text-[#c678dd]">{s.finalKeyword}</span>
- <span className="text-[#abb2bf]"> {s.finalValue}</span>
- </>
- )}
- <span className="dwh-query-cursor" aria-hidden="true" />
- </div>
- </div>
-
- {/* Copy */}
- <div className="space-y-1">
- <h2 className="text-xl font-bold">Query your business data alongside PostHog</h2>
- <p className="text-sm text-muted">
- Import from your CRM, payment provider, or database and query it with HogQL — right
- alongside your product analytics. No ETL needed.
- </p>
- </div>
-
- {/* Source icon grid */}
- <ConnectorIconGrid connectors={visibleConnectors} />
-
- {/* CTA */}
- <div>
- <LemonButton
- type="primary"
- size="large"
- sideIcon={<IconArrowRight />}
- onClick={handleConnectClick}
- data-attr="dwh-query-variant-connect-source"
- >
- Connect a source
- </LemonButton>
- <p className="text-xs text-muted mt-1">1M rows synced free every month</p>
- </div>
- </div>
- ) : (
- <div className="mt-4">
- <div className="mb-4">
- <LemonButton
- type="tertiary"
- size="small"
- icon={<IconArrowLeft />}
- onClick={() => setPhase('value-prop')}
- data-attr="dwh-query-variant-back"
- >
- Back
- </LemonButton>
- </div>
- <InlineSourceSetup
- onComplete={handleSourceConnected}
- featured
- showWizard
- autoConfigureTables
- title="Choose a source"
- subtitle="You can always connect more sources later."
- />
- </div>
- )}
- </OnboardingStep>
- )
-}
diff --git a/frontend/src/scenes/onboarding/legacy/data-warehouse/DataWarehouseValuePropVariant.tsx b/frontend/src/scenes/onboarding/legacy/data-warehouse/DataWarehouseValuePropVariant.tsx
deleted file mode 100644
index 9c88c91ca68c..000000000000
--- a/frontend/src/scenes/onboarding/legacy/data-warehouse/DataWarehouseValuePropVariant.tsx
+++ /dev/null
@@ -1,185 +0,0 @@
-import { BindLogic, useActions, useValues } from 'kea'
-import posthog from 'posthog-js'
-import { useState } from 'react'
-
-import { IconArrowLeft, IconArrowRight, IconGraph, IconPeople, IconRewindPlay } from '@posthog/icons'
-import { LemonButton, LemonTag } from '@posthog/lemon-ui'
-
-import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
-
-import { OnboardingStepKey } from '~/types'
-
-import IconPostHog from 'public/posthog-icon.svg'
-import IconHubSpot from 'public/services/hubspot.png'
-import IconStripe from 'public/services/stripe.png'
-import IconZendesk from 'public/services/zendesk.png'
-
-import { availableSourcesLogic } from 'products/data_warehouse/frontend/scenes/NewSourceScene/availableSourcesLogic'
-import { sourceWizardLogic } from 'products/data_warehouse/frontend/scenes/NewSourceScene/sourceWizardLogic'
-import { InlineSourceSetup } from 'products/data_warehouse/frontend/shared/components/InlineSourceSetup'
-import { SourceConfigResponseApi } from 'products/warehouse_sources/frontend/generated/api.schemas'
-
-import { onboardingLogic } from '../onboardingLogic'
-import { OnboardingStep } from '../OnboardingStep'
-import { ConnectorIconGrid, DataWarehouseOnboardingLoadingPlaceholder, initialOnboardingPhase } from './components'
-
-const EXAMPLE_QUERIES = [
- {
- question: 'Which plan has the highest activation rate?',
- sourceIcon: IconStripe,
- sourceName: 'Stripe',
- posthogIcon: <IconGraph className="size-4" />,
- posthogLabel: 'Product analytics',
- },
- {
- question: 'Do leads who watch a demo convert faster?',
- sourceIcon: IconHubSpot,
- sourceName: 'HubSpot',
- posthogIcon: <IconRewindPlay className="size-4" />,
- posthogLabel: 'Session replay',
- },
- {
- question: 'Which support tickets come from power users?',
- sourceIcon: IconZendesk,
- sourceName: 'Zendesk',
- posthogIcon: <IconPeople className="size-4" />,
- posthogLabel: 'Cohorts',
- },
-]
-
-/**
- * Test arm for the ONBOARDING_DATA_WAREHOUSE_VALUE_PROP experiment.
- * Two-step form: step 1 sells the value of connecting external data,
- * step 2 replaces it with InlineSourceSetup.
- */
-export function DataWarehouseValuePropVariant(): JSX.Element {
- const { availableSources, availableSourcesLoading } = useValues(availableSourcesLogic)
-
- if (availableSourcesLoading || availableSources === null) {
- return <DataWarehouseOnboardingLoadingPlaceholder />
- }
-
- return (
- <BindLogic logic={sourceWizardLogic} props={{ availableSources }}>
- <DataWarehouseValuePropInner />
- </BindLogic>
- )
-}
-
-function DataWarehouseValuePropInner(): JSX.Element {
- const { goToNextStep } = useActions(onboardingLogic)
- const { reportOnboardingStepCompleted } = useActions(eventUsageLogic)
- const { availableSourcesLoading } = useValues(availableSourcesLogic)
- const { connectors } = useValues(sourceWizardLogic)
- const [phase, setPhase] = useState<'value-prop' | 'setup'>(initialOnboardingPhase)
-
- const visibleConnectors = connectors.filter((c: SourceConfigResponseApi) => !c.unreleasedSource)
-
- const handleConnectClick = (): void => {
- posthog.capture('dwh onboarding connect clicked', { variant: 'table' })
- setPhase('setup')
- }
-
- const handleSourceConnected = (): void => {
- posthog.capture('dwh onboarding source connected', { variant: 'table' })
- reportOnboardingStepCompleted(OnboardingStepKey.LINK_DATA)
- goToNextStep()
- }
-
- return (
- <OnboardingStep
- title="Import data"
- stepKey={OnboardingStepKey.LINK_DATA}
- showContinue={false}
- showSkip={!availableSourcesLoading}
- >
- {phase === 'value-prop' ? (
- <div className="max-w-2xl mx-auto mt-4 space-y-5">
- <div className="space-y-1">
- <h2 className="text-xl font-bold">Query your business data alongside PostHog</h2>
- <p className="text-sm text-muted">
- Import from your CRM, payment provider, or database and join it with product analytics. No
- ETL — PostHog syncs directly.
- </p>
- </div>
-
- {/* Example queries table */}
- <div className="rounded-lg border border-border overflow-hidden text-sm">
- <div className="bg-bg-light px-3 py-1.5 border-b border-border flex items-center justify-between">
- <span className="text-xs font-medium">Questions you can answer</span>
- <LemonTag size="small">Examples</LemonTag>
- </div>
- <div className="divide-y divide-border">
- <div className="grid grid-cols-[1fr_110px_140px] px-3 py-1.5 text-xs font-medium text-muted bg-bg-light">
- <span>Question</span>
- <span>Source</span>
- <span className="flex items-center gap-1">
- <img src={IconPostHog} alt="" className="size-3.5" />
- PostHog
- </span>
- </div>
- {EXAMPLE_QUERIES.map(({ question, sourceIcon, sourceName, posthogIcon, posthogLabel }) => (
- <div key={question} className="grid grid-cols-[1fr_110px_140px] px-3 py-2 items-center">
- <span className="text-sm">{question}</span>
- <div className="flex items-center gap-1.5">
- <img
- src={sourceIcon}
- alt={sourceName}
- className="size-4 object-contain rounded shrink-0"
- />
- <span className="text-xs text-muted">{sourceName}</span>
- </div>
- <div className="flex items-center gap-1.5">
- <span className="shrink-0">{posthogIcon}</span>
- <span className="text-xs text-muted">{posthogLabel}</span>
- </div>
- </div>
- ))}
- </div>
- </div>
-
- {/* Source icon grid */}
- <ConnectorIconGrid connectors={visibleConnectors} />
-
- {/* CTA */}
- <div className="flex items-center justify-between">
- <div>
- <LemonButton
- type="primary"
- size="large"
- sideIcon={<IconArrowRight />}
- onClick={handleConnectClick}
- data-attr="dwh-value-prop-connect-source"
- >
- Connect a source
- </LemonButton>
- <p className="text-xs text-muted mt-1">1M rows synced free every month</p>
- </div>
- </div>
- </div>
- ) : (
- <div className="mt-4">
- <div className="mb-4">
- <LemonButton
- type="tertiary"
- size="small"
- icon={<IconArrowLeft />}
- onClick={() => setPhase('value-prop')}
- data-attr="dwh-value-prop-back"
- >
- Back
- </LemonButton>
- </div>
- <InlineSourceSetup
- onComplete={handleSourceConnected}
- featured
- showWizard
- autoConfigureTables
- title="Choose a source"
- subtitle="You can always connect more sources later."
- />
- </div>
- )}
- </OnboardingStep>
- )
-}
diff --git a/frontend/src/scenes/onboarding/legacy/data-warehouse/OnboardingDataWarehouseSourcesStep.tsx b/frontend/src/scenes/onboarding/legacy/data-warehouse/OnboardingDataWarehouseSourcesStep.tsx
index f381f38c806f..7c346c63f40b 100644
--- a/frontend/src/scenes/onboarding/legacy/data-warehouse/OnboardingDataWarehouseSourcesStep.tsx
+++ b/frontend/src/scenes/onboarding/legacy/data-warehouse/OnboardingDataWarehouseSourcesStep.tsx
@@ -1,6 +1,5 @@
import { useActions, useValues } from 'kea'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { OnboardingStepKey } from '~/types'
@@ -10,24 +9,11 @@ import { InlineSourceSetup } from 'products/data_warehouse/frontend/shared/compo
import { OnboardingStepComponentType, onboardingLogic } from '../onboardingLogic'
import { OnboardingStep } from '../OnboardingStep'
-import { DataWarehouseQueryVariant } from './DataWarehouseQueryVariant'
-import { DataWarehouseValuePropVariant } from './DataWarehouseValuePropVariant'
export const OnboardingDataWarehouseSourcesStep: OnboardingStepComponentType = () => {
const { goToNextStep } = useActions(onboardingLogic)
const { reportOnboardingStepCompleted } = useActions(eventUsageLogic)
const { availableSourcesLoading } = useValues(availableSourcesLogic)
- const isTableVariant = useFeatureFlag('ONBOARDING_DATA_WAREHOUSE_VALUE_PROP', 'table')
- const isQueryVariant = useFeatureFlag('ONBOARDING_DATA_WAREHOUSE_VALUE_PROP', 'query')
-
- if (isTableVariant) {
- return <DataWarehouseValuePropVariant />
- }
-
- if (isQueryVariant) {
- return <DataWarehouseQueryVariant />
- }
-
return (
<OnboardingStep
title="Connect your data for better insights"
diff --git a/frontend/src/scenes/onboarding/legacy/data-warehouse/components.tsx b/frontend/src/scenes/onboarding/legacy/data-warehouse/components.tsx
deleted file mode 100644
index 52c843ff513c..000000000000
--- a/frontend/src/scenes/onboarding/legacy/data-warehouse/components.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-import { useValues } from 'kea'
-
-import { OnboardingStepKey } from '~/types'
-
-import { availableSourcesLogic } from 'products/data_warehouse/frontend/scenes/NewSourceScene/availableSourcesLogic'
-import { SourceConfigResponseApi } from 'products/warehouse_sources/frontend/generated/api.schemas'
-
-import { OnboardingStep } from '../OnboardingStep'
-
-export function DataWarehouseOnboardingLoadingPlaceholder(): JSX.Element {
- return (
- <OnboardingStep title="Import data" stepKey={OnboardingStepKey.LINK_DATA} showContinue={false} showSkip={false}>
- <div className="h-64" />
- </OnboardingStep>
- )
-}
-
-// An OAuth round-trip returns to this step with ?kind=<source>; start on the setup phase so
-// InlineSourceSetup is mounted to resume the wizard rather than showing the value-prop screen.
-export function initialOnboardingPhase(): 'value-prop' | 'setup' {
- return new URLSearchParams(window.location.search).get('kind') ? 'setup' : 'value-prop'
-}
-
-export function useDataWarehouseLoadingState(): { isLoading: boolean } {
- const { availableSources, availableSourcesLoading } = useValues(availableSourcesLogic)
- return { isLoading: availableSourcesLoading || availableSources === null }
-}
-
-export function ConnectorIconGrid({ connectors }: { connectors: SourceConfigResponseApi[] }): JSX.Element | null {
- if (connectors.length === 0) {
- return null
- }
-
- return (
- <div className="flex flex-wrap justify-center gap-2">
- {connectors.map((connector: SourceConfigResponseApi) => (
- <div
- key={connector.name}
- className="size-8 rounded-md border border-border bg-bg-light flex items-center justify-center"
- title={connector.label ?? connector.name}
- >
- <img
- src={connector.iconPath}
- alt={connector.label ?? connector.name}
- className="size-5 object-contain rounded"
- />
- </div>
- ))}
- </div>
- )
-}