Skip to content

Sayali : fix reviewer feedback issues - load reviewers from config, fix auth token, fix React Fragment key#5235

Open
sayali-2308 wants to merge 4 commits into
developmentfrom
Sayali_Weekly_PR_Grading_Fixes
Open

Sayali : fix reviewer feedback issues - load reviewers from config, fix auth token, fix React Fragment key#5235
sayali-2308 wants to merge 4 commits into
developmentfrom
Sayali_Weekly_PR_Grading_Fixes

Conversation

@sayali-2308
Copy link
Copy Markdown
Contributor

Description

Fixes reviewer feedback issues for Task #12 (Priority Urgent)

Related PRs:

This is a follow-up fix to frontend PR #5164 (already merged).
Backend PR: #3826 (already merged).

Main changes explained:

  • Updated index.jsx to fetch reviewer names from PR grading config so reviewers appear immediately for dynamic teams without needing a refresh
  • Fixed 401 Unauthorized errors by removing manual token headers and letting httpService global axios defaults handle authentication
  • Fixed React Fragment key prop warning in PRGradingScreen.jsx by replacing <> with <React.Fragment key={reviewer.id}>
  • Fixed weeklyGradingActions.js to remove unused token parameter
  • Updated PRGradingTest.jsx to pass team name when navigating to grading screen

How to test:

  1. Check out branch Sayali_Weekly_PR_Grading_Fixes
  2. npm install and npm run start:local
  3. Clear site data/cache
  4. Log as admin user
  5. Navigate to http://localhost:5173/pr-grading-test
  6. Click on a dynamic team (e.g. 95nerft)
  7. Verify reviewers load immediately without refresh
  8. Add a PR number, click global Done button (top right)
  9. Refresh page and verify data persists
  10. Verify dark mode works

Screenshots or videos of changes:

image

Note:

Follow-up fix to PR #5164. Addresses reviewer feedback about grades not saving, team name not showing, and PR numbers disappearing after reload.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 7, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 2227cb3
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69ffad2cb7e17c0009156640
😎 Deploy Preview https://deploy-preview-5235--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.

Copy link
Copy Markdown

@HemanthNidamanuru HemanthNidamanuru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sayali,

Thank you for working on this PR.

Issue found during testing:

  1. "Error saving grades. Please try again." appears on the grading screen. Please fix the save functionality.
Image

@one-community one-community changed the title Sayali : fix reviewer feedback issues - load reviewers from config, fix auth token, fix React Fragment key Sayali : 🔥 fix reviewer feedback issues - load reviewers from config, fix auth token, fix React Fragment key May 8, 2026
@sayali-2308 sayali-2308 changed the title Sayali : 🔥 fix reviewer feedback issues - load reviewers from config, fix auth token, fix React Fragment key Sayali : fix reviewer feedback issues - load reviewers from config, fix auth token, fix React Fragment key May 9, 2026
@sayali-2308
Copy link
Copy Markdown
Contributor Author

Hi @HemanthNidamanuru thank you for testing! I've fixed the 'Error saving grades' issue — it was caused by static test teams (like 91NePRT) not having a teamCode, which caused the save API call to fail. I've added a guard to handle this case and also resolved the merge conflict with development. Please re-test on the updated branch.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 9, 2026

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants