// ======================================== // CodexLens Overview Tab // ======================================== // Overview status display and quick actions for CodexLens import { useIntl } from 'react-intl'; import { Database, FileText, CheckCircle2, XCircle, Zap, } from 'lucide-react'; import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/Card'; import { cn } from '@/lib/utils'; import type { CodexLensVenvStatus, CodexLensConfig } from '@/lib/api'; import { IndexOperations } from './IndexOperations'; import { FileWatcherCard } from './FileWatcherCard'; import { LspServerCard } from './LspServerCard'; interface OverviewTabProps { installed: boolean; status?: CodexLensVenvStatus; config?: CodexLensConfig; isLoading: boolean; onRefresh?: () => void; } export function OverviewTab({ installed, status, config, isLoading, onRefresh }: OverviewTabProps) { const { formatMessage } = useIntl(); if (isLoading) { return (
{formatMessage({ id: 'codexlens.overview.notInstalled.message' })}
{formatMessage({ id: 'codexlens.overview.status.installation' })}
{isReady ? formatMessage({ id: 'codexlens.overview.status.ready' }) : formatMessage({ id: 'codexlens.overview.status.notReady' }) }
{formatMessage({ id: 'codexlens.overview.status.version' })}
{version}
{formatMessage({ id: 'codexlens.overview.status.indexPath' })}
{indexDir}
{formatMessage({ id: 'codexlens.overview.status.indexCount' })}
{indexCount}