sai teja loss tracking line graph#5016
Open
saitejakaasoju wants to merge 23 commits intodevelopmentfrom
Open
Conversation
…ighestGoodNetworkApp into Ganesh_impl_loss_tracking_line_graph
Resolved merge conflicts in: - WeeklyProjectSummary.jsx: kept LossTrackingLineChart import + new imports from development (SupplierPerformanceGraph, DistributionLaborHours) - package.json: adopted development's husky v9 and jest-environment-jsdom - yarn.lock: accepted development version - Fixed ESLint warnings for console.error and alert in PDF catch block Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fixes from PR #3876 review + code improvements: 1. Critical bug fix: mergedData key was `line.year` (number) but <Line dataKey> expected `${line.year}-${line.material}` — multiple materials of the same year were silently overwriting each other in the chart data. 2. Wrap mergedData/chartData computation in useMemo (deps: filteredLines, startDate, endDate) to avoid unnecessary recalculation on every render. 3. Expanded color palette to support 9 year-material combinations: Teal shades for 2022, Pink shades for 2023, Yellow/Orange for 2024. 4. Expanded mock rawData to include all 3 materials (Metal, Plastic, Glass) for each of the 3 years (2022-2024), giving 9 distinct lines. 5. Moved date-range validation error message out of the <label> element and added .dateRangeError CSS class (grid-column: 1 / -1 for full width). 6. Applied Prettier formatting (auto-fixed via eslint --fix). All dark mode axis/tick colors already handled via dynamic textColor; Reset Filters button visibility handled via CSS module variables. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- App.module.css: force overflow-y: auto on html/body (overrides stale Vite-cached 'overflow: hidden' rule from NotFoundPage styles); change #root from height:100%/overflow-y:hidden to min-height:100%/auto - WeeklyProjectSummary.jsx: add useEffect that sets inline overflowY:'auto' on body/html on mount, restoring original on unmount; inline styles beat all stylesheets and guarantee scrollability - WeeklyProjectSummary.module.css: change .financial-big card overflow from hidden to visible so the LossTrackingLineChart is not clipped Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Resolved missing peer packages (antd, libphonenumber-js, react-calendar, react-tagcloud, @tanstack/react-query) that were in package.json but not installed, causing Vite to error on startup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
HemanthNidamanuru
requested changes
Apr 7, 2026
Anusha-Gali
suggested changes
Apr 9, 2026
Contributor
Author
Contributor
Author
|
Addressed the dark mode styling issue in the Loss Tracking chart’s Start Date / End Date month picker, including the calendar icon. |
Anusha-Gali
suggested changes
Apr 16, 2026
Contributor
Author
|
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.






























Description
Implements #3876 (WBS - Loss Tracking Line Graph for BM Dashboard Weekly Project Summary)
Implements a fully functional Loss Tracking
Line Chart with filters, dark mode, date range validation, and reset functionality.
Related PRS (if any):
This frontend PR is related to the #XXX backend PR.
To test this backend PR you need to checkout the #XXX frontend PR.
…
Main changes explained:
LossTrackingLineChart.jsx— Recharts line chart with 9 lines (Metal/Plastic/Glass × 2022/2023/2024), Material filter, Year filter, Start/End date range filter, Reset Filters button, date range validation error message, and full dark mode support via CSS custom propertiesLossTrackingLineChart.module.css— CSS token system with:rootlight theme and.darkModeoverridesWeeklyProjectSummary.jsx— add LossTrackingLineChart to "Loss Tracking" accordion section; add useEffect to fix page scroll blocked by stale Vite CSSWeeklyProjectSummary.module.css— fix.financial-bigcardoverflow: hidden→visibleso chart is not clippedApp.module.css…How to test:
npm installand...to run this PR locallyScreenshots or videos of changes:
Screen.Recording.2026-03-18.at.3.38.31.PM.mov
Note:
Include the information the reviewers need to know.