Release 1.0.0 baseline

This commit is contained in:
alexandrev-tibco
2026-02-26 10:27:09 +01:00
parent e593453abd
commit c5c7e3d2e4
24 changed files with 600 additions and 168 deletions
+4 -1
View File
@@ -68,13 +68,16 @@ final class HomeViewModel: ObservableObject {
)
if let existing = try? context.fetch(descriptor).first {
syncSlotsIfNeeded(plan: existing, settings: settings, context: context)
return existing
}
return DefaultDataService.createWeekPlan(for: currentWeekStart, settings: settings, context: context)
}
func reconcileSlotsIfNeeded(plan: WeekPlan, settings: AppSettings, context: ModelContext) {
syncSlotsIfNeeded(plan: plan, settings: settings, context: context)
}
func assignDish(_ dish: Dish, to slot: MealSlot, plan: WeekPlan, settings: AppSettings, isOverride: Bool = false) {
captureUndoSnapshot(plan: plan)