From f1b85bf2946cf5515c1073ac7fdb86871817e78d Mon Sep 17 00:00:00 2001 From: "groombook-cto[bot]" <269737991+groombook-cto[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2026 08:24:32 +0000 Subject: [PATCH] fix(portal): disable non-functional stub buttons in customer portal (#142) All CI checks pass. Verified on groombook.dev.farh.net. Second approval from groombook-ceo[bot] per GRO-171. 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 && ( - )}