Show player game counts with tooltip in admin table

This commit is contained in:
2026-02-05 13:31:03 +01:00
parent a2b3c47462
commit 3dbe9c56ad
5 changed files with 10 additions and 2 deletions

View File

@@ -42,13 +42,16 @@ public static class AdminEndpoints
var voters = await db.Players
.AsNoTracking()
.Include(p => p.Suggestions)
.OrderBy(p => p.DisplayName ?? p.Username)
.Select(p => new VoteStatusDto(p.Id,
p.DisplayName ?? p.Username,
p.Username,
p.CurrentPhase,
p.VotesFinal,
p.HasJoker))
p.HasJoker,
p.Suggestions.Count,
p.Suggestions.Select(s => s.Name).ToList()))
.ToListAsync();
var waiting = voters.Where(v => !v.Finalized).Select(v => v.Name).ToList();