-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: when rendering for push analytics, disable download button unti…
…l map is rendered (#3072) * feat: disable download button until map is rendered * chore: code cleaning * chore: code cleaning * chore: code comment * fix: isPushAnalytics url param * fix: isPushAnalytics url param * chore: update @dhis2/analytics and deduplicate deps * chore: read single url param * fix: ensure isDownload is a bool to avoid prop-types error * fix: add class-names for push-analytics * fix: check download param when navigating to new * fix: prevent enabling download button while loading mask is showing * fix: add class to map container when no map id is set * fix: improve hover states and add consistent spacing [UX-161] (#3121) * fix: make `dhis2-map-new` class independent of downloadMode * feat: add push analytics instructions * chore: upgrade @dhis2/maps-gl --------- Co-authored-by: HendrikThePendric <hendrik@dhis2.org> Co-authored-by: Jen Jones Arnesen <jennifer@dhis2.org> Co-authored-by: Joseph John Aas Cooper <joe@dhis2.org>
- Loading branch information
1 parent
fcc5eaa
commit 4b1076c
Showing
8 changed files
with
101 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"version": "0.0.1", | ||
"showVisualization": { | ||
"strategy": "navigateToUrl", | ||
"steps": [ | ||
{ "goto": "{{appUrl}}/#/{{id}}/download?isPushAnalytics=true" }, | ||
{ "waitForSelector": ".push-analytics-download-button:enabled" } | ||
] | ||
}, | ||
"triggerDownload": { | ||
"strategy": "useUiElements", | ||
"steps": [{ "click": ".push-analytics-download-button" }] | ||
}, | ||
"obtainDownloadArtifact": { | ||
"strategy": "interceptFileDownload" | ||
}, | ||
"clearVisualization": { | ||
"strategy": "navigateToUrl", | ||
"steps": [ | ||
{ "goto": "{{appUrl}}/#/" }, | ||
{ "waitForSelector": ".dhis2-map-new .dhis2-map-rendered" } | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters