Integrate Nennungen and Masterdata features: expand ApiRoutes, add repositories and ViewModels for Nennungen and Masterdata. Update navigation and UI components to include Meisterschaften and Cups tabs.
This commit is contained in:
+19
-7
@@ -41,6 +41,8 @@ fun AdminUebersichtScreen(
|
||||
onVeranstaltungOeffnen: (Long) -> Unit,
|
||||
onPingService: () -> Unit = {},
|
||||
onVereineOeffnen: () -> Unit = {},
|
||||
onMeisterschaftenOeffnen: () -> Unit = {},
|
||||
onCupsOeffnen: () -> Unit = {},
|
||||
) {
|
||||
// Placeholder-Daten für die UI-Struktur (sichtbar als Cards)
|
||||
val sample = listOf(
|
||||
@@ -68,7 +70,9 @@ fun AdminUebersichtScreen(
|
||||
inVorbereitung = 0,
|
||||
gesamt = 0,
|
||||
archiv = 0,
|
||||
onVereineClick = onVereineOeffnen
|
||||
onVereineClick = onVereineOeffnen,
|
||||
onMeisterschaftenClick = onMeisterschaftenOeffnen,
|
||||
onCupsClick = onCupsOeffnen
|
||||
)
|
||||
|
||||
// Toolbar
|
||||
@@ -159,6 +163,8 @@ private fun KpiKachelRow(
|
||||
gesamt: Int,
|
||||
archiv: Int,
|
||||
onVereineClick: () -> Unit = {},
|
||||
onMeisterschaftenClick: () -> Unit = {},
|
||||
onCupsClick: () -> Unit = {},
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
@@ -178,18 +184,24 @@ private fun KpiKachelRow(
|
||||
akzentFarbe = Color(0xFF3B82F6),
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
KpiKachel(
|
||||
label = "MEISTERSCHAFTEN",
|
||||
wert = "-",
|
||||
akzentFarbe = Color(0xFF1E3A8A),
|
||||
modifier = Modifier.weight(1f).clickable { onMeisterschaftenClick() },
|
||||
)
|
||||
KpiKachel(
|
||||
label = "CUPS",
|
||||
wert = "-",
|
||||
akzentFarbe = Color(0xFF1E3A8A),
|
||||
modifier = Modifier.weight(1f).clickable { onCupsClick() },
|
||||
)
|
||||
KpiKachel(
|
||||
label = "VEREINE",
|
||||
wert = "4", // Mock
|
||||
akzentFarbe = Color(0xFF6B7280),
|
||||
modifier = Modifier.weight(1f).clickable { onVereineClick() },
|
||||
)
|
||||
KpiKachel(
|
||||
label = "ARCHIV",
|
||||
wert = archiv.toString(),
|
||||
akzentFarbe = Color(0xFF9CA3AF),
|
||||
modifier = Modifier.weight(1f),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user