Sayali : Add member count display to PR Actions Done chart#4864
Open
sayali-2308 wants to merge 2 commits intodevelopmentfrom
Open
Sayali : Add member count display to PR Actions Done chart#4864sayali-2308 wants to merge 2 commits intodevelopmentfrom
sayali-2308 wants to merge 2 commits intodevelopmentfrom
Conversation
✅ 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
Implements Task #14 (PRIORITY MEDIUM): Show the number of team members next to team name in 'PR Action Done' bar charts.
The PR Action Done chart on the PR Reviews Insights page now displays the number of team members next to each team name using Unicode circled numbers (⓪①②③...). The member count is fetched from the backend API and updates dynamically based on how many active users have that team's teamCode assigned.
Implements # 14 (Priority Medium - PR Review Team Analytics Dashboard - PR Insights Frontend)
Related PRs (if any):
This frontend PR is related to the backend PR OneCommunityGlobal/HGNRest#2060
To test this PR you also need the backend PR for the test endpoint.
Main changes explained:
ActionDoneGraph.jsxto display Unicode circled numbers (⓪①②③...) next to each team name on the y-axis of the PR Action Done bar chart, showing the number of active members in that teamReviewsInsight.jsxto includememberCountwhen formatting team data from the API response, so it is correctly passed down toActionDoneGraphHow to test:
Sayali_Add_Member_Count_To_PR_Actions_Chartnpm installandnpm run start:localto run the frontend locallyhttp://localhost:5173/pull-request-analytics/reviews-insightPOST http://localhost:4500/api/loginwith admin credentials to get tokenGET http://localhost:4500/api/userprofile(with Bearer token) — copy any_idPOST http://localhost:4500/api/test/set-team-codewith body{ "userId": "<copied_id>", "teamCode": "Team E" }Ctrl+Shift+R) — Team E should now show ①Screenshots or videos of changes:
Note:
memberCountper team in the/api/analytics/pr-review-insightsresponse. The count reflects active users (isActive: true) whoseteamCodematches the team.teamCodeassigned by default. The test endpoint (/api/test/set-team-code) from the related backend PR can be used to assign teamCodes for testing.(n)e.g.(25).