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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user