Jump to content

Knowledge panels: Difference between revisions

m
links to other knowledge panels pages
mNo edit summary
m (links to other knowledge panels pages)
 
Line 18: Line 18:
Most of the product page on the OFF website and mobile app is generated through knowledge panels (with the exception of product images and [[Product Attributes]]).
Most of the product page on the OFF website and mobile app is generated through knowledge panels (with the exception of product images and [[Product Attributes]]).


== Technical issues and questions ==
*[[Knowledge panels for Open Food Facts]]
*[[Knowledge panels for Open Beauty Facts]]
*[[Knowledge panels for Open Pet Food Facts]]
*[[Knowledge panels for Open Products Facts]]


=== Testing it ===
==Technical issues and questions==
 
===Testing it===
Knowledge panels are already deployed for every body !
Knowledge panels are already deployed for every body !


Line 29: Line 34:
'''FIXME:''' eventually move this part of this to https://openfoodfacts.github.io/openfoodfacts-server/introduction/api/
'''FIXME:''' eventually move this part of this to https://openfoodfacts.github.io/openfoodfacts-server/introduction/api/


=== The flexibility of a static page ? ===
===The flexibility of a static page ?===
* Use the same system as for static pages, with much more Q&A ?
*Use the same system as for static pages, with much more Q&A ?
* Add a mode to get the raw file without the Product Opener UI
*Add a mode to get the raw file without the Product Opener UI
* https://fr.openfoodfacts.org/nutriscore?nochrome=1
*https://fr.openfoodfacts.org/nutriscore?nochrome=1
* https://fr.openfoodfacts.org/knol/label/organic?nochrome=1
*https://fr.openfoodfacts.org/knol/label/organic?nochrome=1
* Would allow to display them on the web as well
*Would allow to display them on the web as well


=== What should we do with the native Wikidata integration on Android ? ===
=== What should we do with the native Wikidata integration on Android ?===
* Move the logic on the server, with caching, and let iOS and other apps benefit as well ?
* Move the logic on the server, with caching, and let iOS and other apps benefit as well ?
* Blend the Wikidata info with our own
*Blend the Wikidata info with our own
* System to add Wikidata IDs to categories, labels… (working as a special language, using the existing translation system ?)
*System to add Wikidata IDs to categories, labels… (working as a special language, using the existing translation system ?)


=== When should network calls be made ? ===
===When should network calls be made ? ===
* The apps would attempt to call all labels at setup, and then refresh on some heuristic
*The apps would attempt to call all labels at setup, and then refresh on some heuristic
* On demand call when clicking on an attribute or a label
*On demand call when clicking on an attribute or a label


=== Support for HTML embedding on Android ===
===Support for HTML embedding on Android===
* https://stackoverflow.com/questions/2116162/how-to-display-html-in-textview
*https://stackoverflow.com/questions/2116162/how-to-display-html-in-textview
* https://github.com/openfoodfacts/openfoodfacts-androidapp/issues/2205
*https://github.com/openfoodfacts/openfoodfacts-androidapp/issues/2205
* https://github.com/openfoodfacts/openfoodfacts-androidapp/pull/2208
*https://github.com/openfoodfacts/openfoodfacts-androidapp/pull/2208
* Authorized HTML tags
*Authorized HTML tags
* Support for images (svg, png)
*Support for images (svg, png)
* Support for webviews
*Support for webviews


=== Support for HTML embedding on iOS ===
===Support for HTML embedding on iOS===
* https://github.com/openfoodfacts/openfoodfacts-ios/pull/192/files
*https://github.com/openfoodfacts/openfoodfacts-ios/pull/192/files
* Authorized HTML tags
*Authorized HTML tags
* Support for images (svg, png)
*Support for images (svg, png)
* Support for webviews
*Support for webviews


=== Support for HTML embedding on Flutter ===
===Support for HTML embedding on Flutter ===
* https://pub.dev/packages/flutter_html
*https://pub.dev/packages/flutter_html
* https://pub.dev/packages/flutter_widget_from_html
*https://pub.dev/packages/flutter_widget_from_html


== Get in touch ==
==Get in touch==
{{Box
{{Box
  | 1    =  Slack channel
  | 1    =  Slack channel
  | 2    =  [https://openfoodfacts.slack.com/messages/C03LFRKLVBQ/ #knowledge-panels]
  | 2    =  [https://openfoodfacts.slack.com/messages/C03LFRKLVBQ/ #knowledge-panels]
}}
}}