chore: konsolidiere Exception-Handling durch _-Platzhalter, bereinige Import-Anweisungen und entferne nicht genutzten Code
Desktop CI — Headless Tests & Build / Compose Desktop — Tests (headless) & Build (push) Failing after 58s
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 6m13s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 6m27s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Failing after 1m59s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m50s

This commit is contained in:
2026-04-19 00:54:26 +02:00
parent ae39eb4637
commit dc66dfb537
5 changed files with 15 additions and 15 deletions
@@ -13,17 +13,14 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusDirection
import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.focus.FocusRequester.Companion.FocusRequesterFactory.component1
import androidx.compose.ui.focus.FocusRequester.Companion.FocusRequesterFactory.component2
import androidx.compose.ui.focus.focusRequester
import androidx.compose.ui.input.key.Key
import androidx.compose.ui.input.key.KeyEventType
import androidx.compose.ui.input.key.key
import androidx.compose.ui.input.key.onKeyEvent
import androidx.compose.ui.input.key.type
import androidx.compose.ui.input.key.*
import androidx.compose.ui.platform.LocalFocusManager
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import at.mocode.frontend.features.deviceinitialization.domain.DeviceInitializationValidator
import at.mocode.frontend.features.deviceinitialization.domain.NetworkRole
@Composable
fun DeviceInitializationScreen(
@@ -2,14 +2,19 @@ package at.mocode.frontend.features.nennung.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import at.mocode.frontend.features.nennung.domain.*
import at.mocode.frontend.features.nennung.presentation.components.*
import at.mocode.frontend.features.nennung.presentation.components.AktionsButtonLeiste
import at.mocode.frontend.features.nennung.presentation.components.PferdReiterEingabe
import at.mocode.frontend.features.nennung.presentation.online.OnlineNennungEingang
import at.mocode.frontend.features.nennung.presentation.tabs.*
import at.mocode.frontend.features.nennung.presentation.tabs.BewerbslistePanel
import at.mocode.frontend.features.nennung.presentation.tabs.NennungenTabelle
import at.mocode.frontend.features.nennung.presentation.tabs.VerkaufBuchungenPanel
import kotlin.time.Duration.Companion.milliseconds
@Composable
@@ -1,6 +1,5 @@
package at.mocode.frontend.features.nennung.presentation.online
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
@@ -11,7 +10,6 @@ import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
@@ -141,7 +141,7 @@ class ZnsImportViewModel(
state = state.copy(isUploading = false, jobId = body.jobId, jobStatus = "AUSSTEHEND")
startPolling(body.jobId)
} else {
val errorText = try { response.bodyAsText() } catch (e: Exception) { "Keine Fehlerdetails verfügbar" }
val errorText = try { response.bodyAsText() } catch (_: Exception) { "Keine Fehlerdetails verfügbar" }
println("[ZNS] Upload Fehler: ${response.status} -> $errorText")
state = state.copy(isUploading = false, errorMessage = "Upload fehlgeschlagen: HTTP ${response.status.value} ($errorText)")
}
@@ -99,8 +99,8 @@ fun TurnierWizard(
val canContinue = when (currentStep) {
1 -> nr.length == 5 && nrConfirmed && znsDataLoaded
2 -> {
val vVon = veranstaltung?.datumVon?.let { try { LocalDate.parse(it) } catch(e: Exception) { null } }
val vBis = veranstaltung?.datumBis?.let { try { LocalDate.parse(it) } catch(e: Exception) { null } }
val vVon = veranstaltung?.datumVon?.let { try { LocalDate.parse(it) } catch(_: Exception) { null } }
val vBis = veranstaltung?.datumBis?.let { try { LocalDate.parse(it) } catch(_: Exception) { null } }
val tVon = try { LocalDate.parse(von) } catch (_: Exception) { null }
val tBis = if (bis.isBlank()) tVon else try { LocalDate.parse(bis) } catch (_: Exception) { null }