Add results-service microservice with API gateway integration, implement Ergebnis repository and edit dialog, update BewerbViewModel for Ergebniserfassung, and enhance Turnier UI with result management features.

This commit is contained in:
2026-04-12 16:37:10 +02:00
parent eb06c85013
commit 9c520d1b71
14 changed files with 453 additions and 27 deletions
@@ -149,9 +149,15 @@ fun PreviewTurnierBewerbeTab() {
override suspend fun generate(bewerbId: Long): Result<List<StartlistenZeile>> = Result.success(emptyList())
override suspend fun getByBewerb(bewerbId: Long): Result<List<StartlistenZeile>> = Result.success(emptyList())
}
val mockErgebnisRepo = object : at.mocode.turnier.feature.domain.ErgebnisRepository {
override suspend fun getForBewerb(bewerbId: String): Result<List<at.mocode.turnier.feature.domain.Ergebnis>> = Result.success(emptyList())
override suspend fun save(ergebnis: at.mocode.turnier.feature.domain.Ergebnis): Result<at.mocode.turnier.feature.domain.Ergebnis> = Result.success(ergebnis)
override suspend fun calculatePlatzierung(bewerbId: String): Result<List<at.mocode.turnier.feature.domain.Ergebnis>> = Result.success(emptyList())
}
val vm = BewerbViewModel(
repo = mockRepo,
startlistenRepo = mockStartlistenRepo,
ergebnisRepo = mockErgebnisRepo,
syncManager = null,
turnierId = 1L
)