summaryrefslogtreecommitdiff
path: root/kitchen/urls_htmx.py
diff options
context:
space:
mode:
authorCaine <caine@jihakuz.xyz>2026-04-02 23:18:01 +0100
committerCaine <caine@jihakuz.xyz>2026-04-02 23:18:01 +0100
commit557758b188d58a2e00114be21a2e27864db3edea (patch)
tree2ba6cda51f25f2e04bb4af1399bb7602155bec2a /kitchen/urls_htmx.py
parent2f279ac89d66c777e12e4e9f2a0ff0d0aed8883a (diff)
Pantry move/expiry edit + smart shopping list with summary
- Move items between fridge↔freezer (freezer→fridge sets +7d or shelf life expiry, fridge→freezer clears expiry) - Inline expiry date editor on fridge items (📅 button) - Smart shopping list now shows recipe gaps (missing required slot ingredients) - Summary card shows breakdown: X staple restocks, Y expiring, Z recipe gaps
Diffstat (limited to 'kitchen/urls_htmx.py')
-rw-r--r--kitchen/urls_htmx.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/kitchen/urls_htmx.py b/kitchen/urls_htmx.py
index 390f6c1..5c11447 100644
--- a/kitchen/urls_htmx.py
+++ b/kitchen/urls_htmx.py
@@ -8,9 +8,15 @@ urlpatterns = [
path("shopping/", views_htmx.shopping_page, name="app-shopping"),
path("log/", views_htmx.log_page, name="app-log"),
- # HTMX partials
+ # HTMX partials — pantry
path("pantry/add/", views_htmx.pantry_add, name="app-pantry-add"),
path("pantry/<int:item_id>/delete/", views_htmx.pantry_delete, name="app-pantry-delete"),
+ path("pantry/<int:item_id>/move/", views_htmx.pantry_move, name="app-pantry-move"),
+ path("pantry/<int:item_id>/edit-expiry/", views_htmx.pantry_edit_expiry, name="app-pantry-edit-expiry"),
+ path("pantry/<int:item_id>/save-expiry/", views_htmx.pantry_save_expiry, name="app-pantry-save-expiry"),
+ path("pantry/cancel-edit/", views_htmx.pantry_cancel_edit, name="app-pantry-cancel-edit"),
+
+ # HTMX partials — shopping
path("shopping/generate/", views_htmx.shopping_generate, name="app-shopping-generate"),
path("shopping/<int:item_id>/toggle/", views_htmx.shopping_toggle, name="app-shopping-toggle"),
path("shopping/clear/", views_htmx.shopping_clear, name="app-shopping-clear"),