← Back to DAGDA | Support | Source: https://github.com/openfoodfacts/openfoodfacts-webcomponents/issues/29
Skip to content

🎯 Web Components across Open Food Facts #29

Open
4 of 17 issues completed
Open

Description

@teolemon

Candidates for WebComponents

  • Webcomponent for tag editing (labels, categories, stores, origins, countries)
  • Webcomponent for multilingual field editing (product_name, ingredients_text, packaging_text)
  • Webcomponent for monolingual field editing (quantity, portion)
  • Mobile app promo Webcomponent (epic)
  • Donation campaign Webcomponent (epic)
  • Webcomponent for price addition
  • Webcomponent for bulk price proof upload. (based on simple photo upload potentially, but routing photo to prices.off.org instead, and needs extra fields like date and store) - cf Open Prices API
  • Webcomponent for a country picker and a language picker that use the Open Food Facts language and country taxonomy (to handle the corner cases we have for the UK)
    (might help with "Road to Price Per Kilo" and "Road to OFF update" for Open Prices:
  • Webcomponent for tag editing (labels, categories, stores, origins, countries)
  • Webcomponent for multilingual field editing (product_name, ingredients_text, packaging_text)
  • Webcomponent for monolingual field editing (quantity, portion)
  • Create a Web Component providing an harmonized Header/Navigation
  • Create a Web Component providing an harmonized Product list
  • Create a Web Component providing an harmonized Product card

Issues related to web components across Open Food Facts

Using Webcomponents in Hunger Games

Using Webcomponents in OFF explorer

Nutri-Patrol

Search-A-Licious

Knowledge panels for facets

Sub-issues

Sub-issues

4 of 17 Issues completed
Loading 17 sub-issues

Activity

  1. pinned this issue on Mar 19, 2025
  2. Kout95 commented on Mar 25, 2025

    @Kout95
    Collaborator

    Ask me if you want to take task to avoid duplicates :)

  3. Kout95 commented on Mar 25, 2025

    @Kout95
    Collaborator

    @teolemon Why you want to do that in webcomponent :

    Create a Web Component mimicking the main website Footer
    Create a Web Component mimicking the main website Header
    Create a Web Component mimicking the main website Product list
    Create a Web Component mimicking the main website Product card

  4. teolemon commented on Mar 25, 2025

    @teolemon
    MemberAuthor

    @Kout95 unsure if it's the right way technically, but visual consistency and not reinventing the wheel each time.

  5. Kout95 commented on Mar 25, 2025

    @Kout95
    Collaborator

    @teolemon I believe web components are better suited for adding elements with logic. In our case, we have two main interests:

    • Reusability
    • The ability to easily implement JavaScript and templating in our legacy Perl server.

    However, I am hesitant about implementing these elements as web components because:

    • They will only be used on the server.
    • They have almost no JavaScript.
    • We cannot easily use CSS from libraries.
    • Templating in Perl is powerful enough to handle many cases without reinventing the wheel.
    • It adds more complexity to manage and customize than the benefits of abstracting JavaScript code from the MVC framework.
  6. Kout95 commented on Mar 25, 2025

    @Kout95
    Collaborator

    For the following:

    I'm okay with it because it adds a few CSS styles and can be easily reused.

    I'm also okay with this one because it requires some JavaScript and can be reused:

  7. Kout95 commented on Mar 25, 2025

    @Kout95
    Collaborator

    We can discuss this, but I'm not sure it is useful :

    Create a Web Component mimicking the main website Product list
    Create a Web Component mimicking the main website Product card

    I do not see a reason to transform it into web components.

    Create a Web Component mimicking the main website Footer
    Create a Web Component mimicking the main website Header

  8. heymitali commented on Mar 25, 2025

    @heymitali
    Member

    Hey, @Kout95, Earlier I planned to work on the product list and product cards and now that you have mentioned that product list and product cards are not important as of now. So, can you please assign me a task for Web Components or Food explorer?

  9. 14 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions