Wrenn Admin — Users

Users

All registered users, team memberships, and account status.

{#if !loading && !error}
{totalUsers} user{totalUsers !== 1 ? 's' : ''}
{/if}
{#if error}
{error}. Try refreshing the page.
{/if}
Name
Email
Teams
Owned
Role
Joined
Status
{#if loading && users.length === 0}
Loading users...
{:else if users.length === 0}

No users yet

Users appear here when they sign up.

{:else} {#each users as user, i (user.id)}
{#if user.status === 'active'}
{/if}
{user.name || '\u2014'} {#if user.is_admin} Admin {/if}
{user.id}
{user.email}
{user.teams_joined}
{user.teams_owned}
{formatDate(user.created_at)}
{/each} {/if}
{#if totalPages > 1}
Page {currentPage} of {totalPages}
{/if}
{#if adminTarget}
{ if (!togglingAdmin) adminTarget = null; }} onkeydown={(e) => { if (e.key === 'Escape' && !togglingAdmin) adminTarget = null; }} >

{adminTarget.is_admin ? 'Revoke Admin' : 'Grant Admin'}

{adminTarget.is_admin ? 'Remove admin access from' : 'Grant admin access to'} {adminTarget.email}. {adminTarget.is_admin ? 'They will lose access to the admin panel immediately.' : 'They will be able to manage all platform resources.'}

{#if adminTarget.is_admin && adminTarget.id === auth.userId}
You are removing your own admin access. You will lose access to this panel.
{/if} {#if adminError}
{adminError}
{/if}
{/if}