finished many ui changes + polishing dopamine hits

This commit is contained in:
2026-07-11 12:27:35 -04:00
parent 4b89a3b034
commit a8c41a6852
15 changed files with 2952 additions and 554 deletions
+2 -2
View File
@@ -36,11 +36,11 @@ async function getLeaderboard(grade, sortBy = 'elo', limit = 10) {
orderBy,
take: limit,
include: {
user: { select: { displayName: true, avatarUrl: true } },
user: { select: { displayName: true, avatarUrl: true, username: true } },
},
});
return entries.map((entry, index) => ({ ...entry, rank: index + 1 }));
return entries.map((entry, index) => ({ ...entry, ...entry.user, rank: index + 1 }));
}
async function getUserRank(userId, grade, sortBy = 'elo') {