devtrack icon indicating copy to clipboard operation
devtrack copied to clipboard

[BUG]: PR Analytics Breakdown Issue Persists

Open PraneshJha1038 opened this issue 6 months ago • 11 comments

Describe the Bug

Even after the suggested fix ( addition of truncate, min-w-0, and persistence of md:grid-cols-4) at the pr analytics text overflow issue (#143), the issue still persists

Steps to Reproduce

  1. Go to site
  2. navigate to "PR Analytics"
  3. See error
current behavior expected behavior Changes Done Observation
image image effect of md:grid-cols-4 was nullified grid structure is uniform across devices, and is not breaking
image image "truncate was removed from the class name for avg. review time grid element whole text of the data as well as label loads, unlike the other grid elements(For which truncate was not removed from class name) which have text cut-off

Environment

  • OS: [e.g. macOS 14, Ubuntu 22.04]: Windows 11
  • Node version: [e.g. 18.17.0] : N/A
  • Browser: [e.g. Chrome 120]: Brave Browser

Additional Context

Any other context about the problem.

PraneshJha1038 avatar May 19 '26 07:05 PraneshJha1038

@Priyanshu-byte-coder Please assign this issue to me

PraneshJha1038 avatar May 19 '26 07:05 PraneshJha1038

Hi @Priyanshu-byte-coder, I would like to work on this issue under GSSoC 2026.

Approach:

  • Investigate the current PR Analytics layout implementation and identify why the previous fixes (truncate, min-w-0, and md:grid-cols-4) are not behaving consistently.
  • Refactor the grid structure to maintain a stable and responsive layout across different screen sizes.
  • Fix text overflow issues by properly handling wrapping, truncation, and container sizing for all analytics cards.
  • Ensure labels and metric values remain readable without breaking the UI alignment.
  • Test the component on multiple viewport sizes and browsers to confirm consistent behavior.
  • Maintain compatibility with the existing theme and styling conventions of the project.

Please assign this issue to me. Thank you!

ishita526 avatar May 19 '26 10:05 ishita526

Confirmed. The truncate class was removed from Avg Review Time in the stat grid causing text overflow, and separately the responsive grid issue persists on smaller viewports.

The fix: add min-w-0 truncate back to all stat label+value spans in the PR Analytics grid, and use lg:grid-cols-4 instead of md:grid-cols-4 to give more room on tablet-sized screens. Anyone working on this should check the current state of PRMetrics.tsx before submitting — PR #359 is already addressing the grid breakpoint and we may have an active fix in progress.

Priyanshu-byte-coder avatar May 19 '26 10:05 Priyanshu-byte-coder

can u assign me this under gssoc'26

jahnavi-karanwal avatar May 22 '26 17:05 jahnavi-karanwal

@jahnavi-karanwal This issue is already taken by @PraneshJha1038. Check other open issues!

github-actions[bot] avatar May 22 '26 17:05 github-actions[bot]

@PraneshJha1038 — 8 days since assignment with no progress on this bug. I've debugged similar issues before and can fix this. @Priyanshu-byte-coder please reassign to me.

rajesh-puripanda avatar May 30 '26 21:05 rajesh-puripanda

/assign

vaishnavi003-svg avatar Jun 15 '26 16:06 vaishnavi003-svg

Reassigning to @ishita526 — this issue had no PR and no activity for over a month, so it's going to the next person who asked for it (first come, first served).

@ishita526 it's yours: please open a PR within 7 days or it'll be released again. If you're no longer interested, just say so and I'll pass it on.

Priyanshu-byte-coder avatar Jul 29 '26 17:07 Priyanshu-byte-coder

Hey @ishita526 — this issue was assigned a while back with no recent activity. Unassigning so it's available for Hacktoberfest contributors. Still working on it? Comment and we'll reassign you.

Priyanshu-byte-coder avatar Oct 14 '26 18:10 Priyanshu-byte-coder

Assigned to @Priyanshu-byte-coder! You have 7 days to open a PR. No PR after 7 days = auto-unassigned so others can pick it up. Good luck!

github-actions[bot] avatar Oct 14 '26 18:10 github-actions[bot]

The PR analytics widget was redesigned and the breakdown chart was removed (#3573, #3584), so this no longer applies.

Priyanshu-byte-coder avatar Nov 04 '26 03:11 Priyanshu-byte-coder