Repository navigation
feat(corroborate): improve evidence dashboard UX - #1935
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe corroboration dashboard updates landing, catalog, matrix, tooltip, and mobile layouts. Renderer logic adds card/grid landing modes, shared consensus rendering, criteria normalization, fragment routing, sidebar and breadcrumb updates, result announcements, focus handling, and responsive navigation drawers. Matrix and time-series views add revised status, history, and ARIA presentation. Documentation covers navigation, URL fragments, source counting, sybil resistance, and filtering semantics. Estimated code review effort: 4 (Complex) | ~60 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/corroborate/renderer/index.html`:
- Around line 1008-1010: Update the mobile `.overview-chip` sizing rule to
target `.og-status-cell .overview-chip`, matching the specificity of the
existing status-cell rule so the narrow dimensions and padding apply in the
grid. Keep the label visibility rules unchanged.
- Line 2718: Update the time-series view navigation flow around
closeMobileNav(false) to use closeMobileNavForNavigation() instead, then move
focus to the newly opened view’s heading as openGrid() does. Preserve the
existing navigation behavior while ensuring focus remains within the destination
view for keyboard and assistive-technology users.
- Around line 1358-1371: Update fillConsensusCell to remove the unused reported
parameter and replace the aria-label on the generic consensus-fill-content span
with an sr-only element, mirroring overviewStateCell(), so the status
description remains accessible. Update every fillConsensusCell call site to
match the revised signature and ensure the reported value is rendered or
otherwise handled as intended by those callers.
- Around line 3136-3146: Update pinTipAt to disable the tooltip’s aria-live
announcement when assigning the pinned dialog state, then update hideTip to
restore the original polite live-region behavior when the tooltip is unpinned.
Preserve the existing focus and dialog attributes.
- Around line 1539-1576: Add aria-hidden="true" to the decorative twisty and
service-abbreviation spans generated in the tree group header and dashboard
header within renderTree. Keep the existing accessible text and aria-expanded
state unchanged, and apply the same treatment to the dashboard twisty span.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 142fb079-6c92-4dc6-b600-f394ace2bcb8
📒 Files selected for processing (2)
docs/user/evidence-dashboard.mdpkg/corroborate/renderer/index.html
| function fillConsensusCell(cell, state, pass, fail, reported, includeCount = true){ | ||
| const m = STATE_META[state] || STATE_META.UNTESTED; | ||
| const cnt = includeCount ? consensusCountText(state, pass, fail) : ""; | ||
| cell.classList.add("consensus-fill", m.cls); | ||
| cell.title = m.desc; | ||
|
|
||
| const content = document.createElement("span"); | ||
| content.className = "consensus-fill-content"; | ||
| content.innerHTML = | ||
| `<span class="status-label"><span class="lbl">${m.label}</span></span>` + | ||
| (cnt ? `<span class="status-count">${cnt}</span>` : ""); | ||
| content.setAttribute("aria-label", `${m.label}: ${m.desc}` + (cnt ? ` (${cnt})` : "")); | ||
| cell.appendChild(content); | ||
| } |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
aria-label on a generic <span> is not reliably exposed; and reported is now an unused parameter.
ARIA name-from-author is not permitted on elements with an implicit generic role, so the ${m.label}: ${m.desc} string on .consensus-fill-content is likely dropped by AT, leaving only the visible label/count (the plain-English desc is lost). overviewStateCell() already solves this correctly with an .sr-only node — mirror that here. Also reported is accepted but never rendered, so callers passing it (e.g. Lines 2211/2217/2647) silently get nothing.
♿ Proposed fix
-function fillConsensusCell(cell, state, pass, fail, reported, includeCount = true){
+function fillConsensusCell(cell, state, pass, fail, includeCount = true){
const m = STATE_META[state] || STATE_META.UNTESTED;
const cnt = includeCount ? consensusCountText(state, pass, fail) : "";
cell.classList.add("consensus-fill", m.cls);
cell.title = m.desc;
+ const sr = document.createElement("span");
+ sr.className = "sr-only";
+ sr.textContent = `${m.label}: ${m.desc}` + (cnt ? ` (${cnt})` : "");
+ cell.appendChild(sr);
const content = document.createElement("span");
content.className = "consensus-fill-content";
+ content.setAttribute("aria-hidden", "true");
content.innerHTML =
`<span class="status-label"><span class="lbl">${m.label}</span></span>` +
(cnt ? `<span class="status-count">${cnt}</span>` : "");
- content.setAttribute("aria-label", `${m.label}: ${m.desc}` + (cnt ? ` (${cnt})` : ""));
cell.appendChild(content);
}Update the call sites accordingly.
🧰 Tools
🪛 ast-grep (0.44.1)
[warning] 1365-1367: Avoid assigning untrusted data to innerHTML/outerHTML or document.write
Context: content.innerHTML =
<span class="status-label"><span class="lbl">${m.label}</span></span> +
(cnt ? <span class="status-count">${cnt}</span> : "")
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(inner-outer-html)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pkg/corroborate/renderer/index.html` around lines 1358 - 1371, Update
fillConsensusCell to remove the unused reported parameter and replace the
aria-label on the generic consensus-fill-content span with an sr-only element,
mirroring overviewStateCell(), so the status description remains accessible.
Update every fillConsensusCell call site to match the revised signature and
ensure the reported value is rendered or otherwise handled as intended by those
callers.
There was a problem hiding this comment.
Addressed in 6320d4a3: fillConsensusCell() now exposes the full state description through an sr-only node, marks the visual content aria-hidden, removes the unused reported parameter, and updates all callers.
| @@ -1264,33 +1562,46 @@ | |||
| note.textContent = "no results yet — awaiting first attestation"; | |||
| children.appendChild(note); | |||
| } else { | |||
| g.dashboards.forEach(d => { | |||
| g.dashboards.forEach((d, dIdx) => { | |||
| if (anyCriteria() && !dashMatchesCriteria(g, d)) return; | |||
| const dKey = `${g.name}/${d.ao}`; | |||
| const visTabs = anyCriteria() ? d.tabs.filter(t=>recipeMatchesCriteria(DATA.recipes[t.idx])).length : d.tabs.length; | |||
| const dHead = document.createElement("div"); | |||
| const dHead = document.createElement("button"); | |||
| const dashChildrenID = `tree-dash-${gIdx}-${dIdx}`; | |||
| dHead.type = "button"; | |||
| dHead.className = "tree-node tg-dash" + (collapsedDashes.has(dKey) ? " collapsed" : ""); | |||
| dHead.setAttribute("aria-expanded", String(!collapsedDashes.has(dKey))); | |||
| dHead.setAttribute("aria-controls", dashChildrenID); | |||
| dHead.dataset.dashboard = dKey; | |||
| dHead.innerHTML = `<span class="tw">▾</span><span>${esc(d.ao)}</span><span class="badge-mini">${visTabs}</span>`; | |||
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Decorative twisty/abbreviation spans in tree buttons are missing aria-hidden.
The catalog toggle (Line 2162) correctly marks its ▾ glyph aria-hidden="true", but the tree group/dashboard buttons do not, so AT announces the triangle glyph and the redundant 3-letter service abbreviation before the accessible name. Expansion state is already conveyed by aria-expanded.
♿ Proposed fix
gHead.innerHTML =
- `<span class="tw">▾</span><span class="csp">${esc(g.name.slice(0,3).toUpperCase())}</span>` +
+ `<span class="tw" aria-hidden="true">▾</span>` +
+ `<span class="csp" aria-hidden="true">${esc(g.name.slice(0,3).toUpperCase())}</span>` +
`<span>${esc(g.name)}</span><span class="badge-mini">${visTabs} recipe${visTabs===1?"":"s"}</span>`;
@@
- dHead.innerHTML = `<span class="tw">▾</span><span>${esc(d.ao)}</span><span class="badge-mini">${visTabs}</span>`;
+ dHead.innerHTML = `<span class="tw" aria-hidden="true">▾</span><span>${esc(d.ao)}</span><span class="badge-mini">${visTabs}</span>`;📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| gHead.innerHTML = | |
| `<span class="tw" aria-hidden="true">▾</span>` + | |
| `<span class="csp" aria-hidden="true">${esc(g.name.slice(0,3).toUpperCase())}</span>` + | |
| `<span>${esc(g.name)}</span><span class="badge-mini">${visTabs} recipe${visTabs===1?"":"s"}</span>`; | |
| gHead.addEventListener("click", () => { | |
| const wasCollapsed = collapsedGroups.has(g.name); | |
| if (wasCollapsed) collapsedGroups.delete(g.name); else collapsedGroups.add(g.name); | |
| renderTree(); | |
| requestAnimationFrame(() => { | |
| const next = [...document.querySelectorAll(".tg-group")] | |
| .find(el => el.dataset.group === g.name); | |
| if (next) next.focus(); | |
| }); | |
| }); | |
| gHead.dataset.group = g.name; | |
| groupWrap.appendChild(gHead); | |
| const children = document.createElement("div"); | |
| children.id = groupChildrenID; | |
| children.className = "tree-children" + (collapsedGroups.has(g.name) ? " hidden" : ""); | |
| if (empty){ | |
| const note = document.createElement("div"); | |
| note.className = "tg-empty-note"; | |
| note.textContent = "no results yet — awaiting first attestation"; | |
| children.appendChild(note); | |
| } else { | |
| g.dashboards.forEach((d, dIdx) => { | |
| if (anyCriteria() && !dashMatchesCriteria(g, d)) return; | |
| const dKey = `${g.name}/${d.ao}`; | |
| const visTabs = anyCriteria() ? d.tabs.filter(t=>recipeMatchesCriteria(DATA.recipes[t.idx])).length : d.tabs.length; | |
| const dHead = document.createElement("button"); | |
| const dashChildrenID = `tree-dash-${gIdx}-${dIdx}`; | |
| dHead.type = "button"; | |
| dHead.className = "tree-node tg-dash" + (collapsedDashes.has(dKey) ? " collapsed" : ""); | |
| dHead.setAttribute("aria-expanded", String(!collapsedDashes.has(dKey))); | |
| dHead.setAttribute("aria-controls", dashChildrenID); | |
| dHead.dataset.dashboard = dKey; | |
| dHead.innerHTML = `<span class="tw" aria-hidden="true">▾</span><span>${esc(d.ao)}</span><span class="badge-mini">${visTabs}</span>`; |
🧰 Tools
🪛 ast-grep (0.44.1)
[warning] 1575-1575: Avoid assigning untrusted data to innerHTML/outerHTML or document.write
Context: dHead.innerHTML = <span class="tw">▾</span><span>${esc(d.ao)}</span><span class="badge-mini">${visTabs}</span>
Note: [CWE-79] Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
(inner-outer-html)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pkg/corroborate/renderer/index.html` around lines 1539 - 1576, Add
aria-hidden="true" to the decorative twisty and service-abbreviation spans
generated in the tree group header and dashboard header within renderTree. Keep
the existing accessible text and aria-expanded state unchanged, and apply the
same treatment to the dashboard twisty span.
There was a problem hiding this comment.
Addressed in 6320d4a3: the tree disclosure twisties and redundant service abbreviation are now marked aria-hidden="true" while the controls retain their accessible names and expansion state.
| @@ -2096,6 +2715,7 @@ <h3>No matching recipes for <span style="color:var(--green)">${esc(currentGroup) | |||
| RENDER: SOURCE TIME-SERIES (builds over time) — lazy JSON | |||
| ============================================================ */ | |||
| async function openTimeSeries(recipe, src, focusTest){ | |||
| closeMobileNav(false); | |||
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Mobile focus is dropped when opening the time-series view from the drawer.
closeMobileNav(false) makes the sidebar inert (Line 2973). If the activating element was inside the drawer, blurring it resets focus to <body>, so keyboard/AT users lose their place. openGrid() already handles this via closeMobileNavForNavigation() + heading focus (Lines 2347-2348, 2384-2388); apply the same pattern here.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pkg/corroborate/renderer/index.html` at line 2718, Update the time-series
view navigation flow around closeMobileNav(false) to use
closeMobileNavForNavigation() instead, then move focus to the newly opened
view’s heading as openGrid() does. Preserve the existing navigation behavior
while ensuring focus remains within the destination view for keyboard and
assistive-technology users.
There was a problem hiding this comment.
Addressed in 6320d4a3: time-series navigation now uses closeMobileNavForNavigation() and focuses the destination heading when invoked from the mobile drawer.
| function pinTipAt(el){ | ||
| if (!renderTip(el)) return; | ||
| _tipReturnFocus = el; | ||
| tooltip._nav = el._nav || null; | ||
| tooltip.classList.add("show", "pinned"); | ||
| const r = el.getBoundingClientRect(); | ||
| positionTip(r.left + r.width / 2, r.bottom + 8); | ||
| tooltip.setAttribute("role", "dialog"); | ||
| tooltip.setAttribute("aria-label", "Evidence details"); | ||
| document.body.classList.add("tip-pinned"); | ||
| const close = tooltip.querySelector("[data-tip-close]"); | ||
| if (close) close.focus(); | ||
| } |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Pinned tooltip is both a dialog and a polite live region.
#tooltip carries aria-live="polite" statically (Line 1193). When pinTipAt() swaps the role to dialog and moves focus into it, the panel content is announced twice — once by the live region on mutation, once by the dialog focus. Toggle aria-live off while pinned (and restore it in hideTip()), or drop the live-region attributes and rely on the existing #results-status element.
♿ Proposed fix
function hideTip(restoreFocus){
const wasPinned = tooltip.classList.contains("pinned");
tooltip.classList.remove("show", "pinned");
tooltip.setAttribute("role", "status");
+ tooltip.setAttribute("aria-live", "polite");
tooltip.removeAttribute("aria-label");
@@
function pinTipAt(el){
if (!renderTip(el)) return;
_tipReturnFocus = el;
tooltip._nav = el._nav || null;
tooltip.classList.add("show", "pinned");
tooltip.setAttribute("role", "dialog");
+ tooltip.removeAttribute("aria-live");
tooltip.setAttribute("aria-label", "Evidence details");🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pkg/corroborate/renderer/index.html` around lines 3136 - 3146, Update
pinTipAt to disable the tooltip’s aria-live announcement when assigning the
pinned dialog state, then update hideTip to restore the original polite
live-region behavior when the tooltip is unpinned. Preserve the existing focus
and dialog attributes.
There was a problem hiding this comment.
Addressed in 6320d4a3: pinning the evidence panel removes aria-live, and closing it restores the polite live-region behavior.
06b5998 to
30b116d
Compare
There was a problem hiding this comment.
Actionable comments posted: 5
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/corroborate/renderer/index.html`:
- Around line 1051-1054: Update the button elements identified by `#toggle-nav`,
`#toggle-filters`, and the additional buttons at the referenced locations to
include type="button", matching the existing toggle-tree and close-sidebar
buttons.
- Around line 1758-1765: Update the chip creation loop around STATE_META and the
chip element so the descriptive text is exposed through a visually hidden child
node, matching the .sr-only approach in overviewStateCell(). Remove reliance on
the generic span’s aria-label for conveying m.desc, while preserving the visible
m.label and existing styling.
- Around line 1547-1556: Extract the shared toggle, renderTree, and
requestAnimationFrame refocus behavior from the handlers around the tree group
and dashboard controls into a reusable helper, parameterized by the collection,
selector, and dataset key. Replace all three duplicated implementations,
including the renderCatalog dash-sec-toggle handler, while preserving each
control’s existing toggle state and focus target.
- Around line 2737-2743: Remove the unused [data-home] event-binding loop from
the breadcrumb setup around the breadcrumb markup and its click handlers, since
the generated crumbs contain no data-home element. Leave the existing
data-service and data-dashboard handlers unchanged.
- Around line 2236-2237: Update the recipeCount calculation in the renderCatalog
announcement flow to count only recipe rows actually rendered, rather than
summing all dashes’ tabs. Ensure collapsed dashboards and any per-recipe
filtering are excluded from the announced total, while preserving the existing
announceResults message format.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: b8a9ad03-12e4-42ca-b5fb-19a97be890b8
📒 Files selected for processing (2)
docs/user/evidence-dashboard.mdpkg/corroborate/renderer/index.html
| <button class="btn" id="toggle-nav" title="show or hide the navigation sidebar" | ||
| aria-controls="sidebar" aria-expanded="true">☰ sidebar</button> | ||
| <button class="btn" id="toggle-filters" title="show/hide recipe selectors & evidence filters" | ||
| aria-controls="criteria-bar" aria-expanded="true">⚙ filters</button> |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
Add type="button" to these <button> elements.
HTMLHint flags all four; the new buttons added in this PR (#toggle-tree, #close-sidebar, landing-mode toggles) already set it, so this is the only remaining inconsistency.
🧹 Proposed fix
- <button class="btn" id="toggle-nav" title="show or hide the navigation sidebar"
+ <button type="button" class="btn" id="toggle-nav" title="show or hide the navigation sidebar"
aria-controls="sidebar" aria-expanded="true">☰ sidebar</button>
- <button class="btn" id="toggle-filters" title="show/hide recipe selectors & evidence filters"
+ <button type="button" class="btn" id="toggle-filters" title="show/hide recipe selectors & evidence filters"
aria-controls="criteria-bar" aria-expanded="true">⚙ filters</button>- <button class="btn" id="c-reset" title="clear recipe selection">clear recipe</button>
+ <button type="button" class="btn" id="c-reset" title="clear recipe selection">clear recipe</button>- <button class="btn" id="f-reset" title="reset evidence filters">reset evidence</button>
+ <button type="button" class="btn" id="f-reset" title="reset evidence filters">reset evidence</button>Also applies to: 1072-1072, 1081-1081
🧰 Tools
🪛 HTMLHint (1.9.2)
[warning] 1051-1051: The type attribute must be present on elements.
(button-type-require)
[warning] 1053-1053: The type attribute must be present on
elements.(button-type-require)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pkg/corroborate/renderer/index.html` around lines 1051 - 1054, Update the
button elements identified by `#toggle-nav`, `#toggle-filters`, and the additional
buttons at the referenced locations to include type="button", matching the
existing toggle-tree and close-sidebar buttons.
Source: Linters/SAST tools
There was a problem hiding this comment.
Addressed in 6320d4a3: type="button" is now present on the sidebar, filter, and reset controls.
| ["CONFIRMED","CONTESTED","FAILING","SINGLE"].forEach(s => { | ||
| const m = STATE_META[s]; | ||
| const chip = document.createElement("span"); | ||
| chip.className = `pbadge ${m.cls}`; | ||
| chip.textContent = m.label; | ||
| chip.title = m.desc; | ||
| chip.setAttribute("aria-label", `${m.label}: ${m.desc}`); | ||
| quick.appendChild(chip); |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Same generic-<span> aria-label pattern flagged previously.
chip is a plain <span> (implicit generic role), so name-from-author is not permitted and the desc text is likely dropped by AT — leaving only the visible label. overviewStateCell() (Line 1930) solves this with an .sr-only node; mirror it here.
♿ Proposed fix
const chip = document.createElement("span");
chip.className = `pbadge ${m.cls}`;
chip.textContent = m.label;
chip.title = m.desc;
- chip.setAttribute("aria-label", `${m.label}: ${m.desc}`);
+ const sr = document.createElement("span");
+ sr.className = "sr-only";
+ sr.textContent = `: ${m.desc}`;
+ chip.appendChild(sr);
quick.appendChild(chip);🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pkg/corroborate/renderer/index.html` around lines 1758 - 1765, Update the
chip creation loop around STATE_META and the chip element so the descriptive
text is exposed through a visually hidden child node, matching the .sr-only
approach in overviewStateCell(). Remove reliance on the generic span’s
aria-label for conveying m.desc, while preserving the visible m.label and
existing styling.
There was a problem hiding this comment.
Addressed in 6320d4a3: quick-legend chips now expose their descriptions through an sr-only child instead of relying on aria-label on a generic span.
30b116d to
8265a0a
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/corroborate/renderer/index.html`:
- Around line 3479-3487: Update the mobile drawer Tab handling around _mobileNav
and sidebar so focus is first redirected into the sidebar whenever
document.activeElement is outside it, then preserve the existing first/last
focusable wrapping for forward and reverse Tab navigation. Ensure background
content cannot remain the active focus path while the open drawer is visible.
- Around line 2013-2031: Update the overview table construction around the
PHASES-driven body rendering so the colgroup, phase header cells, and
serviceCell.colSpan are generated from PHASES rather than hardcoded. Preserve
the existing Recipe and Overall columns, and ensure each phase in PHASES
produces the matching column and header.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: c349d35a-bd43-4e59-9c6a-71f92891c3d9
📒 Files selected for processing (2)
docs/user/evidence-dashboard.mdpkg/corroborate/renderer/index.html
8265a0a to
402d9d0
Compare
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/corroborate/renderer/index.html`:
- Line 1098: Update the tree container element identified by tree-host to use a
semantic navigation role or nav element so its accessible label is exposed, and
remove the redundant aria-label from the legend generic div near the referenced
location because it already has the visible “Status key” label.
- Line 2101: Update the announceResults call in the all-recipes overview to use
singular wording when recipeCount is 1 and plural wording otherwise, matching
the existing pluralization pattern used by the other announceResults calls in
this file.
- Around line 1008-1010: Update the mobile `.og-status-cell .overview-chip` rule
to remove the fixed 28px width constraint and let the chip fill the available
cell width, while preserving its existing height, padding, gap, and typography
settings. Ensure longer `STATE_META.short` labels such as `SINGLE` and `MIXED`
remain contained within the cell.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: b731c3e8-875b-4834-9f7c-a6def4a0226a
📒 Files selected for processing (2)
docs/user/evidence-dashboard.mdpkg/corroborate/renderer/index.html
402d9d0 to
438eb2f
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/corroborate/renderer/index.html`:
- Around line 2974-2996: Update _syncNavToggles so the mobile drawer’s inert
background excludes _tgNav (or its containing toggle host), allowing the
`#toggle-nav` control to remain interactive and reach toggleSidebar() to close the
drawer. Keep the rest of _navBackground inert while the mobile navigation is
open.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: 11fce6b3-c632-49dc-b048-02ed8bb5df19
📒 Files selected for processing (2)
docs/user/evidence-dashboard.mdpkg/corroborate/renderer/index.html
| const _navBackground = [ | ||
| document.querySelector(".topbar"), | ||
| document.getElementById("criteria-bar"), | ||
| document.querySelector("main"), | ||
| document.getElementById("tooltip"), | ||
| document.getElementById("cli-popup"), | ||
| ].filter(Boolean); | ||
| let _navReturnFocus = null; | ||
| let _filtersCollapsedPreference = null; | ||
| function _syncNavToggles(){ | ||
| _tgNav.classList.toggle("active", !document.body.classList.contains("nav-collapsed")); | ||
| _tgFil.classList.toggle("active", !document.body.classList.contains("filters-collapsed")); | ||
| const navOpen = !document.body.classList.contains("nav-collapsed"); | ||
| _tgNav.classList.toggle("active", navOpen); | ||
| _tgNav.setAttribute("aria-expanded", String(navOpen)); | ||
| const sidebar = document.getElementById("sidebar"); | ||
| const mobileClosed = _mobileNav.matches && !navOpen; | ||
| sidebar.inert = mobileClosed; | ||
| sidebar.setAttribute("aria-hidden", String(mobileClosed)); | ||
| const mobileOpen = _mobileNav.matches && navOpen; | ||
| _navBackground.forEach(el => { el.inert = mobileOpen; }); | ||
| const filtersOpen = !document.body.classList.contains("filters-collapsed"); | ||
| _tgFil.classList.toggle("active", filtersOpen); | ||
| _tgFil.setAttribute("aria-expanded", String(filtersOpen)); | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Inerting .topbar also disables #toggle-nav, so the drawer's own toggle can no longer close it on mobile.
_tgNav lives inside .topbar, which becomes inert whenever the mobile drawer is open (Line 2992). The closeMobileNav(true) branch in toggleSidebar() is therefore unreachable from that button on mobile; only #close-sidebar, the backdrop, and ESC can dismiss the drawer. If the toggle is meant to stay a toggle, exclude it (or the button host) from the inert set.
🔧 Possible approach
const mobileOpen = _mobileNav.matches && navOpen;
- _navBackground.forEach(el => { el.inert = mobileOpen; });
+ _navBackground.forEach(el => { el.inert = mobileOpen; });
+ if (mobileOpen) _tgNav.inert = false; // keep the drawer toggle operable🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pkg/corroborate/renderer/index.html` around lines 2974 - 2996, Update
_syncNavToggles so the mobile drawer’s inert background excludes _tgNav (or its
containing toggle host), allowing the `#toggle-nav` control to remain interactive
and reach toggleSidebar() to close the drawer. Keep the rest of _navBackground
inert while the mobile navigation is open.
5894379 to
000496b
Compare
33b0ed2 to
39cf608
Compare
yuanchen8911
left a comment
There was a problem hiding this comment.
Review of 8a2d461c. Findings are posted inline below.
Contrast ratios were computed from the WCAG relative-luminance formula, not measured in a browser. No tests, builds, or repository scripts were run, so behavioral claims come from reading the renderer source rather than loading the generated page.
Signed-off-by: Nathan Hensley <[email protected]>
8a2d461 to
6320d4a
Compare
yuanchen8911
left a comment
There was a problem hiding this comment.
thanks for addressing the comments. /lgtm
…alth checks Closes NVIDIA#1246. - kueue: resourceflavors/clusterqueues/localqueues.kueue.x-k8s.io (verified via in-tree manifests) - kubeflow-trainer: trainjobs.trainer.kubeflow.org (verified via tests/chainsaw/ai-conformance/kind-training-kubeflow/assert-crds.yaml) - network-operator: nicclusterpolicies.mellanox.com (verified via components/network-operator/manifests/nic-cluster-policy-aks.yaml) - k8s-nim-operator: nimservices/nimcaches/nimpipelines.apps.nvidia.com (verified via docs/conformance/cncf/v1.35/nim-eks/evidence/robust-operator.md) - gatekeeper: constrainttemplates.templates.gatekeeper.sh + configs.config.gatekeeper.sh (needs live-cluster confirmation against chart 3.22.2, flagged inline) - slinky-slurm-operator: negative finding documented - crds.enabled: false, CRDs owned entirely by sibling slinky-slurm-operator-crds chart Signed-off-by: Mohit Yadav <[email protected]> docs: restore slinky-slurm-operator health check, add comment-only negative finding Signed-off-by: Mohit Yadav <[email protected]> fix: address review comments on NVIDIA#1246 CRD backfill fix: sync kubeflow-trainer CRD docs with asserted trainingruntimes (coderabbitai) address review: soften gatekeeper verification wording, fix volatile line refs, rename CRD step for consistency chore: pausing scans chore: skills cleanup chore(deps): Update python Docker tag to v3.14 (NVIDIA#1906) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> revert(validators): pin aiperf-bench base back to python:3.13-slim (NVIDIA#1909) Signed-off-by: Nathan Hensley <[email protected]> fix(rekor-monitor): correlate identity via release-workflow run history (NVIDIA#1903) Signed-off-by: Brian Lockwood <[email protected]> Co-authored-by: Mark Chmarny <[email protected]> fix(validators): multi-stage aiperf-bench build; bump aiperf to 0.11.0 (NVIDIA#1912) Signed-off-by: Nathan Hensley <[email protected]> feat(skills): download UAT debug bundles for failure triage (NVIDIA#1913) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.20 to 46.1.21 (NVIDIA#1923) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(skills): add aicr-triage skill for project board triage (NVIDIA#1911) chore(deps): regenerate stale THIRD_PARTY_NOTICES.md (NVIDIA#1926) Signed-off-by: Nathan Hensley <[email protected]> feat(server): non-interactive bundle attestation for /v1/bundle (NVIDIA#1891) chore(deps): Update dependency awscli to v1.45.52 (NVIDIA#1905) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> ci(stale): drop phantom priority/critical exempt label (NVIDIA#1925) Signed-off-by: Yuan Chen <[email protected]> chore(deps): Update dependency sigstore/cosign to v3.1.2 (NVIDIA#1924) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> feat(skills): add aicr-cross-review skill for multi-agent PR review (NVIDIA#1915) Signed-off-by: Yuan Chen <[email protected]> chore: deps: bump github.com/prometheus/client_golang from 1.24.0 to 1.24.1 (NVIDIA#1922) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix: resolve goconst and errorlint warnings across OCI, coverage, validators (NVIDIA#1916) Signed-off-by: Andrew White <[email protected]> chore(deps): Update testing-tools (NVIDIA#1934) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> fix(skills): harden UAT debug-bundle triage against malformed input (NVIDIA#1914) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump actions/stale from 10.4.0 to 11.0.0 (NVIDIA#1931) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> fix(ci): sync coverage docs to 80% and fail closed on bad threshold (NVIDIA#1937) docs: correct issue/PR lifecycle table, fix reminder dedupe (NVIDIA#1921) Signed-off-by: Yuan Chen <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> chore: deps: bump actions/checkout from 7.0.0 to 7.0.1 (NVIDIA#1930) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nathan Hensley <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix(recipe,client): reject duplicate ComponentRef names, omit disable… (NVIDIA#1917) Co-authored-by: Nathan Hensley <[email protected]> fix(validators): pass aiperf model via --model flag (NVIDIA#1939) Signed-off-by: Nathan Hensley <[email protected]> fix(skills): recover cross-review lanes, harden consensus/fallback (NVIDIA#1932) Signed-off-by: Yuan Chen <[email protected]> feat(rekor-monitor): resumable identity scan to catch up large backlogs (NVIDIA#1929) Signed-off-by: Brian Lockwood <[email protected]> fix(bundler): create argocd-helm static/ only when populated (NVIDIA#1944) Signed-off-by: Yuan Chen <[email protected]> chore: deps: update hashicorp/azurerm requirement from ~> 4.0 to ~> 5.0 in /infra/uat-azure-account (NVIDIA#1945) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> fix(ci): run validators/ unit tests in make test, exclude from coverage gate (NVIDIA#1918) Signed-off-by: Mohit Yadav <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> feat(corroborate): improve evidence dashboard UX (NVIDIA#1935) Signed-off-by: Nathan Hensley <[email protected]> fix(api): accept versionless legacy bundle recipes (NVIDIA#1943) Signed-off-by: Yuan Chen <[email protected]> test(bundler): cover argocd-helm OCP bundling and pin its error contract (NVIDIA#1950) Signed-off-by: Yuan Chen <[email protected]> chore: remove stray MOFED debug artifacts from repo root (NVIDIA#1955) Signed-off-by: Nathan Hensley <[email protected]> fix(deps): bump network-operator default to v26.4.1 (NVIDIA#1938) Signed-off-by: Atif Mahmood <[email protected]> Co-authored-by: Atif Mahmood <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.21 to 46.2.0 (NVIDIA#1964) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): Update ministackorg/ministack Docker tag to v1.4.7 (NVIDIA#1965) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> feat(recipe): implement the ADR-015 profile core (NVIDIA#1933) Signed-off-by: Yuan Chen <[email protected]> fix(bom): extract nested operator images (NVIDIA#1960) Signed-off-by: Yuan Chen <[email protected]> address yuanchen8911 review: bump network-operator to 26.4.1 with nicnodepolicies exclusion, close gatekeeper TODO with verification
…alth checks Closes NVIDIA#1246. - kueue: resourceflavors/clusterqueues/localqueues.kueue.x-k8s.io (verified via in-tree manifests) - kubeflow-trainer: trainjobs.trainer.kubeflow.org (verified via tests/chainsaw/ai-conformance/kind-training-kubeflow/assert-crds.yaml) - network-operator: nicclusterpolicies.mellanox.com (verified via components/network-operator/manifests/nic-cluster-policy-aks.yaml) - k8s-nim-operator: nimservices/nimcaches/nimpipelines.apps.nvidia.com (verified via docs/conformance/cncf/v1.35/nim-eks/evidence/robust-operator.md) - gatekeeper: constrainttemplates.templates.gatekeeper.sh + configs.config.gatekeeper.sh (needs live-cluster confirmation against chart 3.22.2, flagged inline) - slinky-slurm-operator: negative finding documented - crds.enabled: false, CRDs owned entirely by sibling slinky-slurm-operator-crds chart Signed-off-by: Mohit Yadav <[email protected]> docs: restore slinky-slurm-operator health check, add comment-only negative finding Signed-off-by: Mohit Yadav <[email protected]> fix: address review comments on NVIDIA#1246 CRD backfill fix: sync kubeflow-trainer CRD docs with asserted trainingruntimes (coderabbitai) address review: soften gatekeeper verification wording, fix volatile line refs, rename CRD step for consistency chore: pausing scans chore: skills cleanup chore(deps): Update python Docker tag to v3.14 (NVIDIA#1906) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> revert(validators): pin aiperf-bench base back to python:3.13-slim (NVIDIA#1909) Signed-off-by: Nathan Hensley <[email protected]> fix(rekor-monitor): correlate identity via release-workflow run history (NVIDIA#1903) Signed-off-by: Brian Lockwood <[email protected]> Co-authored-by: Mark Chmarny <[email protected]> fix(validators): multi-stage aiperf-bench build; bump aiperf to 0.11.0 (NVIDIA#1912) Signed-off-by: Nathan Hensley <[email protected]> feat(skills): download UAT debug bundles for failure triage (NVIDIA#1913) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.20 to 46.1.21 (NVIDIA#1923) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat(skills): add aicr-triage skill for project board triage (NVIDIA#1911) chore(deps): regenerate stale THIRD_PARTY_NOTICES.md (NVIDIA#1926) Signed-off-by: Nathan Hensley <[email protected]> feat(server): non-interactive bundle attestation for /v1/bundle (NVIDIA#1891) chore(deps): Update dependency awscli to v1.45.52 (NVIDIA#1905) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mark Chmarny <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> ci(stale): drop phantom priority/critical exempt label (NVIDIA#1925) Signed-off-by: Yuan Chen <[email protected]> chore(deps): Update dependency sigstore/cosign to v3.1.2 (NVIDIA#1924) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> feat(skills): add aicr-cross-review skill for multi-agent PR review (NVIDIA#1915) Signed-off-by: Yuan Chen <[email protected]> chore: deps: bump github.com/prometheus/client_golang from 1.24.0 to 1.24.1 (NVIDIA#1922) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix: resolve goconst and errorlint warnings across OCI, coverage, validators (NVIDIA#1916) Signed-off-by: Andrew White <[email protected]> chore(deps): Update testing-tools (NVIDIA#1934) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> fix(skills): harden UAT debug-bundle triage against malformed input (NVIDIA#1914) Signed-off-by: Nathan Hensley <[email protected]> chore: deps: bump actions/stale from 10.4.0 to 11.0.0 (NVIDIA#1931) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> fix(ci): sync coverage docs to 80% and fail closed on bad threshold (NVIDIA#1937) docs: correct issue/PR lifecycle table, fix reminder dedupe (NVIDIA#1921) Signed-off-by: Yuan Chen <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> chore: deps: bump actions/checkout from 7.0.0 to 7.0.1 (NVIDIA#1930) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nathan Hensley <[email protected]> Co-authored-by: Brian Lockwood <[email protected]> fix(recipe,client): reject duplicate ComponentRef names, omit disable… (NVIDIA#1917) Co-authored-by: Nathan Hensley <[email protected]> fix(validators): pass aiperf model via --model flag (NVIDIA#1939) Signed-off-by: Nathan Hensley <[email protected]> fix(skills): recover cross-review lanes, harden consensus/fallback (NVIDIA#1932) Signed-off-by: Yuan Chen <[email protected]> feat(rekor-monitor): resumable identity scan to catch up large backlogs (NVIDIA#1929) Signed-off-by: Brian Lockwood <[email protected]> fix(bundler): create argocd-helm static/ only when populated (NVIDIA#1944) Signed-off-by: Yuan Chen <[email protected]> chore: deps: update hashicorp/azurerm requirement from ~> 4.0 to ~> 5.0 in /infra/uat-azure-account (NVIDIA#1945) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> fix(ci): run validators/ unit tests in make test, exclude from coverage gate (NVIDIA#1918) Signed-off-by: Mohit Yadav <[email protected]> Co-authored-by: Nathan Hensley <[email protected]> feat(corroborate): improve evidence dashboard UX (NVIDIA#1935) Signed-off-by: Nathan Hensley <[email protected]> fix(api): accept versionless legacy bundle recipes (NVIDIA#1943) Signed-off-by: Yuan Chen <[email protected]> test(bundler): cover argocd-helm OCP bundling and pin its error contract (NVIDIA#1950) Signed-off-by: Yuan Chen <[email protected]> chore: remove stray MOFED debug artifacts from repo root (NVIDIA#1955) Signed-off-by: Nathan Hensley <[email protected]> fix(deps): bump network-operator default to v26.4.1 (NVIDIA#1938) Signed-off-by: Atif Mahmood <[email protected]> Co-authored-by: Atif Mahmood <[email protected]> chore: deps: bump renovatebot/github-action from 46.1.21 to 46.2.0 (NVIDIA#1964) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): Update ministackorg/ministack Docker tag to v1.4.7 (NVIDIA#1965) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lalit Adithya <[email protected]> feat(recipe): implement the ADR-015 profile core (NVIDIA#1933) Signed-off-by: Yuan Chen <[email protected]> fix(bom): extract nested operator images (NVIDIA#1960) Signed-off-by: Yuan Chen <[email protected]> address yuanchen8911 review: bump network-operator to 26.4.1 with nicnodepolicies exclusion, close gatekeeper TODO with verification
Summary
Improves the evidence corroboration dashboard’s navigation, overview, consensus grids, responsive layout, and visual consistency. Adds a filter-aware all-recipes grid, direct intermediate dashboard and source-history navigation, collapsible sections, and accompanying user documentation.
Motivation / Context
The dashboard had accumulated inconsistent interaction patterns that made cross-recipe scanning, intermediate dashboard navigation, and mobile use harder than necessary. This change makes recipe discovery and evidence comparison more direct while preserving the existing deterministic data contract and static-site architecture.
Fixes: N/A
Related: N/A
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)pkg/corroborate/renderer)Implementation Notes
aicr-corroboration/v1data contract unchanged; all changes are within the static renderer and its user guide.Screenshots
All-recipes overview
Full recipe names, sticky headers, and filled phase-status cells across the generated catalog.
Grouped service dashboard
Intermediate dashboards preserve the service → accelerator/OS → recipe hierarchy while keeping phase status scannable.
Recipe consensus
Filled consensus and source cells, direct source-history links, and collapsible phase sections.
Mobile
The all-recipes grid remains readable and horizontally available in the compact layout.
Testing
make qualifypassed on the exact upstream-rebased commit with 80.2% coverage, zero lint issues, 23/23 Chainsaw integration tests, and successful vulnerability and license checks. A Playwright smoke run against generated big-demo data completed 28 assertions with no page or console errors across desktop and mobile layouts.Risk Assessment
Rollout notes: UI-only static-site update with no API, schema, persistence, or migration changes. It deploys through the existing deterministic dashboard publish workflow and can be reverted as a single commit.
Checklist
make testwith-race)make lint)git commit -S) — GPG signing info