analytics/assets/js
Vini Brasil 061cb6ec83
Remove the ability to collapse the main graph + transition bug fix (#2627)
* Remove the ability to collpase the top graph

This commit removes the ability to collapse the top graph. The graph
collapsed whenever `metric` was falsy. I removed all related code to
that. Metric now defaults to visitors.

We want to add new items to top stats, and this commit will make it
easier to change it. Also, there's currently a bug where top stats is
randomly collapsing, which should be fixed by this commit.

* Refactor graph and top stats loading state

The graph loading state shows and hides the graph conditionally
depending on whether the data is loaded, loading or refreshing.

The current code is a bit difficult to read because its big
conditionals. This commit refactors the loading state making it easier
to read.

This commit also fixes a bug where the graph wasn't fading out when
changing metrics.
2023-01-31 16:11:51 -03:00
..
dashboard Remove the ability to collapse the main graph + transition bug fix (#2627) 2023-01-31 16:11:51 -03:00
polyfills 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
app.js 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
embed.content.js Allow custom styles to be passed to embedded iframe (#1522) 2021-12-08 11:53:37 +02:00
embed.host.js Allow custom styles to be passed to embedded iframe (#1522) 2021-12-08 11:53:37 +02:00