view data fixes

This commit is contained in:
2026-01-23 15:30:23 +01:00
parent e22033be38
commit f8099f04bc
213 changed files with 3466 additions and 3003 deletions

View File

@@ -1,26 +1,7 @@
import { ViewData } from '@/lib/contracts/view-data/ViewData';
/**
* LeagueScheduleViewData - Pure ViewData for LeagueScheduleTemplate
* Contains only raw serializable data, no methods or computed properties
* ViewData for LeagueSchedule
* This is the JSON-serializable input for the Template.
*/
export interface ScheduleRaceData {
id: string;
name: string;
track: string;
car: string;
scheduledAt: string;
status: string;
export interface LeagueScheduleViewData {
races: any[];
}
export interface LeagueScheduleViewData extends ViewData {
leagueId: string;
races: ScheduleRaceData[];
seasons: Array<{
seasonId: string;
name: string;
status: string;
}>;
}