Skip to content

added prep and cook time to recipe cards#42

Merged
Eric-Zhang-Developer merged 1 commit into
mainfrom
feat/recipe-prep-cook-time
Jan 25, 2026
Merged

added prep and cook time to recipe cards#42
Eric-Zhang-Developer merged 1 commit into
mainfrom
feat/recipe-prep-cook-time

Conversation

@nflow24
Copy link
Copy Markdown
Collaborator

@nflow24 nflow24 commented Jan 25, 2026

Summary

  • Added preparation time and cooking time to each generated recipe
  • Users can now quickly estimate how long a meal will take before committing to it
  • Time info displays as badges (Prep, Cook, Total) matching existing macro styling

Closes #XX

Changes

  • Updated src/app/api/generate/route.ts - Added prepTime and cookTime to the prompt JSON structure
  • Updated src/app/generate/page.tsx - Added prepTime and cookTime to Recipe interface
  • Updated src/components/RecipeCard.tsx - Added time badges display and included time info in copy function

Test plan

  • Upload an image and generate recipes
  • Expand a recipe card - verify Prep, Cook, and Total time badges appear
  • Verify time badges appear between description and macros
  • Click "Copy" and paste - verify time info is included in copied text
  • Verify badge styling matches existing macro badges
image

Close #40

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 25, 2026

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

Project Deployment Review Updated (UTC)
mealcraft Ready Ready Preview, Comment Jan 25, 2026 6:38am

@Eric-Zhang-Developer Eric-Zhang-Developer merged commit 5ec4df5 into main Jan 25, 2026
3 checks passed
@Eric-Zhang-Developer Eric-Zhang-Developer deleted the feat/recipe-prep-cook-time branch January 25, 2026 07:48
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.

Feat: Add Prep Time & Cook Time to Recipes

2 participants