import React from 'react'; export default function ReviewSummary({metrics}) { const score = metrics.match_support_percent; return

{metrics.status_label}

Alignment accuracy: not independently measured

Alignment mode: {metrics.engine === 'learned_experimental' ? 'Learned iris alignment' : metrics.engine === 'classical' ? 'Standard' : 'Not recorded'}.

{metrics.score_description}

{metrics.reason &&

{metrics.reason}

} {metrics.evaluation &&

Automatic consistency

{metrics.evaluation.description}

Patch-verified matches: {metrics.verified_matches} / {metrics.raw_matches ?? metrics.matches}. Only this subset is evaluated; it is not the percentage of the iris aligned.

{metrics.evaluation.within_px_percent ? {Object.entries(metrics.evaluation.within_px_percent).map(([px,percent])=>)}
Pixel toleranceHeld-out matches within tolerance
{px} px{percent.toFixed(2)}%
:

{metrics.evaluation.reason}

}
}
Global match support (not accuracy)
{score == null ? 'Not measurable' : `${score.toFixed(1)}%`}
Consistent / proposed matches
{metrics.inliers ?? '—'} / {metrics.matches ?? 0}
{metrics.fit_error_px != null && <>
Median fitting error (not independent accuracy)
{metrics.fit_error_px.toFixed(2)} px
}
Processing time
{metrics.runtime_seconds.toFixed(2)} s
Output area including second-image pixels
{(metrics.blended_fraction * 100).toFixed(1)}%

{metrics.warning}

Next steps

Download review details
; }