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:
@@ -2,7 +2,13 @@ import { Routes, Route, Navigate } from 'react-router-dom'
|
||||
import { Layout } from './components'
|
||||
import { AdminLayout } from './components/admin'
|
||||
import { Home, NewRun, RunList, RunDashboard, RunEncounters } from './pages'
|
||||
import { AdminGames, AdminGameDetail, AdminPokemon, AdminRouteDetail } from './pages/admin'
|
||||
import {
|
||||
AdminGames,
|
||||
AdminGameDetail,
|
||||
AdminPokemon,
|
||||
AdminRouteDetail,
|
||||
AdminEvolutions,
|
||||
} from './pages/admin'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
@@ -19,6 +25,7 @@ function App() {
|
||||
<Route path="games/:gameId" element={<AdminGameDetail />} />
|
||||
<Route path="games/:gameId/routes/:routeId" element={<AdminRouteDetail />} />
|
||||
<Route path="pokemon" element={<AdminPokemon />} />
|
||||
<Route path="evolutions" element={<AdminEvolutions />} />
|
||||
</Route>
|
||||
</Route>
|
||||
</Routes>
|
||||
|
||||
Reference in New Issue
Block a user