Skip to content

Commit

Permalink
fix(push-analytics): add push analytics instructions (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric authored Mar 1, 2024
1 parent 8c92e32 commit b01a766
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"validate": "npm ls --depth 0",
"prestart": "d2-manifest package.json manifest.webapp",
"start": "webpack-dev-server",
"build": "rm -rf build && webpack --config webpack.config.prod.js && cp ./index.html build && cp ./jquery*.min.js build && cp -r i18n build && cp -r dhis2 build && cp -r extjs build && npm run manifest",
"build": "rm -rf build && webpack --config webpack.config.prod.js && cp ./index.html build && cp ./push-analytics.json build && cp ./jquery*.min.js build && cp -r i18n build && cp -r dhis2 build && cp -r extjs build && npm run manifest",
"manifest": "d2-manifest package.json build/manifest.webapp"
},
"repository": {
Expand Down
29 changes: 29 additions & 0 deletions push-analytics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": "0.0.1",
"showVisualization": {
"strategy": "navigateToUrl",
"steps": [
{ "goto": "{{appUrl}}?id={{id}}" },
{ "waitForSelector": "table.pivot" }
]
},
"triggerDownload": {
"strategy": "useUiElements",
"steps": [
{ "click": ".push-analytics-download-dropdown-menu-button" },
{ "click": ".push-analytics-download-as-html-menu-item" }
]
},
"obtainDownloadArtifact": {
"strategy": "scrapeDownloadPage",
"htmlSelector": "body",
"cssSelector": "style"
},
"clearVisualization": {
"strategy": "useUiElements",
"steps": [
{ "click": ".push-analytics-favorites-dropdown-menu-button" },
{ "click": ".push-analytics-new-events-report-menu-item" }
]
}
}

0 comments on commit b01a766

Please sign in to comment.