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

This commit is contained in:
2026-01-23 13:04:05 +01:00
parent d97f50ed72
commit e22033be38
24 changed files with 605 additions and 455 deletions

View File

@@ -0,0 +1,20 @@
/**
* DriverRegistrationStatusDisplay
*
* Deterministic mapping of driver registration boolean state
* to UI labels and variants.
*/
export class DriverRegistrationStatusDisplay {
static statusMessage(isRegistered: boolean): string {
return isRegistered ? "Registered for this race" : "Not registered";
}
static statusBadgeVariant(isRegistered: boolean): string {
return isRegistered ? "success" : "warning";
}
static registrationButtonText(isRegistered: boolean): string {
return isRegistered ? "Withdraw" : "Register";
}
}