# Implementation AGILE-361 - Add batch selection to Backlogs cards

Project: Stream agile
Status: closed
URL: https://community.openproject.org/work_packages/AGILE-361

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer | Julia Racsko |
| Developers | Alexander Coles |

## Technical details

| Attribute | Value |
| --- | --- |
| Target versions | 18.0.0 |
| Module | Frontend components and Primer design system, Modules and project features / Backlogs |
| Requires doc change | No |

## Belongs to

_No work packages_

## Previous chunks

_No work packages_

## Next chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| AGILE-278 | Move selected work packages atomically | closed |  |

## Estimates

| Attribute | Value |
| --- | --- |
| Effort (shirt size) |  |
| Work |  |

## Details

| Attribute | Value |
| --- | --- |
| Date | 2026-08-03 – 2026-08-17 |
| % Complete | 100% |
| Category |  |
| Sprint |  |
| Backlog bucket |  |
| Priority | Medium |
| List |  |
| Pull preview |  |
| Labels |  |

## Description

## What to build

Add opt-in batch selection to Backlogs work package cards. Pointer and keyboard users can form sparse or contiguous selections without conflating batch membership with the work package currently open in the details pane. The selection policy remains framework-agnostic so other card and table views can adopt it later.

## Acceptance criteria

* [ ] Plain click selects only the movable card and continues to open its details; **Ctrl/Cmd-click** toggles a card and rebases the range anchor without navigation.
* [ ] **Shift-click**, **Shift+Space**, and **Shift+Arrow** resize a list-local range from the current anchor while preserving the selection present when that range began, including selected cards in other lists. Without an anchor, they select only the clicked or focused card and establish it as the anchor.
* [ ] Repeated Shift gestures extend, shrink, or reverse the range without moving its anchor. Cards added only by the previous range are removed when outside the new range; independently selected cards remain selected even if they overlapped the previous range. For example, selecting A and C individually, then extending from C to D, selects A plus C–D; shrinking back to C leaves A and C selected.
* [ ] Plain selection, an individual toggle, select-all, and clearing the selection end the current range session. The next range preserves the selection present when it begins, except after Select All: that selection can immediately be narrowed or reversed with Shift. Toggling still rebases the anchor, including when deselecting that card.
* [ ] Reconciliation removes unavailable cards from both the selection and the selection preserved for range resizing, so subsequent Shift gestures cannot restore stale members. Losing the anchor or moving it to another list ends the range session; unchanged reconciliation preserves it.
* [ ] Cross-list Shift starts a new single-card selection, and ranges crossing unloaded cards are rejected without changing state.
* [ ] **Space** toggles the focused movable card, arrows and Home/End move card focus, **Ctrl/Cmd+A** selects all loaded movable cards in the focused card's list, **Escape** clears selection regardless of where focus sits, and existing Enter shortcuts remain intact.
* [ ] Cards that take no part in ordering cannot enter the selection. Rejected modified-pointer and keyboard selection gestures preserve the selection and anchor and announce why.
* [ ] Batch selection and the current work package use distinct visual and accessible states, with plural-aware announcements. Design review before completion covers both that distinction and whether a plain click on a card that takes no part in ordering should clear or preserve an existing batch. A persistent visible count is deliberately not part of this work package: reserving space above the two independently scrolling planning columns moved cards under the cursor mid-drag.
* [ ] Changing the current work package, including details-pane URL synchronization, never clears the batch selection.
* [ ] The applicable WAI-ARIA APG multi-selection behavior is followed without applying listbox, option, or `aria-selected` semantics to cards containing interactive descendants.
* [ ] Selection state survives relevant Turbo morph replacement, removes disconnected work packages after reconciliation, does not affect sortable roots that have not opted in, and keys membership by item type and id so nested lists of different item types cannot collide.

## Sequencing

AGILE-348 is intentionally delivered first for design sequencing but is not a technical dependency.
