Merge develop -> main: full session (KC-51 through KC-71) #28

Merged
kutesir merged 64 commits from develop into main 2026-07-12 22:57:14 +00:00
Showing only changes of commit eba39b0475 - Show all commits

View File

@@ -36,7 +36,7 @@ final class AnalyticsService: ObservableObject {
var healthByDate: [String: RawHealthDay] = [:] // HealthKit reference
init() {}
init(vm: WorkoutViewModel) {
@MainActor init(vm: WorkoutViewModel) {
self.logByDate = Dictionary(vm.history.map { ($0.date, $0) }, uniquingKeysWith: { a, _ in a })
self.workoutDates = Set(vm.workoutDates)
self.scheduledWeekdays = Set(vm.schedule.keys)