Skip to content

Recipe instructions, smarter shopping list, and a mobile-first layout - #10

Merged
HeWillCook merged 18 commits into
mainfrom
t3/polish-recipe-shopping
Nov 16, 2026
Merged

HeWillCook merged 18 commits into
mainfrom
t3/polish-recipe-shopping

Conversation

@HeWillCook

Copy link
Copy Markdown
Owner

Summary

Recipes

  • All 29 starter recipes ship full instructions: description, prep/cook time, equipment, 5–10 steps (temps, times, doneness), tips.
  • Realistic quantities: lemonade, pantry buy sizes, odd buy units; one name and unit per ingredient so the shopping list can merge them.
  • New recipes columns (description, prep/cook minutes, steps, tips, equipment, origin_recipe_id) — migration 0006_recipe_instructions.sql, additive only. Seeded on boot; copied when a host edits a starter.

Menu

  • Search first on mobile; matches ingredients, category and description; preview before adding; Enter no longer adds a dish.
  • Dish cards collapsed by default with a summary (servings, time, cost, ingredients); expand to edit portions and see "How to make it".
  • Custom dishes can have steps, times and tips. Edited starters keep their category and don't show twice.
  • Kitchen sheet includes the steps.

Shopping

  • Identical ingredients merge across dishes (rounded once), grouped by aisle, "Buy 3 packs · need 18 buns", "for Burgers, Hot dogs".
  • Optimistic ticks with rollback, clearer recheck copy, Copy list, hide got items, total at the top, zero-amount items hidden.
  • Per-dish views (kitchen sheet, what-if) keep per-dish amounts.

Mobile

  • Compact sticky event header (back, title, headcount, Share, ⋯ menu) and a fixed bottom tab bar; content starts ~70px down instead of ~750px.
  • Dashboard card no longer overflows at 360–390px; 44px+ tap targets; ~25 lines of filler copy removed.

Deploy notes

  • Run migration 0006 against Neon production before/at merge (Vercel runs no migrations).
  • Per-event recipe copies made before this change have no origin id, so they show "No instructions yet" under "Your dishes".

Test plan

  • tsc, eslint, targeted vitest locally (2 workers)
  • Full vitest in CI
  • Smoke test production after deploy

🤖 Generated with Claude Code

HeWillCook and others added 18 commits November 16, 2026 15:55
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Merge ingredient rows that share a normalized name, recipe unit, buy unit
  and pack size; sum the need first and round up to buy units once, so three
  onion rows become one and 36 buns buys 5 packs instead of 3 + 3.
- Merged ticks: every contributing item id is checked/unchecked in one
  transaction with the line's buy quantity as the basis; the actual price is
  stored on the sorted-first id and other ids are cleared and ignored.
- Group the list by store aisle with an alphabetized section per aisle and a
  muted "for Burgers, Hot dogs" line on merged rows.
- Show "Buy 3 packs" with "need 18 buns (packs of 8)" underneath; format
  quantities with common fractions and at most two decimals.
- Tick optimistically with useOptimistic: the box flips immediately, rolls
  back and shows the reason when the save fails.
- Copy list as plain text grouped by aisle, unchecked first, with Copied!
  feedback and a clipboard fallback; add a client-only hide-got toggle.
- Reword the extras card as a spending log and label the per-guest total
  "per guest (incl. extras)"; progress reads "N of M ingredients".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…storage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… cuts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ty lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gredients

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cookout Ready Ready Preview Nov 16, 2026 10:39pm UTC

@HeWillCook
HeWillCook merged commit ed58d9e into main Nov 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant