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): guide users when the new-source table step finds no tables (#70936)

Tom Owers2a73e52a653c
diff --git a/products/data_warehouse/frontend/shared/components/forms/SchemaForm.tsx b/products/data_warehouse/frontend/shared/components/forms/SchemaForm.tsx
index 60439631b4c2..45aa0db6654f 100644
--- a/products/data_warehouse/frontend/shared/components/forms/SchemaForm.tsx
+++ b/products/data_warehouse/frontend/shared/components/forms/SchemaForm.tsx
@@ -98,6 +98,12 @@ export default function SchemaForm(): JSX.Element {
const showRows = databaseSchema.some((schema) => schema.rows != null)
const hasManySchemas = databaseSchema.length > 10
+ // Shown when the schema fetch returned zero tables. That can be transient — some sources
+ // are still listing their tables just after connecting — or a credentials/permissions
+ // problem, so point at both instead of dead-ending on "No tables found".
+ const noTablesMessage =
+ 'No tables found. If you just connected, the source may still be listing its tables, so go back a step and try again. Otherwise, check the source credentials, permissions, and configuration.'
+
const warehouseColumns = [
{
width: 0,
@@ -526,7 +532,7 @@ export default function SchemaForm(): JSX.Element {
/>
</div>
) : (
- <div className="border rounded px-4 py-8 text-center text-muted-alt">No tables found</div>
+ <div className="border rounded px-4 py-8 text-center text-muted-alt">{noTablesMessage}</div>
)
) : groupedDatabaseSchema.length > 1 ? (
<div className="border rounded bg-bg-light">
@@ -575,7 +581,7 @@ export default function SchemaForm(): JSX.Element {
</div>
) : (
<LemonTable
- emptyState={schemaNameFilter ? `No tables match "${schemaNameFilter}"` : 'No schemas found'}
+ emptyState={schemaNameFilter ? `No tables match "${schemaNameFilter}"` : noTablesMessage}
dataSource={filteredDatabaseSchema}
pagination={{ pageSize: 100, hideOnSinglePage: true }}
columns={[