You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As part of openculinary/frontend#211 we are adding the ability for users to filter recipe results based on dietary requirements (vegan, dairy-free, ...).
This opens the possibility that users may add ingredients to their search criteria that will never match based on the selected dietary properties.
For example, a search for vegan and chicken -- in the (current) absence of support for substitutions of ingredients (like plant-based chicken alternatives) -- will never match any results.
Describe the solution you'd like
When a search is performed, we should check for any dietary filters applied, and cross-reference these against the list of ingredients selected in the include (positive-match) query ingredients.
For any cases where an include ingredient will never match based on the dietary properties, we should add a refinement note (a hint displayed above the search results in the user interface) to indicate that the user may want to check whether they intended to search for the relevant ingredient(s).
We may also want to add a strikethrough to each affected ingredient in the search controls to indicate their omission from the query.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
As part of openculinary/frontend#211 we are adding the ability for users to filter recipe results based on dietary requirements (vegan, dairy-free, ...).
This opens the possibility that users may add ingredients to their search criteria that will never match based on the selected dietary properties.
For example, a search for
vegan
andchicken
-- in the (current) absence of support for substitutions of ingredients (like plant-based chicken alternatives) -- will never match any results.Describe the solution you'd like
When a search is performed, we should check for any dietary filters applied, and cross-reference these against the list of ingredients selected in the
include
(positive-match) query ingredients.For any cases where an
include
ingredient will never match based on the dietary properties, we should add arefinement
note (a hint displayed above the search results in the user interface) to indicate that the user may want to check whether they intended to search for the relevant ingredient(s).We may also want to add a strikethrough to each affected ingredient in the search controls to indicate their omission from the query.
The text was updated successfully, but these errors were encountered: