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(dashboards): wait for lazy widgets in the overview story snapshot (#130280)

Georges-Antoine Assiddad640e5361
diff --git a/products/dashboards/frontend/components/WidgetCard/DashboardWidgetsOverview.stories.tsx b/products/dashboards/frontend/components/WidgetCard/DashboardWidgetsOverview.stories.tsx
index 8a325e49e28a..6a5eb8746452 100644
--- a/products/dashboards/frontend/components/WidgetCard/DashboardWidgetsOverview.stories.tsx
+++ b/products/dashboards/frontend/components/WidgetCard/DashboardWidgetsOverview.stories.tsx
@@ -11,7 +11,7 @@ import {
} from '../../widget_types/catalog'
import { getDashboardWidgetDefinition } from '../../widgets/registry'
import { WidgetCard } from './WidgetCard'
-import { WidgetCardBody } from './WidgetCardBody'
+import { WidgetCardBody, WidgetLoadingState } from './WidgetCardBody'
import { WidgetCardHeader, widgetCardShouldHideMoreButton } from './WidgetCardHeader'
import { mockMoreOverlay, widgetStorybookParameters, withErrorTrackingProjectState } from './widgetCardStoryFixtures'
import { getWidgetOverviewDemoState } from './widgetOverviewStoryFixtures'
@@ -65,7 +65,7 @@ function DashboardWidgetOverviewTile({
moreButtonOverlay={mockMoreOverlay}
/>
<WidgetCardBody error={demoState.cardError}>
- <React.Suspense fallback={null}>
+ <React.Suspense fallback={<WidgetLoadingState />}>
<WidgetComponent
tileId={tileId}
config={demoState.config}