remove core from pages

This commit is contained in:
2025-12-18 19:14:50 +01:00
parent 9814d9682c
commit 4a3087ae35
35 changed files with 552 additions and 354 deletions

View File

@@ -11,6 +11,9 @@ export class ProtestViewModel {
accusedDriverId: string;
description: string;
submittedAt: string;
status: string;
reviewedAt?: string;
decisionNotes?: string;
constructor(dto: ProtestDTO) {
this.id = dto.id;
@@ -19,6 +22,10 @@ export class ProtestViewModel {
this.accusedDriverId = dto.accusedDriverId;
this.description = dto.description;
this.submittedAt = dto.submittedAt;
// TODO: Add these fields to DTO when available
this.status = 'pending';
this.reviewedAt = undefined;
this.decisionNotes = undefined;
}
/** UI-specific: Formatted submitted date */
@@ -26,8 +33,8 @@ export class ProtestViewModel {
return new Date(this.submittedAt).toLocaleString();
}
/** UI-specific: Status display - placeholder since status not in current DTO */
/** UI-specific: Status display */
get statusDisplay(): string {
return 'Pending'; // TODO: Update when status is added to DTO
return 'Pending';
}
}