Skip to content

[Feature] Product History/Revisions Tab & Search Filter #1264

@roshinit-a

Description

@roshinit-a

Related Epic

This issue is part of the "Power User Script" Epic: #657

What

I would like to implement the History Tab for product pages. Currently, the new explorer does not have a dedicated tab to view a product's edit history (unlike the old world.openfoodfacts.org/cgi/product_revisions.pl site).

This feature will:

  1. Build a new History.svelte (or Revisions.svelte) component to fetch and display the revision history of a product.
  2. Integrate this component as a new tab on the product page (e.g., alongside the current Data Sources / Folksonomy tabs).
  3. Include the quick-filter / search bar mentioned in Features from the Power User Script #657, allowing users to instantly filter the edit history by contributor username or comment payload.

How

  • Add a new section/tab on the products/[barcode]/+page.svelte layout.
  • The search functionality will be an instant client-side filter (Svelte reactivity) over the fetched history data array, ensuring a fast, power-user friendly experience without causing extra API load.

Question for Maintainers (@VaiTon, @teolemon)

Before I begin implementation, could you confirm the correct API endpoint to use in the new explorer to fetch a product's revision history?
I'm reviewing the API v2/v3 documentation, but I want to ensure I pull from the exact endpoint you prefer for the new explorer architecture (e.g., is there a specific /api/vX/product/{barcode}/revisions route I should use?).

Please let me know if this plan looks good to go!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions