-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: NOVA 4 attribute and knowledge panel improvements (#11035)
Changes that were recommended by scientists for the U-TRANS study that will use the OFF app: - Added the number of ultra-processing markers for NOVA 4 directly in the NOVA 4 attribute description, to make it easier to differentiate foods that are slightly ultra-processed (e.g. just one flavour) and very ultra-processed with many markers - Added a recommendation to limit the consumption of NOVA 4 foods. Currently a bit hidden inside the NOVA knowledge panel, but we could decide to display it higher (without needing to open the NOVA panel) like we do for alcohol. ![image](https://github.com/user-attachments/assets/41d199c6-e822-4f63-8f14-4392d67b3912) ![image](https://github.com/user-attachments/assets/46497d8b-a228-4641-9c10-9783707638d8) --------- Co-authored-by: Pierre Slamich <[email protected]> Co-authored-by: Open Food Facts Bot <[email protected]>
- Loading branch information
1 parent
c29fce9
commit 9048011
Showing
68 changed files
with
4,839 additions
and
5,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
templates/api/knowledge-panels/recommendations/health/world/ultra_processed_foods.tt.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"level" :"recommendation", | ||
"topics": [ | ||
"health" | ||
], | ||
"evaluation": "bad", | ||
"title_element": { | ||
"title": "[% edq(lang('recommendation_limit_ultra_processed_foods_title')) %]", | ||
"subtitle": "[% edq(lang('recommendation_limit_ultra_processed_foods_subtitle')) %]", | ||
"icon_url": "[% static_subdomain %]/images/icons/dist/arrow-bottom-right-thick.svg", | ||
"icon_color_from_evaluation": true, | ||
"evaluation": "bad", | ||
}, | ||
"elements": [ | ||
{ | ||
"element_type": "text", | ||
"text_element": { | ||
"type": "quote", | ||
"html": ` | ||
[% lang('recommendation_limit_ultra_processed_foods_text') %] | ||
`, | ||
"source_text": "Ultra-processed foods increase noncommunicable chronic disease risk", | ||
"source_url": "https://pubmed.ncbi.nlm.nih.gov/34798466/", | ||
"source_language": "en", | ||
} | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.