Add genlocke lineage tracking with aligned timeline view
Implement read-only lineage view that traces Pokemon across genlocke legs via existing transfer records. Backend walks transfer chains to build lineage entries; frontend renders them as cards with a column-aligned timeline grid so leg dots line up vertically across all lineages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -302,6 +302,37 @@ export interface AdvanceLegInput {
|
||||
transferEncounterIds: number[]
|
||||
}
|
||||
|
||||
// Lineage types
|
||||
|
||||
export interface LineageLegEntry {
|
||||
legOrder: number
|
||||
gameName: string
|
||||
encounterId: number
|
||||
pokemon: Pokemon
|
||||
currentPokemon: Pokemon | null
|
||||
nickname: string | null
|
||||
catchLevel: number | null
|
||||
faintLevel: number | null
|
||||
deathCause: string | null
|
||||
isShiny: boolean
|
||||
routeName: string
|
||||
isAlive: boolean
|
||||
enteredHof: boolean
|
||||
wasTransferred: boolean
|
||||
}
|
||||
|
||||
export interface LineageEntry {
|
||||
nickname: string | null
|
||||
pokemon: Pokemon
|
||||
legs: LineageLegEntry[]
|
||||
status: 'alive' | 'dead'
|
||||
}
|
||||
|
||||
export interface GenlockeLineage {
|
||||
lineages: LineageEntry[]
|
||||
totalLineages: number
|
||||
}
|
||||
|
||||
// Graveyard types
|
||||
|
||||
export interface GraveyardEntry {
|
||||
|
||||
Reference in New Issue
Block a user