-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jay fix color discrepancy for pie chart in PeopleReport #2326
Jay fix color discrepancy for pie chart in PeopleReport #2326
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The colours did not match example "Eat a pie 2", "Eat a pie 3" and "Eat a pie 4"
screencast-localhost_3000-2024.06.14-07_20_27.webm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the frontend PR with the latest backend on the development branch. The colors are displaying correctly in both dark and light modes. After using the view all and collapse functions, the colors match the associated legend as shown in the video.
PR2326.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I have verified the changes in this PR. the functionality works correctly. The colors on the pie chart match when toggling all and do not change when toggling between viewing all tasks and collapsing. Thanks!
Screen.Recording.2024-07-19.at.5.52.04.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jayyy-s
I have reviewed the PR , the colors match fine with list items but i found some mis alignment in the components the hours column is missing in desktop view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6dc63d5
6dc63d5
I've addressed this in the latest commits. This wasn't in the original scope of the bug, but I don't think it's worth creating a new issue for it. Thanks for catching it so we could fix it in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
I have tested the changes introduced in this PR:
- Verified that the pie chart colors for tasks completed by users (e.g., Ilya Volunteer) remain consistent when toggling between viewing all tasks and collapsing the view.
- The colors on the pie chart match and do not change during toggling, as expected.
- The feature works correctly in both light and dark modes
Thank you all, moving this to final review! |
Thank you all! |
Description
Fixes color discrepancy for pie charts on people reports (medium priority bug)
Related PRS (if any):
Use the latest development branch of HGNRest
Main changes explained:
/components/Reports/PeopleReport/components/PeopleTasksPieChart.jsx
so only thedataLegend
prop changes with View All toggle/components/common/PieChart/PieChart.jsx
so there's a separate prop for chart labels calledchartLegend
How to test:
npm install
andnpm i
to run this PR locallyIlya
and checkIlya Volunteer
(can check any other user that has tasks completed pie chart)Screenshots or videos of changes:
PR.video.mp4