fix: API field mapping, HealthKit entitlement, profile tab, forgot password

This commit is contained in:
Cosmo
2026-03-25 12:07:08 +00:00
parent bfb9a07d2d
commit 74805bc9d1
12 changed files with 266 additions and 46 deletions

View File

@@ -18,7 +18,7 @@ struct DashboardView: View {
}
}
var pendingTasks: [PulseTask] { tasks.filter { !$0.done } }
var pendingTasks: [PulseTask] { tasks.filter { !$0.completed } }
var completedHabitsToday: Int { habits.filter { $0.completedToday == true }.count }
var body: some View {
@@ -67,7 +67,7 @@ struct DashboardView: View {
StatCard(icon: "checkmark.circle.fill", value: "\(pendingTasks.count)", label: "Задач", color: "00d4aa")
StatCard(icon: "flame.fill", value: "\(completedHabitsToday)/\(habits.count)", label: "Привычек", color: "ffa502")
if let s = summary, let balance = s.balance {
StatCard(icon: "rublesign.circle.fill", value: "\(Int(balance))", label: "Баланс", color: "7c3aed")
StatCard(icon: "rublesign.circle.fill", value: "\(Int(balance))", label: "Финансы", color: "7c3aed")
}
}
.padding(.horizontal)