chore: erweitere Veranstalter-Wizard um Bearbeitungsmodus, füge Kontaktdaten und Step-Logik hinzu

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-21 14:37:41 +02:00
parent 18e619abfc
commit 544fbf792c
12 changed files with 389 additions and 90 deletions
@@ -36,6 +36,7 @@ sealed class AppScreen(val route: String) {
data object VeranstalterVerwaltung : AppScreen("/veranstalter/verwaltung")
data class VeranstalterProfil(val id: Long) : AppScreen("/veranstalter/profil/$id")
data class VeranstalterProfilEdit(val id: Long) : AppScreen("/veranstalter/profil/$id/edit")
// data class VeranstaltungProfil(val id: Long) : AppScreen("/veranstaltung/profil/$id")
@@ -82,6 +83,7 @@ sealed class AppScreen(val route: String) {
private val VEREIN_PROFIL = Regex("/vereine/profil/(\\d+)$")
private val FUNKTIONAER_PROFIL = Regex("/funktionaere/profil/(\\d+)$")
private val VERANSTALTER_PROFIL = Regex("/veranstalter/profil/(\\d+)$")
private val VERANSTALTER_PROFIL_EDIT = Regex("/veranstalter/profil/(\\d+)/edit$")
// private val VERANSTALTUNG_PROFIL_LEGACY = Regex("/veranstaltung/profil/(\\d+)$")
fun fromRoute(route: String): AppScreen {
@@ -119,6 +121,7 @@ sealed class AppScreen(val route: String) {
VEREIN_PROFIL.matchEntire(route)?.destructured?.let { (id) -> return VereinProfil(id.toLong()) }
FUNKTIONAER_PROFIL.matchEntire(route)?.destructured?.let { (id) -> return FunktionaerProfil(id.toLong()) }
VERANSTALTER_PROFIL.matchEntire(route)?.destructured?.let { (id) -> return VeranstalterProfil(id.toLong()) }
VERANSTALTER_PROFIL_EDIT.matchEntire(route)?.destructured?.let { (id) -> return VeranstalterProfilEdit(id.toLong()) }
/*
EVENT_PROFIL.matchEntire(route)?.destructured?.let { (id) -> return EventProfil(id.toLong()) }
*/