Skip to content

Shravya_bugfix/css_to_module.css_rentalCharts_3552#4092

Open
ShravyaKudlu wants to merge 6 commits into
developmentfrom
Shravya/bugfix/rentalcost_3552
Open

Shravya_bugfix/css_to_module.css_rentalCharts_3552#4092
ShravyaKudlu wants to merge 6 commits into
developmentfrom
Shravya/bugfix/rentalcost_3552

Conversation

@ShravyaKudlu

@ShravyaKudlu ShravyaKudlu commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

Description

Fixes #3552
332 PR BM Dashboard – Add .module.css for /BMDashboard/RentalChart/RentalChart

Related PRS (if any):

This frontend PR is related to the development branch.
image

Main changes explained:

  • RentalChart.css
  • Update RentalChart.jsx, to update styling and remove inline styles
  • Create RentalChart.module.css

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 http://localhost:5173/bmdashboard/rentalchart
  6. verify function graph is displayed and the functions work as expected
  7. verify this new bug fix and the CSS components, and verify the themes in dark and light mode

Screenshots or videos of changes:

image image

Note:

The light mode and dark mode is the one you see on official prod website, I haven't changed the default colors.

@netlify

netlify Bot commented Sep 18, 2025

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 551e14f
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6a376562b0a5dd00087697c1
😎 Deploy Preview https://deploy-preview-4092--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@ShravyaKudlu ShravyaKudlu force-pushed the Shravya/bugfix/rentalcost_3552 branch from 713c949 to ddf329a Compare September 18, 2025 08:45
@ShravyaKudlu ShravyaKudlu marked this pull request as ready for review September 18, 2025 08:48
@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 18, 2025

@somramnani somramnani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tested this locally using an admin account and followed the provided steps.

The RentalChart graph renders correctly, all functions work as expected, and inline styles have been replaced with the new RentalChart.module.css. Verified that the chart and components display properly in dark mode.

Issue observed:
In light mode, all graph items including table headers, dates, and titles are not visible.

Dark Mode (working as expected):
Screenshot 2025-09-18 at 11 58 20 AM

Light Mode (issue):
Screenshot 2025-09-18 at 11 58 30 AM

@MeronTeweldebrhan MeronTeweldebrhan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

**PR Review Feedback

Testing Outcome**

  1. After navigating to /bmdashboard/rentalchart, I was redirected to the login page. Submitting admin credentials did not respond immediately the page hung until a manual reload, which then loaded the correct path but showed console warnings.

  2. Dark and light mode functionality works; however, the header “Rental Cost Over Time” has poor readability in dark mode and does not meet WCAG accessibility standards.

🔎 Functionality verified, with noted issues above for improvement.

Screenshot 2025-09-18 133501 Screenshot 2025-09-18 133753

@Nhujarski Nhujarski left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I tested PR and found most everything is working as expected. All inline styles are removed from RentalChart.js and moved to RentalChart.module.css.

  • In dark mode things look great!
pr 4092 dark mode
  • In light mode we dont see the total cost or the months at the bottom.
pr4092 light mode
  • I added in a quick fix you may want to try below, I added in a ternary for font color on line 251 simialr to whats being done for bgcolor. Added a ternary to titleColor as well:
Screenshot 2025-09-18 at 12 37 19 PM Screenshot 2025-09-18 at 12 39 08 PM

@RitzzzZ2021 RitzzzZ2021 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The migration from CSS to CSS modules looks good in dark mode. The chart responds well to user interactions and clearly displays the data. All filters function as expected.

image

In light mode, the title and labels are not displayed, likely due to the title and labels being hard-coded in white. I see Nhujarski already gave a helpful solution!

image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Add darkMode check for textColor as well so that font color changes when switching to light mode.

@Aditya-gam Aditya-gam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  1. Dark Mode:
    The chart renders correctly, but the header text “Rental Cost Over Time” has poor readability against the dark background. It does not meet WCAG accessibility contrast standards.
    DarkModeReview

  2. Light Mode:
    In light mode, most visual elements, including chart items, table headers, dates, and titles, are not visible, which makes the chart unreadable.
    LightModeReview

  3. Functionality:
    Aside from the visual and accessibility issues, the chart displays correctly, the filtering works as expected, and there are no errors in the graph rendering or behavior.

TestVideo.mov

Core functionality works as intended; however, visual issues in both dark and light modes need to be addressed to ensure readability and accessibility.

@dunstanad

Copy link
Copy Markdown

✅ What works well

The Rental Chart page is responsive across different screen sizes.

Charts adapt well to both dark and light modes, with suitable colors for readability.

⚠️ Areas for improvement

The chart does not plot correctly when selecting a start and end date. It seems the start or end month is not being
handled properly.

Light mode
rental_chart_light-mode

Dark mode
rental_chart_dark-mode

Incorrect start/end date plotting
rental_chart_error

akshith312
akshith312 previously approved these changes Sep 19, 2025

@akshith312 akshith312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested Locally.
Logged in as Admin.

The charts render correctly and all the filters work properly in both light and dark modes.

image image

@Swetha-1306

Copy link
Copy Markdown

Tested the PR, everything works as described.
Screenshot 2025-09-19 at 3 11 42 PM
Screenshot 2025-09-19 at 3 10 46 PM

@ChiragBellara

Copy link
Copy Markdown
Contributor

Reviewed PR #4092

  1. The graphs render as expected in light and dark modes.
rental charts in dark mode rental charts in light mode
  1. I can see a box shadow that extends below the graph which gives the impression that the graph is not actually in the box.
box shadow around the chart

@abhirambj abhirambj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested RentalChart visually in dark mode and everything renders correctly, all chart and filter UI elements are visible, and no layout or style regressions found. CSS module migration looks good.

Screenshot 2025-09-20 at 3 56 33 PM Screenshot 2025-09-20 at 3 58 56 PM

@aryanrachala54 aryanrachala54 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested the PR locally and everything works as expected.

  • The charts render correctly in both light and dark modes.
  • All filters function properly, and the data updates as intended.
  • The transition from inline styles to RentalChart.module.css looks clean and effective.
  • No layout issues or console errors observed.
Screenshot 2025-09-20 225757 Screenshot 2025-09-20 225748

abdel-lall
abdel-lall previously approved these changes Sep 21, 2025

@abdel-lall abdel-lall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!
Screenshot 2025-09-21 010505

@laynet laynet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm getting this error when I try to checkout this branch
PR 4092

@sircarmart sircarmart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Styling still works and all inline styling was appropriately moved into the module css. Looks good in both light/dark modes
image
image

@Aswin20010 Aswin20010 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed PR #4092 (Rental Chart Styling Refactor). Verified migration from inline styles to RentalChart.module.css and confirmed proper styling consistency across light and dark themes. Checked graph rendering under /bmdashboard/rentalchart to ensure functionality and visual alignment remained intact. No UI or functional regressions found — approved the PR.

Screenshot 2025-10-21 at 3 13 02 PM Screenshot 2025-10-21 at 3 13 17 PM

@rohanrastogi311 rohanrastogi311 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi Shravya,

Well done, implementation is working well and smoothly.

PR 4092 Screenshot PR 4092 Screenshot 2

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

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.