openfoodfacts / open-prices-frontend

A vue.js front-end for Open Prices
25 stars 13 forks source link

Multiple proof upload page #983

Open raphodn opened 1 month ago

raphodn commented 1 month ago

Story

Following #639 where we added a dedicated "single proof upload" page. Some users want to upload multiple proofs at the same time (proofs with the same type, location, date & currency = Price tags)

How

A dedicated page. Loop on all selected images and upload them one by one.

ProofImageInputRow < ProofInputRow < AddPriceMultiple / AddPriceSingle / ProofAddSingle / (ProofAddMultiple)

raphodn commented 6 days ago

@serpico I just deployed #1043 in staging, if you want to test it out ! https://prices.openfoodfacts.net/proofs/add/multiple

One big caveat I think, is that it doesn't check each image exif if they are indeed from the same date.

serpico commented 5 days ago

I gave it a first try here are a few thoughts/feedback :

Image

Q : In case it works and X images are selected and validated in the file manager window should we have an equal number of X of "zoomed preview" images appearing here, like "stacked" ?

Image

Image

I'll wait for your answer/advice before going any further

raphodn commented 5 days ago

Thanks for the feedback ! I only tested locally, and sometimes got these errors, I thought I had fixed them but doesn't seem so... I'll give it a try in staging, and do a second PR with some fixes/improvements 👍