v1.7.8: usa ingredienti dalla chat
- Nuovo endpoint chat_extract_recipe: Gemini estrae solo nomi+quantità con prompt minimo (nessun inventario nel prompt → niente troncamento), poi PHP fuzzy-match contro l'inventario completo identico a generateRecipe - Frontend: _looksLikeRecipe() rileva risposte chat con ricetta; bottone '🥄 Usa ingredienti' appare sotto la bubble, chiama chatExtractIngredients() che mostra pannello inline con pulsanti '📦 Usa' per ogni ingrediente in dispensa - useRecipeIngredient() riusato 1:1 con fallback _chatRecipeTitle per le note - Stili CSS: btn-chat-use-recipe, chat-recipe-panel, chat-recipe-panel-container - Chiavi i18n: use_ingredients_btn, recipe_ingredients_from_pantry (it/en/de)
This commit is contained in:
@@ -471,7 +471,9 @@
|
||||
"suggestion_snack_text": "What can I make for a quick snack?",
|
||||
"suggestion_juice_text": "Make me a juice or smoothie with what I have",
|
||||
"suggestion_light_text": "I'm hungry but want something light",
|
||||
"suggestion_expiry_text": "What's about to expire and how can I use it?"
|
||||
"suggestion_expiry_text": "What's about to expire and how can I use it?",
|
||||
"use_ingredients_btn": "Use ingredients",
|
||||
"recipe_ingredients_from_pantry": "Ingredients found in pantry"
|
||||
},
|
||||
"cooking": {
|
||||
"close": "Close",
|
||||
|
||||
Reference in New Issue
Block a user