Skip to content

feat: add new amlimentations#882

Merged
desoindx merged 1 commit into
developfrom
feat/alimentation
May 18, 2026
Merged

feat: add new amlimentations#882
desoindx merged 1 commit into
developfrom
feat/alimentation

Conversation

@desoindx
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 13:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 vegetariens and 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 thread src/utils/alimentation.ts
Comment on lines +23 to +25
{
name: 'vegetariens',
logos: ['tofu', 'saucissevegetale'],
@desoindx desoindx force-pushed the feat/alimentation branch 3 times, most recently from ffa459b to b72055c Compare May 11, 2026 14:14
@desoindx desoindx force-pushed the feat/alimentation branch from b72055c to 64efff7 Compare May 18, 2026 11:11
@desoindx desoindx merged commit 6239c7b into develop May 18, 2026
5 checks passed
@desoindx desoindx deleted the feat/alimentation branch May 18, 2026 11:36
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.

2 participants