fix: reset workout log each new day + new app logo
KC-1: Set completion was stored permanently on the program, so the same program scheduled on back-to-back days (e.g. Shoulders Mon + Tue) kept yesterday's checkmarks. Add resetSetsForNewDayIfNeeded() to clear every set's isDone when the calendar day changes (cold launch, onAppear, and scenePhase active). Streak history is untouched. KC-2: Replace all 12 AppIcon sizes with the new KisaniCal mark, alpha flattened onto RGB(26,29,34) so the 1024 App Store icon is fully opaque. Add KisaniCal/ISSUES.md tracker (KC-1, KC-2: In Progress). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -93,6 +93,7 @@ struct ContentView: View {
|
||||
}
|
||||
.onAppear {
|
||||
if !hasOnboarded { showOnboarding = true }
|
||||
workoutVM.resetSetsForNewDayIfNeeded()
|
||||
CloudSyncManager.shared.restoreSettings()
|
||||
CloudSyncManager.shared.backupSettings()
|
||||
HealthKitManager.shared.bootstrap()
|
||||
@@ -108,6 +109,7 @@ struct ContentView: View {
|
||||
if phase == .active {
|
||||
taskVM.reload()
|
||||
consumeWidgetAddTask()
|
||||
workoutVM.resetSetsForNewDayIfNeeded()
|
||||
workoutVM.checkPendingHealthConfirm()
|
||||
CloudSyncManager.shared.backupSettings()
|
||||
NotificationManager.shared.reschedule(workoutVM: workoutVM, taskVM: taskVM)
|
||||
|
||||
Reference in New Issue
Block a user