feat: savings tab, fix pull-to-refresh, beautiful modals, fix signing

This commit is contained in:
Cosmo
2026-03-25 12:24:01 +00:00
parent 74805bc9d1
commit 4c54467b5e
12 changed files with 487 additions and 114 deletions

View File

@@ -99,13 +99,13 @@ struct DashboardView: View {
Spacer(minLength: 20)
}
}
.refreshable { await loadData() }
.refreshable { await loadData(refresh: true) }
}
.task { await loadData() }
}
func loadData() async {
isLoading = true
func loadData(refresh: Bool = false) async {
if !refresh { isLoading = true }
async let t = APIService.shared.getTodayTasks(token: authManager.token)
async let h = APIService.shared.getHabits(token: authManager.token)
async let r = HealthAPIService.shared.getReadiness(apiKey: authManager.healthApiKey)