Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard: easy access to My Locations and My Products #943

Open
serpico opened this issue Oct 8, 2024 · 5 comments
Open

Dashboard: easy access to My Locations and My Products #943

serpico opened this issue Oct 8, 2024 · 5 comments
Labels
⭐ top issue Top issue.

Comments

@serpico
Copy link

serpico commented Oct 8, 2024

Problem

I welcome the revamp of the dashboard page (#878). I was thinking it could be useful to allow an easier access to those pages from the dashboard page using buttons similar to the current Prices and Proofs, those 2 additional buttons could be located beside/between the current Prices and Proofs, replicating the upper raw on the screenshot but with available actions.

Image

Currently user can only easily access Prices and Proofs but not Locations nor Products.

Clicking My Locations/Locations would show all the user's locations cards, when you remember you bought a product in a specific location so you would want to browse that one and your prices only.

Clicking My Products/Products would show something similar https://prices.openfoodfacts.org/products but showing only products which prices have been added by the user ordered by the biggest number of prices/most added product first.

Alternative solution : no buttons, but advanced filtering for the user to play with, same idea as #839 but extended to user's products and user's locations.

@serpico serpico added the ✨ enhancement New feature or request label Oct 8, 2024
@raphodn
Copy link
Member

raphodn commented Oct 8, 2024

Good idea !

There is a little complexity, because there is no direct link between users and locations or products (at the contrary of prices and proofs).

But it'll be a good place to test it out :)

@raphodn
Copy link
Member

raphodn commented Oct 8, 2024

Btw i realised that the proof count is different, for now the user card shows stats for locations and proofs that have at least 1 price.

I need to clarify/homogenize

@raphodn raphodn changed the title Follow up on #939 easy access to My Locations and My Products from the dashboard Dashboard: easy access to My Locations and My Products Oct 8, 2024
@raphodn
Copy link
Member

raphodn commented Oct 8, 2024

@raphodn
Copy link
Member

raphodn commented Oct 8, 2024

existential question: what is a user's location ?

  • restrictive: where the user added a price
  • wider: where the user added a price or a proof (even without prices)

@serpico
Copy link
Author

serpico commented Oct 8, 2024

existential question: what is a user's location ?

* restrictive: where the user added a price

* wider: where the user added a price or a proof (even without prices)

From the top of my head I'm tempted to say wider, but maybe you already foresee some downside, or while testing/implementing some will surface

@github-actions github-actions bot added the ⭐ top issue Top issue. label Oct 9, 2024
@teolemon teolemon removed the ✨ enhancement New feature or request label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ top issue Top issue.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants