Gayatri - Fix Total Org Summary volunteer donut chart inflation - #5454
Gayatri - Fix Total Org Summary volunteer donut chart inflation#5454sawantgayatri19 wants to merge 7 commits into
Conversation
…sum in VolunteerStatusChart
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
iAbhi001
left a comment
There was a problem hiding this comment.
Hi @sawantgayatri19,
Thanks for working on this fix! I pulled your branch locally to test the changes, but I was unable to view the Total Org Summary dashboard because navigating to /totalorgsummary results in a Page Not Found (404) error.
Additionally, the branch currently has merge conflicts with the development branch (notably around src/routes.jsx), which is causing routing/syntax issues and failing automated tests.
Please rebase/merge the latest development branch into your branch, resolve the merge conflicts, and ensure the route /totalorgsummary loads as expected so we can complete testing.
…reen container/test fixes
|
|
@iAbhi001 Thanks for catching that — you were right, the branch had fallen behind development and the merge conflicts in src/routes.jsx were causing the 404 and the test failures. I've since: Merged the latest development into this branch and resolved all conflicts (including src/routes.jsx, yarn.lock, package-lock.json) Could you pull the latest changes on this branch and re-test when you get a chance? /totalorgsummary should load as expected now. |
DeepighaJ
left a comment
There was a problem hiding this comment.
Tested the Total Org Summary page with my user account. The Total Volunteers center count correctly matches the sum of the displayed volunteer status segments: 2515 Existing Active + 6 New Active + 0 Deactivated = 2521 Total Volunteers. The displayed total is consistent with the segment values, and no discrepancy was observed.
iAbhi001
left a comment
There was a problem hiding this comment.
Hi @sawantgayatri19,
Thanks for resolving the merge conflicts and updating the branch!
I pulled the latest changes and tested the /totalorgsummary page locally:
- The route
/totalorgsummaryloads as expected without any 404 errors. - The "TOTAL VOLUNTEERS*" donut chart center count is now computed dynamically and accurately reflects the sum of the visible segments: 2515 Existing Active + 6 New Active + 0 Deactivated = 2521 Total Volunteers.
- No inflation or double-counting was observed, and the mentor stats remain properly isolated.
LGTM! Approving the changes.




Description
Please include the exact bug/functionality description and a summary of the changes/ related issues. Please also include any other relevant motivation and context:
Fixed a high-priority bug on the Total Org Summary dashboard where the center count for the "TOTAL VOLUNTEERS*" donut chart was inflated (showing 2560 instead of 2514). The inflation was caused by "New Active" members being double-counted and mentor metrics being improperly added into the general volunteer pool. This fix ensures "New Active" is strictly counted as a non-overlapping segment, isolates mentors to their dedicated chart, and explicitly computes totalVolunteers in VolunteerStatusChart.jsx as the sum of visible segments (existingActive + newActive + deactivated).
Fixes # (P1 Total Org Summary: TOTAL VOLUNTEERS* donut chart center count double-counts New Active and wrongly adds Mentors)
Related PRS (if any):
This frontend PR is related to backend overview report helper logic updates for proper metric categorization.
To test this PR, ensure you are on the corresponding backend/frontend branch setup.
Main changes explained:
Update backend helper logic in overviewReportHelper.js to ensure active volunteers, new active volunteers, and mentors are mutually exclusive and correctly filtered.
Update src/components/TotalOrgSummary/VolunteerStatus/VolunteerStatusChart.jsx to dynamically compute totalVolunteers strictly from the sum of segment counts (existingActive + newActive + deactivated).
Verify that the mentor chart strictly operates on independent mentorNumberStats and that footnote guidelines remain accurate.
How to test:
Screenshots or videos of changes:

Note:
This is an urgent P1 fix for the Total Org Summary dashboard to resolve metric discrepancies before review.