: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(web-analytics): align responsive grid breakpoints (#101912)
Mike Warren439393702940
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex eb002783144d..26281792eb5e 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -10444,6 +10444,14 @@ snapshots:hash: v1.k794b7964.99c592ebf6459e3bd3181a503ace0baefff13f073dbeb8abdf3239aa35add35f.MQn5H6WaVRxG3d6OpSseGS9dt0lpQbdK2bt1JQKq5Yoscenes-app-web-analytics--web-analytics-dashboard-loading--light:hash: v1.k794b7964.6258be5657c96ca59930d83fbf5862f493916e1d9f84c5ce21f8bc014f72b807.6ng36a5wZsONFiJPIicn29HBQlzisgbatipqJZVRCa4+ scenes-app-web-analytics--web-analytics-dashboard-tile-header-v-2-medium--dark:+ hash: v1.k794b7964.865308ee7b3cc95ae6a9d3f78ff061e02cf29610e6af98af8d9793fc027f083c.zzjFc2X6UxtQq1vmXHEkobuQiEGSMX5_Q5kpKagU7Zk+ scenes-app-web-analytics--web-analytics-dashboard-tile-header-v-2-medium--light:+ hash: v1.k794b7964.ea3c672066d0af122eaacb17a34da1613a5fd9a9c4afe78872f036d5481a3d38.qlkdK0-nZPYtsFp0cyegdj0iziswRMM1iJFEOWN1V2g+ scenes-app-web-analytics--web-analytics-dashboard-tile-header-v-2-wide--dark:+ hash: v1.k794b7964.ef09b67b9d8cf134fa292b1d49156804eb007f718fe890bd169d0fe1d014b2f9.VJGrECMOd1vMwf1ENv4mz3knvaC1j0r9JBSlZww0R5s+ scenes-app-web-analytics--web-analytics-dashboard-tile-header-v-2-wide--light:+ hash: v1.k794b7964.6df48926e7ac9f971d7365bd1862ebf290fa7ed64076a69020e613b23a3a537a.UV8gAJzodjW2qNErfweaYYvFspAKRqSdcoizfF1Jxv0scenes-app-web-analytics-achievements--daily-only-arm--dark:hash: v1.k794b7964.8f024a521e113d8101749768f8d4f49d8dcac1365f43d9b2038c6df0021bac6a.BYx467NAatau4dzb13PnZCTODi-yUho-Vhm_JdtCY9wscenes-app-web-analytics-achievements--daily-only-arm--light:diff --git a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.stories.tsx b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.stories.tsxindex 781862c624f1..9a8d6fd19aa7 100644--- a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.stories.tsx+++ b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.stories.tsx@@ -84,6 +84,38 @@ export function WebAnalyticsDashboard(): JSX.Element {return <App />}+WebAnalyticsDashboardTileHeaderV2Medium.parameters = {+ featureFlags: {+ [FEATURE_FLAGS.WEB_ANALYTICS_FILTERS_V2]: true,+ [FEATURE_FLAGS.WEB_ANALYTICS_TILE_HEADER_V2]: 'test',+ },+ testOptions: {+ includeNavigationInSnapshot: true,+ waitForLoadersToDisappear: true,+ waitForSelector: '[data-attr=trend-line-graph] > canvas',+ viewport: { width: 900, height: 2000 },+ },+}+export function WebAnalyticsDashboardTileHeaderV2Medium(): JSX.Element {+ return <WebAnalyticsDashboard />+}++WebAnalyticsDashboardTileHeaderV2Wide.parameters = {+ featureFlags: {+ [FEATURE_FLAGS.WEB_ANALYTICS_FILTERS_V2]: true,+ [FEATURE_FLAGS.WEB_ANALYTICS_TILE_HEADER_V2]: 'test',+ },+ testOptions: {+ includeNavigationInSnapshot: true,+ waitForLoadersToDisappear: true,+ waitForSelector: '[data-attr=trend-line-graph] > canvas',+ viewport: { width: 1600, height: 2000 },+ },+}+export function WebAnalyticsDashboardTileHeaderV2Wide(): JSX.Element {+ return <WebAnalyticsDashboard />+}+WebAnalyticsDashboardLoading.parameters = {layout: 'fullscreen',viewMode: 'story',diff --git a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsxindex a7fc67a32f1b..df0588540741 100644--- a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx+++ b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx@@ -88,7 +88,7 @@ export const Tiles = (props: { tiles?: WebAnalyticsTile[]; compact?: boolean }):<divclassName={clsx('mt-4 grid grid-cols-1',- useTileHeaderV2 ? 'lg:grid-cols-2 2xl:grid-cols-3' : 'md:grid-cols-2 2xl:grid-cols-3',+ 'md:grid-cols-2 2xl:grid-cols-3',useTileHeaderV2 && '2xl:grid-flow-dense',compact ? 'gap-x-2 gap-y-2' : 'gap-x-4 gap-y-4')}diff --git a/frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx b/frontend/src/scenes/web-analytics/webAnalyticsLogic.tsxindex d0b65b24c3fb..edbb230dbf32 100644--- a/frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx+++ b/frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx@@ -2537,6 +2537,35 @@ export const webAnalyticsLogic: LogicWrapper<webAnalyticsLogicType> = kea<webAna),],},+ !conversionGoal && errorTrackingQ+ ? {+ kind: 'error_tracking',+ tileId: TileId.ERROR_TRACKING,+ layout: {+ colSpanClassName: 'md:col-span-2 2xl:col-span-1',+ },+ query: errorTrackingQ,+ docs: {+ url: 'https://posthog.com/docs/error-tracking',+ title: 'Error Tracking',+ description: (+ <>+ <div>+ <p>+ Error tracking allows you to track, investigate, and resolve+ exceptions your customers face.+ </p>+ <p>+ Errors are captured as <code>$exception</code> events which means that+ you can create insights, filter recordings and trigger surveys based+ on them exactly the same way you can for any other type of event.+ </p>+ </div>+ </>+ ),+ },+ }+ : null,{kind: 'tabs',@@ -2676,7 +2705,7 @@ export const webAnalyticsLogic: LogicWrapper<webAnalyticsLogicType> = kea<webAnatileId: TileId.RETENTION,title: 'Retention',layout: {- colSpanClassName: 'md:col-span-2',+ colSpanClassName: 'md:col-span-full',},query: {kind: NodeKind.InsightVizNode,@@ -2879,7 +2908,7 @@ export const webAnalyticsLogic: LogicWrapper<webAnalyticsLogicType> = kea<webAnatileId: TileId.GOALS,title: 'Goals',layout: {- colSpanClassName: 'md:col-span-2',+ colSpanClassName: 'md:col-span-full',},query: {full: true,@@ -2955,42 +2984,13 @@ export const webAnalyticsLogic: LogicWrapper<webAnalyticsLogicType> = kea<webAna},}: null,- !conversionGoal && errorTrackingQ- ? {- kind: 'error_tracking',- tileId: TileId.ERROR_TRACKING,- layout: {- colSpanClassName: 'md:col-span-1',- },- query: errorTrackingQ,- docs: {- url: 'https://posthog.com/docs/error-tracking',- title: 'Error Tracking',- description: (- <>- <div>- <p>- Error tracking allows you to track, investigate, and resolve- exceptions your customers face.- </p>- <p>- Errors are captured as <code>$exception</code> events which means that- you can create insights, filter recordings and trigger surveys based- on them exactly the same way you can for any other type of event.- </p>- </div>- </>- ),- },- }- : null,!conversionGoal? {kind: 'query',title: 'Frustrating Pages',tileId: TileId.FRUSTRATING_PAGES,layout: {- colSpanClassName: 'md:col-span-2',+ colSpanClassName: 'md:col-span-full',},query: {full: true,