analytics/lib/plausible_web/plugs
hq1 19b2239eb9
Track tokens usage (#3438)
* Migration: track last seen usage for Plugins API Tokens

* Track and interpret Token.last_seen_at

* Display last used

* Order tokens by inserted date, rather than UUID :clown:

* s/Last seen/Last used in the UI

* Test for "Last used" column presence

* Fix table layout for very long descriptions

* Update lib/plausible/plugins/api/tokens.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update lib/plausible/plugins/api/token.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* Update test/plausible/plugins/api/token_test.exs

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* s/last_seen_at/last_used_at

* Update lib/plausible_web/live/plugins/api/settings.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* fixup

* Document reasoning behind 5m windows

* s/last_seen/last_used

* Mute credo

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
2023-10-18 14:14:30 +02:00
..
auth_plug.ex [pg migration] Delete account with multiple subscriptions (#3220) 2023-08-02 13:45:49 +02:00
authorize_plugins_api.ex Track tokens usage (#3438) 2023-10-18 14:14:30 +02:00
authorize_site_access.ex OpenTelemetry (OTEL) Implementation (#2317) 2022-10-18 12:11:30 -03:00
authorize_sites_api.ex Add limit of 20 sites 2021-05-05 10:30:05 +03:00
authorize_stats_api.ex Implement Stats API feature gate (#3411) 2023-10-11 17:24:16 -03:00
crm_auth_plug.ex Allow admin access to locked dashboards (#1710) 2022-02-23 13:48:33 -06:00
favicon.ex Escape domain when creating URL for favicon (#2942) 2023-05-19 13:26:13 +02:00
first_launch_plug.ex improve first launch experience for self-hosters (#2357) 2022-11-10 12:42:22 +01:00
last_seen_plug.ex Formatting only changes - No code change (#75) 2020-06-08 10:35:13 +03:00
maybe_disable_registration.ex Implement better user password validation (#3344) 2023-09-25 10:27:29 +02:00
no_robots.ex Prevent robots from looking too much into public dashboards (#3118) 2023-07-11 10:47:03 +02:00
require_account.ex Trigger email reverification on change (#3388) 2023-10-11 10:25:00 +02:00
require_logged_out.ex Add elixir action (#526) 2020-12-29 15:17:27 +02:00
session_timeout_plug.ex Formatting only changes - No code change (#75) 2020-06-08 10:35:13 +03:00
tracker.ex Revenue tracking: goal conversions and tracker script (#3019) 2023-06-14 10:23:11 +01:00