bar-assistant icon indicating copy to clipboard operation
bar-assistant copied to clipboard

Add percentage of matched ingredients

Open daschy opened this issue 5 months ago • 1 comments

What: Add to the recipes the ingrendient match percentage with the shelved ingredients. For instance if the cocktail requires 3 ingredients and the user has 2 of those shelved, show 66% ingredient match

Why: In many cases if the user has 80% of the ingrendients shelved, he might want to see the recipes he can "almost" make in order create some variations, or he can create the cocktail since he owns a similar ingredient. For instance, he might own Pisco, but not Grappa.

How: For each cocktail recipe shows the percentage of ingredients that match with the ingredients shelved. Based on this info:

  1. allow the user to sort by ingredient match percentage
  2. allow the user to search by ingredient match percentage intervals (ie: min 70% ingredient match)

Similar feature is implemented in the https://www.mixelcocktails.com/

Thanks

PS: awesome project

daschy avatar Sep 18 '24 18:09 daschy