iOS-Scan: Text nennt beide Produkt-Datenbanken

Der Barcode-Lookup fragt schon immer beide Quellen ab (Open Food Facts und
Open Products Facts, ueber /products/lookup). Die Scan-Ansicht sprach aber nur
von "Open Food Facts" und liess es so wirken, als wuerde nur dort gesucht.
Texte neutralisiert bzw. beide Quellen genannt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-07-25 23:27:10 +02:00
parent 5c8b46a0d5
commit 65b0792148

View File

@@ -119,7 +119,7 @@ struct CheckInView: View {
if let kategorie = suggestedCategoryName { if let kategorie = suggestedCategoryName {
noteRow(symbol: "square.grid.2x2", noteRow(symbol: "square.grid.2x2",
title: "Wird der Kategorie „\(kategorie)“ zugeordnet", title: "Wird der Kategorie „\(kategorie)“ zugeordnet",
detail: "Aus der Einordnung bei Open Food Facts im Formular änderbar.") detail: "Aus der Produkt-Datenbank vorgeschlagen im Formular änderbar.")
} }
if let name = suggestedGroupName { if let name = suggestedGroupName {
noteRow(symbol: "tag", noteRow(symbol: "tag",
@@ -147,7 +147,7 @@ struct CheckInView: View {
Text(item.name).font(.headline) Text(item.name).font(.headline)
Text([item.brand, item.quantityText].compactMap { $0 }.joined(separator: " · ")) Text([item.brand, item.quantityText].compactMap { $0 }.joined(separator: " · "))
.font(.caption).foregroundStyle(.secondary) .font(.caption).foregroundStyle(.secondary)
Text("Bei Open Food Facts gefunden, noch nicht im Katalog.") Text("In einer Produkt-Datenbank gefunden, noch nicht im Katalog.")
.font(.caption2).foregroundStyle(.secondary) .font(.caption2).foregroundStyle(.secondary)
groupNote() groupNote()
NavigationLink { NavigationLink {
@@ -171,7 +171,7 @@ struct CheckInView: View {
private func unknownCard(_ code: String) -> some View { private func unknownCard(_ code: String) -> some View {
VStack(alignment: .leading, spacing: 8) { VStack(alignment: .leading, spacing: 8) {
Text("Unbekannter Code \(code)").font(.headline) Text("Unbekannter Code \(code)").font(.headline)
Text("Weder im Katalog noch bei Open Food Facts.") Text("Weder im Katalog noch in Open Food / Products Facts.")
.font(.caption).foregroundStyle(.secondary) .font(.caption).foregroundStyle(.secondary)
groupNote() groupNote()
NavigationLink { NavigationLink {