Repository navigation
Food catalog and nutrition label scanner - #4
Merged
Merged
Conversation
GET /api/foods/catalog lists every published food, or only the viewer's own foods, with verification-status and name/barcode filters and offset paging. The web app gets a Foods tab with the same filters; admins (and anyone with foods:verify) can verify published foods there, reusing the existing verify endpoint. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Label scanner: on the new-food form, scan a nutrition table with the camera. Tesseract (heb+eng) runs on device; the photo is auto-rotated, and a parser extracts the per-100 g/ml values from English and Hebrew tables, using the serving/100 ratio to pick the right column and repair dropped decimals, and dropping values that do not add up. Bilingual labels are read in one language (the app language wins ties). The flutter_tesseract_ocr plugin is vendored with a rewritten iOS side that drives libtesseract directly: the original symlinked into the read-only app bundle and crashed on device, and ignored page-mode settings. Food catalog: new Foods tab listing published foods or your own, with search, a verification filter, a detail sheet and admin Verify. push-iphone.sh now updates the app in place (no uninstall, so the developer trust and app data are kept), retries the install, and no longer launches the app. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/foods/catalogplus a Foods tab on web and mobile. Switch between all published foods and your own, search by name/barcode, filter by verified/unverified, page through results. Admins (or anyone withfoods:verify) can verify published foods there using the existingPOST /api/foods/:id/verify.push-iphone.sh: updates the app in place (no uninstall, so developer trust and data are kept), retries the install, and no longer launches the app.Deploying
foods:readpermission.flutter_tesseract_ocrunderapps/mobile/packages/(its iOS code is rewritten: the original symlinked into the read-only app bundle and crashed on device).ios/PodfileandPodfile.lockare now committed because the plugin needs CocoaPods.Test plan
flutter analyze(no errors/warnings), 16 tests (parser tests include real OCR output from a bilingual label photo), iOS device buildNotes
🤖 Generated with Claude Code