Improve admin panel UX with toasts, evolution CRUD, sorting, drag-and-drop, and responsive layout

Add sonner toast notifications to all mutations, evolution management backend
(CRUD endpoints with search/pagination) and frontend (form modal with pokemon
selector, paginated list page), sortable AdminTable columns (Region/Gen/Year
on Games), drag-and-drop route reordering via @dnd-kit, skeleton loading states,
card-styled table wrappers, and responsive mobile nav in AdminLayout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 13:09:27 +01:00
parent 574e36ee22
commit 1f198aca4c
20 changed files with 1140 additions and 138 deletions

View File

@@ -1,26 +1,29 @@
---
# nuzlocke-tracker-czeh
title: Improve admin panel UX
status: todo
status: completed
type: feature
priority: normal
created_at: 2026-02-05T18:28:04Z
updated_at: 2026-02-05T18:28:07Z
updated_at: 2026-02-07T11:59:49Z
parent: nuzlocke-tracker-f5ob
---
Improve the admin panel with better interactions and missing management capabilities.
## Checklist
- [ ] Evolution data management:
- [ ] List evolutions (searchable/filterable)
- [ ] Add new evolution
- [ ] Edit evolution details (trigger, level, item, conditions)
- [ ] Delete evolution
- [ ] Route reordering:
- [ ] Replace up/down buttons with drag-and-drop
- [ ] General UX improvements:
- [ ] Improve table layouts and spacing
- [ ] Add loading states and better error feedback
- [ ] Add confirmation toasts for successful actions
- [ ] Improve mobile responsiveness of admin views
- [x] Evolution data management:
- [x] List evolutions (searchable/filterable)
- [x] Add new evolution
- [x] Edit evolution details (trigger, level, item, conditions)
- [x] Delete evolution
- [x] Route reordering:
- [x] Replace up/down buttons with drag-and-drop
- [x] Table sorting (Games table):
- [x] Add sortable column support to AdminTable component
- [x] Enable sorting by Region, Generation, and Release Year on Games table
- [x] General UX improvements:
- [x] Improve table layouts and spacing
- [x] Add loading states and better error feedback
- [x] Add confirmation toasts for successful actions
- [x] Improve mobile responsiveness of admin views