Skip to content

fix(legend): restore missing red color in outbreak probability legend - #720

Merged
evulins merged 2 commits into
releasefrom
dev
May 27, 2026
Merged

fix(legend): restore missing red color in outbreak probability legend#720
evulins merged 2 commits into
releasefrom
dev

Conversation

@evulins

@evulins evulins commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Description

Problem

The "Outbreak Probability" legend showed only 5 colors instead of 6 — the red
(15-25% "High") was missing and the last category "40-100% (Extreme)" rendered
as a blank box. The map itself colored correctly.

Cause

The legend used its own duplicated colors array that had drifted out of sync
with the map's palette in utils/colors.js. The #D95557 (red) entry was
missing, so with 5 colors for 6 thresholds every category shifted one slot and
"Extreme" was left with no color.

Fix

Re-export colors from utils/colors.js so the legend and the map share a
single source of truth and can't drift apart again.

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Documentation update

Checklist

  • Unit/integration tests
  • Documentation

Tickets

Screenshots

Please attach any design screenshots if UI update.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

@evulins
evulins merged commit f883c69 into release May 27, 2026
14 checks passed
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.

1 participant