|
|
7564525c7e
|
feat: implement drag-and-drop reordering infrastructure
Phase 1 (Backend API):
✅ GroupRepository.updateImageOrder() with SQL transactions
✅ PUT /api/groups/:groupId/reorder API route with validation
✅ Manual testing: Reordering verified working (group qion_-lT1)
✅ Error handling: Invalid IDs, missing groups, empty arrays
Phase 2 (Frontend DnD):
✅ @dnd-kit/core packages installed
✅ ReorderService.js for API communication
✅ useReordering.js custom hook with optimistic updates
✅ ImageGalleryCard.js extended with drag handles & sortable
✅ ImageGallery.js with DndContext and SortableContext
✅ CSS styles for drag states, handles, touch-friendly mobile
Next: Integration with ModerationGroupImagesPage
|
2025-11-03 21:06:39 +01:00 |
|