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 (

{props.plan.resume ? 'Resume scan' : 'Review scan'}

Continues the interrupted scan in its original session. Work it had finished is kept.

Repository
{props.plan.repository}
Scope
{scopeLabel(props.plan)}
Depth
{props.plan.settings.scan.mode === 'deep' ? 'Deep' : 'Standard'}
Time limit
{timeLimitLabel(props.plan.settings.scan)}
Focus
{props.plan.scanPrompt}
Context files
{props.plan.contextFiles.map((file) => file.path).join(', ')}
Model
{props.plan.settings.codex.model} · {props.plan.settings.codex.reasoningEffort} reasoning {props.plan.settings.codex.daybreak ? ' · Daybreak' : ''}
Mock scan: synthetic results, no model calls.

} >

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)}

Route and configuration

{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.

); }