Skip to content

Comments

Allow admins to view submission code on active leaderboards#170

Merged
msaroufim merged 1 commit intomainfrom
admin_button
Feb 12, 2026
Merged

Allow admins to view submission code on active leaderboards#170
msaroufim merged 1 commit intomainfrom
admin_button

Conversation

@msaroufim
Copy link
Member

Summary

  • Admins can now click on file names in the rankings to view submission code, even on active (non-expired) leaderboards
  • Non-admin users still see plain, non-clickable file names on active leaderboards (unchanged)
  • No backend changes needed — the /api/codes endpoint already authorizes admin access for active leaderboards

Test plan

  • Log in as an admin user and visit an active leaderboard — file names in rankings should be clickable and open the code dialog
  • Log in as a non-admin user and visit an active leaderboard — file names should be plain text, not clickable
  • Visit an expired leaderboard as any user — file names should remain clickable (existing behavior)

Non-admin users still see plain text file names on active leaderboards.
Admins get clickable buttons that open the code dialog. The backend
already authorizes admin access to codes for active leaderboards, so
this is a frontend-only change.

Also removes the LOC column entirely.
@msaroufim msaroufim temporarily deployed to kernelboard-admin-butto-tyhqod February 12, 2026 16:26 Inactive
@msaroufim msaroufim merged commit 1fb78e7 into main Feb 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant