From 927f03a8b7a75ec6673894565031b110c0bbfe96 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 18 Jun 2026 21:59:16 -0400 Subject: [PATCH] x --- apps/admin/src/pages/SystemSettingsPage.tsx | 16 +++++++ .../migration.sql | 2 + apps/backend/prisma/schema.prisma | 1 + apps/backend/src/routes/settings.ts | 1 + apps/mcp-server/README.md | 6 +++ apps/mcp-server/index.ts | 42 +++++++++++++++++++ apps/spa/src/components/Footer.tsx | 5 ++- apps/spa/src/components/Navbar.tsx | 15 ++++++- apps/website/src/app/layout.tsx | 2 +- apps/website/src/components/Footer.tsx | 7 ++-- apps/website/src/components/Navbar.tsx | 7 +++- packages/types/index.ts | 1 + 12 files changed, 95 insertions(+), 10 deletions(-) create mode 100644 apps/backend/prisma/migrations/20260619005329_add_brand_name_to_store_settings/migration.sql diff --git a/apps/admin/src/pages/SystemSettingsPage.tsx b/apps/admin/src/pages/SystemSettingsPage.tsx index 9fec061..eee5360 100644 --- a/apps/admin/src/pages/SystemSettingsPage.tsx +++ b/apps/admin/src/pages/SystemSettingsPage.tsx @@ -7,6 +7,7 @@ export default function SystemSettingsPage() { const [saving, setSaving] = useState(false) // Form State + const [brandName, setBrandName] = useState('') const [shippingFee, setShippingFee] = useState('') const [bankName, setBankName] = useState('') const [bankAccountName, setBankAccountName] = useState('') @@ -29,6 +30,7 @@ export default function SystemSettingsPage() { fetch(`${API_BASE}/settings`) .then(r => r.json()) .then((data: StoreSettings) => { + setBrandName(data.brandName || 'HomAroma') setShippingFee(data.shippingFee.toString()) setBankName(data.bankName || '') setBankAccountName(data.bankAccountName || '') @@ -58,6 +60,7 @@ export default function SystemSettingsPage() { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ + brandName, shippingFee: parseFloat(shippingFee) || 0, bankName, bankAccountName, @@ -208,6 +211,19 @@ export default function SystemSettingsPage() {
+
+ + setBrandName(e.target.value)} + className="admin-input w-full max-w-sm" + placeholder="HomAroma" + /> +

This name is used by the website and spa header/footer as the brand display name.

+
+