chore: erweitere Datenmodelle um neue Felder, verbessere Styling und aktualisiere Veranstalter-UI

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-21 14:24:51 +02:00
parent 5eeff24b3a
commit 18e619abfc
5 changed files with 150 additions and 25 deletions
@@ -18,6 +18,8 @@ data class ReiterProfilState(
val feiId: String = "",
val lizenzKlasse: String = "",
val verein: String = "",
val nation: String = "AUT",
val bundesland: String = "",
// Validierungsergebnisse (Live-Feedback, ÖTO/FEI Regelwerk)
val oepsNummerValidation: ValidationResult = ValidationResult.Ok,
val feiIdValidation: ValidationResult = ValidationResult.Ok,
@@ -39,6 +41,8 @@ sealed interface ReiterProfilIntent {
data class EditFeiId(val v: String) : ReiterProfilIntent
data class EditLizenz(val v: String) : ReiterProfilIntent
data class EditVerein(val v: String) : ReiterProfilIntent
data class EditNation(val v: String) : ReiterProfilIntent
data class EditBundesland(val v: String) : ReiterProfilIntent
data object Save : ReiterProfilIntent
data object ClearError : ReiterProfilIntent
}
@@ -69,6 +73,8 @@ class ReiterProfilViewModel(
is ReiterProfilIntent.EditFeiId -> edit { it.copy(feiId = intent.v) }
is ReiterProfilIntent.EditLizenz -> edit { it.copy(lizenzKlasse = intent.v) }
is ReiterProfilIntent.EditVerein -> edit { it.copy(verein = intent.v) }
is ReiterProfilIntent.EditNation -> edit { it.copy(nation = intent.v) }
is ReiterProfilIntent.EditBundesland -> edit { it.copy(bundesland = intent.v) }
is ReiterProfilIntent.Save -> save()
is ReiterProfilIntent.ClearError -> reduce { it.copy(errorMessage = null) }
}