Add genlocke cumulative graveyard with backend endpoint and UI
Aggregates all fainted encounters across every leg of a genlocke into a
unified graveyard view. Backend serves GET /genlockes/{id}/graveyard with
per-entry leg/game context and summary stats (total deaths, deaths per
leg, deadliest leg). Frontend adds a toggle button on the genlocke detail
page that reveals a filterable/sortable grid of grayscale Pokemon cards.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -284,3 +284,32 @@ export interface GenlockeDetail {
|
||||
stats: GenlockeStats
|
||||
retiredPokemon: Record<number, RetiredPokemon>
|
||||
}
|
||||
|
||||
// Graveyard types
|
||||
|
||||
export interface GraveyardEntry {
|
||||
id: number
|
||||
pokemon: Pokemon
|
||||
currentPokemon: Pokemon | null
|
||||
nickname: string | null
|
||||
catchLevel: number | null
|
||||
faintLevel: number | null
|
||||
deathCause: string | null
|
||||
isShiny: boolean
|
||||
routeName: string
|
||||
legOrder: number
|
||||
gameName: string
|
||||
}
|
||||
|
||||
export interface GraveyardLegSummary {
|
||||
legOrder: number
|
||||
gameName: string
|
||||
deathCount: number
|
||||
}
|
||||
|
||||
export interface GenlockeGraveyard {
|
||||
entries: GraveyardEntry[]
|
||||
totalDeaths: number
|
||||
deathsPerLeg: GraveyardLegSummary[]
|
||||
deadliestLeg: GraveyardLegSummary | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user