feat: product search screen with catalog add and success feedback
- Add product search screen (/products/search) as primary add flow; "Add" button on products list opens search, manual entry remains as fallback - Add to shelf bottom sheet with AnimatedSwitcher success view (green checkmark) and SnackBar confirmation on the search screen via onAdded callback - Manual add (AddProductScreen) shows SnackBar on success before popping back - Extend AddProductScreen with optional nutrition fields (calories, protein, fat, carbs, fiber); auto-fills from catalog selection and auto-expands section - Auto-upsert catalog product on backend when nutrition data is provided without a primary_product_id, linking the user product to the catalog - Add fiber_per_100g field to CatalogProduct model and CreateRequest - Add 16 new L10n keys across all 12 locales (addProduct, addManually, searchProducts, quantity, storageDays, addToShelf, nutritionOptional, calories, protein, fat, carbs, fiber, productAddedToShelf, etc.) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -172,5 +172,32 @@
|
||||
"jobTypeReceipt": "Чек",
|
||||
"jobTypeProducts": "Продукты",
|
||||
"scanSubmitting": "Отправка...",
|
||||
"processingProducts": "Обработка..."
|
||||
"processingProducts": "Обработка...",
|
||||
"clearAllProducts": "Очистить список",
|
||||
"clearAllConfirmTitle": "Очистить список продуктов?",
|
||||
"clearAllConfirmMessage": "Все продукты будут удалены без возможности восстановления.",
|
||||
"addManually": "Вручную",
|
||||
"scan": "Сканировать",
|
||||
"addProduct": "Добавить",
|
||||
"searchProducts": "Поиск продуктов",
|
||||
"searchProductsHint": "Введите название продукта или добавьте вручную",
|
||||
"noSearchResults": "Ничего не найдено по запросу \"{query}\"",
|
||||
"@noSearchResults": {
|
||||
"placeholders": {
|
||||
"query": {
|
||||
"type": "String"
|
||||
}
|
||||
}
|
||||
},
|
||||
"quantity": "Количество",
|
||||
"storageDays": "Дней хранения",
|
||||
"addToShelf": "В холодильник",
|
||||
"errorGeneric": "Что-то пошло не так",
|
||||
"nutritionOptional": "Питательная ценность на 100г (необязательно)",
|
||||
"calories": "Калории",
|
||||
"protein": "Белки",
|
||||
"fat": "Жиры",
|
||||
"carbs": "Углеводы",
|
||||
"fiber": "Клетчатка",
|
||||
"productAddedToShelf": "Добавлено в холодильник"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user