v1.7.8: Trasferisci a Ricette dalla chat (refactor)

- Sostituisce 'Usa ingredienti' inline con 'Trasferisci a Ricette'
- Nuovo endpoint chat_to_recipe: Gemini restituisce JSON completo
  (title, meal, servings, ingredients, steps, nutrition_note),
  PHP arricchisce tutti gli ingredienti con product_id/location
  via fuzzy-match identico a generateRecipe
- La ricetta viene salvata in archivio e si apre nell'overlay Ricette
  con tutti i pulsanti Usa, modalità cottura, salvataggio intatto
- Rimossi: chatExtractIngredients, _buildChatIngredientPanelHTML,
  _chatRecipeTitle, chat_extract_recipe, chat-recipe-panel CSS
This commit is contained in:
dadaloop82
2026-05-10 14:49:08 +00:00
parent 9973edf463
commit 073b4b9cfa
8 changed files with 51 additions and 143 deletions
+1 -24
View File
@@ -5630,7 +5630,7 @@ body.cooking-mode-active .app-header {
30% { transform: translateY(-6px); opacity: 1; }
}
/* ====== Chat Recipe Ingredient Panel ====== */
/* ====== Chat Transfer to Recipes button ====== */
.btn-chat-use-recipe {
display: inline-block;
margin-top: 10px;
@@ -5652,29 +5652,6 @@ body.cooking-mode-active .app-header {
cursor: default;
}
.chat-recipe-panel-container {
margin-top: 8px;
}
.chat-recipe-panel {
background: var(--card-bg, #1e293b);
border: 1px solid rgba(99,102,241,0.3);
border-radius: 12px;
padding: 12px 14px;
margin-top: 4px;
}
.chat-recipe-panel-title {
font-size: 0.9rem;
margin-bottom: 4px;
}
.chat-recipe-panel-subtitle {
font-size: 0.75rem;
color: var(--text-muted, #94a3b8);
margin-bottom: 10px;
}
/* ====== Recipe Archive ====== */
.recipe-archive {
display: flex;