Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/filter favorites #280

Open
wants to merge 95 commits into
base: main
Choose a base branch
from

Conversation

laurelbonal
Copy link

add functionality to filter favorite recipes, checks whether a recipe is favorited and returns only favorited recipes

BenWehrend and others added 30 commits March 24, 2024 12:06
Convert a recipe object to ingredients array
Adds ingredient ID to name conversion. This is needed so that way we
can search what ingredients a recipe has
Search will check if either the ingredient or the recipe name matches.
It matches, it will be filtered through.
adds function to calculate cost of recipes
KojinKuro and others added 29 commits March 26, 2024 17:03
Refactor/search tag to use any dataset
Re-added infinite loading back to the page. Made the filtering function
more DRY. Included what was happening in both search event listener and
the tags event listeners to make code more DRY.Moved code around to be
more readable.
We have changed findIngredients to using any dataset instead of one.
The code has been updated to reflect that. We also use new variables
for main. Instead of just having a mainElement, there is now main,
mainDirectory, and mainRecipe.
@KojinKuro KojinKuro deleted the feature/filter-favorites branch April 1, 2024 16:16
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.

3 participants