Skip to content

fix(dashboard): always surface a critical banner for scores <= 25 - #32

Merged
hellodk merged 1 commit into
mainfrom
fix/critical-banner-scores
Sep 5, 2026
Merged

hellodk merged 1 commit into
mainfrom
fix/critical-banner-scores

Conversation

@hellodk

@hellodk hellodk commented Sep 5, 2026

Copy link
Copy Markdown
Owner

The CriticalBanner showed a reassuring green "LOW SCORES" bar when findingsCount was 0, so a 0/100 security score rendered green instead of a critical alert — and incident-command.spec.ts:18/:33 failed deterministically.

A dimension in the critical band (<= 25) is a critical alert regardless of separately-counted findings. Removed the findings-gated green branch and the unused findingsCount prop; the red CRITICAL banner with the View findings action now always renders for a critical score.

Testing

  • incident-command spec: 14/14 pass (previously :18/:33 failed).
  • tsc + eslint clean.
  • The other e2e flakiness (navigation/version-display/responsive-gaps) is a local 8-worker-parallel artifact — those pass in isolation, and CI runs serial (workers: 1) with retries: 2.

Closes #31

CriticalBanner rendered a reassuring green "LOW SCORES" bar whenever
findingsCount was 0, so a 0/100 security score showed green instead of a
critical alert — and the incident-command specs (which expect a CRITICAL
banner for scores <= 25) failed deterministically.

A dimension in the critical band is a critical alert regardless of
separately-counted findings. Drop the findings-gated green branch and the
now-unused findingsCount prop; always render the red CRITICAL banner with
the View findings action.

Closes #31
@hellodk
hellodk merged commit 1244f8d into main Sep 5, 2026
@hellodk
hellodk deleted the fix/critical-banner-scores branch September 5, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2e: home-page CriticalBanner + version-display specs fail (empty SSE stream / flaky nav)

1 participant