From f6aad4c5e9958073b92cbe17bc3f85a2da43f154 Mon Sep 17 00:00:00 2001 From: The Dogfather Date: Sat, 28 Mar 2026 03:47:54 +0000 Subject: [PATCH] fix(portal): disable non-functional stub buttons in customer portal Reschedule, Cancel, Add Notes, Edit Pet, Archive Pet, and Add New Pet buttons in the customer portal were UI stubs with no click handlers. Clicking them did nothing, confusing users. Mark all as disabled with "coming soon" tooltips and muted styling until the underlying features (portal reschedule endpoint, pet CRUD portal endpoints) are implemented. Fixes GRO-166, GRO-167 Co-Authored-By: Paperclip --- .../src/portal/sections/AccountSettings.tsx | 18 +++++++++++++++--- apps/web/src/portal/sections/Appointments.tsx | 6 +++++- apps/web/src/portal/sections/Dashboard.tsx | 18 +++++++++++++++--- apps/web/src/portal/sections/PetProfiles.tsx | 4 ++-- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/apps/web/src/portal/sections/AccountSettings.tsx b/apps/web/src/portal/sections/AccountSettings.tsx index 2377023..8b5e9a3 100644 --- a/apps/web/src/portal/sections/AccountSettings.tsx +++ b/apps/web/src/portal/sections/AccountSettings.tsx @@ -125,10 +125,18 @@ function ManagePets({ readOnly }: { readOnly: boolean }) { {!readOnly && (
- -
@@ -136,7 +144,11 @@ function ManagePets({ readOnly }: { readOnly: boolean }) { ))} {!readOnly && ( - diff --git a/apps/web/src/portal/sections/Appointments.tsx b/apps/web/src/portal/sections/Appointments.tsx index 04c2bc1..4277bfc 100644 --- a/apps/web/src/portal/sections/Appointments.tsx +++ b/apps/web/src/portal/sections/Appointments.tsx @@ -176,7 +176,11 @@ function AppointmentCard({ )} {appt.status !== "completed" && appt.status !== "cancelled" && !readOnly && (
- diff --git a/apps/web/src/portal/sections/Dashboard.tsx b/apps/web/src/portal/sections/Dashboard.tsx index 2f82cc7..289d1c7 100644 --- a/apps/web/src/portal/sections/Dashboard.tsx +++ b/apps/web/src/portal/sections/Dashboard.tsx @@ -77,13 +77,25 @@ export function Dashboard({ onNavigate, readOnly }: Props) {
{!readOnly && (
- - -
diff --git a/apps/web/src/portal/sections/PetProfiles.tsx b/apps/web/src/portal/sections/PetProfiles.tsx index 3f10d20..5496534 100644 --- a/apps/web/src/portal/sections/PetProfiles.tsx +++ b/apps/web/src/portal/sections/PetProfiles.tsx @@ -54,8 +54,8 @@ export function PetProfiles({ readOnly }: Props) {

Born {new Date(pet.dob).toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric" })}

{!readOnly && ( - )} -- 2.52.0