Skip to content

fix: harden web map pages against missing API and map data - #1827

Draft
samwel141 wants to merge 2 commits into
Greenstand:mainfrom
samwel141:main
Draft

fix: harden web map pages against missing API and map data#1827
samwel141 wants to merge 2 commits into
Greenstand:mainfrom
samwel141:main

Conversation

@samwel141

Copy link
Copy Markdown
Contributor

Description

Improves frontend resilience across the web map client when API responses are missing, incomplete, or when map initialization fails.

This change hardens wallet, planter, organization, and tree pages against crashes caused by:

  • failed map initialization or bounds/view requests
  • partial or missing related API data
  • malformed SSR/ISR fallback handling
  • invalid generated query params such as keyword=undefined
  • invalid marker counts showing NaN

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Cypress integration
  • Cypress component tests
  • Jest unit tests

Manual verification:

  • Wallet, planter, organization, and tree page navigation tested locally
  • Reproduced and verified map init / bounds / partial-data error scenarios
  • Verified keyword=undefined links are no longer generated
  • Verified invalid marker counts now show 0

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@samwel141
samwel141 marked this pull request as draft June 20, 2026 10:32
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