openfoodfacts / hunger-games

One click Mini-Games for Open Food Facts
https://hunger.openfoodfacts.org
23 stars 39 forks source link

Display the product barcode number, at least for the brand question game #550

Closed fabi003 closed 3 months ago

fabi003 commented 1 year ago

Problem

If the brand is probably not known to robotoff, in the brand questions game, it would be helpful, to not having first to open the product page in another tab to see it. The reason it should be added to the displayed data fields, is that I have https://hunger.openfoodfacts.org/logos/search open in another tab and search for only the barcode number to see what robotoff knows and annotate the unknown logo.

Proposed solution

Just display the barcode number, at least for the brand question game.

alexfauquette commented 1 year ago

Hi @fabi003

Sorry for the answer delay, I just discovered your issue while looking for another one 🫣

That's interesting. If someone want to add the feature, it's here , and the barcode is accessible in question?.barcode

https://github.com/openfoodfacts/hunger-games/blob/master/src/pages/questions/ProductInformation.jsx/#L88-L118

fabi003 commented 3 months ago

The direct link to the logo search solves this problem for me.