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:
@@ -72,3 +72,43 @@ export interface UpdateRouteEncounterInput {
|
||||
minLevel?: number
|
||||
maxLevel?: number
|
||||
}
|
||||
|
||||
export interface EvolutionAdmin {
|
||||
id: number
|
||||
fromPokemonId: number
|
||||
toPokemonId: number
|
||||
fromPokemon: import('./game').Pokemon
|
||||
toPokemon: import('./game').Pokemon
|
||||
trigger: string
|
||||
minLevel: number | null
|
||||
item: string | null
|
||||
heldItem: string | null
|
||||
condition: string | null
|
||||
}
|
||||
|
||||
export interface PaginatedEvolutions {
|
||||
items: EvolutionAdmin[]
|
||||
total: number
|
||||
limit: number
|
||||
offset: number
|
||||
}
|
||||
|
||||
export interface CreateEvolutionInput {
|
||||
fromPokemonId: number
|
||||
toPokemonId: number
|
||||
trigger: string
|
||||
minLevel?: number | null
|
||||
item?: string | null
|
||||
heldItem?: string | null
|
||||
condition?: string | null
|
||||
}
|
||||
|
||||
export interface UpdateEvolutionInput {
|
||||
fromPokemonId?: number
|
||||
toPokemonId?: number
|
||||
trigger?: string
|
||||
minLevel?: number | null
|
||||
item?: string | null
|
||||
heldItem?: string | null
|
||||
condition?: string | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user