Skip to content

feat: use DataDimension from @dhis2/analytics [DHIS2-19344]#3632

Merged
BRaimbault merged 23 commits intomasterfrom
feat/DHIS2-19344
Mar 17, 2026
Merged

feat: use DataDimension from @dhis2/analytics [DHIS2-19344]#3632
BRaimbault merged 23 commits intomasterfrom
feat/DHIS2-19344

Conversation

@BRaimbault
Copy link
Collaborator

@BRaimbault BRaimbault commented Mar 9, 2026

Implements DHIS2-19344

Description

Use DataDimension from @dhis2/analytics instead of custom selectors for ThematicDialog.

  • Two main adaptations to use DataDimension:
    • maps keeps dataItem.type as dataItem.dimensionItemType, also names differ (see changes to dimConf in: src/constants/dimension.js).
    • maps used to fetch the legendSet with the data item list, now it is fetched on selection with src/hooks/useDataItemLegendSet.js.
  • Simplifies initializeThematicLayer.
  • Simplifies validateThematicLayer.
  • Removes unnecessary custom components.
  • Update cypress tests.

Also fixes issue of unwanted periods sync on single thematic layers.


Quality checklist

Add N/A to items that are not applicable.


Screenshots

image image

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Mar 9, 2026

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

@dhis2-bot dhis2-bot temporarily deployed to netlify March 9, 2026 18:05 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 10, 2026 09:42 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 10, 2026 12:23 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 12, 2026 12:30 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 12, 2026 14:48 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 12, 2026 15:32 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 12, 2026 17:41 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 12, 2026 18:14 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 12, 2026 19:06 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 14, 2026 00:12 Inactive
Copy link
Collaborator Author

@BRaimbault BRaimbault left a comment

Choose a reason for hiding this comment

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

Ready for review

@BRaimbault BRaimbault marked this pull request as ready for review March 16, 2026 10:06
Copy link
Contributor

@HendrikThePendric HendrikThePendric left a comment

Choose a reason for hiding this comment

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

Looks like a good cleanup. I did leave a few minor comments though.

@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 17:54 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 20:45 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 21:15 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 21:26 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 22:40 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 22:44 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 23:05 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 23:14 Inactive
Copy link
Collaborator Author

@BRaimbault BRaimbault left a comment

Choose a reason for hiding this comment

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

Ready for re-review

@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 23:43 Inactive
@sonarqubecloud
Copy link

@dhis2-bot dhis2-bot temporarily deployed to netlify March 16, 2026 23:50 Inactive
@BRaimbault BRaimbault merged commit 25dd748 into master Mar 17, 2026
30 checks passed
@BRaimbault BRaimbault deleted the feat/DHIS2-19344 branch March 17, 2026 11:17
dhis2-bot added a commit that referenced this pull request Mar 17, 2026
# [101.9.0](v101.8.0...v101.9.0) (2026-03-17)

### Features

* use common data selector for thematic layers [DHIS2-19344] ([#3632](#3632)) ([25dd748](25dd748))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 101.9.0 🎉

The release is available on GitHub release

Your semantic-release 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