diff --git a/frontend/features/device-initialization/src/commonMain/kotlin/at/mocode/frontend/features/deviceinitialization/presentation/DeviceInitializationScreen.kt b/frontend/features/device-initialization/src/commonMain/kotlin/at/mocode/frontend/features/deviceinitialization/presentation/DeviceInitializationScreen.kt index 14903bf1..b9e7881e 100644 --- a/frontend/features/device-initialization/src/commonMain/kotlin/at/mocode/frontend/features/deviceinitialization/presentation/DeviceInitializationScreen.kt +++ b/frontend/features/device-initialization/src/commonMain/kotlin/at/mocode/frontend/features/deviceinitialization/presentation/DeviceInitializationScreen.kt @@ -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( diff --git a/frontend/features/nennung-feature/src/commonMain/kotlin/at/mocode/frontend/features/nennung/presentation/NennungManagementScreen.kt b/frontend/features/nennung-feature/src/commonMain/kotlin/at/mocode/frontend/features/nennung/presentation/NennungManagementScreen.kt index 53ec8e2e..efb28fc5 100644 --- a/frontend/features/nennung-feature/src/commonMain/kotlin/at/mocode/frontend/features/nennung/presentation/NennungManagementScreen.kt +++ b/frontend/features/nennung-feature/src/commonMain/kotlin/at/mocode/frontend/features/nennung/presentation/NennungManagementScreen.kt @@ -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 diff --git a/frontend/features/nennung-feature/src/commonMain/kotlin/at/mocode/frontend/features/nennung/presentation/online/OnlineNennungEingang.kt b/frontend/features/nennung-feature/src/commonMain/kotlin/at/mocode/frontend/features/nennung/presentation/online/OnlineNennungEingang.kt index 2044cc2d..ce411db8 100644 --- a/frontend/features/nennung-feature/src/commonMain/kotlin/at/mocode/frontend/features/nennung/presentation/online/OnlineNennungEingang.kt +++ b/frontend/features/nennung-feature/src/commonMain/kotlin/at/mocode/frontend/features/nennung/presentation/online/OnlineNennungEingang.kt @@ -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 diff --git a/frontend/features/zns-import-feature/src/jvmMain/kotlin/at/mocode/zns/feature/ZnsImportViewModel.kt b/frontend/features/zns-import-feature/src/jvmMain/kotlin/at/mocode/zns/feature/ZnsImportViewModel.kt index 0c151970..f845db6b 100644 --- a/frontend/features/zns-import-feature/src/jvmMain/kotlin/at/mocode/zns/feature/ZnsImportViewModel.kt +++ b/frontend/features/zns-import-feature/src/jvmMain/kotlin/at/mocode/zns/feature/ZnsImportViewModel.kt @@ -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)") } diff --git a/frontend/shells/meldestelle-desktop/src/jvmMain/kotlin/at/mocode/desktop/screens/veranstaltung/wizards/TurnierWizards.kt b/frontend/shells/meldestelle-desktop/src/jvmMain/kotlin/at/mocode/desktop/screens/veranstaltung/wizards/TurnierWizards.kt index 2fc52549..c0d5fd1f 100644 --- a/frontend/shells/meldestelle-desktop/src/jvmMain/kotlin/at/mocode/desktop/screens/veranstaltung/wizards/TurnierWizards.kt +++ b/frontend/shells/meldestelle-desktop/src/jvmMain/kotlin/at/mocode/desktop/screens/veranstaltung/wizards/TurnierWizards.kt @@ -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 }