/** * OverviewView - Multi-project dashboard showing status across all projects * * Provides a unified view of all projects with active features, running agents, * recent completions, and alerts. Quick navigation to any project or feature. */ import { useMultiProjectStatus } from '@/hooks/use-multi-project-status'; import { isElectron } from '@/lib/electron'; import { isMac } from '@/lib/utils'; import { Spinner } from '@/components/ui/spinner'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { ProjectStatusCard } from './overview/project-status-card'; import { RecentActivityFeed } from './overview/recent-activity-feed'; import { RunningAgentsPanel } from './overview/running-agents-panel'; import { LayoutDashboard, RefreshCw, Folder, Activity, CheckCircle2, XCircle, Clock, Bot, Bell, } from 'lucide-react'; export function OverviewView() { const { overview, isLoading, error, refresh } = useMultiProjectStatus(15000); // Refresh every 15s return (
{overview ? `${overview.aggregate.projectCounts.total} projects` : 'Loading...'}
Loading project overview...
{error}
{overview.aggregate.projectCounts.total}
Projects
{overview.aggregate.featureCounts.running}
Running
{overview.aggregate.featureCounts.pending}
Pending
{overview.aggregate.featureCounts.completed}
Completed
{overview.aggregate.featureCounts.failed}
Failed
{overview.aggregate.projectsWithAutoModeRunning}
Auto-mode
Create or open a project to get started
Use the sidebar to create or open a project