diff --git a/frontend/src/components/dashboard/Dashboard.tsx b/frontend/src/components/dashboard/Dashboard.tsx index 5c130ab..6c166cf 100644 --- a/frontend/src/components/dashboard/Dashboard.tsx +++ b/frontend/src/components/dashboard/Dashboard.tsx @@ -31,8 +31,6 @@ import { PendingApprovals } from './PendingApprovals'; import { EmptyState } from './EmptyState'; import { useDashboard, type PendingApproval } from '@/lib/api/hooks/useDashboard'; import { useAuth } from '@/lib/auth/AuthContext'; -import { useProjectEvents } from '@/lib/hooks/useProjectEvents'; -import { useProjectEventsFromStore } from '@/lib/stores/eventStore'; export interface DashboardProps { /** Additional CSS classes */ @@ -43,13 +41,6 @@ export function Dashboard({ className }: DashboardProps) { const { user } = useAuth(); const { data, isLoading, error } = useDashboard(); - // Real-time events - using a generic project ID for dashboard-wide events - // In production, this would be a dedicated dashboard events endpoint - const { connectionState } = useProjectEvents('dashboard', { - autoConnect: true, - }); - const events = useProjectEventsFromStore('dashboard'); - // Get user's first name for empty state const firstName = user?.first_name || user?.email?.split('@')[0] || 'there'; @@ -108,11 +99,13 @@ export function Dashboard({ className }: DashboardProps) { {/* Activity Feed Sidebar */} + {/* TODO: Enable when global activity SSE endpoint is implemented */} + {/* Currently disabled - there's no dashboard-wide SSE endpoint */}