This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 5a41ce7
fix(types): judge the object-kanban handler keys the board reads (objectui#7804) (#9338)
* fix(types): judge the object-kanban handler keys the board reads
`ObjectKanbanSchema` declares `onCardClick` and `onQuickAdd` as objectui#6124
RUNTIME SLOTS on both faces — callable on the TypeScript twin, refused BY NAME
in the zod mirror. Until now neither was declared anywhere: `BaseSchema` is
`.passthrough()`, so an authored `onCardClick: { "action": "toast" }` was not
refused — it stopped being judged, the value was KEPT, and `KanbanRenderer`
forwarded it to a call site expecting a function. Measured on this branch, that
document parsed GREEN with the object surviving into the parsed output.
Each disposition is measured at its own channel rather than shared across the
prefix: `onQuickAdd` arrives at the board implementation BY IDENTITY through
`ObjectKanban`'s schema spread, while `onCardClick` — substituted on that
spread — arrives instead as the React prop `ObjectKanbanComponentProps`
declares, which `ObjectKanban`'s own wrapper CALLS.
The third key `KanbanRenderer` forwards, `onCardMove`, is deliberately NOT
declared. Its authored value reaches neither channel, which is the `'retired'`
disposition, and `check:handler-key-reads` refuses that spelling while the
renderer still reads the key. It keeps its `KNOWN_UNDECLARED_READS` row; the two
that landed are drained, because a row outliving its read reddens the gate.
No renderer change and no runtime behaviour change.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
* test(plugin-kanban): type the two untyped shared-script imports at their call sites
`packages/plugin-kanban/tsconfig.test.json` compiles this package's tests, and
`allowJs` is off, so importing `scripts/check-handler-key-read-sites.mjs` and
`scripts/js-comment-mask.mjs` is TS7016 — measured by the repo-wide type-check,
not guessed. The convention `ObjectKanban.titleFieldPrecedence-8308.test.tsx`
already uses is applied here: `@ts-expect-error` on the import with the reason,
and a locally annotated binding so the call sites stay checked.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
* docs(changeset): lead the 7804 kanban note with the repo's BREAKING carrier
The accept-set move was declared, but not in the spelling this repo's release
notes are scanned in: `.changeset/7664-kanban-arm-plugin-dialect.md` and
`.changeset/7742-kanban-arm-batch70.md` — the two nearest precedents, both on
this same arm family — lead with `**BREAKING**`, and 7742 with the exact
`(scored `minor` per this repo's version-alignment convention)` parenthetical.
This note buried the same claim three paragraphs in as "breaking, shipped as
`minor`", so a consumer scanning the release note for the token would have
missed it.
Prose only: the grade, the direction and every measurement are unchanged.
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: os-tesla <yinlianghui@steedos.com>1 parent a5921a0 commit 5a41ce7
11 files changed
Lines changed: 731 additions & 44 deletions
File tree
- .changeset
- content/docs
- api
- plugins
- packages
- plugin-kanban/src/__tests__
- types/src
- __tests__
- zod
- scripts
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
954 | 956 | | |
955 | 957 | | |
956 | 958 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
85 | 96 | | |
86 | 97 | | |
87 | 98 | | |
| |||
0 commit comments