Skip to content

Conversation

@anandani4136
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings September 13, 2025 07:15
Copy link
Contributor

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 enhances the leaderboard system with updates to sorting, tier filtering, and submission management. The changes improve tie-breaking consistency and add functionality to prevent duplicate submissions.

  • Enhanced sorting with consistent tie-breaking using displayName
  • Removed TIER4 user filtering to include all user tiers
  • Added submission status checking to prevent duplicate leaderboard submissions

Reviewed Changes

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

File Description
src/services/leaderboard/leaderboard-utils.ts Updated sorting logic, removed tier filtering, and added submission existence checking
src/services/leaderboard/leaderboard-schema.ts Added new validation schemas for submission checking and optional user promotion list
src/services/leaderboard/leaderboard-router.ts Added submission status endpoint and duplicate submission prevention logic

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@Bahl-Aryan Bahl-Aryan left a comment

Choose a reason for hiding this comment

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

theres probably more nits and some rendundancy issues (in leaderboard utils), but LGTM just want to unblock

@Bahl-Aryan Bahl-Aryan merged commit e5807b0 into main Sep 14, 2025
5 checks passed
@Bahl-Aryan Bahl-Aryan deleted the leaderboard-updates branch September 14, 2025 07:24
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.

3 participants