M3: Reorder + Inspiration – Schritt 2 (UI): Planungsliste mit SortableJS, Tagesansicht /mahlzeiten/tage, Inspiration /inspiration mit 'Weitere 5' + 1-Klick-Adopt, Feature-Tests

This commit is contained in:
2026-09-19 17:09:15 +02:00
parent 52a34225fa
commit fa5894426d
9 changed files with 488 additions and 25 deletions
+24
View File
@@ -63,6 +63,30 @@ mahlzeiten_loeschen:
requirements:
id: \d+
# M3: Tagesansicht (alle Mahlzeiten nach Wochentag) + Reorder (Drag & Drop)
mahlzeiten_tage:
path: /mahlzeiten/tage
controller: App\UI\Http\Essen\MahlzeitController::tage
methods: [GET]
mahlzeiten_reorder:
path: /mahlzeiten/reorder
controller: App\UI\Http\Essen\MahlzeitController::reorder
methods: [POST]
# M3: Inspiration (ADR-006): Vorschläge aus dem Archiv + 1-Klick-Adopt
mahlzeiten_inspiration:
path: /inspiration
controller: App\UI\Http\Essen\MahlzeitController::inspiration
methods: [GET]
mahlzeiten_adopt:
path: /mahlzeiten/{id}/adopt
controller: App\UI\Http\Essen\MahlzeitController::adopt
methods: [POST]
requirements:
id: \d+
# M2: Status-Wechsel als htmx-Partial-Endpunkte (Fragment-Antwort)
mahlzeiten_checkoff:
path: /mahlzeiten/{id}/checkoff