analytics/lib/plausible_web/components
Adrian Gruntkowski bd93cf3b46
Refactor and consolidate user session logic (#4452)
* Extract session management from AuthController

* Don't explicitly pass `current_user_id` to `live_render`'s session

* Add ability to retrieve session and user from token via `UserAuth`

* Always fetch current user (or just id) via `UserAuth` API

* Introduce `UserSession` as an embedded schema for now

* Make `UserAuth.get_user/1` accept `UserSession` as an input

* Introduce LV auth context populating user data from session on mount

* Refactor `AuthPlug` and make it populate `current_user_session` as well

* Rely on authenticated user data provided by auth plug or LV context

* Make `Sites.get_for_user(!)` accept `User` struct as well

* Set `logged_in` cookie explicitly when it's out of sync with session

* Expand modules documentation a bit

* Improve and extend tests slightly
2024-08-23 10:53:33 +02:00
..
billing Refactor and consolidate user session logic (#4452) 2024-08-23 10:53:33 +02:00
site Extract button component (#3474) 2023-11-08 11:40:07 +02:00
first_dashboard_launch_banner.ex Use sessionStorage for "dashboard first launch" banner tracking (#3892) 2024-03-26 09:49:15 +01:00
flow_progress.ex Implement new onboarding/provisioning flow progress layout (#4441) 2024-08-16 10:07:48 +02:00
generic.ex First pass: unify onboarding UI (#4445) 2024-08-19 09:10:54 +02:00
google.ex Integrations Settings section (#3427) 2023-10-18 14:01:17 +02:00
layout.ex Branding stuff (#3816) 2024-02-23 13:35:22 +02:00
settings.ex Make final touches to Imports & Exports (#4025) 2024-04-19 11:40:13 +02:00
two_factor.ex Implement UI for 2FA setup and verification (#3541) 2023-12-06 12:01:19 +01:00