From 29bf48baef9579242fbfc66defe1273164a321cc Mon Sep 17 00:00:00 2001 From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com> Date: Sat, 12 Apr 2025 01:15:21 +0000 Subject: [PATCH] Enhance customer settings page with additional fields Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/a9a84ea3-8ffc-409c-8483-e1a78bdd722a.jpg --- client/src/pages/settings.tsx | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/client/src/pages/settings.tsx b/client/src/pages/settings.tsx index 5805496..e4a5ee0 100644 --- a/client/src/pages/settings.tsx +++ b/client/src/pages/settings.tsx @@ -154,6 +154,20 @@ export default function SettingsPage() { resolver: zodResolver(customerFormSchema), defaultValues: { name: currentCustomer?.name || "", + description: currentCustomer?.description || "", + email: currentCustomer?.email || "", + phone: currentCustomer?.phone || "", + address: currentCustomer?.address || "", + city: currentCustomer?.city || "", + state: currentCustomer?.state || "", + zipCode: currentCustomer?.zipCode || "", + country: currentCustomer?.country || "", + website: currentCustomer?.website || "", + industry: currentCustomer?.industry || "", + notes: currentCustomer?.notes || "", + accountManager: currentCustomer?.accountManager || "", + billingEmail: currentCustomer?.billingEmail || "", + billingAddress: currentCustomer?.billingAddress || "", isActive: currentCustomer?.isActive, }, }); @@ -183,6 +197,20 @@ export default function SettingsPage() { if (currentCustomer) { customerForm.reset({ name: currentCustomer.name, + description: currentCustomer.description || "", + email: currentCustomer.email || "", + phone: currentCustomer.phone || "", + address: currentCustomer.address || "", + city: currentCustomer.city || "", + state: currentCustomer.state || "", + zipCode: currentCustomer.zipCode || "", + country: currentCustomer.country || "", + website: currentCustomer.website || "", + industry: currentCustomer.industry || "", + notes: currentCustomer.notes || "", + accountManager: currentCustomer.accountManager || "", + billingEmail: currentCustomer.billingEmail || "", + billingAddress: currentCustomer.billingAddress || "", isActive: currentCustomer.isActive, }); } @@ -319,7 +347,7 @@ export default function SettingsPage() { return (