2.0: dish editor gains photo picker and ingredients section

- PhotosPicker with downscaling (1024pt max, JPEG 0.8) before storing in
  photoData; change/remove actions.
- Ingredients: editable line list (add/edit/remove) + on-device "Generate"
  from the dish name (hidden when Foundation Models unavailable; paywall
  after the free generation quota, source=ingredient_generation).
- DishViewModel: drafts ingredients/photo, cleans empty lines on save.
- Localized in all 6 languages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BkanrydYtrme8wipTzWssG
This commit is contained in:
alexandrev-tibco
2026-07-12 17:51:33 +02:00
parent ce88d7b265
commit 98230c732d
8 changed files with 231 additions and 2 deletions
@@ -397,3 +397,12 @@
"shopping_empty_title" = "Nada que comprar todavía";
"shopping_empty_message" = "Planifica platos para esta semana y sus ingredientes aparecerán aquí.";
"shopping_share_header" = "🛒 Lista de la compra — MealMood";
// Dish editor: photo + ingredients (2.0)
"dish_photo_label" = "Foto";
"dish_photo_add" = "Añadir foto";
"dish_photo_change" = "Cambiar foto";
"dish_photo_remove" = "Quitar";
"dish_ingredients_label" = "Ingredientes";
"dish_ingredient_placeholder" = "p. ej. 200 g de espaguetis";
"dish_ingredients_add" = "Añadir ingrediente";