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
Robert Joonas fcfb54dde0 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
..
components Implement UI for multiple imports (#3727) 3 years ago
controllers Move metric state into localStorage 3 years ago
live Update Sentry (#3843) 3 years ago
mjml Small bugfix + refactor email reports (#3642) 3 years ago
plugins/api Plugins API: mark data_domain as nullable in capabilities schema (#3840) 3 years ago
plugs Add `GET /capabilities` to Plugins API (#3808) 3 years ago
templates Unify UA and GA4 import flow into one (#3888) 3 years ago
two_factor Implement UI for 2FA setup and verification (#3541) 3 years ago
views Unify UA and GA4 import flow into one (#3888) 3 years ago
captcha.ex Include tests for Captcha success/failure scenarios (#2344) 4 years ago
email.ex Add multiple imports per site (#3724) 3 years ago
endpoint.ex make robots.txt restrictive by default (#3905) 3 years ago
refinspector.ex Store referrers from android apps (#3715) 3 years ago
remote_ip.ex IP Block List (#3761) 3 years ago
router.ex Unify UA and GA4 import flow into one (#3888) 3 years ago