From ffa8766540a133f46db8da176528ebd32704d80e Mon Sep 17 00:00:00 2001 From: Collina Systems Date: Tue, 23 Jun 2026 18:02:21 -0600 Subject: [PATCH] Match popup panels exactly to mockups (3-color action system) The button-triggered panels followed a coarse "primary = red" rule; the mockups actually use: black for confirm actions, navy #1e3a5f for suggestions/AI recs, khaki #e2db8d for "Translate", grey-blue #c8cbd8 for delete, red only for total text and add-to-order/FAB/CTA. - OrderPanel: Confirm/order/split-create buttons -> black #111; Total -> red; cart item qty stepper -> white pill (matches mockup). - SuggestionCarousel: "Add" -> navy #1e3a5f; price -> black. - AiConsultant: recommendation name + "Add" + send arrow -> navy #1e3a5f. - SplitPanel: join/create + order buttons -> black #111. - ProductEditor: Save -> black #111; Delete -> grey-blue #c8cbd8; "Translate with AI" -> khaki #e2db8d. Co-Authored-By: Claude Opus 4.8 --- src/components/editor/ProductEditor.tsx | 8 ++-- src/components/public/AiConsultant.tsx | 6 +-- src/components/public/PublicMenu.tsx | 41 +++++++++++++------- src/components/public/SplitPanel.tsx | 4 +- src/components/public/SuggestionCarousel.tsx | 5 ++- 5 files changed, 40 insertions(+), 24 deletions(-) diff --git a/src/components/editor/ProductEditor.tsx b/src/components/editor/ProductEditor.tsx index cfaf09b..a514019 100644 --- a/src/components/editor/ProductEditor.tsx +++ b/src/components/editor/ProductEditor.tsx @@ -327,7 +327,8 @@ export default function ProductEditor({
@@ -335,7 +336,7 @@ export default function ProductEditor({ onClick={save} disabled={saving} className="flex-1 rounded-2xl py-3 text-sm font-semibold text-white shadow-lg transition active:scale-[0.99] disabled:opacity-50" - style={{ backgroundColor: '#dc2626' }} + style={{ backgroundColor: '#111' }} > {t('save')} @@ -407,7 +408,8 @@ function TranslateRow({ diff --git a/src/components/public/AiConsultant.tsx b/src/components/public/AiConsultant.tsx index b242cee..2772941 100644 --- a/src/components/public/AiConsultant.tsx +++ b/src/components/public/AiConsultant.tsx @@ -66,13 +66,13 @@ export default function AiConsultant({ return (
-
{r.dish}
+
{r.dish}

{r.reason}

{ordersEnabled && product && ( - {l.qty} - +
+ + {l.qty} + +
0 && } {cart.length > 0 && ( -
+
{t('total')} ${total.toFixed(2)}
@@ -634,7 +647,7 @@ function OrderPanel({ @@ -642,7 +655,7 @@ function OrderPanel({ ) : ( @@ -652,7 +665,7 @@ function OrderPanel({ @@ -695,7 +708,7 @@ function WaiterPanel({ diff --git a/src/components/public/SplitPanel.tsx b/src/components/public/SplitPanel.tsx index 909a5a5..4dc98a0 100644 --- a/src/components/public/SplitPanel.tsx +++ b/src/components/public/SplitPanel.tsx @@ -167,7 +167,7 @@ export default function SplitPanel({ @@ -238,7 +238,7 @@ export default function SplitPanel({ diff --git a/src/components/public/SuggestionCarousel.tsx b/src/components/public/SuggestionCarousel.tsx index d8bc926..f13e7f2 100644 --- a/src/components/public/SuggestionCarousel.tsx +++ b/src/components/public/SuggestionCarousel.tsx @@ -62,10 +62,11 @@ export default function SuggestionCarousel({ {pickText(p.name, locale)} - ${p.price.toFixed(2)} + ${p.price.toFixed(2)}