Skip to content

Shravya_bugfix/css_module.css/mostWastedMaterials _3675#4049

Open
ShravyaKudlu wants to merge 2 commits intodevelopmentfrom
Shravya_bugfix__inline_module.css_3809
Open

Shravya_bugfix/css_module.css/mostWastedMaterials _3675#4049
ShravyaKudlu wants to merge 2 commits intodevelopmentfrom
Shravya_bugfix__inline_module.css_3809

Conversation

@ShravyaKudlu
Copy link
Contributor

@ShravyaKudlu ShravyaKudlu commented Sep 10, 2025

Description

Fixes #3675

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:

  • Update MostWastedMaterials.jsx component
  • Create module.css and broke the componets into pieces and added module.jsx to those pieces.

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. go to localhost:5173/materials/mostwastedmaterials
  6. verify function similar to pallavi implemented job analytics graph #3675

Screenshots or videos of changes:

image

Note:

This only works on light Mode

@netlify
Copy link

netlify bot commented Sep 10, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 530d762
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/699f6ad62539160008a4b549
😎 Deploy Preview https://deploy-preview-4049--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ShravyaKudlu ShravyaKudlu marked this pull request as ready for review September 10, 2025 19:41
@ShravyaKudlu ShravyaKudlu added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Sep 10, 2025
Copy link

@khan-zoha khan-zoha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed PR #4049. Got this error. I could not checkout to this branch.

image

Copy link

@sohamsharma08 sohamsharma08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the PR using an Admin account and some changes are needed. The project filter is working well, however, the date filter does not seem to do anything. There is no error even when the date range is invalid. The recording of the working is mentioned below:

PR.4049.1.mov

Copy link
Contributor

@SreePujitha01 SreePujitha01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bar graph on /mostwastedmaterials remains the same even when the date range changes. It may need adjustments to reflect the selected dates.

image

Copy link
Contributor

@jaydeep138 jaydeep138 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this PR — the graph displays data correctly based on the selected project. However, I noticed two issues:
1. The date range filters are not working as expected.
2. The navbar is not visible when navigating to this graph page, which makes it unclear how users will move between sections.

Everything else looks good, but these two issues should be addressed.
Screenshot 2025-09-12 at 18 53 08

@ShravyaKudlu ShravyaKudlu force-pushed the Shravya_bugfix__inline_module.css_3809 branch from decf881 to 74f45b7 Compare September 16, 2025 18:45
Copy link
Contributor

@RitzzzZ2021 RitzzzZ2021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The chart functions correctly, and the project filter successfully narrows the data to the selected project.

image

Suggestions:

  1. Since the labels are already displayed on top of each bar, the hover effect feels redundant.

  2. Consider adding a title for the horizontal axis.

  3. The data filter is not functioning as expected.

image

Copy link
Contributor

@Aditya-gam Aditya-gam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Ran local server on the PR branch. Navigated to localhost:5173/mostwastedmaterials. Switched projects and adjusted the date range filters.
  1. Graph & project filter The chart renders and updates correctly when switching projects.
  2. Date range filters (bug) Changing From/To dates does not update the dataset shown on the graph; results appear unchanged regardless of the selected range.
  3. Navbar missing (UX/navigation issue) The page renders without the global navbar, so there’s no obvious way to move to other sections.
TestVideo.mov

@ChiragBellara
Copy link
Contributor

Reviewed PR #4049

  1. The page and graphs load as expected. The projects filter works as expected.
Most Wasted Materials graph loads as expected
  1. Unable to see a navbar and the date filter does not work.
Date filters do not work as expected.

Copy link

@Swetha-1306 Swetha-1306 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the PR, the layout is good and all the filters are working fine except for the date filter
Screenshot 2025-09-19 at 8 22 22 PM

Copy link
Contributor

@aryanrachala54 aryanrachala54 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing comments note that while the project filter works, the date filter on the page does not affect the bar graph, which remains unchanged regardless of the selected date range. Additionally, the navbar is missing on this page, making navigation unclear. Building on these points, I observed that the date range filter allows selection of future dates without any validation or warning, which could be misleading. I also noticed a "Back to Top ↑" button, which seems unnecessary given the short length of the page and the presence of only a single chart.

Screenshot 2025-09-15 121155

Copy link
Contributor

@Prem203 Prem203 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the PR locally with an admin account.

  1. The date filter does not seem to filter out any data.
  2. There is no validation in date filter for start date after end date.
  3. A nav bar on the top would be ideal if the user wants to switch between pages.
image

Copy link

@abhirambj abhirambj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the Most Wasted Materials dashboard and the new styles look good, but the chart does not refresh when I change the date filter. Please fix the date filtering before merging. Once that’s working, everything else looks good!

Screenshot 2025-09-27 at 11 10 42 PM Screenshot 2025-09-27 at 11 11 02 PM

Copy link

@laynet laynet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the testing instructions and logged in as admin user. The graph initially loads as expected, and will re-load with new data when a new project is selected from the project filter. However, selecting dates in the date filter does not change the data visualization. The graph stayed the same as it was when there were no dates selected. This was true for every project that I tested. I also tried selecting an end date first then a start date but the result was the same. Checking invalid dates (one or both dates in the future) also did not change the graph. There also isn’t a navbar.
PR 4049 dates cleared
PR 4049 dates selected

@ShravyaKudlu
Copy link
Contributor Author

The dates were not present in mockData from previous PR, but I have added, , I have limited the dates so its easier to check., please change months not date to see the changes.

you can check now, I have completed the darkMode as well,
Please check the new updated path
http://localhost:5173/materials/mostwastedmaterials
image

Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Shravya,

I have reviewed your PR locally and it does work as per requirement. However the calendar is in light mode while the application is in dark mode. Please look into that.

Image Image Image Image Image

Copy link

@HemanthNidamanuru HemanthNidamanuru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Shravya,

I tested this locally and it works as expected. Just a small suggestion, the calendar appears in light mode while the app is in dark mode. Please check that once.

Image Image Image Image

Copy link

@rohanrastogi311 rohanrastogi311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HI Shravya,

Well done with this implementation.

Image Image

Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Shravya,

I had previously approved your PR stating - I have reviewed your PR locally and it does work as per requirement. However the calendar is in light mode while the application is in dark mode. Please look into that., after discussing with Jae, he requested i modify and ask for the change to be made. Can you look into it @ShravyaKudlu

background-color: #374151;
border-color: #4b5563;
color: #f3f4f6;
color-scheme: dark;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Anusha-Gali , I made a small change here, for darkMode, let me know if it works now?

@ShravyaKudlu
Copy link
Contributor Author

I Have fixed it, Seams to be exactly like development, with proper styling changes, you can check this
image

@ShravyaKudlu ShravyaKudlu force-pushed the Shravya_bugfix__inline_module.css_3809 branch from 7132955 to c8c7961 Compare February 25, 2026 21:26
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.