Skip to content

fix: dashboard map fixes - #3779

Merged
BRaimbault merged 3 commits into
masterfrom
fix/DHIS2-22188
Sep 30, 2026
Merged

BRaimbault merged 3 commits into
masterfrom
fix/DHIS2-22188

Conversation

@BRaimbault

@BRaimbault BRaimbault commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Implements DHIS2-22188 and 2 other unreported bugs

Description

On 2.43+, Earth Engine layers on dashboard map items fail with "Unknown format".

1. Load each layer config once (LayerLoader)
On 2.43+, period types arrive after the first render, which re-runs the loader effect. Loaders change their config in place (the Earth Engine loader deletes config.config), so the second run produced a layer without format. LayerLoader now loads a given config object only once.

2. Keep pending layer loaders mounted (plugin Map)
Layers marked isLoading had their loader unmounted on any re-render (resize, new props). Thematic and event loaders waiting for period types then never loaded, and the item stayed on the spinner. Loaders now stay mounted until loaded. The marking guarded against re-running loads (13ffd7a), which fix 1 now covers. This depends on fix 1.

3. Keep legend content within its box on small items
Since c2b725d, legend content could overflow its box on short items. It now shrinks to fit and scrolls.


Quality checklist

Add N/A to items that are not applicable.

  • Dashboard tested
  • Cypress and/or Jest tests added/updated
  • Docs added N/A
  • d2-ci dependencies replaced N/A
  • Tester approved (BR)

@sonarqubecloud

Copy link
Copy Markdown

@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-3779.maps.netlify.dhis2.org

@dhis2-bot
dhis2-bot temporarily deployed to netlify September 29, 2026 17:06 Inactive
@BRaimbault BRaimbault changed the title Fix/dhis2 22188 fix: dashboard map fixes Sep 29, 2026
@BRaimbault
BRaimbault merged commit 9e44618 into master Sep 30, 2026
31 checks passed
@BRaimbault
BRaimbault deleted the fix/DHIS2-22188 branch September 30, 2026 09:58
@dhis2-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 101.17.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

This branch was previously deployed

1 inactive deployment
netlify — a3eddfb8 Deployed Sep 29, 2026 by dhis2-bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants