diff --git a/dashboard/index.html b/dashboard/index.html index 26c4482..f83a7d8 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -64,7 +64,7 @@
File manifest hash
—
-
Rule status
—
+
Rule result
—
Report generated
—
@@ -162,7 +162,9 @@ $("evidence-status").textContent = report.evidenceIntegration.status; $("evidence-sub").textContent = report.evidenceIntegration.issues.length + " integration issues"; $("rule-id").textContent = report.deterministicRule.id; - $("rule-status").textContent = report.deterministicRule.status; + $("rule-status").textContent = report.deterministicRule.findingCount === 0 + ? "No candidate" + : "Candidate detected"; $("source-hash").textContent = report.snapshot.sourceHash; $("manifest-hash").textContent = report.snapshot.fileManifestHash; $("generated-at").textContent = new Date(payload.generatedAt).toLocaleString(); diff --git a/tests/dashboard/dashboard-server.test.ts b/tests/dashboard/dashboard-server.test.ts index 7087b5e..0abac20 100644 --- a/tests/dashboard/dashboard-server.test.ts +++ b/tests/dashboard/dashboard-server.test.ts @@ -115,6 +115,10 @@ describe("local dashboard HTTP smoke test", () => { expect(page).toContain("Presented as evidence matched"); expect(page).toContain("Not presented as evidence matched"); expect(page).toContain("This rule emitted no candidate — not a safety proof."); + expect(page).toContain("Rule result"); + expect(page).toContain('report.deterministicRule.findingCount === 0'); + expect(page).toContain('"No candidate"'); + expect(page).toContain('"Candidate detected"'); expect(page).toContain("SentinelReview · Local deterministic preview"); expect(page).toContain("badge(finding.severity)"); expect(page).toContain('id="execution-disclosure"');