Giter Site home page Giter Site logo

openfoodfacts-web's Introduction

openfoodfacts-web

IMPORTANT: This project contains static contents for openfoodfacts product-opener project. If you're looking for the server side version of Open Food Facts, look at product-opener instead of this repository.

Having those file in a separate project helps being more agile on translations delivery.

Help translate

https://crowdin.com/project/openfoodfacts

Adding a new page or updating an existing page

  • Create a pull request on openfoodfacts-web with the new or modified HTML file (you can do that with the "GitHub Desktop" app if you are unfamiliar with the command line)
  • Set it up for translation in the .crowdin file
  • Once the pull request gets approved and merged, it will be deployed on the test server
  • Deployment to production is still manual

Requirements

  • Do not hotlink ressources like images, JS or CSS. They need to be commited to the repository. Please organize resources in folders.

Deployment

Actual prod (no docker)

  1. Move the /lang dir from openfoodfacts-server to openfoodfacts-resources (or maybe to make things even cleaner, to a new repo openfoodfacts-web. It's unclear if everything in openfoodfacts-resources is supposed to be available as-is on the web server).

  2. Create a /html/images/texts/ directory in openfoodfacts-web so that we can put the new images needed by texts there (we don't have to move the existing ones right away).

That way for deployment, we can just copy /lang and /html to /srv/off/ and it will work.

On docker

See openfoodfacts-server:docs/how-to-guides/using-pages-from-openfoodfacts-web.md

And that's it! That would be already be enough of a big change for a first step. Then we can have a look at what we have in /html/ to see what we should move, one by one.

Tools

openfoodfacts-web's People

Contributors

openfoodfacts-bot avatar teolemon avatar crowdin-bot avatar dependabot[bot] avatar aleene avatar stephanegigandet avatar valimp avatar raphael0202 avatar alexgarel avatar vaiton avatar reactodactyl avatar techshooter avatar charlesnepote avatar monalikapatnaik avatar vnitin08 avatar github-actions[bot] avatar jeremyarancio avatar

Stargazers

 avatar inson1 avatar Flávia Falé avatar Vaishali avatar LiTong avatar Prabudha  avatar  avatar Mariano Diaz avatar Bryden Wayne avatar  avatar  avatar human avatar danizavtz avatar Leandro Lopes avatar Jiří Podhorecký avatar  avatar

Watchers

Sébastien Aperghis-Tramoni avatar hangy avatar Jussi Timperi avatar  avatar levent günay avatar Andrea Stagi avatar James Cloos avatar  avatar  avatar Nazim Boudeffa avatar Gennady Dogaev avatar  avatar Nico Zigouras avatar  avatar

openfoodfacts-web's Issues

🎯 What can I work on ? (openfoodfacts-web)

DevOps/Reduce time to production

  1. DevOps help wanted 🎯 P0

New pages

  1. FAQ
    teolemon
  2. new page to create
  3. new page to create
  4. 🏭 Producers

Pages requiring a rewrite/update

  1. deployment needed
  2. 🏭 Producers
  3. Blog improvement 🗞️ Press
  4. Eco-Score improvement
  5. improvement
    raphael0202
  6. Eco-Score 🏭 index-pro
  7. 👩‍💻 Development-
  8. Data

Non-essential improvements

  1. Data ✨ enhancement

Pages requiring a deployment

  1. Eco-Score deployment needed
  2. Data 🐾 Open Pet Food Facts

Backport uncommitted deployed assets

  1. 🏭 Producers 🐛 bug
    alexgarel
  2. COP 26 Eco-Score

Translations

  1. Translations 🎯 P0
  2. Translations
  3. crowdin
    teolemon
  4. Eco-Score 🎯 P0 🐛 bug 🚥 Nutri-Score - Methodology
  5. DevOps

Keep dependancies up to date

No tasks being tracked yet.

To be sorted

  1. 🗞️ Press
  2. github_actions
    teolemon
  3. 🐛 bug

Crowdin action fails

❌ Failed to upload the translation file to the storage. Please contact our support team for help
❌ Error from server: <Code: <empty_code>, Message: Operation timed out (Read failed)>
❌ Current execution finished with errors

Add a QR-Code for each platform to the mobile app webpage

Problem

  • Some people access the app from their laptop
  • They are not logged to the PlayStore or AppStore from their laptop
  • They can initiate app install

Proposed solution

  • Add a QR-Code for each platform to the mobile app webpage

Additional context

  • We have QR-Codes in the presskit

Crowdin build broken

Story

✔️ File 'lang/opf/en/texts/open-products-facts-mobile-app.html'
❌ No sources found for '/lang/opf/en/texts/open-pet-food-facts-mobile-app.html' pattern. Check the source paths in your configuration file
❌ No sources found for '/lang/opf/en/texts/open-beauty-facts-mobile-app.html' pattern. Check the source paths in your configuration file
✔️ File 'lang/opf/en/texts/data.html'

Add information about hunger games

What

  • There isn't any way to reach the hunger games website from the Open Food Facts main website.
  • To attract more and more contributors, we should add a link from the main website which redirects users there.
  • This could be added to the contribute page as a section about the hunger games.

Crowdin failing

Story

-❌ No sources found for '/lang/en/texts/products.html' pattern. Check the source paths in your configuration file

Part of

  • (Insert Story issue number here)

Generate persona landing pages for the mobile app

Problem

  • As suggested by @raphael0202 , Generate persona landing pages for the mobile app
  • Mobile apps for vegans/gluten intolerant/peanut allergy… with the custom features that are relevant
  • This invites a modularization of the mobile app page, so that we can reuse and reassemble blocs.

Uneven box heights of blogs in a row in the open food facts blog page contributes to inconsistency in design

What

In the Open food facts blog page, the boxes' height in the website version of the page is uneven which leads to inconsistency in its design of the overall page.

Steps to reproduce the behavior:

  1. Go to https://blog.openfoodfacts.org/en/
  2. Scroll vertically
  3. See the difference in height

Expected behavior

The boxes in a row should be equal in height which will make the page look better and consistent in design as well.

Screenshots

image
image

Platform (Desktop, Mobile, Hunger Games)

  • OS: Desktop
  • Platform Desktop web version

Part of

https://forum.openfoodfacts.org/t/code-of-open-food-factss-blog-page/179
PS. I asked about this on the open food facts forum and was directed to come here. I do have knowledge of Wordpress, have worked with it in past, handled my first blog website there :), would like to contribute to this issue.

Update Nutri-Score page

What

Tasks

Fix the missing files

  - source: /lang/en/obf/texts/mobile-app-open-beauty-facts.html
    translation: /lang/%two_letters_code%/obf/texts/mobile-app-open-beauty-facts.html
    languages_mapping:
      two_letters_code:
        zh-HK: zh_HK
        zh-CN: zh_CN
        en-AU: en_AU
        en-GB: en_GB
        pt-BR: pt_BR
        pt-PT: pt_PT
        nl-BE: nl_BE
        nl-NL: nl_NL
        zh-TW: zh_TW
        sr-CS: sr_CS
        sr: sr_RS
        ku : kmr_TR
        kmr: kmr
  - source: /openfoodfacts-server/madenearme/madenearme-world.html
    translation: /openfoodfacts-server/madenearme/madenearme_%two_letters_code%.html
    languages_mapping:
      two_letters_code:
        zh-HK: zh_HK
        zh-CN: zh_CN
        en-AU: en_AU
        en-GB: en_GB
        pt-BR: pt_BR
        pt-PT: pt_PT
        nl-BE: nl_BE
        nl-NL: nl_NL
        zh-TW: zh_TW
        sr-CS: sr_CS
        sr: sr_RS
        ku : kmr_TR
        kmr: kmr
  - source: /lang/obf/en/texts/data.en.html
    translation: /lang/obf/%two_letters_code%/texts/data.en.html
    languages_mapping:
      two_letters_code:
        zh-HK: zh_HK
        zh-CN: zh_CN
        en-AU: en_AU
        en-GB: en_GB
        pt-BR: pt_BR
        pt-PT: pt_PT
        nl-BE: nl_BE
        nl-NL: nl_NL
        zh-TW: zh_TW
        sr-CS: sr_CS
        sr: sr_RS
        ku : kmr_TR
        kmr: kmr
  - source: /lang/en/texts/donate.html
    translation: /lang/%two_letters_code%/texts/donate.html
    languages_mapping:
      two_letters_code:
        zh-HK: zh_HK
        zh-CN: zh_CN
        en-AU: en_AU
        en-GB: en_GB
        pt-BR: pt_BR
        pt-PT: pt_PT
        nl-BE: nl_BE
        nl-NL: nl_NL
        zh-TW: zh_TW
        sr-CS: sr_CS
        sr: sr_RS
        ku : kmr_TR
        kmr: kmr

Fix the faulty translations in Crowdin

Fix the faulty translations in Crowdin

  • Open Beauty Facts, Open Pet Food Facts and Open Products Facts translations inserted as Open Food Facts translations
  • Other issues

Transform the actual presentation to a page on the website

Problem

On french producer platform, only help we provide to producers is a google presentation.
This is a good step and the presentation is really well done but has the problem that:

  • this is not translated
  • there is a long advocac, the producer might not want to read and maybe he wont understand operational infos comes thereafter !

Proposed solution

Move the documentation to web pages

  • on page could contain the advocacy content
  • the other page would be operational help

Those web pages would then be translated in English. And from there in various languages.

Alternative

We could try to keep as google docs, but translation will be really cumbersome.

Rename the mobile page

What

  • For safety reasons in the past, we had given the mobile page a different name to avoid file overwrites in French and English. Those times are over, let's rename the page to the standard English name for easier deployments.

Create existing symlinks

Failed test 'footer_data_link link - lang: pt - textid: dados -- file /lang/pt/texts/dados.html does not exist'

Open Pet Food Facts data page not deployed

Open Pet Food Facts data page not deployed
https://world.openpetfoodfacts.org/data

Hello, I'm interested in getting information about Pet Food products for dogs. You're web in fantastic, there are many products, but I would like to download the data in excel format or PDF, no matter but I can't find how. Is there any possibility? I think it would help me in comparing similar products, etc.

No matter if the info is in English, French or Spanish.

Thanks a lot for your help
Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.