# Implementation AGILE-362 - Make Backlogs destination actions batch-aware

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

## 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

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

## Next chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| AGILE-363 | Add positional actions for batch selections | closed |  |
| AGILE-392 | Constrain batch drags containing confined work packages | closed |  |

## Estimates

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

## Details

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

## Description

## What to build

Allow the existing inbox, sprint, and backlog-bucket destination actions to move the current Backlogs action scope. The server renders the card menu for the settled ordered selection and offers only destinations that every member permits. Dialogs and submissions reload, authorize, and move the exact ordered batch through the atomic collection contract from <mention class="mention" data-id="AGILE-278" data-type="work_package" data-text="#AGILE-278">#AGILE-278</mention>.

## Acceptance criteria

- [ ] Opening a card menu requests its contents for the settled ordered selection: a list-level controller sets the deferred `ActionMenu`'s `src` before it opens (<mention class="mention" data-id="AGILE-481" data-type="work_package" data-text="#AGILE-481">#AGILE-481</mention>). The client does not filter destination actions.
- [ ] Activating a destination action on a selected selection-eligible card preserves the live ordered selection; activating it on an unselected selection-eligible card establishes a one-card action scope. A fixed card remains singular-only without changing the existing selection or anchor.
- [ ] Confined and free cards are selection-eligible. The server offers a destination only when every member permits it: free members permit the available project destinations, while confined members permit only their current list.
- [ ] A target is omitted only when every member is already there; if only part of a cross-list batch is there, selecting that target gathers the full batch at its end in preserved order.
- [ ] Sprint and backlog-bucket dialogs use collection POST routes with ordered `ids[]` in the request body. They preserve that order through generated hidden fields and submit to the collection move endpoint.
- [ ] Dialogs list the work packages a move will affect, with a translatable, plural-aware count, and never open empty. If authoritative loading leaves no destination of the requested type, the established 422 Turbo Stream path keeps the frame and selection available for retry.
- [ ] Batches are limited only by the collection endpoint's provisional cap (`MAX_BATCH_SIZE = 50`, `batch_too_large`); menus and dialogs add no further limit.
- [ ] The server reloads and authorizes every submitted ID, checks the selected target for every member under the movement lock, and rejects the whole request when any member or target is invalid.
- [ ] Direct inbox and dialog submission use atomic append-mode collection movement without `prev_id`. One-card behavior and wording remain unchanged; batch success reports plural count, destination, and position range, and clears selection only after successful reconciliation.
- [ ] The direct inbox action freezes its settled ordered scope behind the root's movement busy boundary. Selection and movement changes, including Escape, are refused while it is pending, and busy state is restored on every outcome.

## Sequencing notes

  - Rebuilt from `dev` (see <mention class="mention" data-id="AGILE-181" data-type="work_package" data-text="#AGILE-181">#AGILE-181</mention> Wayfinding). Carries over the server-side destination availability, dialogs, collection validation, movement locks, announcements and async dialog transport from the first implementation; drops its client-side destination projection.
  - Requires the Primer fork release containing <mention class="mention" data-id="AGILE-481" data-type="work_package" data-text="#AGILE-481">#AGILE-481</mention> and the corresponding gem bump.
  - The server decides cross-list actions; **Move to position** stays client-side and is owned by <mention class="mention" data-id="AGILE-363" data-type="work_package" data-text="#AGILE-363">#AGILE-363</mention>. Menu presentation and the invocation policy for every entry point are owned by <mention class="mention" data-id="AGILE-364" data-type="work_package" data-text="#AGILE-364">#AGILE-364</mention>.
  - Application-wide handling of unsuccessful Turbo Stream responses other than the established 422 path is tracked by <mention class="mention" data-id="AGILE-393" data-type="work_package" data-text="#AGILE-393">#AGILE-393</mention>.
