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:
Julian Tabel
2026-02-09 11:58:38 +01:00
parent 4e00e3cad8
commit d3b65e3c79
9 changed files with 541 additions and 8 deletions

View File

@@ -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 {