feat: rename ingredients→products, products→user_products; add barcode/OFF import
- Rename catalog: ingredient/* → product/* (canonical_name, barcode, nutrition per 100g)
- Rename pantry: product/* → userproduct/* (user-owned items with expiry)
- Squash migrations into single 001_initial_schema.sql (clean-db baseline)
- product_categories: add English canonical name column; fix COALESCE in queries
- Remove product_translations: product names are stored in their original language
- Add default_unit_name to product API responses via unit_translations JOIN
- Add cmd/importoff: bulk import from OpenFoodFacts JSONL dump (COPY + ON CONFLICT)
- Diary: support product_id entries alongside dish_id (CHECK num_nonnulls = 1)
- Home: getLoggedCalories joins both recipes and catalog products
- Flutter: rename models/providers/services to match backend rename
- Flutter: add barcode scan flow for diary (mobile_scanner, product_portion_sheet)
- Flutter: localise 6 new keys across 12 languages (barcode scan, portion weight)
- Routes: GET /products/search, GET /products/barcode/{barcode}, /user-products
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
"queuePosition": "{position}번째",
|
||||
"@queuePosition": {
|
||||
"placeholders": {
|
||||
"position": { "type": "int" }
|
||||
"position": {
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"processing": "처리 중...",
|
||||
@@ -102,5 +104,11 @@
|
||||
"photoReceipt": "영수증 촬영",
|
||||
"photoReceiptSubtitle": "영수증의 모든 상품 인식",
|
||||
"photoProducts": "식품 촬영",
|
||||
"photoProductsSubtitle": "냉장고, 테이블, 선반 — 최대 3장"
|
||||
"photoProductsSubtitle": "냉장고, 테이블, 선반 — 최대 3장",
|
||||
"addPackagedFood": "포장 식품 추가",
|
||||
"scanBarcode": "바코드 스캔",
|
||||
"portionWeightG": "1회 제공량 (g)",
|
||||
"productNotFound": "제품을 찾을 수 없습니다",
|
||||
"enterManually": "직접 입력",
|
||||
"perHundredG": "100g당"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user