Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Commit 0e6e76b

Browse files
fix(types): a gate-wrapped arm waives objectName when dataSource.object binds the node (objectui#11117) (#11312)
Fixes #11117 Clause-②: yes (narrowing): a widening on six arms (a non-empty `dataSource.object` counts as a record source), plus one narrowing on the `object-map` bag arm (an empty `dataSource.object` no longer counts) **What this does.** The tolerant face (`safeValidateSchema`, which `objectui validate` runs) now accepts a node bound through `dataSource.object` without an `objectName` on every gate-wrapped arm that has a record-source requirement: `object-grid`, `list-view`, `object-kanban`, `object-calendar`, `object-gantt` and `object-map`. The binding counts only when `dataSource.object` is a non-empty string, as the spec gate's `strName` and the runtime's `isElementDataSourceConfig` read it. A node with neither is still refused, and `dataSource: { object: '' }` supplies nothing. Dispatched by the `domain:spec @ objectui` seat, session `session_01VhxTqosz7wn54ahqyxgERT`. ## The change - **One refinement.** `requireRecordSource(type, rungs)` in `packages/types/src/zod/objectql.zod.ts` now takes each arm's own rung list and counts the binding as the last rung, using `dataSourceSuppliesObject`. That predicate is the one `element:number`'s spec waiver already used; it is now exported from `public-blocks.zod.ts` as an internal helper, so there is one copy, and it is not re-exported from `index.zod.ts`. - It is installed with `when: () => true`, so the refusal is reported beside any other issue on the node. On `object-grid` and `list-view` the required member used to behave that way, and the refinement keeps it. - `object-kanban`'s hand-copied `requireKanbanRecordSource` is gone. The kanban arm now calls the shared helper with `bind` / `data` / `objectName`. - **Where the refusal lands.** On `object-grid` and `list-view`, `objectName` is optional as a member and the refinement requires it unless a binding is present. The refusal is reported at `objectName`, the path the required member used, so `objectui validate` still prints `Path: objectName` (`validate-union-arm-selection.test.ts` stays green). The issue is now `custom` with `params.code = 'RECORD_SOURCE_REQUIRED'`. The four ladder arms still report at the root. - **Each arm's `objectName` describe** names the waiver. - **`ObjectViewSchema.table`** rebuilds the grid shape onto `BaseSchema` before its `.omit()`. zod 4 throws on `.omit()` of a refined object, and the grid now carries a refinement. The slot is unchanged: same keys, same `.passthrough()`, no record-source check. - **Docs, in `content/docs/utilities/data-objectstack.mdx`.** - The "Narrowing a saved view" fence now writes its `filter` as the spec's rule array, `[{ "field": "total", "operator": "greater_than", "value": 100 }]`. - The `ElementDataSource` excerpt types `filter` as `ViewFilterRule[]`, and its fragment marker gives the new reason. - **Docs elsewhere.** The data-binding guide (`content/docs/guide/data-source.md`) and `content/docs/api/schema-reference.md` say a bound node needs no `objectName`. - **Changeset.** `.changeset/11117-datasource-objectname-waiver.md` bumps `@object-ui/types` minor (a widening). ## Premises, measured on `origin/main` `1ccb5ba7d` against the built `@object-ui/types` dist The probe ran every documented binding through `AnyComponentSchema` (tolerant) and `StrictAnyComponentSchema`. - **H1 holds, and the form half is already answered.** objectui#10859 batch 4 moved `object-form` onto `ObjectFormBlockSchema`. `{ "type": "object-form", "dataSource": { "object": "user" } }` already parses on both faces, and the `mode` refusal belonged to the flat arm, which no longer judges authored documents. - The spec's `object-form` row declares `objectName` optional, so the bag arm has nothing to waive. A form node with neither key also parses, as the spec row allows; the renderer's inline `customFields` path is one reason a node can lack both. ⛔ This change does not narrow that. - The same holds for `object-metric`, `object-timeline` and `object-master-detail-form`: their rows require no object key. - **H2 holds.** `object-kanban`'s "has no record source" was the same gap: `dataSource.object` was missing from its ladder. Calendar, gantt and map refused their bound nodes the same way. All three registrations are gate-wrapped, and their mapping lands `binding.object` on `objectName`. - **H3 holds.** On the base, the "Narrowing a saved view" fence was refused twice: `objectName` `invalid_type`, and `dataSource.filter` `invalid_type` for the record form. Both are gone. - **After, on the head.** Every json binding fence on both pages parses on both faces. - The new pin reads the fences off disk. - The probe also kept the old record-form document: it is still refused, at `dataSource.filter` only, which is the spec's own refusal. ## The TypeScript twin of `ObjectGridSchema` keeps `objectName: string` - **Why not optional.** Making it optional reddens five `translateOptions(schema.objectName, …)` read sites in `@object-ui/plugin-grid`'s `ObjectGrid.tsx`. I measured this with a source-mapped `tsc` program over core, plugin-grid, plugin-list, plugin-view, plugin-calendar, plugin-gantt, plugin-dashboard, plugin-designer and app-shell. Changing those sites is renderer typing, outside this card's file surface. - **How the difference is recorded.** The declaration's doc says why it stays `string`. The mirror's wider `objectName` is a CONCRETE entry in `zod-mirror-parity.test.ts`'s `WiderThanDeclared` ledger, with its `WIDER_ARMS` row and the header figures. The ledger reddens when the two faces agree again. - **`ListViewSchema`** is derived from its mirror, so its `objectName` is now optional. The same consumer program reported no error from that. ## Texts this change made false **Corrected here.** - The `object-grid` `objectName` row and the kanban record-source note in `schema-reference.md`. - The kanban `groupBy` docblock in `objectql.ts`, which said the documented `{ type, dataSource }` fragment is still refused. Also the kanban TS docblock and the `objectql.zod.ts` docblocks that named `requireKanbanRecordSource`. - Dated, append-only `**Correction, 2026-10-01**` notes on four pending changesets: objectui#6939, objectui#7313, objectui#7780 and objectui#8990. Their front matter is byte-identical. **Corrected in round 2 (`2666d824b`).** - The `objectName` input descriptions on the `object-map`, `object-gantt` and `object-calendar` registrations, and on `view:calendar`, which shares the calendar list, now end with: "…refuses a block that declares none of them, unless the node's `dataSource.object` names the object, which then lands on this key." - No input name, type, `required` flag or shape moved. - `registry-inputs-spec-parity.test.ts` ran read-only and passed 230/230 untouched. - The `plugin-gantt` and `plugin-kanban` READMEs, and the comments next to the three registrations, carry the same correction. - The pending objectui#7470 and objectui#10392 changesets get dated, append-only corrections. - `.changeset/11117-registration-objectname-description.md` bumps the three plugins as a patch. **CI repair (round 2).** `scripts/markdown-test-inputs.mjs` `ADJUDICATED` now registers `element-data-source-objectname-waiver-11117.test.ts` as reading `content/docs/utilities/data-objectstack.mdx` and `content/docs/guide/data-source.md`. - `markdown-test-inputs.test.ts` was red at `993a0c85c` (1 failed / 24 passed) and is 25/25 at `2666d824b`. - `--audit` reports 108 candidate test files, all adjudicated. **Round 2 gates, at `2666d824b`:** - The doc-snippet build closure built (35/35 turbo tasks). `check:doc-snippets` then passed with 698 of 698 compiled blocks and 0 failed. This replaces the round-1 NOT MEASURED. - `check:readme-exports` passed. - `type-check` passed for plugin-map, plugin-gantt and plugin-calendar. - A 34-file vitest union passed, 1674 tests: every adjudicated reader of the five edited markdown files, the ledger script's tests, and the description pins. - `check:new-line-citations`, `check:control-bytes`, `check:changeset-claims`, `check-changeset-presence` and `check-changeset-no-major` all exited 0. **Round 3 (`01b9fb478`), from contract record 5923725485.** Two one-clause corrections: - `content/docs/guide/data-source.md` now says the validator refuses one of the six blocks only when it declares no other record source and names its object in neither place. The binding is "a" record source, not "the" one. - The `@object-ui/types` changeset now says the base refused the documented `object-grid`, `list-view` and `object-kanban` bindings, not every documented binding. Gates at `01b9fb478`: - the 11117 pin: 47/47; - `markdown-test-inputs.test.ts`: 25/25, and `--audit` is clean; - the 19-file union of the edited files' readers: 819/819; - `check:doc-snippets`: 698/698 compiled, 0 failed; - `check:doc-fences`, `check:changeset-claims`, `check-changeset-presence`, `check:new-line-citations` and `check:control-bytes`: all exit 0. **Round 4: merge of `main` (`80ec249bc`).** The merge brings in objectui#10859 batch 5, under which an authored `object-map` is judged by its `properties`-bag arm, `ObjectMapBlockSchema`. That arm already counted a `dataSource` binding, by its presence alone. - **Conflict in `objectql.zod.ts`.** Batch 5's `at: 'properties'` mode and this PR's rung list, binding predicate and `when: () => true` are now ONE helper, `requireRecordSource(type, rungs, at)`. - **The one narrowing.** The bag arm now counts only a non-empty `dataSource.object`, like every other arm and like the runtime. So `{ "type": "object-map", "dataSource": { "object": "" } }` with no bag rung is refused with `RECORD_SOURCE_REQUIRED`. It used to parse, and it rendered no records. - **Conflict in `plugin-map/src/index.tsx`.** Main's text is taken. Its `objectName` input description already names the node's `dataSource` binding, so this PR no longer edits that file. - **Population.** Still six arms. `object-map` is now judged on its bag arm, which keeps a record-source rule read in `properties`. The flat `ObjectMapSchema` mirror is no longer an arm of the face, and it keeps the same rule on the node. - **Pins.** The 11117 pin's `object-map` row moves to `ObjectMapBlockSchema`, and the flat mirror gets its own case. Batch 5's flat-key pin (`object-map-properties-bag-10859-b5.test.ts`) now expects the root `RECORD_SOURCE_REQUIRED` issue beside its flat-key refusals. - **Changesets.** Both 11117 changesets are corrected for the bag arm and its one narrowing, and `plugin-map` leaves the registration changeset. - **Gates at `80ec249bc`:** - `@object-ui/types`: build, type-check, and 306 files / 7,734 tests, all passing. - plugin-map, plugin-gantt and plugin-calendar: type-check passing. - A 122-file union of consumers, readers and pins: 2,656 tests passing. It includes the record-source pins and a read-only run of `registry-inputs-spec-parity.test.ts` (230/230). - `markdown-test-inputs`: 25/25, and `--audit` is clean. - `check:doc-snippets`: 698/698. - `check:changeset-claims`, `check-changeset-presence`, `check-changeset-no-major`, `check:new-line-citations` and `check:control-bytes`: all exit 0. **Round 5 (`2a237f0ec`): a CI repair.** The round-4 merge resolution escaped the backticks in `requireRecordSource`'s two `binding` strings. Those strings are single-quoted, so the escapes are useless, and `no-useless-escape` failed `Lint` with 6 errors. - The escapes are dropped. The string values are byte-identical. - `pnpm --filter @object-ui/types run lint` reports 0 errors. eslint `--format json` over all 12 TS/JS files in this diff also reports 0 errors. - `@object-ui/types` type-check passed. The 11117 pin and the batch-5 bag pin passed 93/93. ## The census fixtures (24 in 18 files, from PR objectui#11286's list): judged, then handed back as a worklist **What I recommend.** Convert 21 fixtures and keep 3. The conversion is separable from the validator change and spans 11 packages and 15 dom-test files. Each file asserts the merged filter the gate produces, so its expected values may need re-spelling. Nothing here converts a fixture. **Keep (3).** Each pins how a renderer handles a stored legacy shape: - `record-picker-malformed-filter-10789.test.tsx`: the `$regex` record, and its well-formed record control. - `ElementDataSourceGate.malformedFilter-10789.test.tsx`: the `$gt` record control. **Convert (21).** Each fixture's subject is the authored binding, and it reaches the gate as one; convert it to `[{ field, operator, value }]`: - `record-picker-element-data-source` (2) - `ObjectChart.elementDataSource` - `ObjectPivot.elementDataSource` - `RecordRelatedListRenderer.elementDataSource` - `record-related-list.propsRefusal-9963`: the `_fullBinding` type control - `EmbeddableForm.elementDataSource` - `LineItemsPanel.elementDataSource` - `MasterDetailForm.elementDataSource` - `ObjectGantt.elementDataSource` - `ObjectGrid.elementDataSource` (2) - `ObjectKanban.elementDataSource` (2) - `ListView.elementDataSource` - `ListView.sharedGate` - `ObjectMap.elementDataSource` - `ObjectTimeline.elementDataSource` (2) - `ElementDataSourceGate.test` (2). Once it is converted, that file should carry one explicitly named stored-shape (tuple array) case, so the gate keeps coverage of a shape a renderer may still receive. ## Tests and gates, at head `993a0c85c` - **`@object-ui/types`.** - `pnpm --filter @object-ui/types build` passes, with `dist completeness: 1 package(s) complete`. - `type-check` echoes `tsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json` and passes. - `pnpm exec vitest run packages/types/`: 302 test files / 7649 tests passed. - **Consumer suites, through the vitest source aliases.** I ran every test file outside `packages/types` that reads `safeValidateSchema`, the strict face, or one of the six mirrors: 96 files across cli, core, sdui-parser, the plugin packages, app-shell, apps/console, examples/schema-catalog and scripts. All passed, in two runs: 70 files / 1330 tests, and 26 files / 257 tests. - **Gates.** These all exited 0: - `check:spec-symbols`, `check:new-line-citations` (0 new), `check:control-bytes` - `check:doc-types`, `check:doc-fences`, `check:doc-example-ids` - `check:handler-key-reads`, `check:element-data-source-declaration`, `check:component-surface-parity`, `check:test-path-roots` - `check:changeset-claims` (report-only; record-source paragraphs read and corrected above), `check:pending-changeset-literals` - `check-changeset-presence` and `check-changeset-no-major` - **eslint.** `--no-inline-config` over the 8 changed TypeScript files: 8 files in the JSON report, 0 errors. The 38 warnings are all `no-explicit-any` on unchanged lines. The config has no type-aware rules, so this diff cannot move a verdict on an untouched file. - **Ablations.** I ran three against committed `ca5c505ba`, each via `ablation-replace.mjs` with the anchor proven 1 to 0 on disk. The pins import `../zod/…` source, so no dist is involved. Each run was restored, and the blob matched HEAD with `git diff HEAD` empty. 1. Delete the binding rung (`if (dataSourceSuppliesObject(node)) return;`): 14 failed / 33 passed. The failures were the six arms on both faces, plus both docs pages. 2. Accept an empty name (`typeof object === 'string'`): 6 failed, one EMPTY case per arm. 3. Drop `when: () => true`: 7 failed. Six were the "not a record" cases; the seventh was the grid case that reports the missing record source beside a `columns` error. **NOT MEASURED: `check:doc-snippets`** (exit 2, precondition: its 34 packages are unbuilt). Separately, I tested the edited fragment marker against the gate's own marker and verification-claim regexes: it matches, its reason is 556 characters, and it makes no claim. ## Acceptance notes - **`object-chart`.** Its registration is gate-wrapped, but the strict face still refuses `dataSource` by name. That is the deferral the TS twin's `dataSource` docblock records, outside this card's population. `objectName` is already optional there. - **`ObjectViewSchema` and `ObjectTreeSchema`.** They refuse a bound node without `objectName`, and that is correct: neither registration is gate-wrapped. - **The TypeScript twin of `ObjectGridSchema` keeps `objectName: string`** (seat decision B, round 2). Open PR objectui#11306, since merged as `582edef1c`, edited the same TS region and plugin-grid, and no TS-typed producer of a bound grid was found. The mirror's wider `objectName` is recorded as a CONCRETE `WiderThanDeclared` entry in `zod-mirror-parity.test.ts`, which goes red when the declaration becomes optional. - **The H4 fixture worklist stays as written here.** It is not carded. --- _Generated by [Claude Code](https://claude.ai/code/session_01VhxTqosz7wn54ahqyxgERT)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent b5b928a commit 0e6e76b

25 files changed

Lines changed: 628 additions & 145 deletions

‎.changeset/10392-registration-record-source-inputs.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ on the registrations disagreed with that rule in two ways:
3838
The renderers' read order and the zod schemas are unchanged. The
3939
`@object-ui/plugin-gantt` README sentence that listed the registration's inputs
4040
is updated.
41+
42+
**Correction, 2026-10-01 (objectui#11117).** "One of the three" now has an exception on all
43+
three blocks: a block that declares none of them is accepted when its `dataSource.object` names
44+
the object, because the registration's `ElementDataSourceGate` lands that name on `objectName`.
45+
The `objectName` input description now says so.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
'@object-ui/types': minor
3+
---
4+
5+
feat(types): a node bound through `dataSource.object` needs no `objectName` on the validator (objectui#11117)
6+
7+
`safeValidateSchema` (and `objectui validate`, which runs it) refused the documented
8+
`object-grid`, `list-view` and `object-kanban` bindings —
9+
`{ "type": "object-grid", "dataSource": { "object": "product", "limit": 20 } }`, the same on
10+
`list-view`, and `object-kanban`'s documented board — although each of those blocks renders
11+
it: their registrations are wrapped in `ElementDataSourceGate`, which lands the
12+
binding's `object` on `objectName` before the renderer reads the node, and `@objectstack/spec`
13+
accepts the node as written. `object-grid` and `list-view` required `objectName`, and the
14+
record-source rule of `object-kanban`, `object-calendar` and `object-gantt`, and of the flat
15+
`object-map` mirror, had no rung for the binding. (The authored `object-map` node has been judged by
16+
its `properties`-bag arm since objectui#10859 batch 5, which already counted a binding; see the
17+
last bullet below.)
18+
19+
**A widening.** On those six blocks a node whose `dataSource.object` is a non-empty name now
20+
validates with no `objectName` and no other record source. Nothing that validated before is
21+
refused, except the one `object-map` shape named last:
22+
23+
- `objectName` alone still validates, an empty one included.
24+
- A node with neither is still refused, with `params.code = 'RECORD_SOURCE_REQUIRED'`: at
25+
`objectName` on `object-grid` and `list-view` (a `custom` issue now, where it was an
26+
`invalid_type`), and at the node's root on the four ladder blocks, as before. Its message names
27+
`dataSource.object` beside the keys the block reads.
28+
- `dataSource: { object: '' }` supplies nothing, as at runtime, so that node is still refused.
29+
- A wrong-typed `objectName` beside a binding is still refused at `objectName`.
30+
- **One narrowing, on the `object-map` bag arm.** objectui#10859 batch 5 counted that arm's
31+
binding by presence, so `{ "type": "object-map", "dataSource": { "object": "" } }` with no
32+
`properties.data`, `properties.staticData` or `properties.objectName` parsed, and rendered no
33+
records: the runtime's `isElementDataSourceConfig` refuses an empty name and the gate lands
34+
nothing. The bag arm now reads the binding with the same predicate as the other arms, so that node
35+
is refused with `RECORD_SOURCE_REQUIRED`. A named binding still parses there.
36+
37+
One refinement carries the rule for all six blocks, reading the rungs on the node or, for the
38+
authored `object-map`, in its `properties` bag. It counts the binding with the same predicate
39+
`element:number`'s spec waiver uses, so the validator, the spec's props gate and the runtime agree
40+
on what a binding is.
41+
42+
The TypeScript `ObjectGridSchema` keeps `objectName: string`: it is the type `ObjectGrid` reads
43+
after the gate has run. `ListViewSchema` is derived from its validator, so its `objectName` is
44+
now optional.
45+
46+
Docs: in `content/docs/utilities/data-objectstack.mdx`, the "Narrowing a saved view" example
47+
writes its `filter` as the rule array `[{ field, operator, value }]` the spec takes, and the
48+
`ElementDataSource` excerpt types `filter` as `ViewFilterRule[]`. The data-binding guide and the
49+
schema reference say that a bound node needs no `objectName`.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/plugin-gantt': patch
3+
'@object-ui/plugin-calendar': patch
4+
---
5+
6+
fix(plugin-gantt, plugin-calendar): the `objectName` input description names the `dataSource.object` binding (objectui#11117)
7+
8+
The designer-facing `objectName` input on `object-gantt` and `object-calendar` (and
9+
`view:calendar`, which shares the calendar's list) said the block's schema refuses a block that
10+
declares none of `data`, `staticData` and `objectName`. Since objectui#11117 the schema also
11+
accepts a block whose `dataSource.object` names the object, because the registration's
12+
`ElementDataSourceGate` lands that name on `objectName` before the renderer reads the node. The
13+
sentence now says so. No input's name, type, `required` flag or shape changed. (`object-map`'s
14+
input already names the binding: objectui#10859 batch 5 rewrote it.)
15+
16+
The `plugin-gantt` and `plugin-kanban` READMEs carry the same correction.

‎.changeset/6939-objectql-record-source-refinement.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ including an empty one, still parses, because presence is `!== undefined` and
3131
not the renderer's truthiness. The one shape the refinement refuses (none of
3232
the three) was refused before too, when `objectName` was required. Documents
3333
the renderers already draw start validating.
34+
35+
**Correction, 2026-10-01 (objectui#11117).** "The one shape the refinement refuses (none of the
36+
three)" is narrower now: a node with none of the three that names its object in a
37+
`dataSource` binding (`dataSource: { object }`, a non-empty name) parses, because the
38+
registration's `ElementDataSourceGate` lands that object on `objectName`. The refusal now names
39+
the binding beside the three keys.

‎.changeset/7313-object-calendar-record-source.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ refinement refuses (none of the three) was refused before too, at
3434
`objectName`. The two static-data examples in
3535
`content/docs/plugins/plugin-calendar.mdx` are now annotated
3636
`ObjectCalendarSchema` and compile under the doc-snippet gate.
37+
38+
**Correction, 2026-10-01 (objectui#11117).** A node authoring none of the three is still
39+
refused, unless it names its object in a `dataSource` binding (`dataSource: { object }`, a
40+
non-empty name): objectui#11117 counts that binding as a record source, because the
41+
registration's `ElementDataSourceGate` lands it on `objectName`. The refusal message now names
42+
the binding beside `data`, `staticData` and `objectName`.

‎.changeset/7470-designer-objectname-not-required.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ schema refuses a block that declares none of them. No one-of form was added to t
1919
input declaration; the zod refinement stays the place that enforces it. The
2020
renderers' read order is unchanged. The `@object-ui/plugin-gantt` README sentence
2121
that called `objectName` required is corrected (objectui#7470).
22+
23+
**Correction, 2026-10-01 (objectui#11117).** The rule this entry describes gained an exception:
24+
the `object-map` and `object-gantt` schemas also accept a block that declares none of the three
25+
when its `dataSource.object` names the object, because the registration's `ElementDataSourceGate`
26+
lands that name on `objectName`. The `objectName` input description now says so.

‎.changeset/7780-object-kanban-record-source.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,12 @@ compiles, which is the assertion.
6666

6767
Marked `minor` per this repo's version-alignment rule: a published accept set widens, and
6868
no declared shape narrows.
69+
70+
**Correction, 2026-10-01 (objectui#11117).** Two statements above no longer hold. The
71+
`dataSource` json fragment in `content/docs/utilities/data-objectstack.mdx` is no longer
72+
refused: objectui#11117 counts a node's `dataSource.object` binding as a record source, because
73+
the registration's `ElementDataSourceGate` lands it on `objectName` before the board reads the
74+
node, so `{ type, dataSource }` parses and the pin now asserts that. And the refinement is no
75+
longer a board-specific `requireKanbanRecordSource`: it is the shared `requireRecordSource`,
76+
given this board's own rungs (`bind`, `data`, `objectName`). The ladder and its presence rule are
77+
otherwise unchanged.

‎.changeset/8990-object-kanban-groupby-optional.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@ objectui#8913 and recorded there as unreachable, is now reachable: it fires only
4747
`if (!schema.groupBy)`, which no schema-valid document could satisfy while the key was
4848
required. Pinned with a firing control in
4949
`packages/plugin-kanban/src/__tests__/laneLessBoard-8990.test.tsx`.
50+
51+
**Correction, 2026-10-01 (objectui#11117).** The second bullet above says the
52+
`data-objectstack.mdx` fragment `{ type, dataSource }` is still refused at
53+
`RECORD_SOURCE_REQUIRED` because `dataSource` is not a rung. That no longer holds: objectui#11117
54+
counts a node's `dataSource.object` binding as a record source, as the registration's
55+
`ElementDataSourceGate` already did, so the fragment now parses.

‎content/docs/api/schema-reference.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ presence enables paging.
774774

775775
| Property | Type | Description |
776776
|----------|------|-------------|
777-
| `objectName` | `string` | **Required.** ObjectQL object API name. |
777+
| `objectName` | `string` | **Required**, unless a `dataSource` binding names the object (`"dataSource": { "object": "Contact" }`), which the registration lands here (objectui#11117). ObjectQL object API name. |
778778
| `label` | `string \| I18nLabel` | Grid label: the table caption, the export file title and the record-detail overlay heading. The canonical spelling; the deprecated `title` is read only when `label` is absent. A per-locale map (`{ "en": "Accounts", "zh-CN": "客户" }`) resolves against the display locale (the workspace's regional default when one is configured, otherwise the active UI language) (objectui#10993). |
779779
| `columns` | `string[] \| ListColumn[]` | Columns to display. Either a plain array of field names (`["name", "email"]`), which auto-resolve from object metadata, or an array of `ListColumn` objects whose identity key is `field` (`{ "field": "status", "label": "Status" }`) — never `name`. **Do not mix the two forms in one array:** the array is dispatched on its first entry, so column objects sitting behind a bare string are dropped. |
780780
| `filter` | `any[]` | Pre-applied filter conditions. |
@@ -1004,7 +1004,7 @@ A drag-and-drop Kanban board. The `object-kanban` type key validates the shape t
10041004
10051005
> **Handler keys are not authorable in JSON, and all three now say so by name.** Since objectui#7804 this face declares `onCardClick` as an objectui#6124 **runtime slot**: a React host supplies the function through the TypeScript interface or as a React prop, and this validator **refuses the key by name** with a message pointing at the node-type spelling (`{ "type": "toast", … }`, an `action:button` node). Until then an authored `onCardClick: { "action": "toast" }` parsed **green** — `BaseSchema` is `.passthrough()`, so a key no arm declares is not refused, it stops being judged and the value is kept, then reaches a call site expecting a function. ⭐ The other two keys are **tombstones**, not runtime slots, so their TypeScript twins are `?: never` rather than callable. `onCardMove` has been one since objectui#9342: an authored one reached **nothing** even as a function, because an object-bound board substitutes its own mover, and the mover lives on `KanbanRenderer`'s React prop of the same name, a sibling of its `schema`. `onQuickAdd` has been one since objectui#11234: a supplied one reached the board and was never called, because its partner `quickAdd` is retired here. `ObjectKanban` renders an internal board that takes the Quick Add pair only as explicit props and supplies neither half; the pair lives on `KanbanRenderer`'s `schema`, for a React host.
10061006

1007-
> `data` and `bind` are [`BaseSchema`](#baseschema) members, not narrowed here, but this face requires **one of** `bind`, `data`, `objectName` — the renderer's own record-source ladder (an external `data` prop → `bind` via `useDataScope` → this schema's own `data` → a fetch keyed by `objectName`). A purely static board (lanes carrying their own cards, no record source) authors `"groupBy"` and `"data": []`. ⚠️ The record-source rule is **separate** from the lane key and is unaffected by objectui#8990: omitting `groupBy` is fine, omitting all of `bind` / `data` / `objectName` is still refused, at the refinement rather than at `groupBy`.
1007+
> `data` and `bind` are [`BaseSchema`](#baseschema) members, not narrowed here, but this face requires **one of** `bind`, `data`, `objectName` — the renderer's own record-source ladder (an external `data` prop → `bind` via `useDataScope` → this schema's own `data` → a fetch keyed by `objectName`) — or a `dataSource` binding whose `object` names the object, which the registration's `ElementDataSourceGate` lands on `objectName` before the board reads it (objectui#11117). A purely static board (lanes carrying their own cards, no record source) authors `"groupBy"` and `"data": []`. ⚠️ The record-source rule is **separate** from the lane key and is unaffected by objectui#8990: omitting `groupBy` is fine, omitting all of `bind` / `data` / `objectName` with no binding is still refused, at the refinement rather than at `groupBy`.
10081008
10091009
**Related:** [ObjectViewSchema](#objectviewschema), [ObjectGridSchema](#objectgridschema)
10101010

‎content/docs/guide/data-source.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@ of the binding and stays the author's — it has to name a field on the bound ch
280280
object, so rebinding `object` without updating it is an authoring error the panel
281281
cannot paper over.
282282

283+
Because the binding lands on `objectName`, a node bound this way needs no
284+
`objectName` of its own. The schema validator (`safeValidateSchema`, which
285+
`objectui validate` runs) counts the binding as a record source of `list-view`,
286+
`object-grid`, `object-kanban`, `object-calendar`, `object-gantt` and `object-map`,
287+
and still refuses one of those nodes that declares no other record source and names
288+
its object in neither place. A binding with an empty `object` names nothing.
289+
283290
The two `element:*` rows keep their configuration in the node's `properties` bag,
284291
so the binding does not land on a schema key there: each reads it directly, and
285292
`dataSource.object` wins over `properties.object`. They differ on `filter`.

0 commit comments

Comments
 (0)