website cleanup

This commit is contained in:
2025-12-25 00:19:36 +01:00
parent d78854a4c6
commit 9486455b9e
82 changed files with 1223 additions and 363 deletions

View File

@@ -7,13 +7,21 @@ import { CompleteOnboardingOutputDTO } from '../types/generated/CompleteOnboardi
export class CompleteOnboardingViewModel {
success: boolean;
driverId?: string;
errorMessage?: string;
constructor(dto: CompleteOnboardingOutputDTO) {
this.success = dto.success;
if (dto.driverId !== undefined) this.driverId = dto.driverId;
if (dto.errorMessage !== undefined) this.errorMessage = dto.errorMessage;
}
/** UI-specific: Whether onboarding was successful */
get isSuccessful(): boolean {
return this.success;
}
/** UI-specific: Whether there was an error */
get hasError(): boolean {
return !!this.errorMessage;
}
}