Skip to content

Roshini Seelamsetty : Fix Global Volunteer Network map Not Populating (Total Org Summary Dashboard)#5305

Open
roshini1212 wants to merge 3 commits into
developmentfrom
Roshini-Seelamsetty-Fix-Global-Volunteer-Network-map-Not-Populating-(Total-Org-Summary-Dashboard)
Open

Roshini Seelamsetty : Fix Global Volunteer Network map Not Populating (Total Org Summary Dashboard)#5305
roshini1212 wants to merge 3 commits into
developmentfrom
Roshini-Seelamsetty-Fix-Global-Volunteer-Network-map-Not-Populating-(Total-Org-Summary-Dashboard)

Conversation

@roshini1212
Copy link
Copy Markdown
Contributor

Description

Screenshot 2026-05-29 at 17 19 11

Related PRS (if any):

N/A

Main changes explained:

  • Updated GlobalVolunteerMap.jsx
  • Added defensive validation for latitude and longitude values
  • Added support for multiple coordinate schema formats:
    location._id.lat/lng
    location.lat/lng
    location.latitude/longitude
  • Prevented invalid coordinate rendering in Leaflet
  • Added filtering for malformed location entries
  • Added fallback UI when no valid map data exists
  • Improved heatmap layer cleanup handling
  • Removed dependency on unavailable status === 'active' field for marker rendering
  • Added safer numeric conversions for coordinates and counts
  • Improved map stability and rendering consistency

How to test:

  1. Checkout the current branch
  2. Run: npm install
    npm start
  3. Clear browser cache/site data if necessary
  4. Login as: Admin
  5. Navigate to:
    Dashboard → Total Org Summary
  6. Verify:
    “Global Volunteer Network: Uniting Communities Worldwide” map renders correctly
  7. Volunteer markers appear on the map
  8. No blank map

Screenshots or videos of changes:

Before:

Screen.Recording.2026-05-25.at.16.53.58.mov

After:

Screen.Recording.2026-05-25.at.16.54.51.mov

Note:

This was a frontend rendering and data normalization issue. Backend location data was already being returned successfully, but the frontend component did not safely handle inconsistent coordinate schemas or undefined location values.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 29, 2026

Deploy Preview for highestgoodnetwork-dev ready!

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

…eer-Network-map-Not-Populating-(Total-Org-Summary-Dashboard)
@sonarqubecloud
Copy link
Copy Markdown

@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 May 30, 2026
Copy link
Copy Markdown

@DeepighaJ DeepighaJ left a comment

Choose a reason for hiding this comment

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

  • Checked out to current branch and tested PR locally.
  • Global Volunteer Network: Uniting Communities Worldwide map renders correctly as expected.
  • Volunteer markers appear on the map as expected in both light and dark mode.
Image 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.

3 participants