24 lines
867 B
Markdown
24 lines
867 B
Markdown
---
|
|
# nuzlocke-tracker-9cx2
|
|
title: Drag-and-drop reordering for boss battles
|
|
status: todo
|
|
type: feature
|
|
created_at: 2026-02-08T12:33:18Z
|
|
updated_at: 2026-02-08T12:33:18Z
|
|
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) |