-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add option to open datasets in maps-app [CLIM-155] #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/release-import-page-and-enacts
Are you sure you want to change the base?
feat: add option to open datasets in maps-app [CLIM-155] #90
Conversation
|
🚀 Deployed on https://pr-90.climate-app.netlify.dhis2.org |
BRaimbault
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready for review.
3351923 to
a3f94f7
Compare
turban
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just suggesting some minor changes.
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.
|
9392f34 to
d456729
Compare



Implements CLIM-155
Requires: dhis2/maps-app#3599
@dhis2/app-service-datastoredependency to handle sharing EE Layer as analytical object via user datastore.DataStoreProviderto exploreTabs.OpenAsMapButtoncomponent (shared, in case we want to also use in import).useUserLocalehook to check user locale (used in importPeriodandOpenAsMapButton).useAppVersionhook to check maps-app version is compatible.OpenAsMapButtonin explore:Elevation,HeatDaily,HeatMonthly,Landcover,PrecipitationDaily,PrecipitationMonthly,TemperatureDaily,TemperatureMonthlyandVegetation.