Skip to content

Conversation

@mdkaifansari04
Copy link

fixes: #7

Summary

This PR updates the Hackathon GitHub Pages implementation and adds the missing Review Leaderboard functionality. The goal is to keep the page simple, fully static, and easy to clone/modify through the config file.

Test Screenshot

NOTE: This is only tested for BLT REPO. And all the stats are related to the same.

I have tested my adding only the BLT repo in hackathon, to test the stats with these parameters

  • start date (November 1 2025) and end date (December 2 2025)
  • see the top contribution in BLT repo ref
  • check the screenshot attatched
s1 s2 s3 new

What’s Updated

  • Added Review Leaderboard section
  • Synced logic with the existing BLT leaderboard implementation
  • Cleaned up outdated code and data references
  • Ensured everything runs using the static config file (no backend dependency)

Goal

Keep the hackathon page lightweight and easy for any org to clone, and run their own event with an up-to-date leaderboard. Fix the pr leaderboard and added review leaderboard. (Fully tested)

Copilot AI review requested due to automatic review settings December 6, 2025 16:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a Review Leaderboard feature to the hackathon dashboard and attempts to fix data accuracy issues in the existing PR leaderboard. The implementation fetches and displays GitHub PR review activity alongside PR contributions.

Key Changes:

  • Added Review Leaderboard section to track and display PR review contributions
  • Modified PR data processing logic to better track contributors and filter out bots/Copilot
  • Changed API data fetching to sort by creation date instead of update date

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 12 comments.

File Description
js/main.js Added renderReviewLeaderBoard() method to display review leaderboard, integrated review data fetching into initialization, added getReviewStateClass() helper for review state styling
js/github-api.js Implemented getAllReviews() and processReviewData() methods for fetching and processing review data, refactored processPRData() to use new leaderboard structure, added generateReviewLeaderboard() method, modified issue/PR fetching to use creation date sorting
index.html Added Review Leaderboard section to the page, added whitespace-pre-line class to rules section for proper formatting

⚠️ Critical Issues Found:

  • Cache timeout reduced to 1 second will cause excessive API calls and rate limiting
  • Missing variable relevantByCreation in processPRData causing ReferenceError
  • Daily activity tracking broken due to removed initialization logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

(fix+feat): fix leaderboard stats with correct data, add review leaderboard

1 participant