|
| 1 | +--- |
| 2 | +'@object-ui/types': minor |
| 3 | +'@object-ui/plugin-kanban': patch |
| 4 | +--- |
| 5 | + |
| 6 | +**BREAKING (scored `minor` per this repo's version-alignment convention)** — |
| 7 | +`ObjectKanbanSchema.onQuickAdd` is retired on `object-kanban` (objectui#11234). |
| 8 | +This completes ruling B of the director seat's decision batch #91 |
| 9 | +(objectui#8285): the object-bound board does not grow an inline record-creation |
| 10 | +write path, and the Quick Add pair stays with a React host. |
| 11 | + |
| 12 | +**Why it did nothing.** After objectui#8285 retired `quickAdd`, `onQuickAdd` |
| 13 | +stayed a runtime slot. A host-supplied function reached the board by identity, |
| 14 | +and on `object-kanban` it was never called, because the Quick Add control is |
| 15 | +gated on both halves of the pair. A TypeScript host or an AI that wrote the key |
| 16 | +compiled and got nothing. |
| 17 | + |
| 18 | +- **`@object-ui/types`** — `ObjectKanbanSchema.onQuickAdd` is `?: never` on the |
| 19 | + TypeScript face, and `handlerKeyRefusal('onQuickAdd', 'retired', …)` on the |
| 20 | + zod mirror. An authored value is refused BY NAME (`custom` at `onQuickAdd`, |
| 21 | + the same code as before), and the message now says RETIRED instead of RUNTIME |
| 22 | + SLOT. This narrows a published TypeScript face: a typed host that wrote the |
| 23 | + key on an `object-kanban` node now gets a type error. |
| 24 | +- **`@object-ui/plugin-kanban`** — `ObjectKanban` renders an internal board |
| 25 | + that takes the Quick Add pair only as explicit props, and it supplies neither |
| 26 | + half. The internal board is not exported. `check:handler-key-reads` refuses a |
| 27 | + tombstone while a renderer on the registration still reads the key off the |
| 28 | + document, and this change removes that read from the `object-kanban` path. |
| 29 | + `KanbanRenderer` is unchanged for a host: it reads `schema.quickAdd` and |
| 30 | + `schema.onQuickAdd` exactly as before, and the control draws and calls the |
| 31 | + host's function. |
| 32 | + |
| 33 | +**Migration.** Delete `onQuickAdd` from `object-kanban` nodes and from any |
| 34 | +`ObjectKanbanSchema` object a host builds. It was never called there. To offer |
| 35 | +Quick Add, mount `KanbanRenderer` from `@object-ui/plugin-kanban` in a React |
| 36 | +host and pass both `quickAdd` and `onQuickAdd` on its `schema`. |
| 37 | + |
| 38 | +The objectui#8285 entry's closing note, which said `onQuickAdd` stayed a runtime |
| 39 | +slot on `object-kanban`, is amended in this change to match. |
0 commit comments