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
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
..
api Move metric state into localStorage 3 years ago
site Allow inviting users who are members already (#3797) 3 years ago
admin_controller.ex Clean up legacy trials code + displaying limits (#3620) 3 years ago
auth_controller.ex Unify UA and GA4 import flow into one (#3888) 3 years ago
avatar_controller.ex Nolt sso (along with a better nav dropdown) (#3395) 3 years ago
billing_controller.ex Lock traffic notifications (#3641) 3 years ago
error_report_controller.ex Simplify Phoenix error template (#2913) 4 years ago
google_analytics_controller.ex Add label to site imports and populate it (#3914) 3 years ago
helpers.ex Simplify Phoenix error template (#2913) 4 years ago
invitation_controller.ex Move limit enforcement to accepting site ownership transfer (#3612) 3 years ago
page_controller.ex add landing page (#2989) 4 years ago
site_controller.ex CSV exports (UI) (#3875) 3 years ago
stats_controller.ex Put total conversions on the graph + goal-filtered CSV export improvements (#3929) 3 years ago
unsubscribe_controller.ex Add presence check when unsubscribing from email reports 6 years ago