: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(storybook): replace external image URLs with inline SVG in dashboard template story (#65101)
mendral-app[bot]f3e436d6d564
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex af762c54a9c7..d50ddfa0aac1 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -4925,9 +4925,9 @@ snapshots:scenes-app-dashboards-templates-dashboard-template-copy--no-other-projects-in-organization--light:hash: v1.k794b7964.8d4cd29cef2f26f584fb54d8b66c4876ae47ad47c2c66d64df84e5fd39729a1b.07RDbDS_E-gMcaMuHJ_R9xJQB3iSqPEFC3Evki06JKsscenes-app-dashboards-templates-dashboard-template-item--all-versions--dark:- hash: v1.k794b7964.d1098ac00a7e4c40046b4d63cd9d1fd016d2d01b59b9022255319cdd9021e48c.Eu1n4qQvklGLxTj0LLacq7mobvT7POSt7fF8RMG2gf8+ hash: v1.k794b7964.8f83c895019a337882bcac444733732bb0a57a7421e6718b5c7c7c317c84400b.SOZti1GSGhhlmxr3qj2eo-ebKUOvnmYAEyA5SdmriD0scenes-app-dashboards-templates-dashboard-template-item--all-versions--light:- hash: v1.k794b7964.489fcd39fd9a402472ccf4640182ee311ada8843e7cfd18779108a6c96f56be0.WTls6owUdMJZhF0JhBsHei4plrD-EdPYhT2pmZSwVCk+ hash: v1.k794b7964.47245a2743b22d31145f254c8220a3a7dbc38e54a47983afacbc6029cabbded6.pQq49ny9VD9tcmb9Pd9A_vVV3k-Kl7jXNT-OIsklq-gscenes-app-dashboards-templates-dashboard-templates-table--default--dark:hash: v1.k794b7964.4196daeefa23df95ea8a8e0050c7ed33ccbe7eda0826d86f76714fd61d9aee07.ccK2iI3xPtiuBJU88n45tC0Q2UdWu_VKLgSd0dT7Xv0scenes-app-dashboards-templates-dashboard-templates-table--default--light:diff --git a/frontend/src/scenes/dashboard/dashboards/templates/DashboardTemplateItem.stories.tsx b/frontend/src/scenes/dashboard/dashboards/templates/DashboardTemplateItem.stories.tsxindex e63312bd1725..ca1a8365c0ab 100644--- a/frontend/src/scenes/dashboard/dashboards/templates/DashboardTemplateItem.stories.tsx+++ b/frontend/src/scenes/dashboard/dashboards/templates/DashboardTemplateItem.stories.tsx@@ -4,6 +4,11 @@ import { Meta, StoryObj } from '@storybook/react'import type { DashboardTemplateItemProps } from './DashboardTemplateItem'import { TemplateItem } from './DashboardTemplateItem'+// A small inline SVG data URI so stories don't depend on external network requests (picsum.photos)+// which cause flaky timeouts in CI when waiting for image naturalWidth.+const PLACEHOLDER_IMAGE =+ 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="240"%3E%3Crect fill="%23ccc" width="400" height="240"/%3E%3C/svg%3E'+const sampleTemplate: DashboardTemplateItemProps['template'] = {template_name: 'Weekly KPIs',dashboard_description: 'Track signups, retention, and revenue in one place.',@@ -36,7 +41,7 @@ function DashboardTemplateItemGallery(): JSX.Element {<TemplateItemtemplate={{...sampleTemplate,- image_url: 'https://picsum.photos/seed/posthog-dashboard-template/400/240',+ image_url: PLACEHOLDER_IMAGE,}}onClick={onClick}index={1}@@ -83,7 +88,7 @@ function DashboardTemplateItemGallery(): JSX.Element {template_name: 'Starter pack',dashboard_description:'Horizontal layout with image column used in featured template choosers.',- image_url: 'https://picsum.photos/seed/posthog-featured-template/400/240',+ image_url: PLACEHOLDER_IMAGE,tags: ['product', 'onboarding'],}}onClick={onClick}