Skip to content

fix(platform): name tasks, not ids, when dragging by keyboard - #3684

Merged
yannickmonney merged 2 commits into
mainfrom
fix/task-drag-announcements
Sep 28, 2026
Merged

yannickmonney merged 2 commits into
mainfrom
fix/task-drag-announcements

Conversation

@yannickmonney

@yannickmonney yannickmonney commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Keyboard dragging on Board and List now announces the task name, status and destination position in EN/DE/FR. Shared drop arithmetic keeps the announced destination consistent with the write, duplicate pickup-position announcements stay silent, and a removed task never falls back to its internal ID. An upright overlay wrapper lets the first arrow press reach the next lane.

Review corrected the EN/DE/FR docs to match the concise movement announcements. Existing title activation, focus restoration and workflow confirmation remain in place.

Validation:

  • Independent 24/24 focused component tests and 46/46 Chromium tests pass. Original runtime-head CI executed 3,977 UI tests fresh and passed 172 browser tests; the final documentation commit requires its own CI before merge.
  • Native Chrome checks exercised English Board pickup/first-arrow/cancel, German List reorder/drop into an empty status, and French Board pickup/drop. The localized live regions named the task and positions correctly, and focus returned to the task title.
  • Locale tests (24), docs tests (171), manual/guide guards, type-aware lint and scoped SAST passed. React Doctor reported no issues. Local broad UI and type-check attempts under severe host load were stopped; those are not claimed as passes.
  • Screen-reader speech/audio timing and physical mobile devices remain unverified; TASK-A7 records that manual check.

Closes #3561

A keyboard drag on the task Board or List spoke dnd-kit's English
defaults in every locale ("Draggable item <uuid> was moved over
droppable area <uuid>."), and the pickup line was overwritten in the
same frame.

useTaskBoardDnd now returns one accessibility contract that both
DndContexts use. The pickup names the task's key and title with its
status and position. Each move names the status and position the drop
would take, including an empty status, and a move to the slot just
spoken stays silent, so the pickup line is kept. The drop and the cancel
name the key. Positions come from the same resolveDrop arithmetic the
drop applies, and the handler records what the drop did for its line.
The title's instructions name the keys it handles: Enter opens, Space
picks up and drops, the arrow keys move, Escape cancels. A task without
a key is named by its title, and a task gone mid-drag is reported as
not moved, never by its id. EN/DE/FR under tasks.drag.

The Board's drag overlay gets an upright wrapper. dnd-kit measures the
overlay's only child, and the tilted card's box made the first arrow
press after a pickup stay in the lane (ArrowRight) or do nothing
(ArrowDown).

Docs (EN/DE/FR) describe the keyboard move. The manual layer gains
TASK-A7 for the spoken half and an automation row for the Chromium
specs.

Closes #3561
@yannickmonney
yannickmonney merged commit 2d42196 into main Sep 28, 2026
50 checks passed
@yannickmonney
yannickmonney deleted the fix/task-drag-announcements branch September 28, 2026 13:20
@yannickmonney

Copy link
Copy Markdown
Contributor Author

Independent review at 754a225fe4b8c48c4364e882041ca26d880a305c: no blocking defect found in the changed drag behavior. Board and List use the same announcements and destination arithmetic; the disappeared-task path does not announce a UUID or issue a move. The upright overlay wrapper addresses the measured keyboard destination without changing the tilted card presentation.

I ran these directly in a separate local checkout with frozen dependencies:

  • Shared drag hook: 8 tests passed.
  • Existing real-Chromium Task List/Board component suite: 15 tests passed, including localized announcements, first-arrow movement, destination/write agreement, cancellation and focus.
  • Platform message checks with report output enabled: 24 tests passed, with no report-mode findings printed. I read the new EN/DE/FR wording and compared placeholders and meaning.
  • React Doctor against this PR base: 93/100, no diagnostics in the five scanned changed files.

This is a focused review, not a full green-gate claim. Required CI still had queued/in-progress jobs at the final readback. I did not rerun the rendered docs site or a hardware screen reader, and the component suite mocks mutation/choreography boundaries. Please retain the required final-head CI gate before merge. No merge or deployment performed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve task drag announcements to name tasks instead of UUIDs

1 participant