analytics/assets/js/dashboard
Matt Colligan f576fa2a2c
Improvements to CSV export (#1427)
* Add details=True to export API parameters

This makes the ZIP export add `%{"details" => "True"}` to the query's
`params` when fetching data internally for packaging in the ZIP.

This adds bounce_rate and time_on_page to the data in pages.csv, and
bounce_rate and visit_duration to sources.csv.

* Make API return data with consistent names

Some of the data types returned via the JSON or CSV API use inconsistent
naming, and some have redundant name changes (i.e. count -> visitors ->
count). This makes these all consistent and removes the redundancy.

This addresses #1426, fixes some of the CSV headers, and unifies the
JSON and CSV return data labels.

* Update changelog

* Test should use Timex.shift, not relative time

* Return full country names in CSV export

This also replaces the " character with ' in two country names, as those
are the characters used in the names, yielding a more predictable and
'correct' output.

* Fetch CSV exported data concurrently

* Use spinner to indicate when export has started

* Use 300 as default number of brekadown entries for export

Higher numbers (e.g. 1000) seem to cause clickhouse errors when there
many pages to request. It is unclear what is causing the error, as
clickhouse returns an "unknown" error code and an empty error message.
2021-11-04 14:20:39 +02:00
..
components Fix search select font size and eslint 2021-07-23 11:22:33 +03:00
stats Improvements to CSV export (#1427) 2021-11-04 14:20:39 +02:00
api.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
date.js Fix 'last month' link option 2021-03-31 15:14:10 +03:00
datepicker.js Adds various dark mode missing styles (#1367) 2021-10-12 11:50:24 +02:00
error-boundary.js Adds dark mode to entire dashboard (#467) 2020-12-16 11:57:28 +02:00
fade-in.js Additional pre-commit hooks (#1428) 2021-11-03 15:46:12 +01:00
filters.js Adds various dark mode missing styles (#1367) 2021-10-12 11:50:24 +02:00
historical.js Adds list-based country report option (#1381) 2021-10-14 10:55:43 +02:00
index.js Invitations (#1122) 2021-06-16 15:00:07 +03:00
lazy-loader.js Fix for details button misbehaving on mobile (#1114) 2021-06-15 10:34:43 +03:00
mount.js Invitations (#1122) 2021-06-16 15:00:07 +03:00
number-formatter.js Various formatting improvements 2021-03-24 12:08:05 +02:00
pinned-header-hoc.js Clean up pinned-header-hoc 2021-03-31 16:08:30 +03:00
query.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
realtime.js Adds list-based country report option (#1381) 2021-10-14 10:55:43 +02:00
router.js Add filter groups (#1167) 2021-07-21 16:50:26 +03:00
site-switcher.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
storage.js Don't use localStorage when the browser doesn't support it (#971) 2021-04-28 11:31:10 +03:00
theme-consumer-hoc.js Adds dark mode to entire dashboard (#467) 2020-12-16 11:57:28 +02:00
theme-context.js Adds dark mode to entire dashboard (#467) 2020-12-16 11:57:28 +02:00
theme-provider-hoc.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
url.js Eslint improvements 2021-09-27 16:16:25 +02:00