Skip to content

Diya fix(UI): Fixed People Report UI#4981

Open
DiyaWadhwani wants to merge 1 commit intodevelopmentfrom
Diya_Fix_PeopleReportUI
Open

Diya fix(UI): Fixed People Report UI#4981
DiyaWadhwani wants to merge 1 commit intodevelopmentfrom
Diya_Fix_PeopleReportUI

Conversation

@DiyaWadhwani
Copy link
Contributor

Description

Fixes two bugs on the People Report page: a visual artifact on the donut chart toggle, and incorrect hours calculation, causing the two pie charts to not sum to the Total Hours Logged.

Fixes # (medium) People Report page - toggle artifact + hours mismatch

Related PRS (if any):

None

Main changes explained:

  • Update UserProjectD3PieChart.jsx to remove the "Show percentage" label.
  • Update selectors.jsx to fix projectHours calculation by skipping entries that have a taskId, preventing task hours from being double-counted in the projects pie chart
  • Update selectors.jsx to fix hoursLoggedToProjectsOnly to build from projectHours directly instead of filtering through userProjects, so hours logged to projects the user was removed from are still shown
  • Update selectors.jsx to resolve project names from the time entry's projectName field directly, fixing "Unknown Project" labels for projects no longer in the user's project list
  • Update selectors.jsx to resolve task names from the time entry's projectName field as a fallback, fixing "Unnamed Task" labels for tasks without a taskName on the entry

How to test:

  1. Check into current branch and run npm install and npm run start:local
  2. Login as admin/owner
  3. Clear site data/cache
  4. Go to User Profile → People Report (blue R next to the other icons)
  5. Verify the donut chart toggle has no dark circle artifact behind it
  6. Verify "Time Logged to Projects/Non-tasks" total + "Tasks With Completed Hours" total sums to the Total Hours Logged value shown at the top
  7. Verify no "Unknown Project" or "Unnamed Task" labels appear in the pie chart legends
  8. Verify all of the above in dark mode

Screenshots or videos of changes:

Before:
Screenshot 2026-03-12 at 1 36 16 AM

After:
Screenshot 2026-03-12 at 1 35 30 AM

Note:

The hours mismatch was caused by two separate issues: task hours being double-counted in the projects chart, and projects the user was removed from being excluded entirely.
Both are now fixed. Reviewers should verify the sum of both pie chart totals matches the Total Hours Logged for multiple user profiles.

@netlify
Copy link

netlify bot commented Mar 12, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 5e388be
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69b27b287d3b950008e48235
😎 Deploy Preview https://deploy-preview-4981--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.

@sonarqubecloud
Copy link

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant