Skip to content

Commit 975b4c9

Browse files
committed
fix(app): show evidence block for failed automation runs
The automation-run detail card in Compliance → Task → Integration Checks rendered a "View Evidence" expandable JSON tree for every *passing* result but never for a *failing* one — even though the backend saves the same `evidence` payload for both and the API returns it identically. After the Dependabot severity-gating change (#2643), failing runs surface useful context in their evidence (open_by_severity breakdown, checked_at, etc.) that users need to understand *why* the check failed. Hiding it behind a UI inconsistency defeats that. Mirror the passing block's `details > EvidenceJsonView` pattern onto the findings map so both states render identically.
1 parent d75757c commit 975b4c9

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

apps/app/src/app/(app)/[orgId]/tasks/[taskId]/components/TaskIntegrationChecks.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,18 @@ function CheckRunItem({
10461046
)}
10471047
</div>
10481048
</div>
1049+
{finding.evidence && Object.keys(finding.evidence).length > 0 && (
1050+
<details className="text-xs">
1051+
<summary className="text-muted-foreground cursor-pointer">
1052+
View Evidence
1053+
</summary>
1054+
<EvidenceJsonView
1055+
evidence={finding.evidence}
1056+
organizationName={organizationName}
1057+
automationName={run.checkName}
1058+
/>
1059+
</details>
1060+
)}
10491061
</div>
10501062
))}
10511063
{findings.length > 3 && (

0 commit comments

Comments
 (0)