# Bug AGILE-99 - Backlogs: Backlogs are not updated with Turbo morphing

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Backlogs, Frontend components and Primer design system |
| Target versions | 17.2.0 |
| Observed in versions | 17.2.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.2.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Alexander Coles |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Open a project with Backlogs enabled and several sprints with stories

2.  Drag a story from one sprint to another

3.  Observe how the backlog components update after the drop

### What is the buggy behavior?

After a drag-and-drop operation (moving a story between sprints, reordering, or editing a sprint), the affected backlog components are fully replaced in the DOM via Turbo Stream `replace` actions. This causes:

  - A visible "flash" as entire backlog sections are torn out and re-inserted

  - Any transient UI state is lost (open action menus close, focus is lost, scroll position may shift)

  - The update feels jarring rather than smooth

Additionally, Primer `ActionMenu` components generate random IDs on each render, which prevents Turbo from efficiently matching elements between the old and new DOM.

### What is the expected behavior?

Backlog components should update via Turbo morphing (`method: :morph`), which diffs the existing DOM against the server response and only updates what changed. This produces a smoother visual update and preserves transient UI state where possible.

To support this, all interactive elements (action menu items, border box headers) need stable, deterministic `id` attributes so that Turbo's morph algorithm can correctly match them between renders.

### Environment information

**OpenProject installation type**

  - Hosted cloud edition

**OpenProject version**

release/17.2

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*en\_GB*
