From 4a3ed77b004e1837b422076b770d41f18d2bc5e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 24 Mar 2026 19:17:42 +0100 Subject: [PATCH] feat: show ignore reason tooltip on IGNORE test results Add ignoreReason field to SingleResultOption type and display it as a hover tooltip with a ? indicator next to IGNORE results. Shows "(no reason specified)" when no reason is available in the data. Co-Authored-By: Claude Opus 4.6 (1M context) --- islands/ReportTable.tsx | 9 ++++++++- util/types.ts | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/islands/ReportTable.tsx b/islands/ReportTable.tsx index 99ae30e..20f2da1 100644 --- a/islands/ReportTable.tsx +++ b/islands/ReportTable.tsx @@ -359,7 +359,14 @@ function Result( return PASS; } if (result[0] === "IGNORE") { - return IGNORE; + const reason = result[2]?.ignoreReason || "(no reason specified)"; + return ( + + IGNORE + ? + + + ); } const error = result[1]; if (error) { diff --git a/util/types.ts b/util/types.ts index bfd8c5b..d1c188a 100644 --- a/util/types.ts +++ b/util/types.ts @@ -2,6 +2,7 @@ type SingleResultOption = { usesNodeTest?: boolean; + ignoreReason?: string; }; export type SingleResult =