openfoodfacts / open-prices-frontend

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

Dashboard : add extra filters & orders on my proofs #839

Open raphodn opened 2 months ago

raphodn commented 2 months ago

Story

https://prices.openfoodfacts.org/dashboard/proofs

Some users have many proofs, and want to easily filter through them (in order to find an existing proof for instance).

Currently there is only a filter to hide proofs with at least 1 price.

We could add new filters such as :

serpico commented 2 months ago

Currently :

However there's no effect ( not for me anyway ) when clicking on Price tag chip , is it the same for Receipt chip ?

ChipToProof

raphodn commented 2 months ago

in the Proof modal, clicking on the "Price chip" should work if you're the price owner. And send you to a /proofs/id page. (i just tested for me and it works) though this is will probably change/be improved in the coming months, as there is more privacy-friendly features

serpico commented 1 month ago

@raphodn how much work would it take to add order like :

although I could totally wait for the more versatile/powerful search feature #839

raphodn commented 1 month ago

proof with the greater number of prices first

isn't this already available ? or did you mean proof with least number of prices ? i feel this could be better managed with (super fine-grained) filters

serpico commented 1 month ago

proof with the greater number of prices first

isn't this already available ? or did you mean proof with least number of prices ? i feel this could be better managed with (super fine-grained) filters

Yeah it's available, but once you display the least number on top then you need the option greater number to switch back...

I agree with you about the super-fine grained filters...I mentioned it in my original message, on the PR but I failed to copy that part here.

raphodn commented 1 month ago

sorry i had removed your last sentence, i put it back ^^

and sorry but i still don't understand. there is already the option to order by "price_count DESC". you want to be able to order by "price_count ASC" as well ?

serpico commented 1 month ago

I'm not exactly sure, but let's say we can hide by type of proof ( receipt / price tag ) and I know I have only 1 or 2 prices on the receipt I'm looking for, if I can only display greater number of price on top I'd have to scroll down quite a bit to get to that receipt...if I can revert the ordering and display the fewer number of prices on top, much less. But then again if we get something close to search-a-licious for proof with a lot of criteria

i feel this could be better managed with (super fine-grained) filters

Like you said it will be better than just basic DESC/ASC ordering.