gcode-de / mealwheel

Create, find and plan recipes and create your shopping list with one click!
http://mealwheel.de
2 stars 0 forks source link

userStory - showAllRecipesOfUser #111

Open avoesen opened 5 months ago

avoesen commented 5 months ago

Value proposition

As a user I want to be able to view all recipes created by a specific user In order to explore their culinary creations and potentially find inspiration for my own cooking endeavors.

Description

The user desires the capability to access and browse through all recipes associated with a particular user. This feature will allow the user to discover a comprehensive list of recipes authored by the selected user, enabling them to explore various dishes and potentially replicate them in their own cooking endeavors.

Acceptance criteria

gcode-de commented 5 months ago

We can reuse this existing fetch from the myRecipes.js for this:

const { data: myRecipes, error: recipesError, isLoading: recipesIsLoading, } = useSWR(/api/recipes?author=${user?._id});

Krischan-Klug commented 5 months ago

It would be cool if you could still see who created the recipes and therefore be able to quickly get to the user page.