Mahathi - Improve Utilization Chart dark mode support - #5485
Mahathi - Improve Utilization Chart dark mode support#5485mahathiganimi wants to merge 1 commit into
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
iAbhi001
left a comment
There was a problem hiding this comment.
Tested locally on branch mahathi/fix-utilization-chart-dark-mode.
Test Summary:
- Dark Mode Background: Confirmed the outer page background correctly adopts the dark navy styling without leaving white areas around the chart container.
- Visual Contrast & Legibility: Checked metric cards, filter dropdowns, chart axes, grid lines, and labels—all remain clear and readable.
- Functionality & Light Mode: Tested filters, view tabs, and toggled back to light mode with no regressions observed.
Looks good to merge! 🚀
DeepighaJ
left a comment
There was a problem hiding this comment.
Tested the PR locally and verified the Utilization Chart page in both light and dark modes. The page-level background updates correctly in dark mode, removing the unwanted white areas while keeping the Utilization Chart container visually distinct. The existing chart styling and functionality remain unaffected.
Filters, chart elements, analytics sections, and other page functionality display correctly.



Description
Improve dark mode support for the Utilization Chart page.

In dark mode, the Utilization Chart content and chart area were displayed with dark mode styling, but the page background surrounding the chart remained white. This created inconsistent styling and poor visual contrast between the analytics visualization and the rest of the page.
This PR updates the Utilization Chart page so that the surrounding page background also responds to the application's dark mode state. A dark navy background is used instead of pure black to provide better contrast with the existing dark blue Utilization Chart container while maintaining consistency with the application's dark theme.
The implementation preserves the existing Utilization Chart functionality, including utilization analytics, forecasting, filters, insights, maintenance alerts, resource balancing, and report export functionality.
Related PRS (if any):
This change is frontend-only and does not require a related backend PR.
Old PR https://github.com/OneCommunityGlobal/HighestGoodNetworkApp/pull/3996
Main changes explained:
UtilizationChart.module.cssto add scoped page-level light and dark mode background styles.UtilizationChart.jsxto add a page-level wrapper around the existing Utilization Chart container.darkModestate.darkModeclass on the Utilization Chart container so current dark mode behavior continues to work.How to test:
Checkout this branch:
git checkout mahathi/fix-utilization-chart-dark-modeInstall dependencies if needed:
npm installStart the frontend application http://localhost:5173/utilizationchart
Clear the browser site data/cache if necessary and refresh the application.
Log in with a user account that has access to the Utilization Chart page.
Navigate to the Utilization Chart page.
Verify the page in light mode:
Switch the application to dark mode.
Verify that:
Toggle between light and dark mode and verify that the page background updates correctly without affecting the existing Utilization Chart functionality.
Note:
This change is intentionally scoped to the Utilization Chart page.
The existing Utilization Chart already contains comprehensive dark mode styling for the chart container and its analytics components. This PR preserves that implementation and adds a page-level dark mode wrapper to address the remaining white background outside the chart.
A dark navy background (
#0d1b2a) is used instead of pure black to provide better visual contrast with the existing dark blue chart container and create a more consistent dark mode appearance.