77 lines
1.3 KiB
Plaintext
77 lines
1.3 KiB
Plaintext
MEAL ENHANCEMENTS - WORKING!
|
|
|
|
=== ✅ IMPLEMENTATION COMPLETE ===
|
|
|
|
Meals now have:
|
|
1. Instructions (multi-line)
|
|
2. Prep time (minutes)
|
|
3. Image (URL)
|
|
|
|
=== IF MEALS/WEEK PLAN TABS DON'T LOAD ===
|
|
|
|
Your database needs the new columns!
|
|
|
|
SOLUTION - Option 1 (Fresh start):
|
|
rm mealprep.db
|
|
./start.sh
|
|
|
|
SOLUTION - Option 2 (Keep data):
|
|
Just restart the server - migration runs automatically!
|
|
./start.sh
|
|
|
|
The migration will:
|
|
- Check if new columns exist
|
|
- Add them if missing (instructions, prep_time, image_url)
|
|
- Keep all your existing data
|
|
- No data loss
|
|
|
|
=== HOW TO VERIFY ===
|
|
|
|
After restart:
|
|
1. Go to Meals tab
|
|
2. Form should have:
|
|
- Name
|
|
- Description
|
|
- Type dropdown
|
|
- Prep time (NEW)
|
|
- Image URL (NEW)
|
|
- Instructions textarea (NEW)
|
|
|
|
If you see the new fields, it's working!
|
|
|
|
=== FEATURES ===
|
|
|
|
Instructions:
|
|
- Multi-line textarea
|
|
- Click to expand/collapse on meal card
|
|
- Optional
|
|
|
|
Prep Time:
|
|
- Number input (minutes)
|
|
- Shows as "⏱️ XX min" badge
|
|
- Optional
|
|
|
|
Image:
|
|
- URL input
|
|
- Shows as 120x120px thumbnail
|
|
- Optional
|
|
|
|
=== ALL FIELDS OPTIONAL ===
|
|
|
|
You can:
|
|
- Leave them blank
|
|
- Fill only some
|
|
- Fill all of them
|
|
|
|
Old meals without these fields work fine!
|
|
|
|
=== READY TO USE ===
|
|
|
|
✅ Migration included
|
|
✅ Auto-updates old databases
|
|
✅ No data loss
|
|
✅ All features work
|
|
|
|
Just restart the server and you're good!
|
|
|