Skip to content

Conversation

@jenniferarnesen
Copy link
Collaborator

https://dhis2.atlassian.net/browse/CLIM-17

In this PR, the import page has been restructured and the UX improved:

  • The data element list is populated based on the selected period type. This happens by fetching all the data sets and filtering based on the selected period type, resulting in a list of data elements for the period type. The app ignores if a data element has been added to 2 or more data sets having different period types. It is up to the implementation properly structure the metadata. The setup guide should help admins avoid this situation, but we can't guarantee this.

  • The instructions on the side have been removed, and instead, the import form includes the needed info directly in the form.

  • Visual styling improvements

  • The period type selector is placed above other selections because it influences what data elements are available in the data element selector.

  • If it is relevant to either know or select the time zone (e.g. hourly data), then it is displayed.

  • The setup guide now recommends including the selected period type in the code of the data element (for autofilling the data element to import into dhis2).

  • An import preview summary has been added to inform the user of what is being imported.

  • Unit tests have been added to demonstrate support for non gregorian calendars

  • Date validation based on date range for a dataset. It will inform the user if a date is selected that is outside of the range.

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Dec 12, 2025

🚀 Deployed on https://pr-93.climate-app.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify December 12, 2025 15:58 Inactive
@jenniferarnesen jenniferarnesen changed the title feat: import page improvements and ENACTS (#89) feat: release branch for import page improvements and ENACTS (#89) Dec 12, 2025
@dhis2-bot dhis2-bot temporarily deployed to netlify December 19, 2025 16:07 Inactive
@jenniferarnesen jenniferarnesen force-pushed the feat/release-import-page-and-enacts branch from d39b563 to cc79871 Compare December 19, 2025 16:08
@dhis2-bot dhis2-bot temporarily deployed to netlify December 19, 2025 16:09 Inactive
@jenniferarnesen jenniferarnesen force-pushed the feat/release-import-page-and-enacts branch from cc79871 to 7ebf0f7 Compare December 24, 2025 06:25
@dhis2-bot dhis2-bot temporarily deployed to netlify December 24, 2025 06:26 Inactive
@jenniferarnesen jenniferarnesen force-pushed the feat/release-import-page-and-enacts branch from 7ebf0f7 to ff8d951 Compare December 24, 2025 06:36
@dhis2-bot dhis2-bot temporarily deployed to netlify December 24, 2025 06:37 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 30, 2025 09:40 Inactive
@jenniferarnesen jenniferarnesen force-pushed the feat/release-import-page-and-enacts branch from 9392f34 to d456729 Compare December 30, 2025 09:40
https://dhis2.atlassian.net/browse/CLIM-17

In this PR, the import page has been restructured and the UX improved:

* The data element list is populated based on the selected period type.
This happens by fetching all the data sets and filtering based on the selected period type,
resulting in a list of data elements for the period type. The app ignores if a data element
has been added to 2 or more data sets having different period types. It is up to the implementation
properly structure the metadata. The setup guide should help admins avoid this situation,
but we can't guarantee this.

* The instructions on the side have been removed, and instead, the import form
includes the needed info directly in the form.

* Visual styling improvements

* The period type selector is placed above other selections because it influences
what data elements are available in the data element selector.

* If it is relevant to either know or select the time zone (e.g. hourly data), then it is displayed.

* The setup guide now recommends including the selected period type in the code
of the data element (for autofilling the data element to import into dhis2).

* An import preview summary has been added to inform the user of what is being imported.

* Unit tests have been added to demonstrate support for non gregorian calendars
* Date validation based on date range for a dataset. It will inform the user if a date is
selected that is outside of the range.
@dhis2-bot dhis2-bot temporarily deployed to netlify December 30, 2025 09:47 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 30, 2025 09:48 Inactive
i18n.t statements must unfortunately be enclosed in a function in order for the the translated string to display.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 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