Improve labor tracking layout and dark mode - #5510
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.
Thank you for working on this PR, @mahathiganimi! I tested this branch locally on http://localhost:5173/bmdashboard/totalconstructionsummary.
Overall, the primary updates to the Distribution of Labor Hours card look solid, but there are a few visual alignment issues and potential layout regressions on adjacent components that need attention before merging:
1. Distribution of Labor Hours (Target Component)
- Submit Button Alignment: The
Submitbutton is currently left-aligned directly underneath theFromandToinputs. It would look much cleaner centered across the entire filter row or placed inline to the right of the dropdowns. - Legend & Pie Layout: The legend items on the left sit quite high up near the filters, leaving empty vertical space below. Centering the legend vertically against the pie chart would balance the card nicely.
- Dark Mode Contrast: The darkest pie slice (e.g., ~11.8%) blends heavily into the navy/slate background. Bumping up the lightness/contrast of that palette slice will improve visibility.
2. Regression Check: Adjacent Components
-
Paid Labor Cost Card: The adjacent card layout appears disrupted:
-
The
Date Rangelabel and input fields are floating directly over the middle of the chart canvas. -
The chart's bottom legend items (
Deployment (Actual),Deployment (Budget), etc.) are squished together and overlapping. -
Please check if any global grid, flex, or container CSS classes were modified that unintentionally affected this neighboring component.
-
Issues Breakdown by Type Card: When hovering over Project D, a full white highlight/bar appears despite all issue counts showing
0. Please verify if this is expected hover behavior.
3. Weekly Project Summary Dashboard Polish (If in scope)
- Date Badge Text Clipping: The date chips in the top-right header (
Aug 23, 26 - Aug 29;andAug 16, 26 - Aug 22r) have their dates truncated. - Accordion Title Typography: The chevrons appear as a raw lowercase letter
vconcatenated directly to the header strings without spacing (e.g.,Risk profile for projectsv,Project Statusv,Issues Breakdownv).
Summary: The core pie chart visualization and filter updates are working well, but please review the layout scoping to ensure neighboring dashboard cards aren't broken by global styles. Happy to re-test once these adjustments are made!



Description
This PR improves the Distribution of Labor Hours visualization on the Labor and Time Tracking dashboard, including filter functionality, layout alignment, chart readability, and Dark Mode styling.


Related PRS (if any):
Related PR https://github.com/OneCommunityGlobal/HighestGoodNetworkApp/pull/4105
Main changes explained:
How to test:
a. Pie chart, percentage labels, legend, and tooltips display correctly.
b. From, To, Project, Member, and Submit controls are properly aligned.
c. Project and Member dropdowns remain open and options can be selected normally.
d. Clicking Submit applies the selected filters and updates the visualization.
e. Dark Mode displays readable date inputs, dropdowns, pie-chart percentages, and tooltip text.
f. Layout and visualization remain readable when resizing the page.