feat: clear a meal-plan day or the whole week in one action

New bulk-delete route for the owner's own weekStart-scoped plan
(mirrors recipes/bulk's DELETE), plus ?ids= support added to the
existing shared-plan DELETE route (kept ?entryId= working
unchanged). UI: hover-reveal trash icon per day header, "Clear week"
button in the toolbar, one shared confirm dialog for both.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Arnaud
2026-07-13 22:07:12 +02:00
parent a144052e46
commit aa67868b96
9 changed files with 151 additions and 11 deletions
+7 -1
View File
@@ -829,7 +829,13 @@
"removeEntry": "Remove meal",
"markCooked": "Mark as cooked",
"markCookedSuccess": "Marked as cooked",
"markCookedFailed": "Failed to mark as cooked"
"markCookedFailed": "Failed to mark as cooked",
"clearDay": "Clear day",
"clearWeek": "Clear week",
"clearDayConfirmTitle": "Clear {day}?",
"clearWeekConfirmTitle": "Clear the whole week?",
"clearConfirmDescription": "This removes every planned meal shown — it doesn't delete the recipes themselves.",
"clearedSuccess": "{count, plural, one {1 meal cleared} other {{count} meals cleared}}"
},
"pantry": {
"title": "Pantry",
+7 -1
View File
@@ -817,7 +817,13 @@
"removeEntry": "Retirer le repas",
"markCooked": "Marquer comme cuisiné",
"markCookedSuccess": "Marqué comme cuisiné",
"markCookedFailed": "Échec du marquage comme cuisiné"
"markCookedFailed": "Échec du marquage comme cuisiné",
"clearDay": "Vider la journée",
"clearWeek": "Vider la semaine",
"clearDayConfirmTitle": "Vider {day} ?",
"clearWeekConfirmTitle": "Vider toute la semaine ?",
"clearConfirmDescription": "Cela retire tous les repas planifiés affichés — les recettes elles-mêmes ne sont pas supprimées.",
"clearedSuccess": "{count, plural, one {1 repas retiré} other {{count} repas retirés}}"
},
"pantry": {
"title": "Garde-manger",