: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(data-warehouse): say how to get access to connect a source (#102718)
Tom Owerscdef70616e08
diff --git a/products/data_warehouse/frontend/scenes/NewSourceScene/SourceCatalog.tsx b/products/data_warehouse/frontend/scenes/NewSourceScene/SourceCatalog.tsxindex ff0941cce51a..b64d902188da 100644--- a/products/data_warehouse/frontend/scenes/NewSourceScene/SourceCatalog.tsx+++ b/products/data_warehouse/frontend/scenes/NewSourceScene/SourceCatalog.tsx@@ -2,7 +2,7 @@ import { useActions, useValues } from 'kea'import { memo } from 'react'import { IconMegaphone, IconPlusSmall } from '@posthog/icons'-import { LemonButton, LemonInput, LemonModal, LemonTag, LemonTextArea, Link } from '@posthog/lemon-ui'+import { LemonBanner, LemonButton, LemonInput, LemonModal, LemonTag, LemonTextArea, Link } from '@posthog/lemon-ui'import { Tooltip } from 'lib/lemon-ui/Tooltip'import { getAccessControlDisabledReason } from 'lib/utils/accessControlUtils'@@ -165,7 +165,16 @@ export function SourceCatalog({ allowedSources }: SourceCatalogProps): JSX.Eleme</div><div className="flex flex-col gap-4 flex-1">- <WarehouseWizardHint />+ {/* The wizard CLI creates sources through the same API, so it can't help a user+ who lacks the access — show what unblocks them instead. */}+ {accessDisabledReason ? (+ <LemonBanner type="info">+ You don't have permission to connect a data warehouse source. Ask a project admin for editor+ access to data warehouse sources.+ </LemonBanner>+ ) : (+ <WarehouseWizardHint />+ )}<LemonInputtype="search"placeholder="Search sources..."