Frontend: drag-and-drop reorder buckets within a scenario #66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
On the scenario show page (
/scenarios/:id), buckets render insortOrder ASCorder (embedded via #64). Today a user has no way to change that order —sortOrderis read-only on the API (bucket:readgroup only, not writable) and there's no UI to reorder.This ticket adds drag-and-drop reordering of buckets within a scenario, persisting the new
sortOrder.Deferred — not v0.3.0. Polish for a later milestone (triage into one when picked up).
Scope
Frontend
Backend
sortOrder— currentlysortOrderis not in any write group and Bucket PATCH (#57) does not accept it. Options to decide during scoping:sortOrderto a Bucket write group so PATCH can set it (N PATCHes, or one per moved bucket), orPATCH /api/scenarios/{id}/bucket-ordertaking an ordered list of bucket IRIs) — atomic, one request.Design questions (resolve during scoping)
sortOrder.sortOrdersemantics: dense contiguous integers re-written on every reorder, vs. sparse/fractional to allow single-item moves. Recommend dense-rewrite for simplicity given small bucket counts.Depends on
sortOrder) — done.Out of scope
sortOrder).Testing
sortOrder; ownership + same-scenario invariants return the right status; embedded read reflects new order.