From 499e2795037d5cd40a8d80ae5f1fbf0e2de735ec Mon Sep 17 00:00:00 2001 From: Hector Date: Wed, 12 Nov 2025 17:29:07 +0000 Subject: [PATCH] fix(launchpad): Select root for initial breadcrumb --- .../preprod/components/visualizations/appSizeTreemap.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/app/views/preprod/components/visualizations/appSizeTreemap.tsx b/static/app/views/preprod/components/visualizations/appSizeTreemap.tsx index f59e9153d1ed2f..88110c2d165e0d 100644 --- a/static/app/views/preprod/components/visualizations/appSizeTreemap.tsx +++ b/static/app/views/preprod/components/visualizations/appSizeTreemap.tsx @@ -204,6 +204,12 @@ export function AppSizeTreemap(props: AppSizeTreemapProps) { height: `calc(100% - 22px)`, width: '100%', top: '22px', + // Very mysteriously this controls the initial breadcrumbs: + // https://github.com/apache/echarts/blob/6f305b497adc47fa2987a450d892d09741342c56/src/chart/treemap/TreemapView.ts#L665 + // If truthy the root is selected else the 'middle' node is selected. + // It has to be set to large number to avoid problems caused by + // leafDepth's main use - controlling how many layers to render. + leafDepth: 100000, breadcrumb: { show: true, left: '0',