2.0: beta feedback — edit dish from shopping list + dish photos in planner

- Shopping list: dishes under "No ingredients yet" now open the dish editor on
  tap (pencil affordance); list reconciles on dismiss. This was a dead end on
  devices without Apple Intelligence (no Generate button, e.g. iPhone 14).
- Planner: dish photo as a scrimmed card background in the week calendar,
  behind a new Settings toggle (settings_show_dish_photos, default on). New
  optional AppSettings.showDishPhotosInPlanner (CloudKit/migration safe).
- FilledSlotView: inlines the meal-card chrome to support the photo layer.
- Toggle localized in all 6 languages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BkanrydYtrme8wipTzWssG
This commit is contained in:
alexandrev-tibco
2026-07-14 22:06:11 +02:00
parent 9118cc6e86
commit 29cba08678
11 changed files with 83 additions and 6 deletions
+8
View File
@@ -24,6 +24,9 @@ final class AppSettings {
var reminderMinutesBefore: Int?
var iCloudSyncEnabled: Bool?
var weekExportStyle: String?
/// Show dish photos as planner card backgrounds (2.0). Optional for
/// CloudKit/migration compatibility; resolves to true.
var showDishPhotosInPlanner: Bool?
var isPremium: Bool = false
var onboardingCompleted: Bool = false
@@ -74,6 +77,11 @@ final class AppSettings {
set { iCloudSyncEnabled = newValue }
}
var showDishPhotosInPlannerResolved: Bool {
get { showDishPhotosInPlanner ?? true }
set { showDishPhotosInPlanner = newValue }
}
var weekExportStyleEnum: WeekExportStyle {
get { WeekExportStyle(rawValue: weekExportStyle ?? "") ?? .defaultStyle }
set { weekExportStyle = newValue.rawValue }