: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
chore(web-analytics): Reduce the width of the unique vistors chart in the V2 web analytics dashboard (#59905)
Jordan Mryyanef24eabc8159
diff --git a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsxindex f0fafafb906d..c07a4fa9603f 100644--- a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx+++ b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx@@ -70,6 +70,7 @@ export const Tiles = (props: { tiles?: WebAnalyticsTile[]; compact?: boolean }):const { currentTeam, currentTeamLoading } = useValues(teamLogic)const tiles = tilesFromProps ?? tilesFromLogicconst { featureFlags } = useValues(featureFlagLogic)+ const useTileHeaderV2 = featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_TILE_HEADER_V2] === 'test'const emptyOnboardingContent = getEmptyOnboardingContent(featureFlags, currentTeamLoading, currentTeam, productTab)@@ -77,6 +78,7 @@ export const Tiles = (props: { tiles?: WebAnalyticsTile[]; compact?: boolean }):<divclassName={clsx('mt-4 grid grid-cols-1 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')}data-attr="web-analytics-dashboard"diff --git a/frontend/src/scenes/web-analytics/common.ts b/frontend/src/scenes/web-analytics/common.tsindex 59b606acd279..6b6fbbce69fa 100644--- a/frontend/src/scenes/web-analytics/common.ts+++ b/frontend/src/scenes/web-analytics/common.ts@@ -25,7 +25,11 @@ export const BREAKDOWN_REFERRER_PREFIX = 'referrer:'export interface WebTileLayout {/** The class has to be spelled out without interpolation, as otherwise Tailwind can't pick it up. */- colSpanClassName?: `md:col-span-${number}` | 'md:col-span-full'+ colSpanClassName?:+ | `md:col-span-${number}`+ | 'md:col-span-full'+ | `md:col-span-${number} 2xl:col-span-${number}`+ | `md:col-span-${number} 2xl:col-span-full`/** The class has to be spelled out without interpolation, as otherwise Tailwind can't pick it up. */rowSpanClassName?: `md:row-span-${number}`/** The class has to be spelled out without interpolation, as otherwise Tailwind can't pick it up. */diff --git a/frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx b/frontend/src/scenes/web-analytics/webAnalyticsLogic.tsxindex 443c38fd09fc..1e9d9381cf69 100644--- a/frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx+++ b/frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx@@ -1304,7 +1304,7 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([kind: 'tabs',tileId: TileId.GRAPHS,layout: {- colSpanClassName: `md:col-span-2`,+ colSpanClassName: useTileHeaderV2 ? 'md:col-span-1 2xl:col-span-2' : 'md:col-span-2',orderWhenLargeClassName: '2xl:order-1',},activeTabId: graphsTab,@@ -1378,8 +1378,8 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([kind: 'tabs',tileId: TileId.PATHS,layout: {- colSpanClassName: `md:col-span-2`,- orderWhenLargeClassName: '2xl:order-4',+ colSpanClassName: useTileHeaderV2 ? 'md:col-span-1' : 'md:col-span-2',+ orderWhenLargeClassName: useTileHeaderV2 ? '2xl:order-2' : '2xl:order-4',},activeTabId: pathTab,setTabId: actions.setPathTab,@@ -1551,7 +1551,7 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([tileId: TileId.SOURCES,layout: {colSpanClassName: `md:col-span-1`,- orderWhenLargeClassName: '2xl:order-2',+ orderWhenLargeClassName: useTileHeaderV2 ? '2xl:order-3' : '2xl:order-2',},activeTabId: sourceTab,setTabId: actions.setSourceTab,@@ -1788,7 +1788,7 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([tileId: TileId.DEVICES,layout: {colSpanClassName: `md:col-span-1`,- orderWhenLargeClassName: '2xl:order-3',+ orderWhenLargeClassName: useTileHeaderV2 ? '2xl:order-4' : '2xl:order-3',},activeTabId: deviceTab,setTabId: actions.setDeviceTab,