This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(plugin-kanban): the board's drag live region names the card and the column, not their ids (objectui#12716) - #12835
Merged
objectstack-fleet[bot] merged 3 commits intoOct 17, 2026
Conversation
…he column, not their ids (objectui#12716) The board's DndContext passed no accessibility announcements, so dnd-kit's default English sentences named the dragged card and its target by record id and option value. The board now hands it announcements built by a module-local helper, kanbanDndAnnouncements.ts, after the form designer's (objectui#11802): pick-up, over a card, over a column, over nothing, drop and cancel, each naming the card by its title and the column by its label through the board's own translation. Nine keys under kanban.dnd in all ten language packs. Claude-Session: https://claude.ai/code/session_01Vk15bz8xHtKGUfXfCm16h4 Co-authored-by: Claude <noreply@anthropic.com>
…not end in the next case's board (objectui#12716) Claude-Session: https://claude.ai/code/session_01Vk15bz8xHtKGUfXfCm16h4 Co-authored-by: Claude <noreply@anthropic.com>
… of a ref read during render (objectui#12716) Passing a ref into the announcements builder during render is the shape react-hooks/refs flags. The memory a drag's sentences share now lives in an announcer the board creates once (useState), so every announcements object it builds shares it and a rebuild mid-drag repeats no sentence. Claude-Session: https://claude.ai/code/session_01Vk15bz8xHtKGUfXfCm16h4 Co-authored-by: Claude <noreply@anthropic.com>
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
Contributor
Author
席位核对 — ACCEPT ·
|
| moment | en | zh |
|---|---|---|
| pick-up | "Picked up Content backlog in Backlog." | 已拿起 Content backlog,当前在 待规划。 |
| over a card | "Moving Content backlog over SEO migration plan in To Do." | Content backlog 正移到 待办 中的 SEO migration plan 上。 |
| over a column | "Moving Content backlog over In Progress." | Content backlog 正移到 进行中。 |
| Escape | "Cancelled moving Content backlog. It stays in Backlog." | 已取消拖动。Content backlog 仍在 待规划。 |
- One real drop, in the temporary database, read "Moved Content backlog to To Do.", and the card was in To Do.
- The over target was measured: the card itself at pick-up, a neighbouring card over cards, and the column over its empty area.
3. Gates (check-runs pinned to this head).
- 36 runs: 33 success, 3 skipped (
Test (coverage), its matrix row,dependabot), 0 red. - Among the successes:
Lint,Type Check,Repo Gates,Test,Test (shard 1/16)…(16/16),Test (dist pins),Build & E2E,Build Docs,Bundle Analysis(PASS,6227461406: eager closure 3131.8 KB of 3744.1 KB),Live E2E (informational), the changeset checks,Line Citation GateandGoverned Surface Queue Guard. - The dev's local subset at
56be1f6:- 155 files / 1816 passed, 13 skipped, over
packages/plugin-kanban/andpackages/i18n/; - the plugin-kanban build and the console closure build; the plugin-kanban and i18n type-checks;
- eslint, with 0 errors;
check:i18n-keys,check:i18n-drift("0 en value(s) changed (9 key(s) added") andcheck:i18n-dead-keys;- changeset presence and new-line citations.
- 155 files / 1816 passed, 13 skipped, over
- The pin drives the real board, sensors, handlers and live region; only collision detection is a band geometry.
- Ablations, each restored and proven:
- A, the
accessibilityprop removed: 5 of 5 red, receiving dnd-kit's id sentences; - B, the zh
startvalue removed: the zh case alone red; - C, the place memory always undefined: 3 of 5 red.
- A, the
4. Accepted deviations.
- The announcer is held in
useState, not a ref. A ref passed during render trippedreact-hooks/refs, and56be1f6replaced it. - Prose checked against the diff: the changeset, and the comments in
KanbanImpl.tsxand the helper.
5. Out of scope (where each went).
- Every card's instructions tell a screen-reader user to press Space, but the board has no keyboard sensor, so Space starts no drag, and the instructions stay English under zh (measured). → filed objectui#12837.
- The lane list's accessible name reads "待规划 cards" under zh, and the swimlane cells and the drag overlay have the same English-template shape. It is a gap in the literal
aria-labelcensus family (objectui#12145, finding(i18n, a11y): 87 more shipped aria-label literals in 23 files are English under every locale — the census backlog objectui#12145 froze (the family's next closing card) #12150). → filed objectui#12838. - The board has no
onDragCancel, so a cancelled drag leaves its active card set. Read from source; no symptom measured. → Acceptance notes.
6. Landing.
- Not governed:
check-governed-merges.mjs --rootobjectui--testover the 14 paths reads NOT governed (0 of 14 paths hit the register). - 538 lines changed, under the 3000-line threshold.
Clause-②: no. Every check is green or an expected skip.- ⇒ The seat lands it: relay
pr_ready+automerge_enable, through the merge queue. - On MERGED,
Fixescloses objectui#12716.
Generated by Claude Code
objectstack-fleet
Bot
deleted the
claude/issue-12716-kanban-dnd-announcements
branch
October 17, 2026 01:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12716
Clause-②: no
What changed
The kanban board's
DndContextpassed noaccessibilityannouncements, so dnd-kit read its default English sentences, which name the dragged card and its target by their ids: a card's id is its record id and a column's id is the grouped field's option value. The board now passesaccessibility={{ announcements }}, built by one module-local helper beside it,packages/plugin-kanban/src/kanbanDndAnnouncements.ts, after the form designer'sformDndAnnouncements.ts(objectui#11802).handleDragEndresolves them (a card id first, then a column id), so the column a sentence names is the column a drop there lands in. It covers pick-up, over (a card, a column, nothing), drop (moved, or nothing moved) and cancel.kanban.dndin all tenpackages/i18nbundles, read through the translation the board already builds (createSafeTranslation), with the names interpolated so a language orders them as it needs. The board's provider-less defaults table carries the same English, so a board with no translation provider never reads a raw key.over(the card over itself) from replacing the pick-up sentence lives in an announcer the board creates once (useState), not in the memoised object, so a rebuild mid-drag repeats no sentence (AGENTS.md [WIP] Enhance every detail of the designer #10), and nothing reads a ref during render.@object-ui/plugin-kanban's entry, so Clause-② is no.Before and after, in the browser
Showcase task board (
/apps/com.example.showcase/showcase_task/view/showcase_task.board), backend objectstack66d456d01examples/app-showcasewith--fresh, console from this branch's worktree (vite dev). Chromium/opt/pw-browsers/chromium, signed in as the seeded admin, screenshot before every read of#DndLiveRegion-*. Mouse drag of the first card: pick-up, over the next column's first card, over the empty lower part of the column after it, then Escape.main3288c12(en and zh read the same)Draggable item R-rXBJewHjmPzNfF was moved over droppable area R-rXBJewHjmPzNfF.Picked up Content backlog in Backlog.已拿起 Content backlog,当前在 待规划。Draggable item R-rXBJewHjmPzNfF was moved over droppable area Jm0z0X6NWsbqyfAH.Moving Content backlog over SEO migration plan in To Do.Content backlog 正移到 待办 中的 SEO migration plan 上。Draggable item R-rXBJewHjmPzNfF was moved over droppable area in_progress.Moving Content backlog over In Progress.Content backlog 正移到 进行中。Dragging was cancelled. Draggable item R-rXBJewHjmPzNfF was dropped.Cancelled moving Content backlog. It stays in Backlog.已取消拖动。Content backlog 仍在 待规划。One real drop, in the temporary database only: over "SEO migration plan" and released, the region read
Moved Content backlog to To Do.and the card was in To Do afterwards.The PM's hypothesis 1, measured: the over target is the dragged card itself at pick-up, a neighbouring card's record id while the pointer is over cards, and the column's option value (
in_progress) over a column's empty area. The sentence names whichever it is: the card by its title (with its column), the column by its label.Swimlanes: the swimlane layout renders inside the same, single
DndContext, so the same helper covers it. Its lane cells are not droppable (only cards are), which is unchanged; a pointer over no card reads "It is not over a column."Pins and ablations
packages/plugin-kanban/src/__tests__/dndAnnouncements-12716.test.tsxdrives the real board, the realDndContext, sensors and handlers with real pointer events, and reads the real live region. OnlycollisionDetectionis replaced by a band geometry (the test DOM measures every box as zero), the form designer's instrument. Five cases: pick-up / over a card / over a column / over nothing / cancel (en); a cross-column drop; a drop in its own column; the same drag in zh; a blank-titled card and column. Every drop carries a control: the move the board handsonCardMove.Each ablation was run through
node scripts/ablation-replace.mjs(objectstack), which verified the anchor hit and the blob changed, then restored and verifiedgit diff HEADempty:56be1f6)accessibility={dndAccessibility}from the boardDraggable item gZguOoFVfxm_pSPG was moved over droppable area gZguOoFVfxm_pSPG.kanban.dnd.startvalue已拿起 Content backlog,当前在 To Do。, receivedPicked up Content backlog in To Do.undefined(itsget)overreplaces the pick-up sentence, e.g. receivedMoving Content backlog over To Do.Restored: 5 of 5 green.
Local gates (on head
56be1f6)pnpm --workspace-concurrency=2 --filter "@object-ui/plugin-kanban..." run build: exit 0;pnpm --filter @object-ui/plugin-kanban run buildre-run on the final head: exit 0.pnpm --workspace-concurrency=2 --filter "@object-ui/console..." run build: exit 0 (@object-ui/app-shelland@object-ui/consoleamong the packages built).pnpm exec vitest run --maxWorkers=2 packages/plugin-kanban/ packages/i18n/: exit 0, 155 files passed, 1816 tests passed, 13 skipped.pnpm --filter @object-ui/plugin-kanban run type-checkandpnpm --filter @object-ui/i18n run type-check: exit 0 each (the script name echoed;tsconfig.test.jsonlists the new test and helper).eslint --no-inline-configon the 13 changed source files: exit 0, no new warning (the one warning is the existingrules as anyingetCardStyles).node scripts/check-changeset-presence.mjs: exit 0.pnpm check:new-line-citations: exit 0, 0 new citations.pnpm check:i18n-keys: exit 0 (every defaults-table row matches its en value, interpolation parity holds).pnpm check:i18n-drift: exit 0 (9 keys added, 0 en values changed).pnpm check:i18n-dead-keys: exit 0, nokanban.dndkey listed.Acceptance notes
Found while measuring, left alone here:
aria-describedbypoints at dnd-kit's default English instructions ("To pick up a draggable item, press the space bar. While dragging, use the arrow keys…"). The board's sensors are pointer and touch only. Measured in the browser: Space on a focused card starts no drag (the region did not change, no card reportedaria-pressed). The text is English under zh too. The README's features list says the same: "Built on @dnd-kit with keyboard navigation support". Reported to the seat for filing.待规划 cards); the swimlane cells and the drag overlay ("Dragging" plus the title) have the same shape. This is objectui#12145's family; that census states that interpolating templates are outside its instrument. Reported to the seat, not filed separately.onDragCancelhandler on the board. A cancelled drag leavesactiveCardset and does not call the ObjectUI drag bridge'sendDrag(). Read in source only; no reachable symptom measured. Noted, not filed.Session:
https://claude.ai/code/session_01Vk15bz8xHtKGUfXfCm16h4Generated by Claude Code