personal records tab into athlete page

This commit is contained in:
Davide Scaini
2026-03-30 10:53:51 +02:00
parent 2cc53dece4
commit a6a81f9421
6 changed files with 692 additions and 43 deletions
+24
View File
@@ -13,14 +13,38 @@ export interface AthletePowerCurve {
last_90d: MmpCurve | null;
}
export interface EffortRecord {
time_s: number;
activity_id: string;
started_at: string;
title: string;
}
export interface ValueRecord {
value: number;
activity_id: string;
started_at: string;
title: string;
}
export interface BestClimb {
climb_m: number;
activity_id: string;
started_at: string;
title: string;
}
export interface AthleteJson {
bas_version: string;
generated_at: string;
power_curve: AthletePowerCurve;
records?: Record<string, Record<string, EffortRecord | ValueRecord>>;
best_climbs?: BestClimb[];
max_hr?: number;
ftp_w?: number;
hr_zones?: [number, number][];
power_zones?: [number, number][];
seasons?: { name: string; start: string; end: string }[];
}
export interface ActivitySummary {