Radia : Fix - Loss Tracking calendar picker feature#5371
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
kzou55
left a comment
There was a problem hiding this comment.
Hi Radia,
I ran and tested the PR locally
Verified
- Start Date and End Date component opens up a date picker
- There is a error message when Start Date > End Date
Testing
Recording.2026-07-20.142844.mp4
Issues
DeepighaJ
left a comment
There was a problem hiding this comment.
Tested the PR locally, the filter functionality works as expected. Calendar looks good.
Issue:
- The inline error message "Startdate before or equal to enddate" not in RED in dark mode.
- The legend of the Loss Tracking Line Chart overflows its container and overlaps the next dashboard section ("Global Distribution and Project Status Overview")
beblicarl
left a comment
There was a problem hiding this comment.
Tested the PR locally, and the filter functionality works as expected. The calendar also displays correctly.
Issues identified:
In dark mode, the inline validation message, "Start date must be before or equal to end date," is not displayed in red.
The legend for the Loss Tracking Line Chart overflows its container and overlaps the Global Distribution and Project Status Overview section below.
|







Description
This PR resolves the high-priority bug regarding the broken calendar feature on the Loss Tracking line graph. The previous implementation used a native
<input type="month">which prevented users from entering custom specific dates and caused UI inconsistencies. This PR implements a standard date picker, safely reformats the date strings for the chart's data filtering logic, and resolves lingering CSS linter errors.Fixes # (Priority High - Loss Tracking Calendar Fix)
Related PRS (if any):
This frontend PR fixes the broken calendar implementation originally introduced in PR #5016.
Main changes explained:
LossTrackingLineChart.jsxto replace<input type="month">with a standard<input type="date">picker. Restored the custom SVG calendar icon JSX. Updated thechartDatafiltering logic to safely slice standardYYYY-MM-DDstring outputs down toYYYY-MMso they correctly filter the chart's raw data.LossTrackingLineChart.module.cssto update all styling selectors from[type="month"]to[type="date"]. Reactivated the custom SVG icon styling and expanded the invisible native calendar picker indicator to 100% width/height so clicking anywhere in the input box opens the calendar.How to test:
radia-loss-tracking-calendar-fix)npm installandnpm startto run this PR locallyScreenshots or videos of changes:
Screen.Recording.2026-07-05.at.2.06.59.AM.mov