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

The default product in the onboarding is currently a bad one (Nutella ?) with not all panels available #1003

Closed
teolemon opened this issue Jan 23, 2022 · 14 comments · Fixed by #1006
Assignees
Labels
🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score…

Comments

@teolemon
Copy link
Member

teolemon commented Jan 23, 2022

What

  • The default product in the onboarding is currently a bad one (Nutella ?) with not all panels available
  • Eg, the factory map is missing

Part of

@teolemon teolemon added ✅ task 🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score… and removed ✅ task labels Jan 23, 2022
@monsieurtanuki
Copy link
Contributor

@teolemon Find a better product and give us its barcode.

@jasmeet0817
Copy link
Contributor

Isn't this an issue on the backend ? We just request a product with example as product id.

@teolemon
Copy link
Member Author

Yes, probably. I would have expected it to return the perfect product. I wasn't completely sure the client was doing the right thing already.

@monsieurtanuki
Copy link
Contributor

Actually we don't need off's example to be perfect. Neither to use it.
All we need is a decent product, and its barcode.

@teolemon Would you like to play with barcodes: in demo mode, being able to set the onboarding barcode?

@jasmeet0817
Copy link
Contributor

jasmeet0817 commented Jan 24, 2022 via email

@monsieurtanuki
Copy link
Contributor

@jasmeet0817 That cannot indeed be the best fitting product for all the planet, and there's no country parameter for the example. We would need barcodes like example (master fallback), example-fr, example-us, ...
If the example changes, we should change the fallback data stored in assets, too.

@jasmeet0817
Copy link
Contributor

don't we pass country as a cc parameter in the request to BE ? From barcode_product_query.dart we are passing ProductQuery.getCountry() as the country, I was assuming this translates to the country code being passed to BE.

@jasmeet0817
Copy link
Contributor

@jasmeet0817 That cannot indeed be the best fitting product for all the planet, and there's no country parameter for the example. We would need barcodes like example (master fallback), example-fr, example-us, ... If the example changes, we should change the fallback data stored in assets, too.

For the fallback product, completely agreed that we can configure whatever product details that are best suited. But that we can fake.

Actually, the BE could also fake product details when example barcode is sent, in whichever language the request was sent in, let me check with Stephane, maybe that's what he was already planning

@stephanegigandet
Copy link
Contributor

Right, the product you get back will depend on the country passed to the API.

@monsieurtanuki
Copy link
Contributor

example is not only a wrong barcode, but some kind of meta barcode, then, whose product depends on the country?
We still need to find a global fallback product for the asset data.

@stephanegigandet
Copy link
Contributor

Corresponding PR server side: openfoodfacts/openfoodfacts-server#6337

Only one product right now, but we can indeed have several if we want to change the production place. That will be done server side.

@stephanegigandet
Copy link
Contributor

example is not only a wrong barcode, but some kind of meta barcode, then, whose product depends on the country?

That's correct.

For the fallback product, please use this one: https://world.openfoodfacts.org/product/093270067481501/a-good-product-for-you-open-food-facts

@jasmeet0817
Copy link
Contributor

jasmeet0817 commented Jan 24, 2022

example is not only a wrong barcode, but some kind of meta barcode, then, whose product depends on the country?

I wouldn't say wrong it's a feature not a bug :) But yes, it's a meta barcode whose product depends on the country, that's why I think this bug belongs on the BE.

We still need to find a global fallback product for the asset data.

@teolemon what do you think about the fallback product, let us know if we should change that (or some aspects of that product)

@monsieurtanuki
Copy link
Contributor

Screenshots with new fallback 093270067481501:

Simulator Screen Shot - iPhone 8 Plus - 2022-01-24 at 14 22 36

Simulator Screen Shot - iPhone 8 Plus - 2022-01-24 at 14 22 50

Simulator Screen Shot - iPhone 8 Plus - 2022-01-24 at 14 23 19

monsieurtanuki added a commit to monsieurtanuki/smooth-app that referenced this issue Jan 24, 2022
…7481501

Impacted files:
* `onboarding_data_knowledge_panels.dart`: refreshed the url in the comment
* `onboarding_data_product.dart`: refreshed the url in the comment
* `sample_knowledge_panels.json`: refreshed the whole file from the new url
* `sample_product.json`: refreshed the whole file from the new url
monsieurtanuki added a commit that referenced this issue Jan 24, 2022
Impacted files:
* `onboarding_data_knowledge_panels.dart`: refreshed the url in the comment
* `onboarding_data_product.dart`: refreshed the url in the comment
* `sample_knowledge_panels.json`: refreshed the whole file from the new url
* `sample_product.json`: refreshed the whole file from the new url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤗 Onboarding We need to onboard users on how the app works, but also on content like Nutri-Score, Eco-Score…
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants