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

"Share product" feature #122

Closed
monsieurtanuki opened this issue Jan 28, 2021 · 8 comments
Closed

"Share product" feature #122

monsieurtanuki opened this issue Jan 28, 2021 · 8 comments
Assignees

Comments

@monsieurtanuki
Copy link
Contributor

If I scan or find an interesting product, I would like to share it with my friends: "eh, try this one!"
My initial thought was to add a button to the product page, like "Share", that will send a text that contains the OFF site URL.
Btw I don't know if the deep link is implemented so far.
There could be more elaborate ways of sharing product, like open read-only lists : "Top 5 - Cyril Lignac's favorite magrets". Or just an access to my friends' open product lists.

@stephanegigandet
Copy link
Contributor

It's exactly the type of viral features we have been thinking about. :) Being able to share small lists of products, ranked using one's preferences. So if you have a list on your app, you could get a URL to the OFF site that would show the same list.

@monsieurtanuki
Copy link
Contributor Author

Is the "list of products/barcodes" already implemented on the website? (which URL?)

For a single product share, that could be done with a floating button - but I think a bottom navigation bar would make more sense, as we may have several interesting actions on a product.

Floating Action Button: share

Simulator Screen Shot - iPhone 8 Plus - 2021-01-28 at 10 51 17

BottomNavigationBar: add, share

Simulator Screen Shot - iPhone 8 Plus - 2021-01-28 at 10 56 20

@monsieurtanuki monsieurtanuki self-assigned this Jan 28, 2021
@monsieurtanuki
Copy link
Contributor Author

In a first approach I'll implement a simple single product url sharing.

@stephanegigandet
Copy link
Contributor

Multiple products url is coming soon: openfoodfacts/openfoodfacts-server#4802

@monsieurtanuki
Copy link
Contributor Author

@stephanegigandet Cool, tell me when the multiple products url is available!

Random thoughts: I assume the next step would include more metadata, like whose list it is or the name of the list.
Like a Youtube channel: "Sabrina's delicious vegan foods": "top 5 hummus", "100% vegan chocolate", ...

monsieurtanuki referenced this issue in monsieurtanuki/smooth-app Jan 29, 2021
Impacted files:
* `product_page.dart`: added a "share" bottom button
* `pubspec.yaml`: added library `wc_flutter_share`, in order to share text
monsieurtanuki added a commit that referenced this issue Jan 29, 2021
@monsieurtanuki
Copy link
Contributor Author

Next step: once the multi-products URL is ready, add a "share" button in the product list page.

@monsieurtanuki
Copy link
Contributor Author

monsieurtanuki commented Feb 5, 2021

I've just added a "grocery" button on the product list page. Not as sophisticated as a list of barcodes from which you could get all the product data, but quite useful when shopping ;)
[Edit]: (btw, in #152)

@monsieurtanuki
Copy link
Contributor Author

"share button" in the product list page done in #239.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants