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): hide horizontal compaction option (#124297)

Matt Pua359a3af8f1cc
diff --git a/frontend/src/scenes/dashboard/DashboardCustomizeSubMenu.tsx b/frontend/src/scenes/dashboard/DashboardCustomizeSubMenu.tsx
index aae96d585269..b480f38557d7 100644
--- a/frontend/src/scenes/dashboard/DashboardCustomizeSubMenu.tsx
+++ b/frontend/src/scenes/dashboard/DashboardCustomizeSubMenu.tsx
@@ -77,7 +77,7 @@ export function DashboardCustomizeSubMenu(): JSX.Element | null {
changeDashboardGridCompaction(value as DashboardGridCompaction)
}
>
- {Object.values(DashboardGridCompaction).map((mode) => (
+ {[DashboardGridCompaction.Vertical, DashboardGridCompaction.Stable].map((mode) => (
<SceneMenuBarRadioItem
key={mode}
value={mode}
diff --git a/products/dashboards/frontend/components/DashboardCustomizeMenu/DashboardCustomizeMenu.tsx b/products/dashboards/frontend/components/DashboardCustomizeMenu/DashboardCustomizeMenu.tsx
index 5f660fb2c7d1..9a44711a3ca7 100644
--- a/products/dashboards/frontend/components/DashboardCustomizeMenu/DashboardCustomizeMenu.tsx
+++ b/products/dashboards/frontend/components/DashboardCustomizeMenu/DashboardCustomizeMenu.tsx
@@ -45,17 +45,6 @@ const GRID_COMPACTION_OPTIONS: {
</span>
),
},
- {
- value: DashboardGridCompaction.Horizontal,
- label: (
- <span className="flex items-center gap-2">
- <span className="text-xs font-medium">
- {DASHBOARD_GRID_COMPACTION_LABELS[DashboardGridCompaction.Horizontal]}
- </span>
- <DashboardTileMovementPreview mode={DashboardGridCompaction.Horizontal} />
- </span>
- ),
- },
{
value: DashboardGridCompaction.Stable,
label: (