From 5d140906c3fbd592049cc344c86bad24aaf1b8f2 Mon Sep 17 00:00:00 2001 From: Abhishek Dhatrak Date: Wed, 14 Jan 2026 00:47:40 +0530 Subject: [PATCH 1/8] Fix matchmaking UI stuck in searching state after page refresh --- frontend/src/components/Matchmaking.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/components/Matchmaking.tsx b/frontend/src/components/Matchmaking.tsx index aa7f4b5..ac3e255 100644 --- a/frontend/src/components/Matchmaking.tsx +++ b/frontend/src/components/Matchmaking.tsx @@ -24,6 +24,8 @@ interface MatchmakingMessage { error?: string; } + + const Matchmaking: React.FC = () => { const [pool, setPool] = useState([]); const [isConnected, setIsConnected] = useState(false); @@ -33,6 +35,13 @@ const Matchmaking: React.FC = () => { const wsRef = useRef(null); const navigate = useNavigate(); + // Reset matchmaking UI state on page refresh + useEffect(() => { + setIsInPool(false); + setWaitTime(0); + }, []); + + useEffect(() => { // If still loading, wait if (isLoading) { From 79e4423d09e1ab49821ed9be3e70ccb0f648c5bc Mon Sep 17 00:00:00 2001 From: Abhishek Dhatrak Date: Fri, 16 Jan 2026 23:03:40 +0530 Subject: [PATCH 2/8] fix(ui): make mobile drawer and nav items theme-aware --- frontend/src/components/Header.tsx | 37 +++++++++++++++++++----------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index ea41336..5b1900c 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -57,21 +57,26 @@ function Header() { return ( <> -
-
{getBreadcrumbs()}
+
+
+ {getBreadcrumbs()} +
+
+ User avatar +
+