improve product search and barcode scanning
Android Release Build / build-android (push) Failing after 7m42s
Android Release Build / build-android (push) Failing after 7m42s
This commit is contained in:
@@ -18,6 +18,8 @@ The product detail leads with the recommendation, confidence and strongest influ
|
||||
|
||||
Other useful features remain: manual product corrections, local product cache, offline scans of saved products, alternatives, shopping list, and environmental context.
|
||||
|
||||
Product search combines Open Food Facts results with compatible cached products, deduplicates barcodes, and ranks matches by barcode, product name, brand, category, data completeness, and Swiss availability. Search cards expose their match quality, product-data coverage, source, and cache freshness. Overlapping searches are cancelled or ignored so an older response cannot replace a newer query. Offline misses, cache fallback, true not-found results, invalid scanned codes, and network failures remain distinct states.
|
||||
|
||||
When the alternatives section is opened, the product detail previews up to two better alternatives of the same specific product type. No alternatives request is made merely by opening the product. Suggestions do not cross broad groups such as soda to water. A lower-sugar soda can qualify even if its Nutri-Score grade is unchanged, provided its overall rating is not materially worse. The search checks related category tags and additional result pages before giving up, then tries product-type or category search terms when needed. The full alternatives view remains available. In online mode the preview sends category tags and, when needed, product-type, category, or name search terms to Open Food Facts; offline it uses only saved products.
|
||||
|
||||
## Run
|
||||
|
||||
Reference in New Issue
Block a user