Skip to content

Linlin - feat: implement inline summary below reviewers with interactive gradi… - #5493

Open
linlin-husky wants to merge 2 commits into
developmentfrom
Linlin-fix-pr5164-inline-summary
Open

Linlin - feat: implement inline summary below reviewers with interactive gradi…#5493
linlin-husky wants to merge 2 commits into
developmentfrom
Linlin-fix-pr5164-inline-summary

Conversation

@linlin-husky

@linlin-husky linlin-husky commented Sep 2, 2026

Copy link
Copy Markdown
Screenshot 2026-09-03 at 9 59 10 AM Screenshot 2026-09-03 at 9 59 20 AM Screenshot 2026-09-03 at 9 59 31 AM Screenshot 2026-09-03 at 9 59 35 AM

Description

Fixes # 12 (PRIORITY URGENT) Yeshwanth: PR Review Team Analytics Dashboard - Finishing Follow up for PR #5164. Fix Main branch for Inline summary information to show below each reviewer.

PR #5164 previously merged backend integration and intended to introduce inline grading summaries, but the inline summary display beneath reviewer rows was either lost in recent branch merges or retained duplicate modal popups. This PR completes the follow-up by restoring the inline summary below each reviewer row, eliminating redundant modal popups in favor of pure in-place grading, maintaining visual tag consistency for paired versus single PRs, and scoping all component CSS classes.

Related PRS (if any):

  • Follow-up for merged frontend PR #5164
  • Related to merged backend PR #3826

Main changes explained:

  • **Create src/components/PRGradingScreen/InlinePRSummary.jsx**: Introduces a modular subcomponent rendering the inline summary table below each reviewer. Provides interactive checkboxes for all four grading tiers (Exceptional, Okay, Unsatisfactory, and Cannot find image mapped to backend enum No Correct Image).
  • **Update src/components/PRGradingScreen/PRGradingScreen.jsx**: Renders InlinePRSummary beneath each reviewer row using keyed React.Fragment blocks to ensure clean React reconciliation. Hooks checkbox changes directly to state updates without triggering disruptive popup modals.
  • **Update src/components/PRGradingScreen/PRGradingScreen.module.css**: Adds scoped styling rules strictly prefixed with pr-grading-inline-* to adhere to project rules against generic CSS class names. Ensures full-stack paired PR tags (containing +) render with green backgrounds and single PR tags render with grey backgrounds across both light and dark themes without CSS specificity conflicts.

How to test:

  1. Check into branch Linlin-fix-pr5164-inline-summary
  2. Run npm install and npm run start:local to start the client locally
  3. Clear site data/cache
  4. Log in as an admin user
  5. Navigate to http://localhost:5173/pr-grading-test (or the active local port shown in your terminal)
  6. Select any team (e.g., 91NePRT) to load reviewer data
  7. Verify that each reviewer row renders an inline summary card directly underneath
  8. Verify that paired PR numbers (e.g., 3100 + 1410) display in green tags and single PR numbers (e.g., 2045) display in grey tags within both the main reviewer row and the inline summary table
  9. Click any checkbox under Exceptional, Okay, Unsatisfactory, or Cannot find image and verify that the grade updates immediately in place without modal popups
  10. Click + Add new, enter a new valid PR number (e.g., 1070 + 1256), and confirm that the new PR appends directly to both the parent row and the inline summary list
  11. Toggle dark mode and confirm container borders, table headers, text contrast, and PR badge styles render properly

Screenshots or videos of changes:

Screen.Recording.2026-09-02.at.3.54.38.PM.mov
Screenshot 2026-09-02 at 3 57 22 PM Screenshot 2026-09-02 at 3 57 13 PM Screenshot 2026-09-02 at 3 57 02 PM Screenshot 2026-09-02 at 3 56 54 PM

Note:

Testing this PR does not require running the backend service locally, as /pr-grading-test uses decoupled local mock data for UI testing. All CSS classes strictly adhere to the pr-grading-inline-* prefix convention to prevent collisions with other dashboard components.

@netlify

netlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 8e4b3c9
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6a9b2cbf87f7620008787e20
😎 Deploy Preview https://deploy-preview-5493--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.

@one-community one-community changed the title feat: implement inline summary below reviewers with interactive gradi… Linlin - feat: implement inline summary below reviewers with interactive gradi… Sep 3, 2026
@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Sep 3, 2026
DeMoliT1on
DeMoliT1on previously approved these changes Sep 3, 2026

@DeMoliT1on DeMoliT1on left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested locally for frontend PR changes branch Linlin-fix-pr5164-inline-summary and everything seems to be working correctly.


Overall Assessment

Verified Working

  • Inline summary card rendering beneath reviewer rows
  • PR badge color coding (green for paired PRs, grey for single PRs)
  • Instant inline grade updates on checkbox selection
  • Add new PR functionality reflecting in both parent row and summary card
  • UI styling and contrast in both Light and Dark themes
Image Image

The inline summary card, PR badge formatting, grade toggling, and dark mode styles all work as expected.

Approved!

@iAbhi001
iAbhi001 self-requested a review September 3, 2026 22:01
iAbhi001
iAbhi001 previously approved these changes Sep 3, 2026

@iAbhi001 iAbhi001 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested locally on branch Linlin-fix-pr5164-inline-summary. Everything functions as expected.

Local Test Summary

  • Inline Summary Rendering: Verified that the inline summary card properly renders beneath each reviewer row on /pr-grading-test without modal popups.
  • Badge Styling: Paired PR numbers (3100 + 1410) consistently display with green tags, and single PR numbers (2045) display with grey tags across both the reviewer row and inline table.
  • Grading Interaction: Checkboxes for all four tiers (Exceptional, Okay, Unsatisfactory, Cannot find image) update state immediately in place.
  • Add New PR: Successfully appended new PR entries (e.g., 1070 + 1256), reflecting immediately in both the parent row and inline list.
  • Theme Support: Verified UI layout, borders, and contrast in both Light and Dark themes without visual regressions.
Image Image Image

LGTM! Approved.

@linlin-husky
linlin-husky dismissed stale reviews from iAbhi001 and DeMoliT1on via 8e4b3c9 September 4, 2026 20:40
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@DeepighaJ DeepighaJ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  • Verified the PR Grading Test page with reviewer data and confirmed that:
  • Inline summary cards render correctly under each reviewer row.
  • Paired and single PR numbers display with the expected tag styles.
  • Grade selections update immediately without modal popups.
  • New PR entries are added correctly to both the parent row and inline summary.
  • Dark mode styling, borders, headers, text contrast, and PR badges display properly.
Image Image Image Image Image

@AnshShah-18 AnshShah-18 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested locally on /pr-grading-test. Verified the inline summary renders under reviewers, grade changes update in place without popups, paired and single PR styling is correct, adding a paired PR updates both the main row and inline summary, Cannot find image grading works as expected, and dark mode remains readable.

Image Image Image

Everything worked as expected. Approving this PR.

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.

6 participants