Purav Taking over unfinished PR #3861 - PR Review Team Analytics Dashboard#5413
Open
pixelpix13 wants to merge 1 commit into
Open
Purav Taking over unfinished PR #3861 - PR Review Team Analytics Dashboard#5413pixelpix13 wants to merge 1 commit into
pixelpix13 wants to merge 1 commit into
Conversation
…ngs. Port Manvitha's review-summary chart onto latest development with dark mode, responsive layout, and PR Dashboard navigation. Co-authored-by: Cursor <cursoragent@cursor.com>
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
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.



Description
This PR is a takeover of the unfinished frontend work from #3861 (
Manvitha-PR-Review-Team-Analytics-Dashboard).Manvitha's branch was outdated and conflicting with
development, so this PR rebuilds the feature on latestdevelopmentand only brings over the analytics feature work (not a full merge of the old branch).What this adds
GET /api/analytics/review-summaryRelated PRs
Main changes explained
GITHUB_REVIEW_SUMMARYendpoint helper inURL.js./pr-dashboard/reviewers(preferred / linked from Header)/analytics/dashboard(kept for original test path from XXXX taking over for Manvitha pr review team analytics dashboard #3861)Backend +
.envsetup (required)Reviewers must run the related backend PR and set a GitHub token, or the chart will stay empty / show an error.
1. Backend
(
feature/Purav-PR-Review-Team-Analytics-Dashboard)http://localhost:4500)2. Environment variable
In the backend
.env, add a valid GitHub token:How to create the token (same guidance as #2285 / #1648 / #3861):
public_repo/repo, or fine-grained with Pull requests: Read3. Frontend
feature/Purav-PR-Review-Team-Analytics-Dashboardnpm install(or project equivalent)https://localhost:5173orhttp://localhost:5173How to test
Primary path (recommended)
http://localhost:5173/pr-dashboard/reviewersAlternate path (legacy from #3861)
http://localhost:5173/analytics/dashboard(same component as
/pr-dashboard/reviewers)Not this PR
These are different existing pages:
/pr-dashboard/analytics→ Top Popular PRsNetwork check (optional)
In DevTools → Network, selecting a duration should call:
Screenshots
Light mode
Dark mode
Navigation
Video of changes
PR.2285+5413.mp4
Notes for reviewers
development.GITHUB_TOKENare required for real data.Test plan
GITHUB_TOKENset/pr-dashboard/reviewersfrom Header → PR Dashboard/analytics/dashboardalso loads the same dashboard/pr-dashboard/analytics(Popular PRs)