From cb2aea68ae38e8834b505020cce7a05384b1cece Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Wed, 22 Apr 2026 04:08:54 +0000 Subject: [PATCH] Merge L3 parity status into L3 summary card in dashboard Move the pass/xfail/skip breakdown from a separate card into the L3 level card as an annotation, consistent with L4/L5 cards that show skipped/awaiting-data counts inline. This change was lost in PR #183 when a later commit on the branch accidentally reverted the dashboard template. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Justin Chu --- scripts/templates/dashboard.html.j2 | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/scripts/templates/dashboard.html.j2 b/scripts/templates/dashboard.html.j2 index 051d9b83f..8dc307b70 100644 --- a/scripts/templates/dashboard.html.j2 +++ b/scripts/templates/dashboard.html.j2 @@ -384,9 +384,17 @@ const LEVEL_DESCRIPTIONS = { bar.innerHTML = totalCard; for (let i = 0; i <= 5; i++) { const count = SUMMARY.by_level[i] || 0; - // Annotate L4 and L5 cards with skipped + awaiting-data counts so the full - // picture is visible without a separate redundant card. + // Annotate level cards with status breakdowns. let annotation = ''; + if (i === 3) { + // L3: show pass/xfail/skip parity status breakdown + const l3s = SUMMARY.l3_status_counts || {}; + const parts = []; + if (l3s.pass) parts.push(`${l3s.pass} pass`); + if (l3s.xfail) parts.push(`${l3s.xfail} xfail`); + if (l3s.skip) parts.push(`${l3s.skip} skip`); + if (parts.length) annotation = `
${parts.join(' \u00B7 ')}
`; + } if (i === 4 || i === 5) { const skipped = i === 4 ? (SUMMARY.l4_skipped_count || 0) : (SUMMARY.l5_skipped_count || 0); const caseKey = i === 4 ? 'l4_case' : 'l5_case'; @@ -403,19 +411,7 @@ const LEVEL_DESCRIPTIONS = { ${annotation} `; } - // L3 parity breakdown - const l3s = SUMMARY.l3_status_counts || {}; - if (l3s.pass || l3s.xfail || l3s.skip) { - bar.innerHTML += `
-
- ${l3s.pass || 0}\u2713 - ${l3s.xfail || 0}\u26A0 - ${l3s.skip || 0}\u23ED -
-
L3 Parity Status
-
`; - } - // (L4/L5 skipped counts are shown as annotations on the L4/L5 level cards above.) + // (L3 parity status and L4/L5 skipped counts are shown as annotations on their level cards above.) })(); // --- Category filter ---