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/lib/plausible_web/controllers/api
Robert Joonas 1aace861fe Move metric state into localStorage
This commit gets rid of the internal `metric` state in the VisitorGraph
component and starts using localStorage for that instead.

This commit also chains the main-graph request into the top-stats request
callback - meaning that we'll always fetch new graph data after top stats
are updated. And we do it all in a single function.

Doing so simplifies the loading state significantly, and also helps to
make it clear, that at all times, existing top stats are required before
we can fetch the graph. That's because the metric is determined by which
Top stats are returned (for example, we can't be sure whether revenue
metrics will be returned or not).
3 years ago
..
external_controller.ex IP Block List (#3761) 3 years ago
external_stats_controller.ex Timeseries for conversion rate (#3919) 3 years ago
helpers.ex Block Stats API for locked sites (#2302) 4 years ago
internal_controller.ex Implement pinned sites (#3469) 3 years ago
paddle_controller.ex Move limit enforcement to accepting site ownership transfer (#3612) 3 years ago
stats_controller.ex Move metric state into localStorage 3 years ago