ObjectStackObjectStack

Dashboard schema — UI Protocol reference

Dashboard schemas of the ObjectStack UI Protocol: Dashboard, DashboardHeader and 8 more — each property with its type, default and a TypeScript example.

Source: packages/spec/src/ui/dashboard.zod.ts

TypeScript Usage

import { DashboardSchema, DashboardHeaderSchema, DashboardHeaderActionSchema, DashboardWidgetSchema, DashboardWidgetChartConfigSchema, DashboardWidgetOptionsSchema, GlobalFilterSchema, GlobalFilterOptionsFromSchema, WidgetActionTypeSchema, WidgetColorVariantSchema } from '@objectstack/spec/ui';
import type { Dashboard, DashboardHeader, DashboardHeaderAction, DashboardWidget, DashboardWidgetChartConfig, DashboardWidgetOptions, GlobalFilter, GlobalFilterOptionsFrom, WidgetActionType, WidgetColorVariant } from '@objectstack/spec/ui';

// Validate data
const result = DashboardSchema.parse(data);

Dashboard

Properties

PropertyTypeRequiredDescription
namestring✅Dashboard unique name
labelstring | Record<string, string>✅Dashboard label
descriptionstring | Record<string, string>optionalDashboard description
header{ showTitle?: boolean; showDescription?: boolean; actions?: object[] }optionalDashboard header configuration
widgets{ id: string; title?: string | Record<string, string>; description?: string | Record<string, string>; type?: Enum<'bar' | 'horizontal-bar' | 'column' | 'line' | 'area' | 'pie' | 'donut' | …>; … }[]✅Widgets to display
columnsintegeroptionalNumber of grid columns. When absent, inferred from the widgets: 12 if any widget layout reaches past column 4 (x + w > 4), otherwise 4
gapintegeroptionalSpace between widgets, in steps of 0.25rem (4 = 1rem)
refreshIntervalSecondsnumberoptionalAuto-refresh interval in seconds
refreshIntervalneveroptional[REMOVED] dashboard.refreshInterval was renamed to refreshIntervalSeconds in @objectstack/spec 17 — the unit of a duration-shaped number lives in the key name, not only in the describe prose. Rename the key to refreshIntervalSeconds; the value (seconds) is unchanged. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
dateRange{ field?: string; defaultRange?: Enum<'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | …>; allowCustomRange?: boolean }optionalGlobal dashboard date range filter configuration
globalFilters{ name?: string; field: string; object?: string; label?: string | Record<string, string>; … }[]optionalGlobal filters that apply to all widgets in the dashboard. Each filter name (its field when it has no name) is declared once, and is not dateRange when the dashboard declares dateRange
requiredPermissionsstring[]optional[ADR-0066] Capabilities a user must ALL hold for this list view or dashboard to be served to them — names that permission sets grant through systemPermissions, the same list as requiredPermissions on an app, a navigation item or an action. Absent or empty: no audience gate. There is no any-of form: to serve one item to several audiences (legal OR admin), declare one capability and grant it to each of their permission sets. The server enforces it: a user who does not hold them all is not listed the item and is refused it by name; a view container's list views are pruned the same way, and so are an object's own list views for a user who may not edit the object.
protection{ lock: Enum<'none' | 'no-overlay' | 'no-delete' | 'full'>; reason: string; docsUrl?: string }optionalPackage author protection block — lock policy for this dashboard.
_lockEnum<'none' | 'no-overlay' | 'no-delete' | 'full'>optionalItem-level lock — controls overlay & delete (ADR-0010).
_lockReasonstringoptionalHuman-readable reason shown when a write is refused by _lock.
_lockSourceEnum<'artifact' | 'package' | 'env-forced'>optionalLayer that set _lock (artifact | package | env-forced).
_provenanceEnum<'package' | 'org' | 'env-forced' | 'platform'>optionalOrigin of the item (package | org | env-forced | platform).
_packageIdstringoptionalOwning package machine id.
_packageVersionstringoptionalOwning package version.
_lockDocsUrlstringoptionalOptional documentation link surfaced next to _lockReason.
overrides{ package: string; basedOn: string }optionalOverride declaration (ADR-0146 D2): { package, basedOn } — this item of "<base>.custom" replaces the base package's same-named item whole. basedOn is recorded and never gates; a base's upgrade plan reads it only as advice.

Nested Shape: Dashboard.header

PropertyTypeRequiredDescription
showTitlebooleanoptional (default: true)Show dashboard title in header
showDescriptionbooleanoptional (default: true)Show dashboard description in header
actions{ label: string | Record<string, string>; actionUrl: string; actionType?: Enum<'script' | 'url' | 'modal' | 'flow' | 'api' | 'form'>; icon?: string }[]optionalHeader action buttons

Nested Shape: Dashboard.widgets[number]

PropertyTypeRequiredDescription
idstring✅Unique widget identifier (snake_case)
titlestring | Record<string, string>optionalWidget title
descriptionstring | Record<string, string>optionalWidget description text below the header
typeEnum<'bar' | 'horizontal-bar' | 'column' | 'line' | 'area' | 'pie' | 'donut' | …>optional (default: "metric")Visualization type
chartConfig{ title?: string | Record<string, string>; subtitle?: string | Record<string, string>; description?: string | Record<string, string>; colors?: string[] | Record<string, string>; … }optionalChart appearance: title, subtitle, description, colors, height, legend, data labels, annotations, interaction. The bound dataset decides which series exist and which column each one reads (ADR-0021), so type (the widget's own type wins), xAxis, yAxis and series are refused here — select dimensions / values instead.
colorVariantEnum<'default' | 'blue' | 'teal' | 'orange' | 'purple' | 'success' | 'warning' | 'danger'>optionalWidget color variant for theming
requiresObjectstringoptionalHide the widget unless the named object is registered — an install gate, not a viewer gate. Outside design mode, a dataset-bound widget whose query the server refuses as a read refusal (403 PERMISSION_DENIED) is left out of the dashboard for that viewer with no key.
requiresServicestringoptionalHide the widget unless the named kernel service is registered
filteranyoptionalPresentation-scope filter (runtimeFilter)
compareTo{ kind: Enum<'previousPeriod' | 'previousYear'>; dimension?: string }optionalPeriod-over-period comparison window ({ kind, dimension? })
datasetstring✅Dataset name to bind (ADR-0021)
dimensionsstring[]optionalDimension names — X/group/split
valuesstring[]✅Measure names — Y (at least one; exactly one on the metric/kpi/gauge/solid-gauge/bullet family and on the single-series pie/donut/funnel/treemap/sankey; with no dimensions, two or more only on table/pivot/bar/column/horizontal-bar/line/area/combo)
layout{ x: number; y: number; w: number; h: number }optionalGrid layout position (auto-flowed when omitted)
options{ dateGranularity?: Enum<'day' | 'week' | 'month' | 'quarter' | 'year'>; sortBy?: string; sortOrder?: Enum<'asc' | 'desc'>; limit?: integer; … } & Record<string, any>optionalWidget specific configuration
filterBindingsRecord<string, string | false>optionalPer-widget dashboard-filter bindings: filter name → this widget's field, or false to opt out. Each key must name a filter the dashboard declares (dateRange only when declared); lint rule dashboard-filter-binding-unknown refuses any other
suppressWarningsstring[]optionalBuild diagnostic rule ids suppressed on this widget

Nested Shape: Dashboard.dateRange

PropertyTypeRequiredDescription
fieldstringoptionalDefault date field name for time-based filtering
defaultRangeEnum<'today' | 'yesterday' | 'this_week' | 'last_week' | 'this_month' | 'last_month' | …>optional (default: "this_month")Default date range preset
allowCustomRangebooleanoptional (default: true)Allow users to pick a custom date range

Nested Shape: Dashboard.globalFilters[number]

PropertyTypeRequiredDescription
namestringoptionalStable filter name (variable key); defaults to field. Refused as dateRange when the dashboard declares dateRange (the built-in date range's reserved name)
fieldstring✅Field name to filter on — at the authoring layer it resolves against the object behind each bound widget's dataset (dataset.object), not against that dataset's declared dimensions; enforced by the lint rule dashboard-filter-field-unknown (severity error)
objectstringoptionalObject whose fields.<object>.<field> translation-bundle entry resolves this filter's field label and option labels
labelstring | Record<string, string>optionalDisplay label for the filter
typeEnum<'text' | 'select' | 'date' | 'number' | 'lookup'>optionalFilter input type
options{ value: string | number | boolean; label: string | Record<string, string> }[]optionalStatic filter options
optionsFrom{ object: string; valueField: string; labelField: string; filter?: any }optionalDynamic filter options from object
defaultValuestring | number | booleanoptionalDefault filter value. On a date filter: a preset name, an ISO date or a date-macro token. On a text filter keyed by ISO week, {current_iso_week} resolves to the current week key (e.g. 2026-W47) each time the dashboard opens
scopeEnum<'dashboard' | 'widget'>optional (default: "dashboard")Filter application scope
targetWidgetsstring[]optionalWidget IDs to apply this filter to

Nested Shape: Dashboard.protection

PropertyTypeRequiredDescription
lockEnum<'none' | 'no-overlay' | 'no-delete' | 'full'>✅Lock policy — none | no-overlay | no-delete | full.
reasonstring✅User-visible reason shown when the lock blocks an action.
docsUrlstringoptionalOptional URL the Studio banner links to for more context.

Nested Shape: Dashboard.overrides

PropertyTypeRequiredDescription
packagestring✅The base package id whose same-named item this item replaces whole (e.g. "com.acme.crm"). Only an item of the base's paired "<base>.custom" package declares an override.
basedOnstring✅Recorded, never a gate: the base package's manifest.version this override was taken from (e.g. "3.2.0"), not a history version of the item. Nothing is refused, merged or rebased on it; it tells a person re-basing the override where it started. One reader, as advice: a base's upgrade plan lists an override whose basedOn is not the installed base version as stale, beside each override whose base item the upgrade changes (ADR-0146 D2, as amended).

DashboardHeader

Dashboard header configuration

Properties

PropertyTypeRequiredDescription
showTitlebooleanoptional (default: true)Show dashboard title in header
showDescriptionbooleanoptional (default: true)Show dashboard description in header
actions{ label: string | Record<string, string>; actionUrl: string; actionType?: Enum<'script' | 'url' | 'modal' | 'flow' | 'api' | 'form'>; icon?: string }[]optionalHeader action buttons

Nested Shape: DashboardHeader.actions[number]

Dashboard header action

PropertyTypeRequiredDescription
labelstring | Record<string, string>✅Action button label
actionUrlstring✅URL or target for the action. When actionType is 'url' or omitted: an http:// or https:// URL, a mailto: address, or an in-app path starting with / or ./ — every other scheme and a protocol-relative //host are refused.
actionTypeEnum<'script' | 'url' | 'modal' | 'flow' | 'api' | 'form'>optionalType of action
iconstringoptionalIcon identifier for the action button

DashboardHeaderAction

Dashboard header action

Properties

PropertyTypeRequiredDescription
labelstring | Record<string, string>✅Action button label
actionUrlstring✅URL or target for the action. When actionType is 'url' or omitted: an http:// or https:// URL, a mailto: address, or an in-app path starting with / or ./ — every other scheme and a protocol-relative //host are refused.
actionTypeEnum<'script' | 'url' | 'modal' | 'flow' | 'api' | 'form'>optionalType of action
iconstringoptionalIcon identifier for the action button

DashboardWidget

Properties

PropertyTypeRequiredDescription
idstring✅Unique widget identifier (snake_case)
titlestring | Record<string, string>optionalWidget title
descriptionstring | Record<string, string>optionalWidget description text below the header
typeEnum<'bar' | 'horizontal-bar' | 'column' | 'line' | 'area' | 'pie' | 'donut' | 'funnel' | 'scatter' | 'treemap' | 'sankey' | 'combo' | 'gauge' | 'solid-gauge' | … +6 more>optional (default: "metric")Visualization type
chartConfig{ title?: string | Record<string, string>; subtitle?: string | Record<string, string>; description?: string | Record<string, string>; colors?: string[] | Record<string, string>; … }optionalChart appearance: title, subtitle, description, colors, height, legend, data labels, annotations, interaction. The bound dataset decides which series exist and which column each one reads (ADR-0021), so type (the widget's own type wins), xAxis, yAxis and series are refused here — select dimensions / values instead.
colorVariantEnum<'default' | 'blue' | 'teal' | 'orange' | 'purple' | 'success' | 'warning' | 'danger'>optionalWidget color variant for theming
requiresObjectstringoptionalHide the widget unless the named object is registered — an install gate, not a viewer gate. Outside design mode, a dataset-bound widget whose query the server refuses as a read refusal (403 PERMISSION_DENIED) is left out of the dashboard for that viewer with no key.
requiresServicestringoptionalHide the widget unless the named kernel service is registered
filteranyoptionalPresentation-scope filter (runtimeFilter)
compareTo{ kind: Enum<'previousPeriod' | 'previousYear'>; dimension?: string }optionalPeriod-over-period comparison window ({ kind, dimension? })
datasetstring✅Dataset name to bind (ADR-0021)
dimensionsstring[]optionalDimension names — X/group/split
valuesstring[]✅Measure names — Y (at least one; exactly one on the metric/kpi/gauge/solid-gauge/bullet family and on the single-series pie/donut/funnel/treemap/sankey; with no dimensions, two or more only on table/pivot/bar/column/horizontal-bar/line/area/combo)
layout{ x: number; y: number; w: number; h: number }optionalGrid layout position (auto-flowed when omitted)
options{ dateGranularity?: Enum<'day' | 'week' | 'month' | 'quarter' | 'year'>; sortBy?: string; sortOrder?: Enum<'asc' | 'desc'>; limit?: integer; … } & Record<string, any>optionalWidget specific configuration
filterBindingsRecord<string, string | false>optionalPer-widget dashboard-filter bindings: filter name → this widget's field, or false to opt out. Each key must name a filter the dashboard declares (dateRange only when declared); lint rule dashboard-filter-binding-unknown refuses any other
suppressWarningsstring[]optionalBuild diagnostic rule ids suppressed on this widget

Allowed Values: DashboardWidget.type

  • bar
  • horizontal-bar
  • column
  • line
  • area
  • pie
  • donut
  • funnel
  • scatter
  • treemap
  • sankey
  • combo
  • gauge
  • solid-gauge
  • metric
  • kpi
  • bullet
  • radar
  • table
  • pivot

Nested Shape: DashboardWidget.chartConfig

PropertyTypeRequiredDescription
typeneveroptional[REMOVED] dashboard.widgets[].chartConfig.type was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides nothing about the chart family — the WIDGET's own type does, and it always won: the dashboard renderer maps the widget type to the chart family and never reads this key, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. Write the family on the widget instead: type: 'line' beside dataset, not inside chartConfig. The key is NOT gone from the chart config itself: it stays authorable on the react <ObjectChart> tier, where the chart is bound to inline data and there is no dataset to derive it from. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
titlestring | Record<string, string>optionalChart title
subtitlestring | Record<string, string>optionalChart subtitle
descriptionstring | Record<string, string>optionalAccessibility description — announced to screen readers as the chart’s label
xAxisneveroptional[REMOVED] dashboard.widgets[].chartConfig.xAxis was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides which column the category axis plots — it is the dataset DIMENSION the widget selects, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. Select the dimension instead: dimensions: ['stage'] on the widget. Axis APPEARANCE (title, number format, min/max, grid lines, log scale) has no home on a dataset-bound widget — the dataset's dimension declaration is what labels and formats the axis. The key is NOT gone from the chart config itself: it stays authorable on the react <ObjectChart> tier, where the chart is bound to inline data and there is no dataset to derive it from. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
yAxisneveroptional[REMOVED] dashboard.widgets[].chartConfig.yAxis was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides which columns the value axis plots — they are the dataset MEASURES the widget selects, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. Select the measures instead: values: ['amount'] on the widget, one entry per mark. A second axis is a second measure, not a second axis declaration. The key is NOT gone from the chart config itself: it stays authorable on the react <ObjectChart> tier, where the chart is bound to inline data and there is no dataset to derive it from. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
seriesneveroptional[REMOVED] dashboard.widgets[].chartConfig.series was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides which series exist and which column each one reads — series membership follows from the measures in values and the split in dimensions, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. Select the measures and the split instead: values declares one series per measure and a second dimensions entry splits them. Per-series appearance (label, colour, mark type, stacking) is not authorable on a dataset-bound widget; colors on this same chart config is the palette channel that remains. The key is NOT gone from the chart config itself: it stays authorable on the react <ObjectChart> tier, where the chart is bound to inline data and there is no dataset to derive it from. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
colorsstring[] | Record<string, string>optionalColor palette (string[]) or value→color map ({ value: color })
heightnumberoptionalFixed plot height in pixels (overrides the container default)
showLegendbooleanoptional (default: true)Display legend
showDataLabelsbooleanoptional (default: false)Display data labels
annotations{ type?: Enum<'line' | 'region'>; axis?: Enum<'x' | 'y'>; value: number | string; endValue?: number | string; … }[]optionalReference lines/bands drawn over the plot: { type: "line" | "region", axis: "x" | "y", value, endValue?, color?, label?, style? }
interaction{ tooltips?: boolean; brush?: boolean }optionalInteraction toggles: { tooltips?, brush? }
arianeveroptional[REMOVED] ChartConfig.aria — authored as dashboard.widgets[].chartConfig.aria, report.chart.aria and report.blocks[].chart.aria — was removed in @objectstack/spec 17 (ADR-0049 D2). No chart renderer ever applied it: the chart implementation declares no aria prop, the presentation lowering names it nowhere, and the react <ObjectChart> block never published it, so ARIA attributes declared here parsed and then silently did not reach the DOM. Delete the key. The accessible name that IS applied on this same chart config is its sibling description, which the chart renderer lowers onto the chart graphic as role="img" plus aria-label. The shared AriaProps shape is NOT gone — ariaLabel / ariaDescribedBy / role stay live in the aria block on page.aria, page.components[].aria and the list view aria. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.

Nested Shape: DashboardWidget.compareTo

PropertyTypeRequiredDescription
kindEnum<'previousPeriod' | 'previousYear'>✅Comparison window: previousPeriod (equal-length, immediately before) or previousYear (−1 calendar year)
dimensionstringoptionalTime dimension to shift; omit when the selection has exactly one dated time dimension

Nested Shape: DashboardWidget.options

PropertyTypeRequiredDescription
dateGranularityEnum<'day' | 'week' | 'month' | 'quarter' | 'year'>optionalBucket selected date dimensions (day/week/month/quarter/year)
sortBystringoptionalDimension/measure name to order by
sortOrderEnum<'asc' | 'desc'>optionalSort direction for sortBy
limitintegeroptionalMax rows (applied after ordering)
stageOrder(string | number | boolean)[]optionalExplicit stage order for a funnel widget, as the dimension's stored values. funnel is the only widget type that reads it, and the schema refuses it on any other type rather than accepting an order nothing consults — order those with sortBy/sortOrder instead. There is no pyramid widget type — write funnel.

DashboardWidgetChartConfig

Chart APPEARANCE for a dataset-bound widget (ADR-0021): title, subtitle, description, colors, height, legend, data labels, annotations and interaction. The dataset decides which series exist and which column each one reads, so type, xAxis, yAxis and series are refused here — write them as the widget's own type and its dimensions / values selection.

Properties

PropertyTypeRequiredDescription
typeneveroptional[REMOVED] dashboard.widgets[].chartConfig.type was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides nothing about the chart family — the WIDGET's own type does, and it always won: the dashboard renderer maps the widget type to the chart family and never reads this key, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. Write the family on the widget instead: type: 'line' beside dataset, not inside chartConfig. The key is NOT gone from the chart config itself: it stays authorable on the react <ObjectChart> tier, where the chart is bound to inline data and there is no dataset to derive it from. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
titlestring | Record<string, string>optionalChart title
subtitlestring | Record<string, string>optionalChart subtitle
descriptionstring | Record<string, string>optionalAccessibility description — announced to screen readers as the chart’s label
xAxisneveroptional[REMOVED] dashboard.widgets[].chartConfig.xAxis was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides which column the category axis plots — it is the dataset DIMENSION the widget selects, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. Select the dimension instead: dimensions: ['stage'] on the widget. Axis APPEARANCE (title, number format, min/max, grid lines, log scale) has no home on a dataset-bound widget — the dataset's dimension declaration is what labels and formats the axis. The key is NOT gone from the chart config itself: it stays authorable on the react <ObjectChart> tier, where the chart is bound to inline data and there is no dataset to derive it from. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
yAxisneveroptional[REMOVED] dashboard.widgets[].chartConfig.yAxis was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides which columns the value axis plots — they are the dataset MEASURES the widget selects, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. Select the measures instead: values: ['amount'] on the widget, one entry per mark. A second axis is a second measure, not a second axis declaration. The key is NOT gone from the chart config itself: it stays authorable on the react <ObjectChart> tier, where the chart is bound to inline data and there is no dataset to derive it from. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
seriesneveroptional[REMOVED] dashboard.widgets[].chartConfig.series was removed in @objectstack/spec 17.5.0 (ADR-0021 · ADR-0049 D2) — on a dataset-bound widget the dataset already decides which series exist and which column each one reads — series membership follows from the measures in values and the split in dimensions, so the authored value could only agree with the dataset selection or silently disagree with it. Delete the key. Select the measures and the split instead: values declares one series per measure and a second dimensions entry splits them. Per-series appearance (label, colour, mark type, stacking) is not authorable on a dataset-bound widget; colors on this same chart config is the palette channel that remains. The key is NOT gone from the chart config itself: it stays authorable on the react <ObjectChart> tier, where the chart is bound to inline data and there is no dataset to derive it from. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.
colorsstring[] | Record<string, string>optionalColor palette (string[]) or value→color map ({ value: color })
heightnumberoptionalFixed plot height in pixels (overrides the container default)
showLegendbooleanoptional (default: true)Display legend
showDataLabelsbooleanoptional (default: false)Display data labels
annotations{ type?: Enum<'line' | 'region'>; axis?: Enum<'x' | 'y'>; value: number | string; endValue?: number | string; … }[]optionalReference lines/bands drawn over the plot: { type: "line" | "region", axis: "x" | "y", value, endValue?, color?, label?, style? }
interaction{ tooltips?: boolean; brush?: boolean }optionalInteraction toggles: { tooltips?, brush? }
arianeveroptional[REMOVED] ChartConfig.aria — authored as dashboard.widgets[].chartConfig.aria, report.chart.aria and report.blocks[].chart.aria — was removed in @objectstack/spec 17 (ADR-0049 D2). No chart renderer ever applied it: the chart implementation declares no aria prop, the presentation lowering names it nowhere, and the react <ObjectChart> block never published it, so ARIA attributes declared here parsed and then silently did not reach the DOM. Delete the key. The accessible name that IS applied on this same chart config is its sibling description, which the chart renderer lowers onto the chart graphic as role="img" plus aria-label. The shared AriaProps shape is NOT gone — ariaLabel / ariaDescribedBy / role stay live in the aria block on page.aria, page.components[].aria and the list view aria. Run os migrate meta --from 17 to list the mechanical edits for existing sources; --write applies the ones it can prove, and you apply the rest by hand.

Nested Shape: DashboardWidgetChartConfig.annotations[number]

PropertyTypeRequiredDescription
typeEnum<'line' | 'region'>optional (default: "line")
axisEnum<'x' | 'y'>optional (default: "y")
valuenumber | string✅Start value
endValuenumber | stringoptionalEnd value for regions
colorstringoptional
labelstring | Record<string, string>optionalDisplay label — the default-language string, or an inline locale map ({ en, "zh-CN" }) resolved at render time
styleEnum<'solid' | 'dashed' | 'dotted'>optional (default: "dashed")

Nested Shape: DashboardWidgetChartConfig.interaction

PropertyTypeRequiredDescription
tooltipsbooleanoptional (default: true)Show the hover tooltip
brushbooleanoptional (default: false)Show the range selector under the plot

DashboardWidgetOptions

Widget configuration — declared query keys + open renderer extras

Properties

PropertyTypeRequiredDescription
dateGranularityEnum<'day' | 'week' | 'month' | 'quarter' | 'year'>optionalBucket selected date dimensions (day/week/month/quarter/year)
sortBystringoptionalDimension/measure name to order by
sortOrderEnum<'asc' | 'desc'>optionalSort direction for sortBy
limitintegeroptionalMax rows (applied after ordering)
stageOrder(string | number | boolean)[]optionalExplicit stage order for a funnel widget, as the dimension's stored values. funnel is the only widget type that reads it, and the schema refuses it on any other type rather than accepting an order nothing consults — order those with sortBy/sortOrder instead. There is no pyramid widget type — write funnel.

GlobalFilter

Properties

PropertyTypeRequiredDescription
namestringoptionalStable filter name (variable key); defaults to field. Refused as dateRange when the dashboard declares dateRange (the built-in date range's reserved name)
fieldstring✅Field name to filter on — at the authoring layer it resolves against the object behind each bound widget's dataset (dataset.object), not against that dataset's declared dimensions; enforced by the lint rule dashboard-filter-field-unknown (severity error)
objectstringoptionalObject whose fields.<object>.<field> translation-bundle entry resolves this filter's field label and option labels
labelstring | Record<string, string>optionalDisplay label for the filter
typeEnum<'text' | 'select' | 'date' | 'number' | 'lookup'>optionalFilter input type
options{ value: string | number | boolean; label: string | Record<string, string> }[]optionalStatic filter options
optionsFrom{ object: string; valueField: string; labelField: string; filter?: any }optionalDynamic filter options from object
defaultValuestring | number | booleanoptionalDefault filter value. On a date filter: a preset name, an ISO date or a date-macro token. On a text filter keyed by ISO week, {current_iso_week} resolves to the current week key (e.g. 2026-W47) each time the dashboard opens
scopeEnum<'dashboard' | 'widget'>optional (default: "dashboard")Filter application scope
targetWidgetsstring[]optionalWidget IDs to apply this filter to

Nested Shape: GlobalFilter.options[number]

PropertyTypeRequiredDescription
valuestring | number | boolean✅Option value
labelstring | Record<string, string>✅Display label — the default-language string, or an inline locale map ({ en, "zh-CN" }) resolved at render time

Nested Shape: GlobalFilter.optionsFrom

PropertyTypeRequiredDescription
objectstring✅Source object name
valueFieldstring✅Field to use as option value
labelFieldstring✅Field to use as option label
filteranyoptionalFilter to apply to source object

GlobalFilterOptionsFrom

Dynamic filter options from object

Properties

PropertyTypeRequiredDescription
objectstring✅Source object name
valueFieldstring✅Field to use as option value
labelFieldstring✅Field to use as option label
filteranyoptionalFilter to apply to source object

WidgetActionType

Widget action type

Allowed Values

  • script
  • url
  • modal
  • flow
  • api
  • form

WidgetColorVariant

Widget color variant

Allowed Values

  • default
  • blue
  • teal
  • orange
  • purple
  • success
  • warning
  • danger

On this page