[GSSoC'26] fix: allow admin dashboard mapped roles#1159
Conversation
|
Hi @vipul674, thanks for contributing to Nyay Setu! 🎉 I have automatically:
Our workflows will now analyze your changes to classify:
Tip Ensure your PR description references the issue it resolves (e.g. Happy coding! 🚀 |
|
@vipul674 is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@viru0909-dev — All CI checks are green. This PR is ready for review and merge. Merge-Ready PR ReportVerdictMERGE_READY (all GitHub Actions CI green; Vercel deploy is external authorization blocker only) Issue and Assignment
Files Changed
Testing & VerificationAll 17 frontend tests pass. Backend tests pass. NLP tests pass. Build-and-push passes. CI Status
Known Limitations
GSSoC 2026 ComplianceThis contribution was prepared with AI assistance and manually reviewed before submission. Closes #1082 |
Summary
authRedirectmaps to/adminto pass the/admin/*protected route.Files Changed
frontend/nyaysetu-frontend/src/App.jsx: expands admin route allowed roles to includeTECH_ADMIN,TECHNICAL_TEAM, andSUPER_JUDGE.frontend/nyaysetu-frontend/src/App.adminRoles.test.js: verifies the admin route allows every role sent there after auth.Testing Performed
npm cinpm test -- src/App.adminRoles.test.js --runnpm run buildKnown Limitations
Footer.jsxand large chunk warnings.GSSoC
Please add the appropriate GSSoC label if applicable.
AI Assistance Disclosure
This PR was prepared with AI assistance and manually reviewed before submission.
Closes #1082