diff --git a/src/pages/Clients.tsx b/src/pages/Clients.tsx index af4b47b..463d3e5 100644 --- a/src/pages/Clients.tsx +++ b/src/pages/Clients.tsx @@ -25,6 +25,8 @@ interface PetForm { cutStyle: string; shampooPreference: string; specialCareNotes: string; + coatType: string; + sizeCategory: string; } interface VisitLogForm { @@ -38,6 +40,7 @@ const EMPTY_CLIENT: ClientForm = { name: "", email: "", phone: "", address: "", const EMPTY_PET: PetForm = { name: "", species: "Dog", breed: "", weightStr: "", dob: "", healthAlerts: "", groomingNotes: "", cutStyle: "", shampooPreference: "", specialCareNotes: "", + coatType: "", sizeCategory: "", }; const EMPTY_VISIT_LOG: VisitLogForm = { cutStyle: "", productsUsed: "", notes: "", groomedAt: "" }; @@ -209,6 +212,8 @@ export function ClientsPage() { cutStyle: p.cutStyle ?? "", shampooPreference: p.shampooPreference ?? "", specialCareNotes: p.specialCareNotes ?? "", + coatType: p.coatType ?? "", + sizeCategory: p.petSizeCategory ?? "", }); setPetFormError(null); setShowPetForm(true); @@ -315,6 +320,8 @@ export function ClientsPage() { cutStyle: petForm.cutStyle || undefined, shampooPreference: petForm.shampooPreference || undefined, specialCareNotes: petForm.specialCareNotes || undefined, + coatType: petForm.coatType || undefined, + petSizeCategory: petForm.sizeCategory || undefined, }; const res = editingPet ? await fetch(`/api/pets/${editingPet.id}`, { method: "PATCH", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) }) @@ -690,6 +697,34 @@ export function ClientsPage() { setPetForm((f) => ({ ...f, breed: e.target.value }))} style={inputStyle} /> + + + + + + setPetForm((f) => ({ ...f, weightStr: e.target.value }))} style={inputStyle} />