Caine
726cb9d153
CSRF exempt HTMX views (localhost-only app)
2026-04-02 23:12:16 +01:00
Caine
a6ceefeb33
Fix CSRF for HTMX POST requests
2026-04-02 23:10:52 +01:00
Caine
2a45be70e2
Phase 4: HTMX frontend with dark palette
...
- 4 pages: Pantry, Recipes, Shopping List, Cook Log
- HTMX-powered: add/delete pantry items, toggle shopping, generate smart list
- Custom 13-colour palette from Lospec (dark bg, yellow accent)
- Mobile-responsive
- Whitenoise for static files in production
- All routes under /app/
- API (/api/) stays internal, frontend (/app/) for browser use
2026-04-02 23:08:43 +01:00
Caine
75e3256eae
Add rating + preferences fields, log first cook feedback
...
- Ingredient.preferences: qualitative notes on how Tom likes things cooked
- CookLog.rating: 1-5 score
- CookLog.notes: help text updated for feedback
- Migration 0002
- First cook logged: Baked Pasta with lardons, rated 2/5
- Bacon lardons preference: don't oven bake, fry separately, not solo protein
2026-04-02 22:50:49 +01:00
Caine
189d72b797
Add create-meta-recipe endpoint with nested slots/options/bases
...
- POST /api/create-meta-recipe/ creates full meta-recipe in one call
- PUT /api/create-meta-recipe/ updates existing (requires id)
- Auto-resolves ingredients by name/alias, creates new if not found
- Returns full nested response with _created_ingredients list
- New writable serializers: MetaRecipeWriteSerializer, SlotWriteSerializer, etc.
2026-04-02 17:51:12 +01:00
Caine
27f91fb877
Phase 2+3: bulk pantry add, smart shopping list, recipe URL import
2026-04-02 16:50:56 +01:00
Caine
da6cd28c3a
Add recipe-scrapers dependency
2026-04-02 16:46:55 +01:00
Caine
ecb0f7c07a
Update README: Phase 2 complete, API docs, file structure
2026-04-02 16:42:06 +01:00
Caine
fe00286f75
Add API: URLs, token auth, what-can-i-cook endpoint, log-cook with pantry deduction, browsable API
2026-04-02 16:33:31 +01:00
Caine
487bf46979
Add DRF serializers, viewsets, what-can-i-cook endpoint, log-cook with pantry deduction
2026-04-02 16:32:00 +01:00
Caine
5fd4450872
Fix seed: use ingredient+location for get_or_create, add missing freezer items
2026-04-01 22:51:35 +01:00
Caine
37b18bd586
Add requirements.txt
2026-04-01 22:50:54 +01:00
Caine
fb4f636dcc
Add README with architecture, setup, models, business rules, and phase plan
2026-04-01 22:50:50 +01:00
Caine
e76a8fe656
Add seed command: 29 ingredients, pantry from Pantry.md, 2 meta-recipes (stir fry + traybake)
2026-04-01 22:50:04 +01:00
Caine
999ca28b67
Add initial migration, create superuser
2026-04-01 22:48:45 +01:00
Caine
5c6f7ead8f
Configure settings: add kitchen app, DRF, timezone, allowed hosts
2026-04-01 22:48:28 +01:00
Caine
40cc3de3e4
Add all Django models: pantry, ingredients, meta-recipes, recipes, cook log, shopping list
2026-04-01 22:47:35 +01:00
Caine
e9e7a47e2e
Initial commit: gitignore
2026-04-01 22:46:54 +01:00