feat: add new amlimentations#882
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds new vegetarian/plant-based food equivalents and exposes them as a new “végétariens” subcategory in the alimentation tool, along with related icons, localized label(s), and public CSV updates.
Changes:
- Add 6 new alimentation equivalents (values + category datasets) and new SVG icons for each.
- Introduce a new alimentation grouping subcategory
vegetariensand update category membership (e.g., move tofu out of “plats”). - Reformat several category JSON files and extend
public/equivalents.csv.
Reviewed changes
Copilot reviewed 8 out of 33 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/utils/Equivalent/values.json | Adds new equivalent definitions (slugs, category, values, i18n strings). |
| src/utils/alimentation.ts | Adds vegetariens subcategory and updates equivalent grouping lists. |
| src/providers/locales/fr.json | Adds French label for alimentation.vegetariens. |
| src/data/categories/fruitsetlegumes.json | JSON formatting changes (arrays expanded). |
| src/data/categories/boisson.json | JSON formatting changes (arrays expanded). |
| src/data/categories/alimentation.ts | Adds new alimentation equivalents; removes Code_CIQUAL* fields from TS dataset. |
| src/data/categories/alimentation.json | Adds new equivalents with CIQUAL metadata (but currently introduces invalid JSON). |
| public/icons/boulettesvegetales.svg | New icon asset. |
| public/icons/galettefromage.svg | New icon asset. |
| public/icons/galettevegetale.svg | New icon asset. |
| public/icons/hachevegetal.svg | New icon asset. |
| public/icons/nuggetsvegetaux.svg | New icon asset. |
| public/icons/saucissevegetale.svg | New icon asset. |
| public/equivalents.csv | Adds new public equivalents rows for the new slugs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1981
to
2012
| { | ||
| "slug": "saucissevegetale", | ||
| "category": 2, | ||
| "Code_CIQUAL": 25232, | ||
| "Code_AGB": "25232_2", | ||
| "ecv": [ | ||
| { | ||
| "id": 30, | ||
| "value": 1.05 | ||
| }, | ||
| { | ||
| "id": 31, | ||
| "value": 0.365 | ||
| }, | ||
| { | ||
| "id": 32, | ||
| "value": 0.401 | ||
| }, | ||
| { | ||
| "id": 33, | ||
| "value": 0.268 | ||
| }, | ||
| { | ||
| "id": 34, | ||
| "value": 0.0406 | ||
| }, | ||
| { | ||
| "id": 35, | ||
| "value": 0.0888 | ||
| } | ||
| ] | ||
| } |
Comment on lines
+23
to
+25
| { | ||
| name: 'vegetariens', | ||
| logos: ['tofu', 'saucissevegetale'], |
ffa459b to
b72055c
Compare
b72055c to
64efff7
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.