fix(sidebar): make uncategorized rooms draggable into categories #135
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/sidebar-uncategorized-draggable"
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?
Bug
Channels in the "All rooms" / "Rooms" (uncategorized) section weren't draggable, so the only way to assign a room to a category was the per-row
≡"Move to category" dropdown. Users expected drag-and-drop to work for all rows, not just rows already inside a category.Fix
Add
draggable="true"anddata-room-idto the uncategorized<li>s when at least one category exists (no point making them draggable if there are no targets to drop on). The existingset_room_positionsroute already handles the drop viaINSERT ON CONFLICT, so a previously-uncategorized room lands in the target category at the right position without any new endpoint or DB code.Out of scope
Dragging back from a category to the All-rooms list is still done via the existing "Remove from category" dropdown entry; the uncategorized
<ul>is not made a drop target here to keep the diff minimal. Can land in a follow-up if needed.Test plan
just check(fmt + clippy across standalone + saas).room_positions_endpoint_handles_cross_category_moveexercises the sameINSERT ON CONFLICTpath that uncategorized->category goes through).