Adds boss battle reorder API endpoint with two-phase order update to avoid unique constraint violations. Includes frontend mutation hook and API client. Also adds draft beans for progression dividers and conditional boss battle teams features. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
889 B
Markdown
25 lines
889 B
Markdown
---
|
|
# 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) |