feat: maintainer dashboard with moderation stats (#239)#261
Open
Peolite001 wants to merge 3 commits into
Open
Conversation
- /maintainer page with pending count, stats cards, recently moderated list - /api/maintainer/stats API with role-based access control (maintainer/admin) - Client-side auth check: redirects unauthenticated to /login?redirect=/maintainer - Contributors see 'Access Denied' instead of dashboard data - Quick links to moderation queue, admin panel, explore, submit - Responsive glass-card UI matching existing design system Closes samieazubike#239
|
@Peolite001 is attempting to deploy a commit to the webverse Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Owner
1 similar comment
Owner
Owner
Implement middleware to protect admin routes based on token verification.
Redirect non-admin users to login page.
Author
|
Go to /admin instead of /maintainer. You're simply visiting the wrong URL (/maintainer instead of /admin). The navbar correctly links to /admin. Try navigating to /admin directly, or click the Admin link in the navbar when logged in as admin. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #239
Summary
A dedicated maintainer dashboard at
/maintainerthat summarizes pending moderation, recent activity, and provides quick links to moderation tools.Changes
web/src/app/maintainer/page.tsxweb/src/app/api/maintainer/stats/route.tsFeatures
Dashboard Cards
status: "submitted"projects with link to/queueRecently Moderated
Quick Links
Access Control
/login?redirect=/maintainerSecurity
getAuthUser()+ role validation on API (403 for non-maintainers)Acceptance Criteria