[BUG]: PR Analytics Breakdown Issue Persists
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
- Go to site
- navigate to "PR Analytics"
- See error
| current behavior | expected behavior | Changes Done | Observation |
|---|---|---|---|
| effect of md:grid-cols-4 was nullified | grid structure is uniform across devices, and is not breaking | ||
| "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.
@Priyanshu-byte-coder Please assign this issue to me
Hi @Priyanshu-byte-coder, I would like to work on this issue under GSSoC 2026.
Approach:
- Investigate the current
PR Analyticslayout implementation and identify why the previous fixes (truncate,min-w-0, andmd: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!
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.
can u assign me this under gssoc'26
@jahnavi-karanwal This issue is already taken by @PraneshJha1038. Check other open issues!
@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.
/assign
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.
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.
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!
The PR analytics widget was redesigned and the breakdown chart was removed (#3573, #3584), so this no longer applies.