: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
fix: Show correct tab state when viewing syncs from schema (#61568)
Luke Belton90ddbfb606c1
diff --git a/products/data_warehouse/frontend/scenes/SourceScene/SourceScene.tsx b/products/data_warehouse/frontend/scenes/SourceScene/SourceScene.tsxindex 937d68283d59..fbbad808c7d1 100644--- a/products/data_warehouse/frontend/scenes/SourceScene/SourceScene.tsx+++ b/products/data_warehouse/frontend/scenes/SourceScene/SourceScene.tsx@@ -14,6 +14,8 @@ import {import { actionToUrl, urlToAction } from 'kea-router'import { useEffect } from 'react'+import { LemonSkeleton } from '@posthog/lemon-ui'+import { NotFound } from 'lib/components/NotFound'import { FEATURE_FLAGS } from 'lib/constants'import { LemonTab, LemonTabs } from 'lib/lemon-ui/LemonTabs'@@ -217,7 +219,7 @@ function ManagedSourceTabs({}): JSX.Element {const settingsLogic = sourceSettingsLogic({ id: sourceId, availableSources: {} })const { featureFlags } = useValues(featureFlagLogic)- const { source } = useValues(settingsLogic)+ const { source, sourceLoading } = useValues(settingsLogic)useAttachedLogic(settingsLogic, attachTo)@@ -237,6 +239,10 @@ function ManagedSourceTabs({}}, [showSyncsTab, showWebhookTab, showMetricsTab, currentTab, setCurrentTab])+ if (sourceLoading && !source) {+ return <LemonSkeleton className="w-full h-12" />+ }+const tabs: LemonTab<SourceSceneTab>[] = [{ label: 'Schemas', key: 'schemas', content: <SchemasTab id={sourceId} /> },]