Skip to content

Harshavarma - Added alignment changes in "Resources Usage" chart#5311

Open
harshavarma29 wants to merge 2 commits into
developmentfrom
harshavarma_icons_to_filters
Open

Harshavarma - Added alignment changes in "Resources Usage" chart#5311
harshavarma29 wants to merge 2 commits into
developmentfrom
harshavarma_icons_to_filters

Conversation

@harshavarma29

@harshavarma29 harshavarma29 commented May 31, 2026

Copy link
Copy Markdown
Contributor

Description

Changed the alignment of the graph to match the graph in Figma design
image

Related PRS (if any):

This frontend PR is related to the development backend PR.

How to test:

  1. Check into the current branch
  2. Do npm install, and npm run start:local to run this PR locally
  3. Clear site data/cache
  4. Log in as admin user
  5. Verify the "Resources Usage" chart (http://localhost:5173/communityportal/reports/resourceusage) matches the Figma design (https://www.figma.com/design/OQsWvhGlpWUvaPXwLEiawF/HGN-Phase3---Social-Architecture-Management-and-Tracking-System?node-id=3572-6843&t=JEsiownKuvnuo9QT-0).
  6. Verify this new feature works in dark mode.

Screenshots or videos of changes:

test_video.mp4

@netlify

netlify Bot commented May 31, 2026

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit f1f266c
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6a221842760f830008b1003b
😎 Deploy Preview https://deploy-preview-5311--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.

@harshavarma29 harshavarma29 changed the title added graph alignment changes Harshavarma - Added alignment changes in "Resources Usage" chart May 31, 2026
@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Jun 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 5, 2026

Copy link
Copy Markdown

@DeepighaJ DeepighaJ 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.

  • Tested the PR locally and the graph looks great.
  • The Y-axis label "Amount" appears in multiple locations ie., one"Amount" appears on the left side and another near the legend/right side and differs from the design. Please verify whether duplicate axis labels are intended.
  • Dark mode dropdown can be improved otherwise looks good.
image image image

@HemanthNidamanuru HemanthNidamanuru 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,

I tested this locally following the steps provided and found 1 issue:

The dropdown needs styling improvement in dark mode.

Everything else is looking good!

Image Image Image Image

@Jaden300 Jaden300 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 following the provided steps. The graph alignment looks good overall. Requesting changes for the following:

  1. Dark mode dropdown styling
    The dropdown is difficult to read in dark mode - text and background colors have low contrast. This has also been flagged by previous reviewers. Please improve the dropdown styling for dark mode.

  2. Unintentional "|" character near "Insights"
    There appears to be a stray "|" character next to "Insights" that looks unintentional. Please verify and remove if not needed.

Everything else looks good - the chart alignment matches the Figma design, the feature works as expected, and CSS Modules are used correctly with no generic class names.

Image Image Image Image

@Mahitha-pasupuleti Mahitha-pasupuleti 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.

Tested locally and the feature works as expected. Requesting minor changes:

  • Improve dropdown styling in dark mode for better readability.
  • Verify the duplicate "Amount" label on the graph; it appears both on the Y-axis and near the legend.

Other than these minor issues, the graph alignment and overall implementation look good.

Image

@Abhi-R0211 Abhi-R0211 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, I tested locally on branch harshavarma_icons_to_filters, logged in as admin, navigated to http://localhost:5173/communityportal/reports/resourceusage. Here is my analysis:

What's Working Well

  • Chart bar alignment looks correct in both light and dark mode — bars are properly spaced and sized, matching the Figma layout
Image Image
  • Hover tooltip displays Returned/Loaned values correctly in both modes
  • Mobile layout stacks chart and Insights panel correctly at 375px in light mode
Image

Issues

  1. Stray | character before "Insights" heading — still present
    The pipe character (|Insights) is still visible in dark mode at mobile width.
Image
  1. "Amount" label — alignment
    "Amount" appears both as the Y-axis label on the top-left and again near the legend on the top-right. Would recommend moving the legend to the bottom of the graph for better clarity.
Image
  1. Dark mode dropdown — low contrast text still unresolved
    The filter dropdown in dark mode shows grey text on a dark background with insufficient contrast.
Image

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.

7 participants