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

Commit adf5812

Browse files
os-warrenclaude
andauthored
feat(types,plugin-kanban,plugin-gantt)!: retire the bare kanban / gantt node keys and the kanban-ui / kanban-enhanced registrations (#8865)
* feat(types,plugin-kanban,plugin-gantt)!: retire the bare `kanban` / `gantt` node keys and the `kanban-ui` / `kanban-enhanced` registrations Executes three maintainer rulings taken in one batch on 2026-09-09: - objectui#8802 — retire the bare `kanban` node type key - objectui#8257 — retire `kanban-enhanced` and `kanban-ui` - objectui#8008 — retire the bare `gantt` registration Three of the four are registration-only: no schema face ever declared `kanban-ui`, `kanban-enhanced` or `gantt` as a component node type, so unregistering is the whole retirement. The bare `kanban` key had a declared arm on both faces, so it retires as a NAMED REFUSAL — a new `retiredNodeType()` helper keeps an arm claiming the literal in `AnyComponentSchema`'s discriminated union and answers a `{ "type": "kanban" }` document with a message naming `object-kanban`, while the TypeScript half is the absence of the arm from `ComplexSchema` and of the key from `SchemaRegistry`. The STORED `NamedListView.type` values `"kanban"` and `"gantt"` are a different layer and are untouched: `ObjectView` already maps a stored view type onto the `object-*` node type it renders, so zero stored documents move. A compile-time pin guards that layer against a future pattern-matching migration. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * test(kanban,gantt): re-point the retirement pins and add the two family retirement pins Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * refactor(types): drop the three imports that left with the retired `kanban` arm Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * chore(skills): split the governed page-builder guide out of this PR `skills/objectui/guides/page-builder.md` is a governed surface (`GOVERNED_SURFACES` -> `skills-catalog`), so a PR containing it can only be merged by a human. Carrying it here held `packages/types/src/complex.ts`, `zod/complex.zod.ts` and `packages/plugin-kanban/**` against every other slice. Maintainer ruling, 2026-09-09: split the skills file out. This commit reverts that one file to its merge-base blob (6df1359), leaving this PR at 49 files on the normal queue path. The edit itself moves, unchanged, to its own PR for a human to merge. No content of the guide is changed here and nothing else on this branch is touched: the revert restores blob 6df1359 exactly, and the same two one-word type-literal corrections are reproduced byte-identically on the new branch (blob ac30a6e). History is NOT rewritten -- this is an added commit, no rebase, no amend, no force-push, because other seats read this branch. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * fix(runner): re-key the plugin-integration pin to the surviving object-kanban key Contract-review REWORK round on the kanban/gantt family retirement. F1 (blocking, CI red and this PR caused it) — packages/runner was outside the previous round's sweep and outside both --filter type-checks, so the retirement of the bare `kanban` key in `kanbanComponents` left `packages/runner/src/plugin-integration.test.ts` reading a key that no longer exists: `Type Check` red with 4x TS2339, `Test (shard 2/4)` red with 3 failing assertions. Re-keyed to `kanbanComponents['object-kanban']` and added a control that pins BOTH directions — the survivor resolves, and `kanban` / `kanban-ui` / `kanban-enhanced` resolve to nothing — so the re-key cannot be satisfied by a map that was merely renamed wholesale. F3 — the package README still taught the retired spelling in two places the gates cannot see (they compile annotated fences, and an untyped object literal in an annotated fence compiles either way): the "Zero Configuration" bullet and the "Automatic Registration" block, the latter authoring a shape `object-kanban` now refuses (no `groupBy`, no record source). Both migrated to the shape the catalog fixture carries. Same class found and fixed in plugin-gantt/README.md, which this PR already edits: four untyped `type: 'gantt'` literals and one sentence asserting that `type: 'gantt'` "is a registered type", which this PR makes false. `content/docs/plugins/plugin-kanban.mdx` imported `ObjectKanbanSchema` from `@object-ui/plugin-kanban`, which does not export it; pointed at `@object-ui/types`, with the note kept out of the fence so the `check:doc-fences` ledger reading does not move. F4 — the changeset and the barrel both claimed `KanbanEnhanced` is "still importable from `@object-ui/plugin-kanban/KanbanEnhanced`". That subpath has never resolved: `exports` publishes `.` and `./style.css` only, and the barrel never re-exported the component. Both statements corrected to what is true; the file itself is deliberately left in place, since deleting published-but- unreachable source is a further narrowing that needs its own ruling. F5 — the FROM->TO table omitted the namespaced spellings. `register(type, C, { namespace })` stores both keys, so `view:kanban` and `view:gantt` retire with the registrations. Named in the changeset with the consequence: in apps/console those keys now fall to the protocol placeholder rather than OBJUI-001, and the generated CLI list still blesses them (via the placeholder registration), so `objectui check` stays green while the node renders a placeholder. F6 — the changeset omitted `@object-ui/components`, whose `src/` tree changed. Added at `patch`, together with `@object-ui/runner` for the same reason: the presence gate counts 7 released packages with changed source and the changeset now names all 7. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * docs(plugin-kanban): close F8 — document data/bind and stop authoring onCardMove as a document key Two doc-only defects from the CONTRACT_REVIEW_TIER verdict's F8 (PR comment 5610751162), missed by the prior repair round's truncated dispatch (F1-F6 only): 1. content/docs/api/schema-reference.md's ObjectKanbanSchema table omitted `data`/`bind` even though this PR's own migration note requires `"data": []` for a purely static board. Both ride BaseSchema (declared there, linked from this section) rather than being narrowed on ObjectKanbanSchema itself, so they are documented with a prose note in the same style already used here for the `columns` collateral-class disclosure — no schema face changes. 2. content/docs/plugins/plugin-kanban.mdx authored `onCardMove` as a member of typed `ObjectKanbanSchema` object literals in five places (Basic Usage, the Schema API shape + Properties table, Project Task Board, and the Event Handling `useBoard` hook), contradicting packages/plugin-kanban/README.md:130 ("`onCardMove` is NOT a document key: it is a React prop the host supplies"). Every instance now splits `onCardMove` out into its own binding, matching the README's corrected pattern. check:doc-fences ledger unmoved (80 files / 89 blocks, exit 0) — the explanatory notes went in prose above fences, never as a fence-opening comment inside one. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w * fix(sdui-parser,plugin-kanban): re-key the objectui#8285 Quick Add diagnostic to the surviving object-kanban tag objectui#8922 landed `quickAddIsDiagnosedNotDropped-8285.test.ts` after this branch was cut. It re-derives its host-tag set from `plugin-kanban/src/index.tsx`'s `ComponentRegistry.register(…, ObjectKanbanRenderer)` calls and builds its manifest from the LIVE registry, so it is an importer of exactly what this branch retires — and it goes red only on the MERGED tree, which is what the queue builds and what a `mergeable_state` computed against a stale base cannot see. Measured on the merge of origin/main f4abff4: 4 failed / 5 passed, against 9/9 green on pure main and a file that does not exist on this branch's head. The subject stays pinned: the html tier NAMES the Quick Add pair instead of dropping the key. Only the set of tags it holds over shrinks. `QUICK_ADD_HOST_TYPES` drops `kanban`, and that is a measurement, not a convenience. `checkKanbanQuickAdd` has exactly one call site — `validate.ts`'s per-prop walk — and that walk runs only in the branch where `manifest.components[node.type]` resolved. A tag no registration produces is answered one level up by `unknown-component`, an error, and its props are never walked at all. On a manifest built from the live registry `<kanban quickAdd>` therefore draws `error/unknown-component` and nothing else, against a firing control on `<object-kanban quickAdd>` that draws `warning/inert-quick-add`. Nothing is silently dropped by the narrowing: the retired spelling is refused BY NAME at the tag, which is louder than this warning, and stacking both is the two-diagnostics-for-one-mistake shape `checkMemberTypes` already refuses. The diagnostic's remedy text is falsified by the same retirement and moves with it: it used to send authors to `<kanban-ui>`, a tag objectui#8257 retires, so a page written to the old advice draws `unknown-component`. It now names `KanbanRenderer` from `@object-ui/plugin-kanban`, which is still exported and still forwards both halves by identity. `content/docs/plugins/plugin-kanban.mdx` carried the same false sentence and is corrected the same way. The retired spellings keep a hand-built manifest row in `packages/sdui-parser` asserting they are NOT hosts — the discrimination a synthetic manifest can make and the live one cannot. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 3431bed commit adf5812

53 files changed

Lines changed: 1887 additions & 1775 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
---
2+
'@object-ui/types': minor
3+
'@object-ui/plugin-kanban': minor
4+
'@object-ui/plugin-gantt': minor
5+
'@object-ui/components': patch
6+
'@object-ui/cli': patch
7+
'@object-ui/console': patch
8+
'@object-ui/runner': patch
9+
'@object-ui/sdui-parser': minor
10+
---
11+
12+
Four node type keys retire, and the kanban and gantt families converge on their
13+
`object-*` spellings: `kanban` (objectui#8802), `kanban-ui` and `kanban-enhanced`
14+
(objectui#8257), and `gantt` (objectui#8008). All four were ruled by the
15+
maintainer in one batch on 2026-09-09.
16+
17+
**⛔ No stored document moves.** The strings `kanban` and `gantt` name two
18+
different things at two different layers, and only one of them is retiring:
19+
20+
| layer | value | who writes it | retired? |
21+
| --- | --- | --- | --- |
22+
| stored `NamedListView.type` | `"kanban"`, `"gantt"` | `CreateViewDialog`, persisted per tenant | **no — untouched** |
23+
| node type key | `kanban`, `gantt` | hand-authored JSON | **yes** |
24+
25+
`ObjectView`'s `switch (viewType)` maps a stored view type onto the node type it
26+
renders, and it already emitted `object-kanban` and `object-gantt` — as it does
27+
for all twelve stored view types. So every kanban and gantt view any user ever
28+
created through the console already renders through the surviving spelling.
29+
Nothing in a tenant database changes, and ⛔ nothing should be migrated there.
30+
31+
**What each retirement was, measured.** Three of the four were
32+
registration-only: no schema face in `@object-ui/types` ever declared
33+
`kanban-ui`, `kanban-enhanced` or `gantt` as a component node type, so
34+
unregistering is the whole retirement. The bare `kanban` key was the exception —
35+
it had a declared arm on both faces (`KanbanSchema` in `complex.ts` and its Zod
36+
mirror), and a plain deletion there would have been the objectui#7664 failure:
37+
`BaseSchema` is `.passthrough()`, so a document naming a dropped key validates
38+
green and renders nothing. It therefore retires as a **named refusal**: the Zod
39+
union keeps an arm claiming the literal and answers a `{ "type": "kanban" }`
40+
document with a message naming `object-kanban` as the remedy, while the
41+
TypeScript half is the absence of the arm from `ComplexSchema` and of the key
42+
from `SchemaRegistry`, so `tsc` refuses it at the authoring site.
43+
44+
**⭐ This closes objectui#8818's `objectFields` hole — for that ENTRY, not for
45+
the class.** `SchemaRenderer` strips a fixed enumerated metadata list and
46+
spreads the rest as React props; `objectFields` is not on that list, and
47+
`KanbanRenderer` — the component the `kanban-ui` key resolved to — declares
48+
`objectFields` as a real prop, so an authored value reached the predicate layer
49+
with no schema face judging it. With the registration gone, no authored node
50+
reaches that component through the registry. ⚠️ The **class** is still open: the
51+
hole returns the moment another registered renderer declares an `objectFields`
52+
prop. objectui#8818's option (a) — stripping at the `SchemaRenderer` boundary —
53+
is what would close the class.
54+
55+
**⚠️ What the `kanban` arm took with it, stated because it is the cost of this
56+
change.** That arm was the only schema face that ever declared `columns`,
57+
`cardTitle`, `swimlaneField`, `grouping` and `navigation`, the only one that
58+
refused `allowCollapse` / `cardTemplates` / `columnWidths` / `titleField` /
59+
`draggable` / `onColumnAdd` / `onCardAdd` by name, and — through
60+
`columns: KanbanColumn[]` — the only one that judged a lane's `cards`
61+
(objectui#6939). The surviving `ObjectKanbanSchema` face declares none of them.
62+
⛔ Nothing about an `object-kanban` document changes: it was never judged by the
63+
`kanban` arm, so all of those keys have always ridden `BaseSchema`'s index
64+
signature there. What is gone is the `kanban` document that had them. Declaring
65+
them on `ObjectKanbanSchema` would WIDEN a published accept set, which is a
66+
maintainer ruling and not part of this one; every one of these readings is
67+
pinned where it can be seen rather than left to be rediscovered.
68+
69+
**Migrating.** Replace `"type": "kanban"` with `"type": "object-kanban"` and
70+
`"type": "gantt"` with `"type": "object-gantt"` in hand-authored documents. The
71+
`object-kanban` face requires `groupBy` and one of `bind` / `data` /
72+
`objectName`; a purely static board (lanes carrying their own cards, no record
73+
source) adds `"groupBy"` and `"data": []`. `kanban-ui` and `kanban-enhanced`
74+
have no authored documents anywhere in this repository to migrate.
75+
76+
**⚠️ The namespaced spellings retire with the registrations — `view:kanban` and
77+
`view:gantt` are the same two keys.** `ComponentRegistry.register(type, C,
78+
{ namespace })` stores BOTH `namespace:type` and a bare-`type` fallback, so
79+
every one of these keys had a namespaced twin that goes with it:
80+
81+
| retired spelling | namespaced twin | author instead |
82+
| --- | --- | --- |
83+
| `kanban` | `view:kanban` | `object-kanban` |
84+
| `gantt` | `view:gantt` | `object-gantt` |
85+
| `kanban-ui` | `plugin-kanban:kanban-ui` | `object-kanban` |
86+
| `kanban-enhanced` | `plugin-kanban:kanban-enhanced` | `object-kanban` |
87+
88+
Both spellings are pinned as gone, each against a firing control on the
89+
surviving key, in `plugin-kanban/src/__tests__/kanban-family-registry-keys-retired-8257.test.ts`
90+
and `plugin-gantt/src/__tests__/bare-gantt-node-key-retired-8008.test.ts`.
91+
92+
**What an unmigrated `view:kanban` / `view:gantt` node now renders depends on
93+
the host.** In `apps/console` it renders the protocol **placeholder** panel, not
94+
the OBJUI-001 "Unknown component type" error: the console calls the opt-in
95+
`registerPlaceholders()` (`@object-ui/components`, `renderers/placeholders.tsx`)
96+
*after* its plugin registrations, `view:kanban` and `view:gantt` are both in
97+
that file's `PROTOCOL_COMPONENTS` list, and the placeholder only claims a key
98+
nothing else has taken — which, until this change, `@object-ui/plugin-kanban`
99+
and `@object-ui/plugin-gantt` had. In every other host, which does not call that
100+
bootstrap, the same node renders OBJUI-001.
101+
102+
**⚠️ `objectui check` will NOT flag either namespaced spelling.** The CLI's
103+
`known-schema-types.ts` is generated from the repository's real registration
104+
calls, and the placeholder registration is a real one — so `view:kanban` and
105+
`view:gantt` are still on that list and still validate green, while the node
106+
renders a placeholder rather than a board. The bare `kanban` / `gantt` entries
107+
DID leave the generated list; only the namespaced pair survives, and only
108+
because of the placeholder. Grep your documents for the namespaced spellings
109+
directly; do not rely on `objectui check` to find them.
110+
111+
`KanbanRenderer` is still exported from this package's entry point
112+
(`@object-ui/plugin-kanban`); only its registry key is gone. ⚠️ `KanbanEnhanced`
113+
is a different case, and the earlier draft of this note stated it wrongly: this
114+
package's `exports` map has exactly two entries — `.` and `./style.css` — and
115+
the barrel never re-exported the component, so
116+
`@object-ui/plugin-kanban/KanbanEnhanced` has never been a resolvable specifier
117+
for a consumer. With `kanban-enhanced` unregistered, `KanbanEnhanced.tsx` has
118+
zero non-test importers. ⛔ The file is deliberately left in place: deleting
119+
published-but-unreachable source is a further narrowing and needs its own
120+
maintainer ruling, which this change does not have.
121+
122+
**⚠️ `@object-ui/sdui-parser`: `QUICK_ADD_HOST_TYPES` loses `kanban` with the
123+
registration.** The `inert-quick-add` diagnostic (objectui#8285) named the two
124+
tags `ObjectKanbanRenderer` answered to; one of them retires here, so the set is
125+
now `{ 'object-kanban' }`. ⛔ Nothing is silently dropped by that narrowing, and
126+
this is measured rather than argued: `checkKanbanQuickAdd` has exactly one call
127+
site — `validate.ts`'s per-prop walk — and that walk runs only in the branch
128+
where the manifest RESOLVED the tag. A tag no registration produces is answered
129+
one level up by `unknown-component`, an **error**, and its props are never
130+
walked, so on a manifest built from the live registry a `<kanban quickAdd>` node
131+
draws `error/unknown-component` and nothing else, against a firing control on
132+
`<object-kanban quickAdd>` that still draws `warning/inert-quick-add`. Keeping
133+
`kanban` in the set would have been reachable only through a hand-built manifest
134+
declaring a component of that name — which, after this retirement, is somebody
135+
else's component, and the message asserts things about `ObjectKanban` that would
136+
be false of it. This supersedes the `kanban` half of the objectui#8285 entry.
137+
138+
**The diagnostic's remedy text moves from a tag to a component.** It used to end
139+
"render `<kanban-ui>` from a React host that passes `onQuickAdd`". That sentence
140+
is falsified by this change: `kanban-ui` is no longer a node type key, so a page
141+
written to the old advice draws `unknown-component`. It now names
142+
`KanbanRenderer` from `@object-ui/plugin-kanban` — still exported, still
143+
forwarding both halves by identity — which is the surviving way to get the pair.
144+
`content/docs/plugins/plugin-kanban.mdx` says the same thing the same way.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export default App
315315

316316
```json
317317
{
318-
"type": "kanban",
318+
"type": "object-kanban",
319319
"objectName": "tasks",
320320
"groupBy": "status",
321321
"titleField": "title",

‎apps/console/src/register-plugins.ts‎

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ ComponentRegistry.registerLazy('object-gantt', () => import('@object-ui/plugin-g
8585
namespace: 'plugin-gantt',
8686
category: 'view',
8787
});
88-
ComponentRegistry.registerLazy('gantt', () => import('@object-ui/plugin-gantt'), {
89-
namespace: 'view',
90-
category: 'view',
91-
});
88+
// ⛔ The bare `gantt` node type key is RETIRED (objectui#8008, maintainer
89+
// ruling 2026-09-09, route 3) — `object-gantt` above is the surviving spelling.
90+
// The STORED `NamedListView.type` value `gantt` is a different layer and is
91+
// untouched: `ObjectView`'s `switch (viewType)` already emits `object-gantt`
92+
// for it.
9293

9394
ComponentRegistry.registerLazy('markdown', () => import('@object-ui/plugin-markdown'), {
9495
namespace: 'plugin-markdown',
@@ -121,16 +122,11 @@ ComponentRegistry.registerLazy('object-kanban', () => import('@object-ui/plugin-
121122
namespace: 'plugin-kanban',
122123
category: 'view',
123124
});
124-
ComponentRegistry.registerLazy('kanban', () => import('@object-ui/plugin-kanban'), {
125-
namespace: 'view',
126-
category: 'view',
127-
});
128-
for (const variant of ['kanban-ui', 'kanban-enhanced']) {
129-
ComponentRegistry.registerLazy(variant, () => import('@object-ui/plugin-kanban'), {
130-
namespace: 'plugin-kanban',
131-
category: 'view',
132-
});
133-
}
125+
// ⛔ The bare `kanban` key (objectui#8802) and the `kanban-ui` /
126+
// `kanban-enhanced` variants (objectui#8257) are RETIRED — maintainer rulings
127+
// 2026-09-09. `object-kanban` above is the surviving spelling. The STORED
128+
// `NamedListView.type` value `kanban` is a different layer and is untouched:
129+
// `ObjectView`'s `switch (viewType)` already emits `object-kanban` for it.
134130

135131
ComponentRegistry.registerLazy('report', () => import('@object-ui/plugin-report'), {
136132
namespace: 'plugin-report',

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

Lines changed: 21 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -910,79 +910,43 @@ A complete object management interface combining grid, form, search, filters, an
910910

911911
## Complex Schemas
912912

913-
### KanbanSchema
913+
### ObjectKanbanSchema
914914

915-
A drag-and-drop Kanban board. The `kanban` type key validates the shape the registered renderer (`@object-ui/plugin-kanban`) reads: bind the board to an object with `objectName` + `groupBy` (the lanes come from the group field's options), or author it statically with `columns`, each carrying its `cards`.
915+
A drag-and-drop Kanban board. The `object-kanban` type key validates the shape the registered renderer (`@object-ui/plugin-kanban`) reads: bind the board to an object with `objectName` + `groupBy` — the lanes come from the group field's options — or hand it rows on `data`.
916+
917+
> **The bare `kanban` node type key is retired** (objectui#8802, ruled 2026-09-09). It published two faces that disagreed with each other, and `object-kanban` is now the one spelling. A `{ "type": "kanban" }` document is refused by name and told to write `object-kanban`.
918+
>
919+
> ⚠️ The **stored view type** `"kanban"` — what `listViews[].type` and `defaultViewType` hold — is a **different layer and is unchanged**. Do not rewrite it: a saved kanban view already renders through the `object-kanban` node type, because `ObjectView` maps the stored type onto it.
916920
917921
```json
918922
{
919-
"type": "kanban",
923+
"type": "object-kanban",
920924
"objectName": "tasks",
921925
"groupBy": "status",
922-
"cardTitle": "title",
926+
"titleField": "title",
923927
"cardFields": ["assignee", "due_date"],
924928
"quickAdd": true
925929
}
926930
```
927931

928-
A static board carries its cards inline:
929-
930-
```json
931-
{
932-
"type": "kanban",
933-
"columns": [
934-
{
935-
"id": "todo",
936-
"title": "To Do",
937-
"cards": [
938-
{
939-
"id": "task-1",
940-
"title": "Design mockups",
941-
"description": "Create wireframes for new feature",
942-
"badges": [{ "label": "High", "variant": "destructive" }]
943-
},
944-
{ "id": "task-2", "title": "Write tests", "description": "Unit tests for auth module" }
945-
]
946-
},
947-
{
948-
"id": "in-progress",
949-
"title": "In Progress",
950-
"limit": 3,
951-
"cards": [
952-
{ "id": "task-3", "title": "API integration", "description": "Connect to payment gateway" }
953-
]
954-
},
955-
{
956-
"id": "done",
957-
"title": "Done",
958-
"cards": []
959-
}
960-
]
961-
}
962-
```
963-
964932
| Property | Type | Description |
965933
|----------|------|-------------|
966934
| `objectName` | `string` | Object to fetch records from. |
967-
| `groupBy` | `string` | Field whose values become the lanes (maps to column ids). |
968-
| `swimlaneField` | `string` | Field for swimlane rows (2D grouping). |
969-
| `cardTitle` | `string` | Field used as the card title. |
935+
| `groupBy` | `string` | **Required.** Field whose values become the lanes (maps to column ids). |
936+
| `titleField` | `string` | Field used as the card title. |
970937
| `cardFields` | `string[]` | Fields rendered on each card. |
971-
| `data` | `any[]` | Inline records, bucketed into lanes by `groupBy`. |
938+
| `filter` | `any[]` | Query filter, forwarded verbatim as `$filter`. |
972939
| `limit` | `number` | Fetch window for the board (default 100). |
973-
| `columns` | `KanbanColumn[]` | Lanes, each with `id`, `title`, `cards`, and optional `limit` / `className` / `collapsed`. A card has `id`, `title`, optional `description` and `badges`. |
974940
| `quickAdd` | `boolean` | Show a Quick Add button at the bottom of each column. |
975941
| `coverImageField` | `string` | Field whose URL renders as the card cover image. |
942+
| `allowCollapse` | `boolean` | Allow lanes to collapse and expand. |
976943
| `conditionalFormatting` | `KanbanConditionalFormattingRule[]` | Card colouring rules — native `{ field, operator, value }` or spec `{ condition, style }`. |
977-
| `grouping` | `GroupingConfig` | ListView grouping config; its first field is the swimlane fallback. |
978-
| `navigation` | `ViewNavigationConfig` | Record navigation behaviour when a card is clicked (drawer / dialog / page). Defaults to an inline right-side drawer. |
979-
| `onCardMove` | `function` | Runtime slot supplied by a React host, `(cardId, fromColumnId, toColumnId, newIndex)`; not authorable in JSON. |
980-
| `onCardClick` | `function` | Runtime slot supplied by a React host, `(card, event?)`; not authorable in JSON. On the object-bound board the host's handler runs alongside the record-detail overlay. |
981-
| `onQuickAdd` | `function` | Runtime slot supplied by a React host, `(columnId, title)`; not authorable in JSON. |
982944

983-
> Four spellings the `kanban` arm once accepted are now refused by name (objectui#7742, ADR-0049). `allowCollapse`, `cardTemplates` and `columnWidths` were declared and read by no registered board — collapse a lane with `columns[].collapsed`; card templates and column widths reach the board through a component prop and a hook option, not through the node. `titleField` is the legacy spelling of `cardTitle` and is retired on this arm only: write `cardTitle`. An `object-kanban` node still accepts `titleField`.
945+
> `groupField` is refused by name (objectui#7322): the renderer reads `groupBy`.
946+
947+
> The retired `kanban` arm declared `columns`, `cardTitle`, `swimlaneField`, `grouping` and `navigation`; the `object-kanban` face never did, and it is unchanged. The renderer still reads those keys, so a board may carry them — they are simply not judged. The board's React host supplies `onCardMove` / `onCardClick` / `onQuickAdd` as props; none of the three is authorable in JSON.
984948
985-
> The former `@object-ui/types` kanban dialect — `DeclarativeKanbanSchema`, with a board-level `draggable`, a column `color` and card `labels` / `priority` — was retired in objectui#7664: no registered renderer read it, so a board written that way validated and rendered empty. `draggable` and a column `color` are now refused by name; a static board written with `columns[].cards[]` as above is the same document in both dialects and renders every card.
949+
> `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": []`.
986950
987951
**Related:** [ObjectViewSchema](#objectviewschema), [ObjectGridSchema](#objectgridschema)
988952

@@ -1237,8 +1201,9 @@ A toggle control that switches between different view types (list, grid, kanban,
12371201
"label": "Kanban",
12381202
"icon": "Kanban",
12391203
"schema": {
1240-
"type": "kanban",
1241-
"columns": []
1204+
"type": "object-kanban",
1205+
"objectName": "tasks",
1206+
"groupBy": "status"
12421207
}
12431208
}
12441209
]
@@ -1256,7 +1221,7 @@ A toggle control that switches between different view types (list, grid, kanban,
12561221
| `storageKey` | `string` | Storage key for persisting the preference. |
12571222
| `onViewChange` | `string` | Expression or callback invoked on view change. |
12581223

1259-
**Related:** [ObjectViewSchema](#objectviewschema), [KanbanSchema](#kanbanschema), [CalendarViewSchema](#calendarviewschema)
1224+
**Related:** [ObjectViewSchema](#objectviewschema), [ObjectKanbanSchema](#objectkanbanschema), [CalendarViewSchema](#calendarviewschema)
12601225

12611226
---
12621227

@@ -1331,7 +1296,7 @@ import type { ActionSchema, DetailSchema } from '@object-ui/types';
13311296
import type { ObjectGridSchema, ObjectFormSchema, ObjectViewSchema } from '@object-ui/types';
13321297

13331298
// Complex
1334-
import type { KanbanSchema, DashboardComponentSchema, CalendarViewSchema } from '@object-ui/types';
1299+
import type { DashboardComponentSchema, CalendarViewSchema } from '@object-ui/types';
13351300

13361301
// Views
13371302
import type { DetailViewSchema, ViewSwitcherSchema } from '@object-ui/types';

‎content/docs/guide/architecture-overview.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ Plugins are self-contained packages that register heavy or complex views (grids,
132132
PluginScope.registerComponent(type, Component, meta)
133133
│ └─ Auto-prefixes with plugin namespace
134134
▼
135-
ComponentRegistry.register('kanban-ui', KanbanRenderer, {
135+
ComponentRegistry.register('object-kanban', ObjectKanbanRenderer, {
136136
namespace: 'plugin-kanban',
137-
category: 'plugin'
137+
category: 'view'
138138
})
139139
```
140140

@@ -164,10 +164,10 @@ const KanbanRenderer: React.FC<Props> = ({ schema }) => (
164164
);
165165

166166
// 3. Register in the global registry
167-
ComponentRegistry.register('kanban-ui', KanbanRenderer, {
167+
ComponentRegistry.register('object-kanban', KanbanRenderer, {
168168
namespace: 'plugin-kanban',
169-
label: 'Kanban Board',
170-
category: 'plugin',
169+
label: 'Object Kanban',
170+
category: 'view',
171171
inputs: [/* schema config */]
172172
});
173173
```

‎content/docs/guide/troubleshooting.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This guide covers the most common issues you may encounter when working with Obj
99

1010
## 1. "Component type X not found"
1111

12-
**Symptom:** The `SchemaRenderer` renders nothing or shows a fallback, and the console logs `component type "kanban-ui" not found in registry`.
12+
**Symptom:** The `SchemaRenderer` renders nothing or shows a fallback, and the console logs `component type "object-kanban" not found in registry`.
1313

1414
**Cause:** The plugin that provides the component type has not been imported, so it never registered itself with the `ComponentRegistry`.
1515

0 commit comments

Comments
 (0)