Appearance
Findings tab
How the Findings tab renders recommendation rows and active widget cards in one impact-ranked board.
Rendered by FilteredBoard's TabsContent value="findings" (src/view/widgets/ImpactBoard.tsx): recommendation rows and active widget cards in one impact-ranked board. The recommendation rows render from src/view/widgets/FixTheseFirst.tsx (FindingRow, TypeGroupRow; not rendered as a standalone page section by Dashboard.tsx) and the active-widget logic lives in src/view/widgets/Alerts.tsx (same: not rendered standalone). ImpactBoard renders the bands of the board layout that buildBoardLayout (src/view/board-layout.ts) builds from the rollup groups and Alerts.tsx's exported computeActiveWidgets (the ranked active-REGISTRY list). The rollup and its ranking are computed in core by interpretRun (rankedRollup/rankFindings, packages/core/src/recommendation-rollup.ts); buildBoardLayout reads it through boardRollup (src/view/interpretation.ts: the interpretation's carried groups when unfiltered, core rankedRollup recomputed over the kept findings under a filter). The layout then buckets rows by each group's band (its worst member's impact band, which the group row's badge also shows, while rankFindings orders the members by stage task time) and cards by each active widget's own worstImpactBand. The verdict's step leads (verdictLeads) are dropped before the rollup and the cards the verdict shows in place (verdictWidgetIds) before computeActiveWidgets's list is bucketed, so with any step lead the board opens with a "More findings (N)" <h2> (N is the remaining eligible count) or, when N is 0, "No more findings to show." Caveat cards such as IncompleteRun never count toward N and still render under their own titles below it.
Eligible findings for the rollup are catalog ∪ configFindings that pass core isEligible (packages/core/src/recommendation-rollup.ts) and have a display type (FINDING_DISPLAY_ORDER). isEligible leaves out incompleteRun (a pipeline-completeness note, not an addressable fix) and every caveat. One predicate, isCaveat, names the caveats: a finding emitted only to say its detector lacked the evidence it needs, which is a memoryUtilizationmemoryBand or a cacheUtilization storageUnobserved finding with dataUnavailable set. The memoryBand caveat is already covered by Evidence availability's own executorMetrics entry (packages/core/src/evidence-availability.ts). Findings are grouped strictly by finding.type via buildRecommendationRollup (packages/core/src/recommendation-rollup.ts, further split within a type by impact kind and, for resource, unit: never merged across types); each resulting group becomes one row: a type with exactly one finding renders that finding directly, a type with more than one collapses into a summary row. Within an impact band, group order comes from buildRecommendationRollup's own sort: groups ranked by the largest impactEstimate.stageTaskMs among their warning and critical members first (rankCostMs, the verdict steps' axis: stage task time, or for utilization its idle core time). Ties and the rest follow in this order: time groups (a real wallClock claim), ranked among themselves by their union-capped recoverableMsHigh descending; then resource groups (rawWaste but no wallClock); then count groups (neither), both of the latter two ranked by worst impact band, never by their incomparable raw magnitudes. A summary row's tag badge and action label come from the group's own highest-impact member (via the same three-tier comparator, core rankFindings); its sentence is the type-level coreFindingGenericRecommendation, not one member's own numbers, and is omitted when the members' sentences differ (for example, skew findings with different AQE skew-join cases). The trailing stat depends on the group's kind (×N · <time> recoverable, ×N · <total> with the summed resource waste the CLI report also prints, or ×N alone, adding a per-impact-band tally only when the group mixes bands). Clicking it expands straight to the group's full, impact-ranked list, with no intermediate "worst-K" step, paginated at 10 rows per page (data-testid="fix-these-first-group-row"; no pager renders for a group of 10 or fewer findings; it appears once a group exceeds 10). A band's rollup rows render as a headerless three-column Table (src/components/ui/table.tsx): a single-finding row (FindingRow, data-testid="fix-these-first-row", data-finding-type) has three TableCells: the impact dot + ALL-CAPS tag as a real TagBadge (not plainBadge: nothing wraps it, so its own docs links stay real <a>s, same as everywhere else on the board); a text block (a short imperative action label, e.g. "Reduce shuffle size", from findingActionLabel (packages/core/src/finding-action-label.ts), over the finding's own full recommendation sentence in smaller muted text, both wrapping rather than truncating, then one Show evidence button); and a right-aligned monospace stage reference + impact figure (e.g. St.49 · 20.1s, via the shared formatWallClockRange/formatRawWaste in packages/core/src/units.ts). The Show evidence button (EvidenceButton), not the row, is the click target. A row whose widget has no rows to show beyond the line above has no button (see row-expand-contract). Every other row opens its own evidence in place as a table row below (EvidencePanelRow, InlineEvidence), scoped to the row's findings: the widget renders without its other findings of the same type. The panel starts at the text column, and stacks full width below sm. A route that targets one of the row's findings opens that row's panel too (resolveRoute). A TypeGroupRow has the same button, scoped to the group's members, and its text block is an inner button that toggles its expand state (aria-expanded). A group member's row routes via selectTriageTargetForFinding (src/view/triage-target.ts), the same per-finding resolver Stage Summary Table's own control uses (see "First investigation routing" below), and opens the group's panel. An expanded group's members (FindingInstanceRow) omit the badge and span its cell (colSpan={2}): the location line, then the recommendation clamped to one line, then the figure in the third column. The store's board.expandedGroup (src/store/board.ts) holds which single group is expanded; a TypeGroupRow owns only its page.
Each impact band (one per entry of core's IMPACT_BANDS, which buildBoardLayout walks) is a <section aria-labelledby> pointing at its <h2 id="impact-band-<band>-heading" tabIndex={-1}> (Critical, Warning, Info; the top bar's count chip focuses it; an <h3> under "More findings"), and renders nothing (not even the heading) when it has neither a rollup row nor an active widget: a run with no critical findings has no "Critical" heading or section at all. Inside a band, rollup rows render first as the headerless Table described above, followed by the band's active REGISTRY widget cards that no verdict step or row shows (computeActiveWidgets's ranked list, filtered to this impact band) in their own WidgetGrid: every one of orderedWidgets()'s REGISTRY components except the one always-mounted one below, whose rows(...) for the run, the density and nothing stated is not empty (computeActiveWidgets(catalog, configFindings, detectors, appModel, density)). A widget mounts exactly when it has a row, so a mounted card is never empty. Within a band, active widgets keep orderedWidgets()'s own order: the interpretation's DetectorInfo sorted by region (action first), then ascending detector order. Those cards render collapsed (defaultCollapsed) in both Basic and Advanced view. A route to a finding that no step or row holds (a log note or an evidence caveat, which the rollup leaves out) adds its type's card to this grid, whatever else shows that type (a route-only card in the layout, board-layout.ts). cacheUtilization, memoryUtilization, and utilization are reference-region types but aren't always-mounted exceptions, so a Cache Utilization, Memory Utilization, or Executor Utilization card with an active finding surfaces in its own impact band like any other active widget.
Below the impact bands, Alerts.tsx's exported CleanChecks (it takes activeTypes, the types computeActiveWidgets mounted) renders a collapsed "Clean checks" disclosure of CleanCheckRow lines (src/view/widgets/CleanCheckRow.tsx: the type's tag chip and label, plus in Advanced view the threshold it was held to, the interpretation's detectors[type].thresholdSummary from getThresholdSummary, which states the detector's own numbers) built per detector type (every REGISTRY key except that one always-mounted key), under one "Every check below passed." line (or "No check could run on this log." when none did) and grouped by detector scope (Per-stage, App-level, SQL plan, Config checks). Types the log could not check (an isCaveat finding of that type, every per-stage type when no stage finished, or the run-span types RUN_SPAN_CHECK_TYPES on an incompleteRun log, the same rule that keeps the verdict from calling the run clean) render first under Not checked on this log as CleanCheckRow status="notRun", drawn neutral rather than clean green, after the interpretation's coverage.gaps (verdictGaps) lines saying why and naming the setting to turn on. A clean run lands cacheUtilization, memoryUtilization, and utilization here too, same as any ordinary action-region type. Caching Opportunities, Config Audit, and the nine Plan Advisor widgets (Duplicate Plan Subtree, Small Files, Nested Loop Join, Cast On A Join Key, MERGE Rewrite, Unpruned Partitioned Scan, Row-At-A-Time Python UDF, Missed Broadcast Join, Oversized Broadcast Join) render through the ordinary active/clean paths above (see App- and plan-level widgets). Core Locality (coreLocality, resolving to CoreUsageArea) is not in the Findings tab at all: it mounts unconditionally from appModel at the head of the Full app report's reference grid (alwaysMountedWidgets()/isAlwaysMountedType()), carrying its own impact-band indicator when a finding is active instead of collapsing to a clean-check line on a clean run. A coreLocality finding still lists in its impact band's recommendation rows, and its Show evidence switches to the Full app report tab.