code quality
Some checks failed
CI / lint-typecheck (pull_request) Failing after 12s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
Some checks failed
CI / lint-typecheck (pull_request) Failing after 12s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
This commit is contained in:
@@ -1,21 +1,23 @@
|
||||
import { ViewData } from "@/lib/contracts/view-data/ViewData";
|
||||
|
||||
export interface DriverViewData {
|
||||
id: string;
|
||||
name: string;
|
||||
rating: number;
|
||||
ratingLabel: string;
|
||||
skillLevel: string;
|
||||
category?: string;
|
||||
nationality: string;
|
||||
racesCompleted: number;
|
||||
wins: number;
|
||||
podiums: number;
|
||||
isActive: boolean;
|
||||
rank: number;
|
||||
avatarUrl?: string;
|
||||
}
|
||||
|
||||
export interface DriversViewData extends ViewData {
|
||||
drivers: {
|
||||
id: string;
|
||||
name: string;
|
||||
rating: number;
|
||||
ratingLabel: string;
|
||||
skillLevel: string;
|
||||
category?: string;
|
||||
nationality: string;
|
||||
racesCompleted: number;
|
||||
wins: number;
|
||||
podiums: number;
|
||||
isActive: boolean;
|
||||
rank: number;
|
||||
avatarUrl?: string;
|
||||
}[];
|
||||
drivers: DriverViewData[];
|
||||
totalRaces: number;
|
||||
totalRacesLabel: string;
|
||||
totalWins: number;
|
||||
|
||||
@@ -16,6 +16,7 @@ export interface LeagueScheduleViewData extends ViewData {
|
||||
isPast: boolean;
|
||||
isUpcoming: boolean;
|
||||
status: string;
|
||||
strengthOfField?: number;
|
||||
isUserRegistered: boolean;
|
||||
canRegister: boolean;
|
||||
canEdit: boolean;
|
||||
|
||||
@@ -13,7 +13,7 @@ export interface StandingEntryViewData {
|
||||
races: number;
|
||||
leaderPoints: number;
|
||||
nextPoints: number;
|
||||
currentUserId: string | null;
|
||||
currentUserId: string;
|
||||
previousPosition?: number;
|
||||
driver?: any;
|
||||
// Phase 3 fields
|
||||
|
||||
@@ -35,4 +35,9 @@ export interface LeagueViewData extends ViewData {
|
||||
occupied: number;
|
||||
};
|
||||
};
|
||||
// API DTO fields for RSC/Layout compatibility
|
||||
ownerId: string;
|
||||
createdAt: string;
|
||||
settings: any;
|
||||
usedSlots: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user