+ {/* Overall status tally */}
{STATUS_ORDER.filter((s) => totals[s] > 0).map((status) => {
const badge = STATUS_BADGE[status]
@@ -133,52 +190,89 @@ const VerificationResultsProjection: FC = ({
})}
- {/* Per-status sections */}
- {STATUS_ORDER.map((status) => {
- const results = grouped.get(status)
- if (!results || results.length === 0) return null
- return (
-
- )
- })}
+ {/* Per-category accordions */}
+ {groups.map((group) => (
+
+ ))}
)
}
-interface StatusSectionProps {
- status: Status
- results: EnvelopeVerificationResult[]
+interface CategorySectionProps {
+ group: CategoryGroup
rulesById: Map