Skip to content

feat(dashboard): Add admin panel and role support#47

Merged
mrepol742 merged 2 commits intohallofcodes:masterfrom
mrepol742:master
Mar 25, 2026
Merged

feat(dashboard): Add admin panel and role support#47
mrepol742 merged 2 commits intohallofcodes:masterfrom
mrepol742:master

Conversation

@mrepol742
Copy link
Member

  • Add server-side admin page that checks Supabase auth and redirects non-admin users
  • Implement Admin Dashboard and widgets under app/components/admin (TopInsights, FeatureInsights, RankingInsights, UserLists) with polling for live stats
  • Pass role from dashboard layout to DashboardLayout and update Navbar Sidebar to accept role and conditionally show admin nav
  • Add role field to supabase-types and include migration to add role column with a check constraint on profiles
  • Minor formatting/whitespace fixes in Stats and Navbar components

- Add server-side admin page that checks Supabase auth and redirects
  non-admin users
- Implement Admin Dashboard and widgets under app/components/admin
  (TopInsights, FeatureInsights, RankingInsights, UserLists) with
  polling
  for live stats
- Pass role from dashboard layout to DashboardLayout and update Navbar
  Sidebar to accept role and conditionally show admin nav
- Add role field to supabase-types and include migration to add role
  column
  with a check constraint on profiles
- Minor formatting/whitespace fixes in Stats and Navbar components
- Add HTML Editor, Contribute on GitHub, and Hall of Codes links to the
  sidebar with corresponding FontAwesome icons
- Import faGlobe, faEdit, and faCodeBranch in Navbar.tsx
- Open external (http) links in a new tab via target="_blank"
@mrepol742 mrepol742 merged commit eb4c004 into hallofcodes:master Mar 25, 2026
1 check failed
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