smooth-app icon indicating copy to clipboard operation
smooth-app copied to clipboard

Allow to share product lists by URLs

Open monsieurtanuki opened this issue 2 years ago • 4 comments

Allow to share lists with friends by using URLs like:

https://world.openfoodfacts.org/products/8024884500403,3263855093192,3045320001570,3021762383344,4008400402222,3330720237255,3608580823513,3700278403936,3302747010029,3608580823490,3250391660995,3760020506605,8722700202387,3330720237330,3535800940005,20000691,3270190127512

Potential issues:

  • the URL has a limited length - there will be a limited number of products
  • potential localization issue - should we add the language, the country?
  • possible (but not systematic) combo with "Allow users to open shared lists"

monsieurtanuki avatar Jul 19 '22 18:07 monsieurtanuki

Potential issues:

  • the URL has a limited length - there will be a limited number of products
  • potential localization issue - should we add the language, the country?
  • possible (but not systematic) combo with "Allow users to open shared lists"

monsieurtanuki avatar Jul 19 '22 18:07 monsieurtanuki

  • related to #2627

teolemon avatar Aug 16 '22 10:08 teolemon

Hello! Let me try this one :)

mbaimuratov avatar Sep 29 '22 10:09 mbaimuratov

@mbaimuratov Sure, you can start to work on it! But before you actually code anything, how do you plan to deal with the potential problems I've mentioned?

monsieurtanuki avatar Sep 29 '22 10:09 monsieurtanuki

@AshAman999 how about we share with the user unique id + list id, so while we show on the web we can search the list items in the user's specific database on that particular list and render the list items on the web?

Sudhanva-Nadiger avatar Jan 29 '23 14:01 Sudhanva-Nadiger

There isn't a feature like this on the server. The lists are only stored locally and not synced to the server https://github.com/openfoodfacts/smooth-app/issues/3373

M123-dev avatar Jan 29 '23 15:01 M123-dev

if that's the scenario we have to add feature like downloading the url of all list items in a CSV file or xl sheet since there is limit on the length of the URL

Sudhanva-Nadiger avatar Jan 29 '23 16:01 Sudhanva-Nadiger