aleene / FoodViewer

An app to view and edit Open Food Fact products
Apache License 2.0
10 stars 5 forks source link

Show warnings for Allergens #100

Closed aleene closed 8 years ago

aleene commented 8 years ago

Allow the user to set triggers on allergens. If the product contains an allergen, the user is warned, through a visual (audio?) warning. The background of the product could turn red for instance.

teolemon commented 8 years ago

List of allergens http://world.openfoodfacts.org/allergens.json http://world.openfoodfacts.org/allergens.xml [edit]Individual allergen http://world.openfoodfacts.org/allergen/fish.json http://world.openfoodfacts.org/allergen/fish.xml

aleene commented 8 years ago

In the preferences panel allow the user to set one or more warning allergens. Create a table row which opens a secondary controller.Use the translated allergen list for this. This will set a boolean in the allergen table. If a warning is triggered, change the colour background of the product to red. And set the colour of the trigger allergen tag to red as well.

aleene commented 8 years ago

After setting an allergen warning, I should reload the master table.

aleene commented 8 years ago

Seems to work