analytics/test/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_test.exs Run tests in async mode where applicable (#2542) 2022-12-26 10:20:29 -03:00
authorise_site_access_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
authorize_plugins_api_test.exs Track tokens usage (#3438) 2023-10-18 14:14:30 +02:00
favicon_test.exs Escape domain when creating URL for favicon (#2942) 2023-05-19 13:26:13 +02:00
first_launch_plug_test.exs improve first launch experience for self-hosters (#2357) 2022-11-10 12:42:22 +01:00
no_robots_test.exs Prevent robots from looking too much into public dashboards (#3118) 2023-07-11 10:47:03 +02:00
session_timeout_plug_test.exs Formatting only changes - No code change (#75) 2020-06-08 10:35:13 +03:00
tracker_test.exs Run tests in async mode where applicable (#2542) 2022-12-26 10:20:29 -03:00