Reina create line graph chart for cost breakdown by expenditure#3458
Reina create line graph chart for cost breakdown by expenditure#3458ReinaT5678 wants to merge 14 commits into
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…t-breakdown-by-expenditure
Venk-rgb
left a comment
There was a problem hiding this comment.
Tested the PR in UI. Everything looks good in light mode. In dark mode, the x-axis, y-axis labels and the type of expenditure is not visible. Adding screen recording of the same.
Screen.Recording.2025-06-27.at.9.46.48.AM.mov
|
|
||
| .dark-mode .project-filter, | ||
| .dark-mode .filter-group { | ||
| background-color: var (--card-bg); |
There was a problem hiding this comment.
There should be no space between var and (--card-bg).
jaydeep138
left a comment
There was a problem hiding this comment.
The functionality is working as expected in Light Mode. However, in Dark Mode, the text, as well as the X and Y axis labels for both the filters and the graph, are not visible — likely due to missing or incorrect styling for dark backgrounds.
Additionally, when navigating to http://localhost:3000/bmdashboard/totalconstructionsummary, the application crashes and throws errors during page load. Please check for potential issues causing the crash on that route.



|
Checked into the current branch and ran the app locally. The Expenditure Line Graph page loads, but the graph does not render any data, and filters have no effect. The Total Construction Summary page fails to load due to a TypeError in WeeklyProjectSummaryHeader.jsx and shows a 404 error when fetching data. |
There was a problem hiding this comment.
Hi Reina,
In the first change you made I can see a graph with filters like by date and by project,
-> when I filter by project name I don't see project name instead I see their Id's for a user it will difficult to filter.
-> When I switched to dark mode the dark mode is not applied to filters section and graph section though the titles are changed to white text.
In the second change when run the url I got error that related to "projectFilter" because of this the website got crashed.
adithya-6101
left a comment
There was a problem hiding this comment.
Tested the PR thoroughly and everything works well now. The graph renders correctly, filters are working as expected, and both Light and Dark Mode are displaying properly — including the X and Y axis labels. Also confirmed that the issue on the /bmdashboard/totalconstructionsummary route is resolved, and the page no longer crashes. Approving this PR.
Babu-kota
left a comment
There was a problem hiding this comment.
I tested the "Cost Breakdown by Type of Expenditure" line graph and confirmed that it renders correctly using the sample data. The time-series cost data displays properly on the x-axis (months) and y-axis (cost), and the graph is responsive in both light and dark modes. Filters for project and date range are working as expected.
graphs.mp4
shashankm9
left a comment
There was a problem hiding this comment.
I have tested this PR, Everything works as expected. Graph looks good with different colors and all the texts are clear and legible in dark mode as well. Good job.
PR.3458.mp4
There was a problem hiding this comment.
I have tested the PR in the local environment using admin credentials. Working well for positive scenarios, such as selecting different date ranges and projects, as shown below:
Different date ranges and projects:
positive-scenarios.mp4
However, the following negative scenarios are not handled as expected:
1) Selecting the same date:
When selecting the same start and end date, the expenditure information is displayed as a dot instead of a line.
2) Start date greater than end date / Date ranges with no data:
No error message is shown in the following cases. It would be great if you could add relevant error messages.
i) Start date is greater than end date:
ii) Date ranges with no data:
































Description
A frontend line graph chart that shows time in months (x-axis) and cost (y-axis) of projects. The chart can be filtered by projects and by date range.
The new PR for this task is: #3906
Related PRS (if any):
This frontend PR is related to the #1357 backend PR.
…
Main changes explained:
…
How to test:
npm installandnpm run start:localto run this PR locallyScreenshots or videos of changes:
Screen.Recording.2025-05-01.at.10.13.13.AM.mov
Note:
Include the information the reviewers need to know.