From fe327546490a7c8efb2382084be26330caa311e2 Mon Sep 17 00:00:00 2001 From: AZ0228 <53315675+AZ0228@users.noreply.github.com> Date: Thu, 7 May 2026 14:28:43 -0400 Subject: [PATCH 01/39] MER-190 adding focused event dashboard --- .../src/components/Dashboard/Dashboard.jsx | 6 +- .../src/components/Dashboard/Dashboard.scss | 12 + frontend/src/hooks/useDashboardOverlay.js | 104 ++- .../CommunicationsTab/CommunicationsTab.scss | 2 - .../EventDashboard/EventAnalyticsDetail.jsx | 2 +- .../EventDashboard/EventDashboardFocused.jsx | 762 ++++++++++++++++++ .../EventDashboard/EventDashboardFocused.scss | 537 ++++++++++++ .../EventDashboardFocusedHeader.jsx | 452 +++++++++++ .../EventDashboardFocusedHeader.scss | 591 ++++++++++++++ .../EventJobsManager/JobsManager.scss | 1 - frontend/src/utils/overlayRegistry.js | 99 ++- 11 files changed, 2538 insertions(+), 30 deletions(-) create mode 100644 frontend/src/pages/ClubDash/EventsManagement/components/EventDashboard/EventDashboardFocused.jsx create mode 100644 frontend/src/pages/ClubDash/EventsManagement/components/EventDashboard/EventDashboardFocused.scss create mode 100644 frontend/src/pages/ClubDash/EventsManagement/components/EventDashboard/EventDashboardFocusedHeader.jsx create mode 100644 frontend/src/pages/ClubDash/EventsManagement/components/EventDashboard/EventDashboardFocusedHeader.scss diff --git a/frontend/src/components/Dashboard/Dashboard.jsx b/frontend/src/components/Dashboard/Dashboard.jsx index f8301610..6b59f94e 100644 --- a/frontend/src/components/Dashboard/Dashboard.jsx +++ b/frontend/src/components/Dashboard/Dashboard.jsx @@ -50,6 +50,8 @@ function Dashboard({ const isRestoringOverlayRef = useRef(false); const urlHadOverlayParamsRef = useRef(false); const overlayContentRef = useRef(overlayContent); + const overlayClassName = overlayContent?.props?.className || ''; + const isViewportOverlay = overlayClassName.includes('full-width-event-dashboard-focused'); // Wrapper so closing the overlay also clears persist overlay params from the URL const handleSetOverlayContent = useCallback((content) => { @@ -758,7 +760,7 @@ function Dashboard({ } -
Loading focused dashboard...
+Failed to load focused dashboard
+ ++ {formatCollaboratorNames(collaborationAcceptBanner.names)} accepted your collaboration invite. +
+{section.label}
+Warning: this action is destructive and cannot be undone.
+This will permanently delete {dashboardData?.event?.name || 'this event'}.
+