view data fixes
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 7m11s
Contract Testing / contract-snapshot (pull_request) Has been skipped

This commit is contained in:
2026-01-24 23:29:55 +01:00
parent c1750a33dd
commit 1b0a1f4aee
134 changed files with 10380 additions and 415 deletions

View File

@@ -11,32 +11,32 @@ export class RaceStewardingViewModel extends ViewModel {
get race() { return this.data.race; }
get league() { return this.data.league; }
get protests() { return this.data.protests; }
get penalties() { return this.data.penalties; }
get driverMap() { return this.data.driverMap; }
/** UI-specific: Pending protests */
get pendingProtests() {
return this.protests.filter(p => p.status === 'pending' || p.status === 'under_review');
return this.data.pendingProtests;
}
/** UI-specific: Resolved protests */
get resolvedProtests() {
return this.protests.filter(p =>
p.status === 'upheld' ||
p.status === 'dismissed' ||
p.status === 'withdrawn'
);
return this.data.resolvedProtests;
}
/** UI-specific: All protests */
get protests() {
return [...this.pendingProtests, ...this.resolvedProtests];
}
/** UI-specific: Total pending protests count */
get pendingCount(): number {
return this.pendingProtests.length;
return this.data.pendingCount;
}
/** UI-specific: Total resolved protests count */
get resolvedCount(): number {
return this.resolvedProtests.length;
return this.data.resolvedCount;
}
/** UI-specific: Total penalties count */