Open
Conversation
Add veganVersion and originalRecipe bidirectional fields to Recipe model, VeganOptionAvailable calculated tag, recipeMakeVegan mutation that clones a recipe with its images, and cascading cleanup in recipeRemoveById. Closes #77
Add owner authorization check in recipeMakeVegan validation wrapper, replace synchronous fs.copyFileSync with async fs.promises.copyFile, and consolidate Recipe model imports.
…integration - Add MAKE_VEGAN_RECIPE mutation and veganVersion/originalRecipe to query fragment - Create createVeganVersionSlice for managing vegan version checkbox state - Add CreateVeganVersionCheckbox component (Mantine) in editing flow - Update EditableRecipe/EditableTitle with isVeganCopy read-only support - Add make-vegan flow to EditRecipe page (fires after image upload) - Show vegan/original navigation links on ViewRecipe page - Add vegan version leaf icon button on recipe cards (ModifyButtons) - Update mock recipe data with veganVersion/originalRecipe null fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
veganVersionandoriginalRecipefields to Recipe model with bidirectional linking and arecipeMakeVeganmutation that clones a recipe into an editable vegan copy (including image duplication)CreateVeganVersionCheckboxin the editing flow, vegan/original navigation links on ViewRecipe, leaf icon on recipe cards, and a Zustand store slice for managing the checkbox stateTest Plan
npm run lint)npm run check-types)tsc --noEmit)