CivicTechFredericton / mealplanner

Primary Meal Planner repo
MIT License
9 stars 18 forks source link

[#672] - Added copy to the end of duplicate meal plans #716

Open jon-dalton opened 5 months ago

jon-dalton commented 5 months ago

Describe the technical changes contained in this PR duplicate_meal_plan postgres function and corresponding graphql function was changed to allow for name inputs. This was so that copy could be put at the end of duplicate meal plans and making changes to this easier for future maintainers.

Previous behaviour Duplicate meal plans would have the exact same name as the meal plans it would copy from. image

New behaviour Duplicate meal plans have the word "copy" added to the end of their English name. This applies to duplicates of duplicates so a 3rd duplicate would be <plan> copy copy copy. image

Steps to replicate Log in to meal-planner ui Create a meal Click the copy/duplicate button on a meal plan card Click the copy/duplicate button on the duplicate's meal plan card to observe duplicate of duplicates behaviour.

Related issues addressed by this PR Fixes #672

Have the following been addressed?