diff --git a/lib/phoenix_kit_web/live/sessions_live.html.heex b/lib/phoenix_kit_web/live/sessions_live.html.heex index 5eb048df..c6c9d079 100644 --- a/lib/phoenix_kit_web/live/sessions_live.html.heex +++ b/lib/phoenix_kit_web/live/sessions_live.html.heex @@ -5,9 +5,9 @@ current_path={@current_path} >
- + <%!-- Header Section --%>
- + <%!-- Back Button --%> <.link navigate="/phoenix_kit/admin/dashboard" class="btn btn-outline btn-primary btn-sm absolute left-0 top-0 -mb-12" @@ -23,15 +23,15 @@ Back to Dashboard - - + + <%!-- Title Section --%>

Session Management

Monitor and manage active user sessions

- - + + <%!-- Session Statistics --%>
@@ -90,8 +90,8 @@
- - + + <%!-- Revoke Session Modal --%> <%= if @show_revoke_modal do %> <% end %> - - + + <%!-- Controls --%>
- + <%!-- Search --%>
- - + + <%!-- Filter by User Status --%>
- - + + <%!-- Refresh Button --%>
- - + + <%!-- Sessions Table --%>
@@ -240,22 +242,22 @@ <% else %> <%= for session <- @sessions do %> - + <%!-- User --%> - - + + <%!-- Token --%> - - + + <%!-- User Status --%> - - + + <%!-- Created --%> - - + + <%!-- Age --%> - - + + <%!-- Expires --%> - - + + <%!-- Actions --%>
{session.user_email} ID: {session.user_id}
{session.token_preview}... <% {badge_class, badge_text} = user_status_badge(session.user_is_active, session.user_confirmed_at) %> @@ -263,29 +265,39 @@ {badge_text} - {UtilsDate.format_datetime_with_user_format(session.created_at)} +
+
{UtilsDate.format_date_with_user_format(session.created_at)}
+
+ {UtilsDate.format_time_with_user_format(session.created_at)} +
+
<% {age_class, age_text} = format_age_badge(session.age_in_days) %> {age_text} - {UtilsDate.format_datetime_with_user_format(session.expires_at)} +
+
{UtilsDate.format_date_with_user_format(session.expires_at)}
+
+ {UtilsDate.format_time_with_user_format(session.expires_at)} +
+
- + <%!-- Revoke Single Session --%> - - + + <%!-- Revoke All User Sessions --%>
- - + + <%!-- Pagination --%> <%= if @total_pages > 1 do %>
diff --git a/lib/phoenix_kit_web/live/users_live.html.heex b/lib/phoenix_kit_web/live/users_live.html.heex index 73161e65..4559b5e6 100644 --- a/lib/phoenix_kit_web/live/users_live.html.heex +++ b/lib/phoenix_kit_web/live/users_live.html.heex @@ -209,10 +209,24 @@
- {UtilsDate.format_datetime_with_user_format(user.inserted_at)} +
+
{UtilsDate.format_date_with_user_format(user.inserted_at)}
+
+ {UtilsDate.format_time_with_user_format(user.inserted_at)} +
+
- {UtilsDate.format_datetime_with_user_format(user.confirmed_at)} +
+ <%= if user.confirmed_at do %> +
{UtilsDate.format_date_with_user_format(user.confirmed_at)}
+
+ {UtilsDate.format_time_with_user_format(user.confirmed_at)} +
+ <% else %> +
Never
+ <% end %> +