Files
nuzlocke-tracker/.beans/nuzlocke-tracker-9cx2--drag-and-drop-reordering-for-boss-battles.md

25 lines
889 B
Markdown
Raw Normal View History

---
# nuzlocke-tracker-9cx2
title: Drag-and-drop reordering for boss battles
status: completed
type: feature
priority: normal
created_at: 2026-02-08T12:33:18Z
updated_at: 2026-02-08T13:11:50Z
parent: nuzlocke-tracker-iu5b
---
Add drag-and-drop reordering for boss battles, matching the existing pattern used for routes.
## Current behavior
- Boss battles have a manual 'order' field that must be edited individually
- Routes already have drag-and-drop reordering via @dnd-kit
## Desired behavior
- Boss battles in the AdminGameDetail bosses tab support drag-and-drop reordering
- Same visual pattern as routes: drag handle on the left, auto-recalculate order on drop
- Reuse the same @dnd-kit setup already in place for routes
## Files
- frontend/src/pages/admin/AdminGameDetail.tsx — add DnD to bosses tab
- Backend may need a reorder endpoint for bosses (similar to routes reorder)