Skip to content

feat: support multiple timeline layers [DHIS2-19542] - DEPRECTATED#3593

Closed
BRaimbault wants to merge 165 commits intomasterfrom
feat/DHIS2-19542-2
Closed

feat: support multiple timeline layers [DHIS2-19542] - DEPRECTATED#3593
BRaimbault wants to merge 165 commits intomasterfrom
feat/DHIS2-19542-2

Conversation

@BRaimbault
Copy link
Copy Markdown
Collaborator

@BRaimbault BRaimbault commented Dec 4, 2025

Parent PR: #3584 > feat: support multiple split layers DHIS2-19542
Child PR: none

Implements DHIS2-19542

Description

This PR enables adding multiple timeline layers to a map.

image

Feats

  • Changes:
    • Move Timeline component from ThematicLayer component to map/Maps component.
    • Let map/Maps component pass period property down to ThematicLayer components so multiple timelines are updated in sync.
  • In:
    • src/components/map/layers/ThematicLayer.jsx
    • src/components/map/Map.jsx

 

  • Change the logic in the rendering strategy to allow timeline if other timeline layers are already there: src/components/periods/RenderingStrategy.jsx

 

  • Changes:
    • Get filter (ie periods) from already present timeline layers.
    • Change the logic to get set default periods to match other timeline layer if exists.
    • Sync period change across split layers upon successful layer validation.
  • In: src/components/edit/thematic/ThematicDialog.jsx

Quality checklist

Add N/A to items that are not applicable.

  • Dashboard tested
  • Cypress and/or Jest tests added/updated
  • Docs added
  • d2-ci dependencies replaced (analytics or maps-gl link https://github.com/dhis2/[lib]/pull/XXX) N/A
  • Tester approved (BugBash 2026-03-03)

Testing

BRaimbault and others added 30 commits June 11, 2025 11:55
…ds to sort [DHIS2-6683] (#3541)

Implements DHIS2-6683

Description
* Disable text selection while dragging the layer cards
* Disable map interactivity while dragging the layer cards

The reason for the timeout in onSortEnd is because sometimes when releasing the
drag (mouseUp), the css change happened so fast that some text got selected
right at mouseUp. Delaying it 100ms seemed to fix that.
…[DHIS2-19716] (#3547)

Support both ALL and F_EXTERNAL_MAP_LAYER_PUBLIC_ADD as maps-app admin authorities.
Update "Remove all existing layers to add a split map view."
to "Remove all other layers to add a split map view."
@dhis2-bot dhis2-bot temporarily deployed to netlify February 10, 2026 17:00 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 12, 2026 10:21 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 12, 2026 12:00 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 12, 2026 13:09 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 12, 2026 14:09 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 12, 2026 14:20 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 17, 2026 08:40 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 17, 2026 09:55 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 18, 2026 12:48 Inactive
@BRaimbault BRaimbault changed the title feat: support multiple timeline layers [DHIS2-19542] feat: support multiple timeline layers [DHIS2-19542] - sync periods first time user switches to "timeline" Feb 19, 2026
@dhis2-bot dhis2-bot temporarily deployed to netlify February 19, 2026 10:34 Inactive
@sonarqubecloud
Copy link
Copy Markdown

@dhis2-bot dhis2-bot temporarily deployed to netlify February 19, 2026 10:41 Inactive
@BRaimbault BRaimbault changed the title feat: support multiple timeline layers [DHIS2-19542] - sync periods first time user switches to "timeline" feat: support multiple timeline layers [DHIS2-19542] - sync periods only first time user switches to "timeline" Feb 19, 2026
@BRaimbault BRaimbault changed the title feat: support multiple timeline layers [DHIS2-19542] - sync periods only first time user switches to "timeline" feat: support multiple timeline layers [DHIS2-19542] - DEPRECTATED Feb 26, 2026
@BRaimbault BRaimbault removed the request for review from HendrikThePendric February 26, 2026 16:34
Base automatically changed from feat/DHIS2-19542 to feat/DHIS2-19542-release March 5, 2026 13:16
Base automatically changed from feat/DHIS2-19542-release to master March 5, 2026 14:01
@BRaimbault BRaimbault closed this Mar 5, 2026
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.

3 participants