Skip to content

Feature Request / Bug: Handle products with multiple component-specific Nutri-Scores on the product page #7513

@SlavenDj

Description

@SlavenDj

Current behavior

In the OpenFoodFacts app, the Nutri-Score is displayed for products that have it. However, some products (especially baked goods, pastries, etc.) have a single label that shows different Nutri-Scores for different components of the product.

Example:

The app currently only displays one Nutri-Score (or none), and does not properly represent this multi-score situation that is increasingly common on European packaging.

Expected behavior

  1. Detect when a product has multiple component-specific Nutri-Scores.
  2. Display them clearly on the product page, for example:
    • Nutri-Score: D (cherry filling) / E (dough)
    • Or show the full label image if available.
    • Possibly allow users to see the overall score (if one exists) and the component breakdown.
  3. Store this information properly in the database (perhaps in a new field like nutriscore_components or similar).

Additional context

  • This is becoming more common with the Nutri-Score 2023+ updates and for composite foods.
  • The official Nutri-Score rules sometimes allow/require component scoring.

Proposed solution (optional)

  • Extend the Nutri-Score display widget to support multiple values.
  • Add a small info icon that explains the different scores when tapped.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for ✨ Enhancement.

    Projects

    Status
    💬 To discuss and validate
    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions