Juhitha create injury trend chart#4063
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Hi Juhitha,
I tried to review your PR locally but i was unable to, i did assume that the issue is due to old db.js file but even when i replaced it with the latest db.js file, the error disappeared. Also in dark mode the greyed out title and axis points are not visible, especially the dark grey titles.






Screen.Recording.2026-03-02.at.10.32.27.PM.movTested locally and fixed merge conflicts. |
There was a problem hiding this comment.
Hi Juhitha,
I have re-reviewed your PR locally and i believe the code is breaking:
Issue 1: The UI is misaligned

Issue 2: When the dates are unselected the error toast notification appears

**Issue 3: There is no data in the chart, i even checked the backend and once i did the post injuries api and get api for the trend data, there is still no change in the graph **




|
Hi @Anusha-Gali, Can you please re-review the changes? The changes are working as expected in my local Screen.Recording.2026-04-05.at.9.59.19.PM.mov |
Anusha-Gali
left a comment
There was a problem hiding this comment.
Hi Juhitha,
Thanks for the update, i have reviewed your PR again and am able to view the graph data; however the toast notification on clearing the dates still exists. Could you look into it. Maybe a different warning message or default dates in backend.
4063.mov
|
hi, |
@rithika-paii @Anusha-Gali
I have shared a screenshot of how my local is working. Could you please verify again in the netwrok tab or share the screenshot of the network tab to see if we are pointing it to the right environment.
Thank you!
|
|
|
@kunchalasireesha , could you please check now? Also, I have resolved conflicts and the SunarQube checks are all passed.
|






Frontend PR — Injury Trend Line Chart (Phase 2)
Description
Implements the “Injury Trend Over Time” line chart for Phase 2 Summary Dashboard. Adds Project and Date range filters, dark mode styling, and responsive layout. Integrates with backend APIs to fetch monthly injury counts by severity.
Implements #Phase2-InjuryTrend
Related PRs (if any):
This frontend PR relies on the backend Injury APIs. Please test with the backend PR below.
Main changes explained:
InjuryTrendChartcomponent with Recharts multi-line chart:{ months, serious, medium, low }to chart data#1B2A41)How to test:
npm installREACT_APP_APIENDPOINT=http://localhost:4500/apinpm startnpm run build && node dist/server.js(ornpm run dev)bmdashboard/injurychart.Screenshots or videos of changes:
Screen.Recording.2025-09-12.at.1.01.13.PM.mov
Note: