Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Identify incompatible ingredient/dietary-property combinations #108

@jayaddison

Description

@jayaddison

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions