diff --git a/core/zns-parser/src/commonTest/kotlin/at/mocode/zns/parser/ZnsParserTest.kt b/core/zns-parser/src/commonTest/kotlin/at/mocode/zns/parser/ZnsParserTest.kt index b0b7ebe2..c794eedc 100644 --- a/core/zns-parser/src/commonTest/kotlin/at/mocode/zns/parser/ZnsParserTest.kt +++ b/core/zns-parser/src/commonTest/kotlin/at/mocode/zns/parser/ZnsParserTest.kt @@ -1,6 +1,5 @@ package at.mocode.zns.parser -import at.mocode.core.utils.parser.FixedWidthLineReader import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotNull diff --git a/frontend/features/turnier-feature/src/commonMain/kotlin/at/mocode/turnier/feature/presentation/BewerbViewModel.kt b/frontend/features/turnier-feature/src/commonMain/kotlin/at/mocode/turnier/feature/presentation/BewerbViewModel.kt index 83b02e50..1e69749a 100644 --- a/frontend/features/turnier-feature/src/commonMain/kotlin/at/mocode/turnier/feature/presentation/BewerbViewModel.kt +++ b/frontend/features/turnier-feature/src/commonMain/kotlin/at/mocode/turnier/feature/presentation/BewerbViewModel.kt @@ -8,6 +8,7 @@ import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.launch +import kotlin.time.Duration.Companion.milliseconds data class BewerbListItem( val id: Long, @@ -129,7 +130,7 @@ class BewerbViewModel( // In einer echten Implementierung würde hier der StartlistenService (oder ein API-Call) // aufgerufen werden. Für den MVP/Prototyp simulieren wir die Generierung. scope.launch { - kotlinx.coroutines.delay(800) // Simulation + kotlinx.coroutines.delay(800.milliseconds) // Simulation val mockStartliste = listOf( StartlistenZeile(1, "08:00", "Max Mustermann", "Ares", "VORNE"), StartlistenZeile(2, "08:05", "Susi Sonnenschein", "Bibi", "KEIN_WUNSCH"), diff --git a/frontend/features/turnier-feature/src/commonMain/kotlin/at/mocode/turnier/feature/presentation/CreateBewerbWizardScreen.kt b/frontend/features/turnier-feature/src/commonMain/kotlin/at/mocode/turnier/feature/presentation/CreateBewerbWizardScreen.kt index c0e408ef..b0f964bb 100644 --- a/frontend/features/turnier-feature/src/commonMain/kotlin/at/mocode/turnier/feature/presentation/CreateBewerbWizardScreen.kt +++ b/frontend/features/turnier-feature/src/commonMain/kotlin/at/mocode/turnier/feature/presentation/CreateBewerbWizardScreen.kt @@ -3,18 +3,7 @@ package at.mocode.turnier.feature.presentation import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn -import androidx.compose.material3.Checkbox -import androidx.compose.material3.ExperimentalMaterial3Api -import androidx.compose.material3.HorizontalDivider -import androidx.compose.material3.MaterialTheme -import androidx.compose.material3.OutlinedButton -import androidx.compose.material3.OutlinedTextField -import androidx.compose.material3.SecondaryTabRow -import androidx.compose.material3.Tab -import androidx.compose.material3.TabRowDefaults -import androidx.compose.material3.Text -import androidx.compose.material3.TextButton -import androidx.compose.material3.TabRowDefaults.tabIndicatorOffset +import androidx.compose.material3.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier @@ -64,7 +53,7 @@ fun CreateBewerbWizardScreen( onSubmit: (CreateBewerbPayload) -> Unit, ) { var selectedTab by remember { mutableStateOf(0) } - val steps = WizardStep.values() + val steps = WizardStep.entries.toTypedArray() Column(modifier.fillMaxSize().padding(16.dp)) { Text("Neuen Bewerb anlegen", style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold) diff --git a/frontend/features/turnier-feature/src/jvmMain/kotlin/at/mocode/turnier/feature/presentation/TurnierBewerbeTab.kt b/frontend/features/turnier-feature/src/jvmMain/kotlin/at/mocode/turnier/feature/presentation/TurnierBewerbeTab.kt index 4b86eac5..0b5a9214 100644 --- a/frontend/features/turnier-feature/src/jvmMain/kotlin/at/mocode/turnier/feature/presentation/TurnierBewerbeTab.kt +++ b/frontend/features/turnier-feature/src/jvmMain/kotlin/at/mocode/turnier/feature/presentation/TurnierBewerbeTab.kt @@ -15,13 +15,11 @@ import androidx.compose.runtime.* 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.TextStyle -import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import androidx.compose.ui.window.Dialog -import java.io.File import javax.swing.JFileChooser import javax.swing.filechooser.FileNameExtensionFilter