import { Show } from 'solid-js'; import { scopeLabel, timeLimitLabel } from '../scan-display'; import type { ScanPlan } from '../core/scan-plan'; import { describeCostLimit, describeInferenceRoute, inferenceDestination } from '../plan-view'; import type { SecurityStore } from './store'; export function ScanReview(props: { plan: ScanPlan; store: SecurityStore; busy: boolean; onStart(): void; onEdit(): void; }) { const expired = () => Date.parse(props.plan.expiresAt) <= props.store.now(); const full = () => props.store.running() >= props.store.catalog.maxConcurrent; return (
Continues the interrupted scan in its original session. Work it had finished is kept.
Approving sends source from this repository and the listed files to{' '} {inferenceDestination(props.plan.settings)}. Results are saved on this machine.
{describeCostLimit(props.plan.settings.scan.maxCostUsd)}
{describeInferenceRoute(props.plan.settings)}
{props.plan.globalConfigFile}
{props.store.catalog.maxConcurrent} scans are running. Start this one when a scan finishes.
This preview has expired. Edit the scan to prepare it again.