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

feat: [Rebase of initial PR] Allow the users to get Nutri-Score, NOVA and Eco-Score even if they don't have any Network #3288

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

teolemon
Copy link
Member

@teolemon teolemon commented Jun 21, 2020

Description

A prompt to download the CSV file at the start and saving it in batches of 15k products to the local database, in order to allow offline scanning.
https://world.openfoodfacts.org/data/offline/en.openfoodfacts.org.products.small.csv.zip

Related issues and discussion

Future

  • Implement offline scanning based on the locally stored data
  • Try fetching the data online in parallel and refresh the view if necessary
  • Align the data download UX with what has been done in iOS
  • I would probably create a real activity showing progress report rather than a menu item that you have to click twice and that doesn't change to indicate progress
  • ability to delete the offline db and re-download it (or even a scheduled task every month)
  • have a small version (the current one) and full versions (without images) for a whole country
  • Add a first time use info in home like on iOS

Part of

Screenshots

image

image

image

@teolemon teolemon requested a review from VaiTon June 21, 2020 10:07
@sonarcloud
Copy link

sonarcloud bot commented Jun 21, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@teolemon teolemon added the offline Offline mode label Jun 21, 2020
@teolemon
Copy link
Member Author

@elouataoui @prashantkh19 FYI, I moved the PR

@teolemon teolemon added the P1 label Jun 21, 2020
@VaiTon
Copy link
Member

VaiTon commented Jun 21, 2020

@teolemon I would like to discuss on slack before I start working on this one.

@teolemon teolemon changed the base branch from master to develop July 22, 2020 15:41
@teolemon teolemon linked an issue Sep 4, 2020 that may be closed by this pull request
@teolemon teolemon changed the title Offline mode rebased [Rebase of initial PR] Allow the user to get Nutri-Score, NOVA and Eco-Score even if they don't have any Network Aug 31, 2021
@teolemon teolemon changed the title [Rebase of initial PR] Allow the user to get Nutri-Score, NOVA and Eco-Score even if they don't have any Network [Rebase of initial PR] Allow the users to get Nutri-Score, NOVA and Eco-Score even if they don't have any Network Aug 31, 2021
@teolemon teolemon mentioned this pull request Aug 31, 2021
9 tasks
@teolemon teolemon changed the title [Rebase of initial PR] Allow the users to get Nutri-Score, NOVA and Eco-Score even if they don't have any Network feat: [Rebase of initial PR] Allow the users to get Nutri-Score, NOVA and Eco-Score even if they don't have any Network Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Up for Adoption] Allow to scan barcodes offline Store the whole database (or a subset) locally
3 participants