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): show a retry when the inline source picker can't load sources (#68814)

Tom Owersf9bca27cf8ea
diff --git a/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene.tsx b/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene.tsx
index 2d1c4f4e2203..a8c42c324f3c 100644
--- a/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene.tsx
+++ b/products/data_warehouse/frontend/scenes/NewSourceScene/NewSourceScene.tsx
@@ -102,7 +102,7 @@ export function NewSourceScene(): JSX.Element {
// The wizard endpoint failed (a timeout, a 5xx, or a 403 for members without data-source
// access). Without this the scene keeps rendering a bare skeleton indefinitely, which reads
// as a permanently stuck loading state.
-function AvailableSourcesError(): JSX.Element {
+export function AvailableSourcesError(): JSX.Element {
const { load } = useActions(availableSourcesLogic)
return (
diff --git a/products/data_warehouse/frontend/shared/components/InlineSourceSetup.tsx b/products/data_warehouse/frontend/shared/components/InlineSourceSetup.tsx
index ee7d6ebccc4a..82d59b54635d 100644
--- a/products/data_warehouse/frontend/shared/components/InlineSourceSetup.tsx
+++ b/products/data_warehouse/frontend/shared/components/InlineSourceSetup.tsx
@@ -8,7 +8,7 @@ import { LemonButton, LemonCard, LemonInput, LemonSkeleton } from '@posthog/lemo
import { ExternalDataSourceType, SourceConfig } from '~/queries/schema/schema-general'
import { availableSourcesLogic } from '../../scenes/NewSourceScene/availableSourcesLogic'
-import { NewSourcesWizard } from '../../scenes/NewSourceScene/NewSourceScene'
+import { AvailableSourcesError, NewSourcesWizard } from '../../scenes/NewSourceScene/NewSourceScene'
import { sourceWizardLogic } from '../../scenes/NewSourceScene/sourceWizardLogic'
import { DataWarehouseWizardBlock } from './DataWarehouseWizardBlock'
import { SourceIcon } from './SourceIcon'
@@ -203,10 +203,14 @@ function InternalInlineSourceSetup({
export function InlineSourceSetup(props: InlineSourceSetupProps): JSX.Element {
const { availableSources, availableSourcesLoading } = useValues(availableSourcesLogic)
- if (availableSourcesLoading || availableSources === null) {
+ if (availableSourcesLoading) {
return <LemonSkeleton />
}
+ if (availableSources === null) {
+ return <AvailableSourcesError />
+ }
+
return (
<BindLogic logic={sourceWizardLogic} props={{ availableSources }}>
<InternalInlineSourceSetup {...props} />