Heim: nur noch 'Nächster Termin'; letzter Eintrag/Gewicht/Anzahl raus

This commit is contained in:
rene 2026-05-30 12:33:25 +02:00
parent cf625f3391
commit ef7907d74b

View file

@ -169,14 +169,6 @@ struct HeimView: View {
private func dashboardCards(_ snap: DashboardSnapshot) -> some View {
VStack(spacing: 10) {
if let last = snap.lastDiary, last.titel != nil {
infoCard(
icon: "book.fill",
title: "Letzter Eintrag",
value: last.titel ?? "",
detail: last.datum.map(DiaryUtil.format) ?? ""
)
}
if let appt = snap.nextAppointment, let bez = appt.bezeichnung {
infoCard(
icon: "calendar",
@ -185,22 +177,6 @@ struct HeimView: View {
detail: appt.naechstes.map(DiaryUtil.format) ?? ""
)
}
if let weight = snap.lastWeight, let wert = weight.wert {
infoCard(
icon: "scalemass.fill",
title: "Letztes Gewicht",
value: String(format: "%.1f %@", wert, weight.einheit ?? "kg"),
detail: weight.datum.map(DiaryUtil.format) ?? ""
)
}
if let count = snap.diaryCount, count > 0 {
infoCard(
icon: "books.vertical.fill",
title: "Tagebucheinträge",
value: "\(count)",
detail: ""
)
}
}
}