: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
feat(desktop): add 3x1 layout option to command center (#77551)
Joe Martin09633c17b151
diff --git a/products/desktop/packages/core/src/command-center/grid.test.ts b/products/desktop/packages/core/src/command-center/grid.test.tsindex 947423a6e9cf..c046a0a17faa 100644--- a/products/desktop/packages/core/src/command-center/grid.test.ts+++ b/products/desktop/packages/core/src/command-center/grid.test.ts@@ -18,6 +18,7 @@ describe("getGridDimensions / getCellCount", () => {it.each([{ preset: "1x1", cols: 1, rows: 1, count: 1 },{ preset: "2x1", cols: 2, rows: 1, count: 2 },+ { preset: "3x1", cols: 3, rows: 1, count: 3 },{ preset: "1x2", cols: 1, rows: 2, count: 2 },{ preset: "2x2", cols: 2, rows: 2, count: 4 },{ preset: "3x2", cols: 3, rows: 2, count: 6 },diff --git a/products/desktop/packages/core/src/command-center/grid.ts b/products/desktop/packages/core/src/command-center/grid.tsindex 36eaf5fa75df..a0aaa153e306 100644--- a/products/desktop/packages/core/src/command-center/grid.ts+++ b/products/desktop/packages/core/src/command-center/grid.ts@@ -1,4 +1,11 @@-export type LayoutPreset = "1x1" | "2x1" | "1x2" | "2x2" | "3x2" | "3x3";+export type LayoutPreset =+ | "1x1"+ | "2x1"+ | "3x1"+ | "1x2"+ | "2x2"+ | "3x2"+ | "3x3";export interface GridDimensions {cols: number;diff --git a/products/desktop/packages/core/src/sessions/sessionEviction.test.ts b/products/desktop/packages/core/src/sessions/sessionEviction.test.tsindex 71f1ccb1c55a..b8f98de3c617 100644--- a/products/desktop/packages/core/src/sessions/sessionEviction.test.ts+++ b/products/desktop/packages/core/src/sessions/sessionEviction.test.ts@@ -128,6 +128,7 @@ describe("MAX_CONNECTED_SESSIONS", () => {const allPresets: Record<LayoutPreset, true> = {"1x1": true,"2x1": true,+ "3x1": true,"1x2": true,"2x2": true,"3x2": true,diff --git a/products/desktop/packages/ui/src/features/command-center/components/CommandCenterToolbar.tsx b/products/desktop/packages/ui/src/features/command-center/components/CommandCenterToolbar.tsxindex 89d034bfb0c7..aeceeb231325 100644--- a/products/desktop/packages/ui/src/features/command-center/components/CommandCenterToolbar.tsx+++ b/products/desktop/packages/ui/src/features/command-center/components/CommandCenterToolbar.tsx@@ -58,6 +58,7 @@ const LAYOUT_OPTIONS: {}[] = [{ value: "1x1", label: "1x1", cols: 1, rows: 1 },{ value: "2x1", label: "2x1", cols: 2, rows: 1 },+ { value: "3x1", label: "3x1", cols: 3, rows: 1 },{ value: "1x2", label: "1x2", cols: 1, rows: 2 },{ value: "2x2", label: "2x2", cols: 2, rows: 2 },{ value: "3x2", label: "3x2", cols: 3, rows: 2 },