From 49b8e94706dd799f86f911dc822a3e0b2a32cedb Mon Sep 17 00:00:00 2001 From: Ravi Gulhane <> Date: Tue, 13 Oct 2026 16:57:48 +0530 Subject: [PATCH] Changes --- src/components/PhotoWallPresentChrome.tsx | 114 ++++- src/components/photoWall/MarqueePhotoWall.tsx | 7 +- src/components/photoWall/MarqueeRow.tsx | 32 +- src/components/photoWall/PhotoSpotlight.tsx | 18 +- .../photoWall/SpotlightPhotoFrame.tsx | 85 ---- src/hooks/useEventTheme.ts | 9 +- src/index.css | 41 +- src/lib/api.ts | 43 +- src/lib/games.ts | 47 +- src/lib/participantCookie.ts | 66 +++ src/lib/useActivityProfileGate.ts | 55 +++ src/pages/AiAvatarPage.tsx | 52 +- src/pages/GameQuizPage.tsx | 237 ++++++++- src/pages/MatchUpPage.tsx | 459 ++++++++++++++++-- src/pages/PhotoWallPresentPage.tsx | 375 ++++++++++++-- src/pages/PhotoWallUploadPage.tsx | 46 +- src/pages/SocialSharePage.tsx | 52 +- src/pages/SpotlightPresentPage.tsx | 6 +- src/vite-env.d.ts | 1 + 19 files changed, 1371 insertions(+), 374 deletions(-) delete mode 100644 src/components/photoWall/SpotlightPhotoFrame.tsx create mode 100644 src/lib/participantCookie.ts create mode 100644 src/lib/useActivityProfileGate.ts diff --git a/src/components/PhotoWallPresentChrome.tsx b/src/components/PhotoWallPresentChrome.tsx index f1de469..c0ba9ad 100644 --- a/src/components/PhotoWallPresentChrome.tsx +++ b/src/components/PhotoWallPresentChrome.tsx @@ -47,6 +47,15 @@ export function PhotoWallPresentChrome({ spotlightSources, onSpotlightSourceChange, onAllSpotlightSourcesChange, + spotlightLists, + selectedSpotlightListId = null, + onSpotlightListChange, + onSpotlightReset, + sourcesViewSelected = true, + spotlightQuizzes, + selectedSpotlightQuizId = null, + onSpotlightQuizChange, + pageTitle = "", }: { event?: PhotoWallPublicEvent | null; eventHeader?: PhotoWallEventHeaderDisplay | null; @@ -57,6 +66,15 @@ export function PhotoWallPresentChrome({ spotlightSources?: Record; onSpotlightSourceChange?: (source: SpotlightSource, enabled: boolean) => void; onAllSpotlightSourcesChange?: (enabled: boolean) => void; + spotlightLists?: { id: string; name: string }[]; + selectedSpotlightListId?: string | null; + onSpotlightListChange?: (id: string | null) => void; + onSpotlightReset?: () => void; + sourcesViewSelected?: boolean; + spotlightQuizzes?: { id: string; name: string }[]; + selectedSpotlightQuizId?: string | null; + onSpotlightQuizChange?: (id: string) => void; + pageTitle?: string; }) { const [menuOpen, setMenuOpen] = useState(false); const [menuMounted, setMenuMounted] = useState(false); @@ -122,8 +140,9 @@ export function PhotoWallPresentChrome({ return ( <> -
-
+
+
+
{flags.showLogo ? ( logoSrc ? ( @@ -172,19 +191,24 @@ export function PhotoWallPresentChrome({
) : null} +
+
- - + {pageTitle.trim() ? ( +

+ {pageTitle.trim()} +

+ ) : null}
{flags.showBanner ? ( @@ -223,7 +247,7 @@ export function PhotoWallPresentChrome({ -