analytics/assets
Matt Colligan 29e37c8342 More improvements for CSV export (#1446)
* Round time_on_page metric returned by 'pages' API

This rounds the `time_on_page` metric returned as part of the `pages`
API to the nearest second. While this shows no apparent change in the
web UI, it removes the decimal from the exported data in `pages.csv`.

* Tidy up export tests

* Round time_on_page in db query

* Add goal to CSV export tests

* Display CSV export spinner until download is ready

The mechanism used to make the page aware that the download is ready is:

- Client code sets a cookie and requests download.
- Server code handles download and removes cookie when complete.
- Client code polls every 1s to check the cookies, removing spinner when
  the export cookie is removed.
2021-11-09 09:51:38 +02:00
..
css Additional pre-commit hooks (#1428) 2021-11-03 15:46:12 +01:00
js More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
static Adds dark mode to entire dashboard (#467) 2020-12-16 11:57:28 +02:00
.babelrc React (#17) 2019-11-19 12:30:42 +08:00
.eslintrc.json 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
.prettierignore 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
.prettierrc.json Add eslint, stylelint, prettier, and pre-commit (#484) 2020-12-23 10:45:53 +02:00
.stylelintrc.json Add eslint, stylelint, prettier, and pre-commit (#484) 2020-12-23 10:45:53 +02:00
package-lock.json Upgrade NPM deps 2021-10-12 11:51:00 +02:00
package.json package.json: add version attributes (#1416) 2021-10-28 14:03:38 +02:00
postcss.config.js Update TailwindCSS to 2.0 2020-11-19 14:34:37 +02:00
tailwind.config.js Adds various dark mode missing styles (#1367) 2021-10-12 11:50:24 +02:00
webpack.config.js Polyfill ResizeObserver 2021-07-05 15:16:56 +03:00