Restyle AI consultant ("Virtual waiter") to match new mockup

- Rename the consultant title to "Mesero virtual" / "Virtual waiter"
  (uppercased in the UI via CSS).
- Answer intro now shown in a sage-green card; recommendation dish names use
  the palette text color.
- Replace hardcoded navy (#1e3a5f) with var(--accent) across the consultant
  (asked bubble, recommendation "Add" button, send arrow) and the
  SuggestionCarousel "Add" button — all red under the current palette.
- More opaque modal surface for readability over the dimmed menu; dish
  thumbnails preserved in recommendations.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Collina SystemsandClaude Opus 4.8 committed 2026-06-26 20:05:37 -06:00
1 parent bae032aa75
commit cf6090d588
4 files changed
+20 -10

No files matched your search

+1 -1
View File
@@ -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.",
+1 -1
View File
@@ -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ú.",
+17 -7
View File
@@ -79,13 +79,13 @@ export default function AiConsultant({
/>
)}
<div className="min-w-0 flex-1">
<div className="font-semibold" style={{ color: '#1e3a5f' }}>{r.dish}</div>
<div className="font-semibold text-[var(--text)]">{r.dish}</div>
<p className="text-sm text-[var(--text)]/80">{r.reason}</p>
</div>
{ordersEnabled && product && (
<button
onClick={() => onAdd(product)}
style={{ backgroundColor: '#1e3a5f' }}
style={{ backgroundColor: 'var(--accent)' }}
className="shrink-0 rounded-full px-3 py-1.5 text-xs font-medium text-white"
>
{tm('addToOrder')}
@@ -97,9 +97,12 @@ export default function AiConsultant({
return (
<div className="safe-modal fixed inset-0 z-50 flex items-end justify-center bg-black/40 px-3 backdrop-blur-sm sm:items-center">
<div className="glass flex max-h-[85vh] w-full max-w-md flex-col gap-5 rounded-3xl p-5">
<div
className="glass flex max-h-[85vh] w-full max-w-md flex-col gap-5 rounded-3xl p-5"
style={{ backgroundColor: 'rgba(255,255,255,0.886)' }}
>
<div className="flex items-center justify-between">
<h3 className="display text-lg font-semibold">{t('title')}</h3>
<h3 className="display text-lg font-semibold uppercase">{t('title')}</h3>
<button onClick={onClose} className="glass-pill rounded-full px-3 py-1">
✕
</button>
@@ -110,7 +113,7 @@ export default function AiConsultant({
{asked && (
<div
className="max-w-[85%] self-end rounded-2xl px-4 py-2 text-sm text-white"
style={{ backgroundColor: '#1e3a5f' }}
style={{ backgroundColor: 'var(--accent)' }}
>
{asked}
</div>
@@ -119,7 +122,14 @@ export default function AiConsultant({
{error && <p className="text-sm text-red-600">⚠️</p>}
{answer && (
<div className="flex flex-col gap-3">
{answer.intro && <p className="mb-1 text-sm text-[var(--text)]/80">{answer.intro}</p>}
{answer.intro && (
<div
className="rounded-2xl p-4 shadow-sm"
style={{ backgroundColor: '#bad1bc', color: '#000' }}
>
<p className="text-sm">{answer.intro}</p>
</div>
)}
{(() => {
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({
<button
onClick={ask}
disabled={loading}
style={{ backgroundColor: '#1e3a5f' }}
style={{ backgroundColor: 'var(--accent)' }}
className="rounded-full px-4 py-2 text-sm font-medium text-white disabled:opacity-50"
>
→
+1 -1
View File
@@ -65,7 +65,7 @@ export default function SuggestionCarousel({
<span className="text-xs text-black">${p.price.toFixed(2)}</span>
<button
onClick={() => onAdd(p)}
style={{ backgroundColor: '#1e3a5f' }}
style={{ backgroundColor: 'var(--accent)' }}
className="mt-auto rounded-full py-1 text-xs font-medium text-white"
>
{t('addToOrder')}