# Code maintenance DREAM-774 - Document the sortable-lists DOM contract

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-774

## OPEN POINTS

_No work packages_

## Subtasks

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Designer |  |
| Developers | Alexander Coles |
| Requires doc change | No |
| Date |  |
| Priority | Medium |
| Target versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Module | Frontend components and Primer design system |
| Accessibility | No |
| List |  |
| Labels |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Remaining work |  |

## Description

### Context

The reusable `sortable-lists` suite now has consumers beyond Backlogs and is being extended by <mention class="mention" data-id="DREAM-786" data-type="work_package" data-text="#DREAM-786">#DREAM-786</mention>. Its contract must be readable without reverse-engineering controller code.

### Goal

Document the complete server-rendered sortable-list contract and provide a small living example or Lookbook preview where practical.

### Acceptance criteria

- [ ] Document root/list/item/scrollable controller topology and outlet ownership.
- [ ] Document tag-agnostic row-container and direct-row resolution.
- [ ] Document item types, leaf-scoped accepted types, list IDs, and per-type move URLs.
- [ ] Document the `list_type` + `list_id` + `prev_id` request contract, including blank, invalid, out-of-scope, and self-anchor semantics.
- [ ] Document optimistic placement separately from response policy: event-only opt-in versus admin morph reconciliation.
- [ ] Document client-only mode and its move event.
- [ ] Document directional menu targets, availability gating, truncation markers, hard-gap rows, and move directions.
- [ ] Document busy, rollback, announcement, auto-scroll, drag-preview, drop-indicator, and morph-healing behavior.
- [ ] Include examples for same-list, cross-list, empty-list, table/BorderBox-row, and multi-type roots.
- [ ] Add or update a living preview/test fixture that fails when essential data attributes drift.

### Hints for QA

Please check the new **Patterns → Drag and drop** is present: i.e. that page loads, including all diagrams, and that tab sections are navigable. There is no need to do a thorough re-check of content (<mention class="mention" data-id="39106" data-type="user" data-text="@Henriette Darge">@Henriette Darge</mention> has done this already). Thanks\!
