Skip to content

Commit 84b361c

Browse files
committed
fix(cli): os explain dashboard states the columns inference
The explain table mirrored the old "(default 12)" describe; it now says what the renderer does when columns is absent: 12 if any widget layout reaches past column 4, otherwise 4. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CahVE6H18HGhfsxm57
1 parent 723cb45 commit 84b361c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
'@objectstack/spec': patch
3+
'@objectstack/cli': patch
34
---
45

56
fix(spec): `DashboardSchema.columns` says what the renderer does when it is absent
67

78
Clause-②: no
89
Metadata-protocol: none
910

10-
The `columns` describe said "(default 12)". The dashboard renderer has no fixed default: when `columns` is absent it infers the grid from the widgets, 12 if any widget layout reaches past column 4 (`x + w > 4`), otherwise 4. The describe, its TSDoc and the generated reference page now say that. No runtime change.
11+
The `columns` describe said "(default 12)". The dashboard renderer has no fixed default: when `columns` is absent it infers the grid from the widgets, 12 if any widget layout reaches past column 4 (`x + w > 4`), otherwise 4. The describe, its TSDoc, the generated reference page and the `os explain dashboard` table now say that. No runtime change.

‎packages/cli/src/commands/explain.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export const SCHEMAS: Record<string, SchemaInfo> = {
289289
],
290290
optional: [
291291
{ name: 'description', type: 'string', description: 'Dashboard description' },
292-
{ name: 'columns', type: 'number (1-24)', description: 'Number of grid columns (default 12)' },
292+
{ name: 'columns', type: 'number (1-24)', description: 'Number of grid columns. When absent, inferred from the widgets: 12 if any widget layout reaches past column 4 (x + w > 4), otherwise 4' },
293293
{ name: 'gap', type: 'number', description: 'Space between widgets, in steps of 0.25rem (4 = 1rem)' },
294294
// There is no dashboard-level `layout` template — the key is rejected by
295295
// name. Positioning is per-widget: `layout: { x, y, w, h }`, and a widget

0 commit comments

Comments
 (0)