feat: reviewers / issues / opened-PR leaderboards#231
Merged
Progi1984 merged 4 commits intoJun 30, 2026
Conversation
Add three new "Top" leaderboards (reviewers, issue reporters, PR authors) alongside the existing contributors/companies sections, driven by a shared ranking data contract. - types: RankingEntry / Ranking + reviews / issuesOpened / pullRequestsOpened counters on Contributor - TopRankingView: reusable leaderboard card built on the existing TopCard (rank medal, avatar, name, count column, GitHub profile link) - app.vue / TopSectionView: fetch the three ranking files and render a card per metric, hidden when its ranking is empty - deterministic mock-data generator (scripts/generate-mock-stats.mjs) so the UI can be reviewed before the data pipeline lands - vitest coverage for the new components Note: ranking data is currently mocked. Real data comes from the Traces pipeline — see PrestaShop/traces#232. 🤖 Generated with Claude Code
Member
|
@PrestaEdit Traces is Merged and released. Could you check your PR and give us screenshots or vidéo for checking the behavior ? Thanks |
Add traces:fetch:pullrequests:all / traces:fetch:issues / traces:generate:topstats to the scheduled Build & Deploy pipeline, and publish top_reviewers.json, top_issues.json and top_pullrequests.json to the site. Requires prestashop/traces >= v6.3.0 (pulled by composer create-project). 🤖 Generated with Claude Code
Progi1984
reviewed
Jun 30, 2026
| @@ -0,0 +1,62 @@ | |||
| // Deterministic mock generator for the Top stats leaderboards. | |||
Contributor
Author
There was a problem hiding this comment.
Removed in 8ddaf39 — real ranking data now comes from prestashop/traces v6.3.0 via the Build & Deploy workflow, so the temporary mock generator is no longer needed.
Progi1984
reviewed
Jun 30, 2026
Comment on lines
+34
to
+37
| # Superpowers brainstorm (transient) | ||
| .superpowers/ | ||
| # Superpowers workflow docs (kept local only) | ||
| docs/superpowers/ |
Member
There was a problem hiding this comment.
Suggested change
| # Superpowers brainstorm (transient) | |
| .superpowers/ | |
| # Superpowers workflow docs (kept local only) | |
| docs/superpowers/ |
Contributor
Author
There was a problem hiding this comment.
Removed in 508a043 (both superpowers .gitignore entries).
Real ranking data is now produced by prestashop/traces v6.3.0 via the Build & Deploy workflow, so the temporary mock generator is no longer needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Progi1984
approved these changes
Jun 30, 2026
Contributor
Author
Progi1984
marked this pull request as ready for review
June 30, 2026 16:14
4 tasks
Contributor
Author
|
Follow-up moved to its own PR (this one was already merged): #233 — full-population Wall-of-Fame tabs (Reviewers / Issue reporters / PR authors) + Top-50 cap. Depends on PrestaShop/traces#233. |
3 tasks
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.



Summary
Adds three new "Top" leaderboards next to the existing Contributors/Companies sections, to surface contribution types that are invisible today:
How it works
TopRankingView.vuerenders each leaderboard through the existing genericTopCard(rank medal, avatar, name, count column, GitHub profile link).app.vuefetches three pre-sorted ranking files (top_reviewers.json,top_issues.json,top_pullrequests.json) and passes them toTopSectionView; a section whose ranking is empty/missing is hidden (no crash).RankingEntry/Rankingand three optional counters (reviews,issuesOpened,pullRequestsOpened) onContributorform the data contract.scripts/generate-mock-stats.mjs) produces mock ranking files so the UI can be reviewed now. These files are gitignored (generated by Traces in production), consistent with the existingpublic/*.jsondatasets.Data dependency
Real data is produced by the Traces CLI — see PrestaShop/traces#232 (adds
traces:fetch:issues,traces:fetch:pullrequests:all,traces:generate:topstats). Once merged and deployed, the three ranking files join the published dataset and these sections show real figures.Test Plan
vitest run— green (TopRankingView + TopSectionView component tests, incl. empty-ranking-hidden case)eslint .— clean