From 21caa354e79b738c5cf0d06e64ef96432df4b352 Mon Sep 17 00:00:00 2001 From: stroblme Date: Fri, 28 Aug 2026 20:41:29 +0200 Subject: [PATCH] Stop two docstrings describing a schema that is gone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pages and sections left in 7ff29ca. DashboardView still promised SectionDef stayed and that the editor wrote back into the first section; the mosaic still said "the first page's widgets". Comments only — the code was right. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01K1moruzue2kTJd3uVisgNk --- frontend/src/components/Common/DashboardMosaic.tsx | 5 +---- frontend/src/components/Dashboard/DashboardView.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/Common/DashboardMosaic.tsx b/frontend/src/components/Common/DashboardMosaic.tsx index 5db9d06..035ae27 100644 --- a/frontend/src/components/Common/DashboardMosaic.tsx +++ b/frontend/src/components/Common/DashboardMosaic.tsx @@ -65,10 +65,7 @@ type Block = { h: number } -/** - * The first page's widgets as one grid. - * - */ +/** The dashboard's widgets as one grid. */ function blocksOf(dashboard: DashboardDef_Output): { blocks: Block[] rows: number diff --git a/frontend/src/components/Dashboard/DashboardView.tsx b/frontend/src/components/Dashboard/DashboardView.tsx index 0990784..7d2a72d 100644 --- a/frontend/src/components/Dashboard/DashboardView.tsx +++ b/frontend/src/components/Dashboard/DashboardView.tsx @@ -294,12 +294,12 @@ export const isPlaced = (widgets: WidgetDef[]) => }) /** - * One page, drawn as the single grid the panel shows. + * A dashboard, drawn as the single grid the panel shows. * * A dashboard is one canvas — several dashboards on a panel is what the rail - * is for — so the page's sections are one arrangement rather than a stack of - * headed grids. `SectionDef` stays in the schema, and the editor writes what - * it arranged back into the first section. + * is for — so its widgets are one arrangement rather than a stack of headed + * grids. Pages and sections left the schema in 7ff29ca; a document written + * the old way is flattened on read. */ export function DashboardView({ dashboard,