feat: implement interactive knowledge graph visualization and AI-driven graph optimization dashboard
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user