feat(planning): predict from today to end of week with optional next week

This commit is contained in:
bleack committed 2026-11-28 21:38:37 +01:00
1 parent 02ff698140
commit d2024c59c2
6 files changed
+219 -25

No files matched your search

@@ -110,7 +110,7 @@ fun PlanningScreen(
onFinishShoppingAndAddToStock: (List<ShoppingListItem>, Map<String, StorageLocation>) -> Unit,
onDeleteManualShoppingItem: (String) -> Unit,
onClearCheckedShoppingItems: () -> Unit,
onPredictWeekMeals: (PredictionMealScope, Double) -> Unit,
onPredictWeekMeals: (PredictionMealScope, Double, Boolean) -> Unit,
onTogglePredictedMeal: (String) -> Unit,
onUpdatePredictedMealServings: (String, Double) -> Unit,
onConfirmPredictedMeals: () -> Unit,
@@ -547,7 +547,9 @@ fun PlanningScreen(
weekStartDate = weekStartDate,
existingWeekMeals = plannedMeals,
predictionState = weekPredictionState,
onGenerate = { scope, servings -> onPredictWeekMeals(scope, servings) },
onGenerate = { scope, servings, includeNextWeek ->
onPredictWeekMeals(scope, servings, includeNextWeek)
},
onToggleProposal = onTogglePredictedMeal,
onUpdateServings = onUpdatePredictedMealServings,
onConfirm = {