From c95a501974362e64df9786dac1ad257b0370a3c7 Mon Sep 17 00:00:00 2001 From: Arunavo Ray Date: Mon, 7 Jul 2025 23:12:26 +0530 Subject: [PATCH] Removed some console.logs --- src/components/dashboard/Dashboard.tsx | 2 -- src/components/layout/Sidebar.tsx | 1 - src/components/organizations/Organization.tsx | 2 -- src/components/repositories/Repository.tsx | 2 -- src/hooks/useAuth.ts | 3 --- src/hooks/useSEE.ts | 1 - src/hooks/useSyncRepo.ts | 2 -- 7 files changed, 13 deletions(-) diff --git a/src/components/dashboard/Dashboard.tsx b/src/components/dashboard/Dashboard.tsx index 2cc9e67..d4674ca 100644 --- a/src/components/dashboard/Dashboard.tsx +++ b/src/components/dashboard/Dashboard.tsx @@ -57,8 +57,6 @@ export function Dashboard() { } setActivities((prevActivities) => [data, ...prevActivities]); - - console.log("Received new log:", data); }, []); // Use the SSE hook diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index 220e4fd..bc7f39f 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -18,7 +18,6 @@ export function Sidebar({ className, onNavigate, isOpen, onClose }: SidebarProps // Hydration happens here const path = window.location.pathname; setCurrentPath(path); - console.log("Hydrated path:", path); // Should log now }, []); // Listen for URL changes (browser back/forward) diff --git a/src/components/organizations/Organization.tsx b/src/components/organizations/Organization.tsx index 575d553..96a61c4 100644 --- a/src/components/organizations/Organization.tsx +++ b/src/components/organizations/Organization.tsx @@ -64,8 +64,6 @@ export function Organization() { ) ); } - - console.log("Received new log:", data); }, []); // Use the SSE hook diff --git a/src/components/repositories/Repository.tsx b/src/components/repositories/Repository.tsx index 22e746c..5ef3102 100644 --- a/src/components/repositories/Repository.tsx +++ b/src/components/repositories/Repository.tsx @@ -81,8 +81,6 @@ export default function Repository() { ) ); } - - console.log("Received new log:", data); }, []); // Use the SSE hook diff --git a/src/hooks/useAuth.ts b/src/hooks/useAuth.ts index 9c0eb8d..01b9432 100644 --- a/src/hooks/useAuth.ts +++ b/src/hooks/useAuth.ts @@ -38,9 +38,6 @@ export function AuthProvider({ children }: { children: React.ReactNode }) { // setIsLoading(true); try { const user = await authApi.getCurrentUser(); - - console.log("User data refreshed:", user); - setUser(user); } catch (err: any) { setUser(null); diff --git a/src/hooks/useSEE.ts b/src/hooks/useSEE.ts index 994ae1c..516981d 100644 --- a/src/hooks/useSEE.ts +++ b/src/hooks/useSEE.ts @@ -64,7 +64,6 @@ export const useSSE = ({ eventSource.onopen = () => { setConnected(true); setReconnectCount(0); // Reset reconnect counter on successful connection - console.log(`Connected to SSE for user: ${userId}`); }; eventSource.onerror = (error) => { diff --git a/src/hooks/useSyncRepo.ts b/src/hooks/useSyncRepo.ts index 7d78a2f..3042c86 100644 --- a/src/hooks/useSyncRepo.ts +++ b/src/hooks/useSyncRepo.ts @@ -51,7 +51,6 @@ export function useRepoSync({ const sync = async () => { try { - console.log("Attempting to sync..."); const response = await fetch("/api/job/schedule-sync-repo", { method: "POST", headers: { @@ -68,7 +67,6 @@ export function useRepoSync({ await refreshUser(); // refresh user data to get latest sync times. this can be taken from the schedule-sync-repo response but might not be reliable in cases of errors const result = await response.json(); - console.log("Sync successful:", result); return result; } catch (error) { console.error("Sync failed:", error);