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

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 into
mainfrom
claude/issue-12716-kanban-dnd-announcements
Oct 17, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-12716-kanban-dnd-announcements

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #12716
Clause-②: no

What changed

The kanban board's DndContext passed no accessibility announcements, 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 passes accessibility={{ announcements }}, built by one module-local helper beside it, packages/plugin-kanban/src/kanbanDndAnnouncements.ts, after the form designer's formDndAnnouncements.ts (objectui#11802).

  • The helper resolves the active and over ids the way the board's handleDragEnd resolves 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.
  • Every sentence is one key under kanban.dnd in all ten packages/i18n bundles, 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.
  • No id reaches a sentence. A card or column with a blank title, or one the board no longer holds, is named by a neutral phrase from the same packs ("an untitled card", "an unnamed column").
  • The memory that keeps the first 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.
  • Nothing else on the board changes: drag behaviour, sensors, collision detection, the screen-reader instructions and the existing strings. Nothing is added to @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 objectstack 66d456d01 examples/app-showcase with --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.

moment main 3288c12 (en and zh read the same) this branch, en this branch, zh
pick-up Draggable item R-rXBJewHjmPzNfF was moved over droppable area R-rXBJewHjmPzNfF. Picked up Content backlog in Backlog. 已拿起 Content backlog,当前在 待规划。
over a card 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 上。
over a column's empty area Draggable item R-rXBJewHjmPzNfF was moved over droppable area in_progress. Moving Content backlog over In Progress. Content backlog 正移到 进行中。
Escape 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.tsx drives the real board, the real DndContext, sensors and handlers with real pointer events, and reads the real live region. Only collisionDetection is 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 hands onCardMove.

Each ablation was run through node scripts/ablation-replace.mjs (objectstack), which verified the anchor hit and the blob changed, then restored and verified git diff HEAD empty:

ablation (on head 56be1f6) result
A: delete accessibility={dndAccessibility} from the board 5 of 5 red, each reading dnd-kit's id sentence, e.g. Draggable item gZguOoFVfxm_pSPG was moved over droppable area gZguOoFVfxm_pSPG.
B: delete the zh kanban.dnd.start value 1 of 5 red, only the zh case: expected 已拿起 Content backlog,当前在 To Do。, received Picked up Content backlog in To Do.
C: make the place memory always answer undefined (its get) 3 of 5 red: the first over replaces the pick-up sentence, e.g. received Moving 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 build re-run on the final head: exit 0.
  • The console's closure, which includes the board: pnpm --workspace-concurrency=2 --filter "@object-ui/console..." run build: exit 0 (@object-ui/app-shell and @object-ui/console among 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-check and pnpm --filter @object-ui/i18n run type-check: exit 0 each (the script name echoed; tsconfig.test.json lists the new test and helper).
  • eslint --no-inline-config on the 13 changed source files: exit 0, no new warning (the one warning is the existing rules as any in getCardStyles).
  • 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, no kanban.dnd key listed.

Acceptance notes

Found while measuring, left alone here:

  • The screen-reader instructions promise a keyboard drag the board does not have. Every card's aria-describedby points 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 reported aria-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.
  • Interpolated aria-labels on the board read in English under zh. Each lane's list is named by a template with the English word "cards" (measured on the zh showcase board: 待规划 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.
  • No onDragCancel handler on the board. A cancelled drag leaves activeCard set and does not call the ObjectUI drag bridge's endDrag(). Read in source only; no reachable symptom measured. Noted, not filed.

Session: https://claude.ai/code/session_01Vk15bz8xHtKGUfXfCm16h4


Generated by Claude Code

…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>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 75 chunks) 3131.8 KB 3744.1 KB
Main entry chunk (gzip) 75.7 KB 350 KB
Entry file index-CiUChPQn.js —
Status PASS —

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

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 21.42KB 7.85KB
app-shell (runtime-config.js) 22.59KB 7.89KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 41.15KB 10.86KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 20.67KB 6.12KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.74KB 3.94KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.62KB 0.83KB
auth (authStyles.js) 5.27KB 1.86KB
auth (createAuthClient.js) 41.19KB 11.12KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 606.28KB 146.84KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 248.96KB 69.45KB
fields (index.js) 291.36KB 74.46KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 40.79KB 11.90KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 54.94KB 16.05KB
plugin-charts (index.js) 84.97KB 23.36KB
plugin-chatbot (index.js) 201.89KB 48.13KB
plugin-dashboard (index.js) 146.23KB 39.59KB
plugin-designer (index.js) 233.95KB 50.08KB
plugin-detail (index.js) 263.70KB 69.73KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 180.28KB 46.60KB
plugin-gantt (index.js) 178.36KB 45.08KB
plugin-grid (index.js) 271.78KB 75.39KB
plugin-kanban (index.js) 62.17KB 19.22KB
plugin-list (index.js) 138.78KB 35.68KB
plugin-map (index.js) 27.07KB 8.96KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 46.66KB 13.13KB
plugin-timeline (index.js) 39.21KB 11.85KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 94.68KB 24.36KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.23KB 39.46KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-approval-decision.js) 0.20KB 0.20KB
types (record-components.js) 0.20KB 0.19KB
types (record-panels.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对 — ACCEPT · domain:ui seat 3 · session_01Vk15bz8xHtKGUfXfCm16h4 · 2026-10-17T00:50Z

Head reviewed: 56be1f68f9c1fabef5017e35797a5f0403184d28, one round.

  • Card objectui#12716; claim 6227008894, Clause-②: no.
  • No export, prop or type changes, and no contract face. The gates are CI plus the seat's own read.

Implemented-by: claude/issue-12716-kanban-dnd-announcements
Reviewed-by: session_01Vk15bz8xHtKGUfXfCm16h4

1. Shape.

  • Draft PR against main. The body's first line is Fixes #12716, and the body has no other closing keyword.
  • 14 files, +538/−0, all inside the claim's surface:
    • packages/plugin-kanban/src/kanbanDndAnnouncements.ts (new, module-local): the announcer. It covers pick-up, over a card, over a column or over nothing, drop (moved or stays) and cancel. Each sentence names the card by title and the column by label, resolved the way handleDragEnd resolves a drop. A blank or unresolvable name reads a neutral phrase, never an id;
    • KanbanImpl.tsx (+26): the board's DndContext gains accessibility={dndAccessibility}. The announcer is created once per board, and the board's English defaults table gains the same nine sentences;
    • the ten packages/i18n/src/locales/*.ts bundles: nine keys each under kanban.dnd, one sentence per key with the names interpolated;
    • one new pin file;
    • changeset .changeset/12716-kanban-dnd-announcements.md.
  • Sensors, collision detection, the instructions and the existing strings are unchanged, and nothing is added to the package entry. The swimlanes share the one DndContext, so the same helper covers them.
  • The seat read the en and zh values in the diff; zh is its own sentence order, not an English copy.
  • No content/docs/releases/.

2. Premises measured (the dev's browser readings, audited by the seat in the run's transcript).

  • Setup: objectstack 66d456d01 examples/app-showcase --fresh, the showcase task board, Chromium.
  • Before (main 3288c12): the live region named the record id and the option value in en and zh, for example "Draggable item R-rXBJewHjmPzNfF was moved over droppable area in_progress."
  • After (this branch):
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 Gate and Governed Surface Queue Guard.
  • The dev's local subset at 56be1f6:
    • 155 files / 1816 passed, 13 skipped, over packages/plugin-kanban/ and packages/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") and check:i18n-dead-keys;
    • changeset presence and new-line citations.
  • 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 accessibility prop removed: 5 of 5 red, receiving dnd-kit's id sentences;
    • B, the zh start value removed: the zh case alone red;
    • C, the place memory always undefined: 3 of 5 red.

4. Accepted deviations.

  • The announcer is held in useState, not a ref. A ref passed during render tripped react-hooks/refs, and 56be1f6 replaced it.
  • Prose checked against the diff: the changeset, and the comments in KanbanImpl.tsx and the helper.

5. Out of scope (where each went).

6. Landing.

  • Not governed: check-governed-merges.mjs --root objectui --test over 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, Fixes closes objectui#12716.

Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants