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

Idea on how to improve raw ingridients search #841

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

voronaam
Copy link

This is an idea on how to improve raw ingredients search when user has both OFF and USDA integrations configured after the conversation in issue #799 .

The idea here is to use OFF only for the barcode scans and any search by product name will only return USDA results.

I do not know how to test it, but the change seems simple enough to me. Feel free to treat this PR as a simple idea that you may certainly improve upon.

@davidhealey
Copy link
Owner

How does this handle the scenario where USDA is disabled? I think the OFF only option barcode scans should only be available is USDA is enabled.

@voronaam
Copy link
Author

Updated the PR to only respect this option when USDA is enabled.

Ideally the toggle in the settings should be disabled, but I do not know how to do that.

This PR is mostly to give you an idea.

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.

None yet

2 participants