Repository navigation
[PZB-1286] VIIRS fire alerts widget x-axis shows "invalid date" - #5277
Merged
Merged
Conversation
For windows under 10 weeks the x-axis kept monthLabel ("Mar") as its
dataKey while formatting ticks as dates, rendering "Invalid date".
Use the ISO `date` key instead.
Also honor the brush's endIndex in getStartEndIndexes (clamped to the
data length) so the right handle actually narrows the chart.
PZB-1286
01painadam
approved these changes
Oct 15, 2026
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Weekly Fire Alerts widget's x-axis displays "invalid date" when the time-range slider is adjusted. Flagged by Tatiana as donor-visible — noted by a donor supporting fire work.
Steps to Reproduce
Observed Behaviour
The x-axis shows "invalid date" instead of the correct date labels.
Expected Behaviour
The x-axis should show correctly formatted dates for the selected time period.
###Tests
Adjust the time-range slider on the Weekly Fire Alerts widget across several countries and verify the x-axis always shows valid dates.
Hints
Likely a date-parsing bug triggered by a specific slider position or date format edge case. Given the donor visibility, this is worth prioritizing for a fix regardless of general severity ranking.
Reported by: Sarah Carter (1 report)
Airtable cluster: https://airtable.com/appxosPj0F7hthw32/tblDbSDchhSfnl0dT/reco2mErRL0xSvKEv