Skip to content

Snehita - PR Review Team Admin Dashboard - Add the permission check to every PR Dashboard page - #5787

Open
snehitakandula wants to merge 1 commit into
developmentfrom
Snehita_pr_dashboard_permission_check
Open

snehitakandula wants to merge 1 commit into
developmentfrom
Snehita_pr_dashboard_permission_check

Conversation

@snehitakandula

Copy link
Copy Markdown
Contributor

Description

Implements: 42. (PRIORITY HIGH) PR Review Team Admin Dashboard – Add the permission check to every PR Dashboard page.

Screenshot 2026-11-05 182736

Problem: in routes.jsx, only /pr-dashboard, the first /pr-dashboard/analytics route and /pr-grading-dashboard checked the prDashboard permission. The other PR Dashboard pages loaded for any logged-in user.

Related PRs:

Main changes explained:

Added routePermissions={RoutePermissions.prDashboard} in src/routes.jsx to all 10 routes listed in the task:

  • /pr-dashboard/promotion-eligibility
  • /pr-dashboard/top-reviewed-prs
  • /pr-dashboard/details
  • /pr-dashboard/overview
  • /pr-dashboard/reviewers
  • /pr-grading-screen
  • /pr-grading-test
  • /pr-team-analytics/popular-prs
  • /pr-team-analytics/reviewers-stacked-bar-chart
  • the second /pr-dashboard/analytics route

All PR Dashboard routes now check the same permission (13 in total). No other files changed.

How to test:

  1. Check out this branch
  2. Run npm install, then npm run start:local (frontend) and npm start (backend)
  3. Clear site data/cache
  4. Log in as an Owner/Admin and open each URL above: every page loads
  5. Log in as a Volunteer (without the PR Dashboard permission) and open each URL above: every page redirects to the Dashboard

Screenshots of changes:

Admin – page loads:
Screenshot 2026-11-05 223205

Note:

Frontend only. Backend APIs that already check permissions (for example Promotion Eligibility) are unchanged.

@snehitakandula snehitakandula added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Nov 6, 2026
@netlify

netlify Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 84f4ccf
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6aed4c69d1be01b80e36e418
😎 Deploy Preview https://deploy-preview-5787--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud

sonarqubecloud Bot commented Nov 6, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant