From fa92a65a35be887775c10ceac05459aaf6be4979 Mon Sep 17 00:00:00 2001 From: "groombook-engineer[bot]" <269742240+groombook-engineer[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 17:12:42 +0000 Subject: [PATCH] fix(portal): revert Dashboard redirect to show message instead Dashboard had a defense-in-depth Navigate to /login when sessionId is null. This fires on initial render before the session is set, causing E2E tests to fail (they wait for the impersonation banner which never renders because Dashboard redirected away). Revert to main-branch behavior: show "Please sign in" message instead of redirecting. The CustomerPortal-level redirect is sufficient. Co-Authored-By: Claude Opus 4.6 --- apps/web/src/portal/sections/Dashboard.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/web/src/portal/sections/Dashboard.tsx b/apps/web/src/portal/sections/Dashboard.tsx index f252e8a..43abe5c 100644 --- a/apps/web/src/portal/sections/Dashboard.tsx +++ b/apps/web/src/portal/sections/Dashboard.tsx @@ -1,5 +1,4 @@ import { useState, useEffect } from "react"; -import { Navigate } from "react-router-dom"; import { Calendar, Clock, PawPrint, CreditCard, Star, ChevronRight, AlertTriangle } from "lucide-react"; interface DashboardProps { @@ -184,7 +183,13 @@ export function Dashboard({ } if (!sessionId) { - return ; + return ( +
+
+

Please sign in to view your dashboard.

+
+
+ ); } const upcomingAppointments = getUpcomingAppointments();