You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
5 years ago
..
components Fix search select font size and eslint 5 years ago
stats Improvements to CSV export (#1427) 5 years ago
api.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 5 years ago
date.js Fix 'last month' link option 6 years ago
datepicker.js Adds various dark mode missing styles (#1367) 5 years ago
error-boundary.js Adds dark mode to entire dashboard (#467) 6 years ago
fade-in.js Additional pre-commit hooks (#1428) 5 years ago
filters.js Adds various dark mode missing styles (#1367) 5 years ago
historical.js Adds list-based country report option (#1381) 5 years ago
index.js Invitations (#1122) 6 years ago
lazy-loader.js Fix for details button misbehaving on mobile (#1114) 6 years ago
mount.js Invitations (#1122) 6 years ago
number-formatter.js Various formatting improvements 6 years ago
pinned-header-hoc.js Clean up pinned-header-hoc 6 years ago
query.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 5 years ago
realtime.js Adds list-based country report option (#1381) 5 years ago
router.js Add filter groups (#1167) 5 years ago
site-switcher.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 5 years ago
storage.js Don't use localStorage when the browser doesn't support it (#971) 6 years ago
theme-consumer-hoc.js Adds dark mode to entire dashboard (#467) 6 years ago
theme-context.js Adds dark mode to entire dashboard (#467) 6 years ago
theme-provider-hoc.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 5 years ago
url.js Eslint improvements 5 years ago