feat: mark recipe as cooked (multi-cook history + backdate) and enable auto-deduct pantry on cook (v0.75.0)
Adds a general-purpose "mark cooked" dialog for any recipe (not just batch-cook dishes), with a date picker for backdating and a pantry-deduct checkbox defaulted on. Also flips the previously dead-in-the-UI deductFromPantry flag to true for the existing batch-cook and meal-planner cook actions. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -377,7 +377,7 @@ export function MealPlanner({
|
||||
const res = await fetch(`/api/v1/recipes/${entry.recipe.id}/cooked`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ servings: entry.servings, deductFromPantry: false }),
|
||||
body: JSON.stringify({ servings: entry.servings, deductFromPantry: true }),
|
||||
});
|
||||
if (!res.ok) {
|
||||
toast.error(t("markCookedFailed"));
|
||||
|
||||
Reference in New Issue
Block a user