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

(Work in progress) 🐾 📸 🧴 Replace the Open X Facts legacy apps

Open teolemon opened this issue 1 year ago • 0 comments

  • NOTE: This is different from #4543 (which is the bolder, next step to merge all apps, and get rid of secondary apps)

We currently have the following deployments:

Android

  • Open Beauty Facts: https://play.google.com/store/apps/details?id=org.openbeautyfacts.scanner
  • Open Pet Food Facts: https://play.google.com/store/apps/details?id=org.openpetfoodfacts.scanner
  • Open Products Facts : https://play.google.com/store/apps/details?id=org.openproductsfacts.scanner

iOS

  • Open Beauty Facts: https://apps.apple.com/fr/app/open-beauty-facts/id1122926380

F-Droid

  • Open Beauty Facts: https://f-droid.org/fr/packages/openfoodfacts.github.scrachx.openbeauty/
  • Open Pet Food Facts: https://f-droid.org/fr/packages/org.openpetfoodfacts.scanner/
#### Establish a feedback loop by deploying clones to Android internal listings and Apple Testflights of Open Beauty Facts
- [ ] #3923
- [ ] Add icons and visuals for all variants to the source code
#### Ensure the Dart package behaves well
- [ ] Ensure that when the base URL is on openproductsfacts.org we don't crash on lacking nutrition, ingredients… (that shouldn't actually be an issue)
#### Tweaking core app behaviors based on a forced project type
- [ ] Add a DEV mode switch to return a force project type for all products for testing/development purposes ( "off", "obf", "opf" and "opff")
- [ ] Override Open Food Facts mentions by Open X Facts based on project type
- [ ] Change the base URL based on the DEV mode project type
### Tweak the app to handle multiple project types at the same time
- [ ] Database migration to add a project type to all current products in the local database ("off")
- [ ] Add a project switcher to history (based on project type "off", "obf", "opf" and "opff")
- [ ] Add a project switcher to search (and store the type on each product opened "off", "obf", "opf" and "opff", and for any search we store locally)
- [ ] Add a project switcher to scan (and store the type on each product scanned "off", "obf", "opf" and "opff")
- [ ] Disable customization completely for other projects (not much value to bring to the users, and to save development time)
- [ ] We probably do not need to add anything to lists (as they can potentially contain items from any project)
- [ ] Disable Eco-Score and Nutri-Score display in Search results / ListView if project != off

Product page

  • Effort should be limited thanks to the fact that knowledge panels are the server's responsability
  • Attributes are only deployed to "off" and "obf" at this time.
### Product page tasklist
- [ ] Make local Open Food Facts specific behavior conditional to the product type
- [ ] Disable the "Update nutrition facts" button on "obf" and "opf"
- [ ] Disable the "Compute nutrition facts" button on "obf" and "opf"
### Adapt strings
  - [ ] Create a file per project to override the text strings where relevant (eg mentions of Food, mentions of Open Food Facts)
### Edit mode
- [ ] Disable "Nutrition" section in full edit mode on Open Beauty Facts ("obf") and Open Products Facts ("opf")
- [ ] Override icons (fork and spoon icon for categories on opf, obf, opff to an edit pencil)
- [ ] Override texts ("Ingredients & origins" >> "Components" for OPF)
- [ ] Compare to category should invoke the right search type, in line with the product type
- [ ] Add Period after Opening support for Open Beauty Facts (obf)
### Assets
- [ ] Add logos, icons for Open Beauty Facts, Open Products Facts and Open Pet Food Facts
- [ ] Add sample products for Open Beauty Facts, Open Products Facts and Open Pet Food Facts
- [ ] Design Play Store vignettes for Open Beauty Facts, Open Products Facts and Open Pet Food Facts

Mockup

image

Part of

  • #525

teolemon avatar Jun 06 '23 21:06 teolemon