diff --git a/messages/en.json b/messages/en.json index c2676f2..995d0ff 100644 --- a/messages/en.json +++ b/messages/en.json @@ -71,7 +71,7 @@ "kcal": "Calories" }, "ai": { - "title": "Menu consultant", + "title": "Virtual waiter", "placeholder": "What do you recommend if I'm diabetic?", "thinking": "Thinking…", "intro": "Tell me what you're after and I'll recommend dishes from the menu.", diff --git a/messages/es.json b/messages/es.json index 45e9a56..40b1418 100644 --- a/messages/es.json +++ b/messages/es.json @@ -71,7 +71,7 @@ "kcal": "Calorías" }, "ai": { - "title": "Consultor del menú", + "title": "Mesero virtual", "placeholder": "¿Qué me recomiendas si soy diabético?", "thinking": "Pensando…", "intro": "Cuéntame qué buscas y te recomiendo platillos del menú.", diff --git a/src/components/public/AiConsultant.tsx b/src/components/public/AiConsultant.tsx index e9a9dec..92cfb41 100644 --- a/src/components/public/AiConsultant.tsx +++ b/src/components/public/AiConsultant.tsx @@ -79,13 +79,13 @@ export default function AiConsultant({ /> )}
-
{r.dish}
+
{r.dish}

{r.reason}

{ordersEnabled && product && ( @@ -110,7 +113,7 @@ export default function AiConsultant({ {asked && (
{asked}
@@ -119,7 +122,14 @@ export default function AiConsultant({ {error &&

⚠️

} {answer && (
- {answer.intro &&

{answer.intro}

} + {answer.intro && ( +
+

{answer.intro}

+
+ )} {(() => { const direct = answer.recommendations.filter((r) => r.type !== 'complement'); const complement = answer.recommendations.filter((r) => r.type === 'complement'); @@ -159,7 +169,7 @@ export default function AiConsultant({