stemedb/applications/stemedb-dashboard/src/components/scans/scans-list.tsx
jordan c849627620 feat: add Aphoria dashboard scans and corpus UI
- Add scans panel with finding details, verdict badges, and filters
- Add corpus panel for managing knowledge sources
- Add scan cache for API state management
- Update sidebar navigation with new routes
- Extend API types for scans and corpus endpoints
- Add .aphoria/ to gitignore (contains project keys)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-07 15:56:49 -07:00

24 lines
510 B
TypeScript

"use client";
import type { ScanListItem, FindingDto } from "@/lib/api";
import { ScanRow } from "./scan-row";
interface ScansListProps {
scans: ScanListItem[];
onFindingClick?: (finding: FindingDto) => void;
}
export function ScansList({ scans, onFindingClick }: ScansListProps) {
return (
<div className="space-y-3">
{scans.map((scan) => (
<ScanRow
key={scan.scan_id}
scan={scan}
onFindingClick={onFindingClick}
/>
))}
</div>
);
}