Add Pokemon detail card with tabbed encounter/evolution views

Pokemon edit modal now shows three tabs (Details, Evolutions, Encounters)
instead of a single long form. Evolution chain entries are clickable to
open the EvolutionFormModal for direct editing. Encounter locations link
to admin route detail pages. Create mode shows only the form (no tabs).

Backend adds GET /pokemon/{id}/encounter-locations (grouped by game) and
GET /pokemon/{id}/evolution-chain (BFS family discovery). Extracts
formatEvolutionMethod to shared utility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 14:03:43 +01:00
parent f09b8213fd
commit a01d01c565
10 changed files with 482 additions and 94 deletions

View File

@@ -121,6 +121,22 @@ export interface UpdateEvolutionInput {
region?: string | null
}
// Pokemon encounter locations (detail card)
export interface PokemonEncounterLocationItem {
routeId: number
routeName: string
encounterMethod: string
encounterRate: number
minLevel: number
maxLevel: number
}
export interface PokemonEncounterLocation {
gameId: number
gameName: string
encounters: PokemonEncounterLocationItem[]
}
// Boss battles admin
export interface CreateBossBattleInput {
name: string