feat: implement interactive knowledge graph visualization and AI-driven graph optimization dashboard

This commit is contained in:
RaymondVerhoef
2026-05-11 22:32:47 +02:00
parent 8192422263
commit c940c984ad
7 changed files with 207 additions and 34 deletions

View File

@@ -19,9 +19,12 @@ const Leaderboard = () => {
useEffect(() => {
// Re-evaluate badges before displaying
let data = storage.get('leaderboard:current', []);
// Supplement with users that haven't scored yet
const allUsers = storage.get('users:registry', []);
// Filter out admins from the leaderboard entirely
const nonAdminIds = allUsers.filter(u => u.role !== 'admin').map(u => u.id);
data = data.filter(entry => nonAdminIds.includes(entry.userId));
const userMap = new Map(data.map(u => [u.userId, u]));
allUsers.forEach(user => {