Add Jellyfin login cache and admin-only stats

This commit is contained in:
2026-01-25 17:47:03 +13:00
parent 23549f1e45
commit 580b335268
4 changed files with 94 additions and 23 deletions

View File

@@ -188,14 +188,16 @@ export default function ProfilePage() {
: '0%'}
</div>
</div>
<div className="stat-card">
<div className="stat-label">Most active user</div>
<div className="stat-value stat-value--small">
{stats?.most_active_user
? `${stats.most_active_user.username} (${stats.most_active_user.total})`
: 'N/A'}
{profile?.role === 'admin' ? (
<div className="stat-card">
<div className="stat-label">Most active user</div>
<div className="stat-value stat-value--small">
{stats?.most_active_user
? `${stats.most_active_user.username} (${stats.most_active_user.total})`
: 'N/A'}
</div>
</div>
</div>
) : null}
</div>
</section>
<section className="profile-section">