- 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>
24 lines
510 B
TypeScript
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>
|
|
);
|
|
}
|