Skip to content

Conversation

@tohyzhong
Copy link
Contributor

@tohyzhong tohyzhong commented Mar 8, 2025

Description

  • Added Overall Leaderboard and Contest Leaderboards
  • XP and contest score fetching from backend
  • podium display for each leaderboard
  • customise number of entries to display in overall leaderboard in course config panel and create courses
  • dropdown to switch between leaderboards
  • routing to different leaderboards (url + dropdown)
  • links for contest entries
  • added contest scores update button in ground control (under voting features)
  • export as CSV for admins and staff
  • contest score updating
  • contest xp issuing for contest winners
  • Fixed code links from leaderboard without using setTimeout
  • Customise XP issuing for contest winners in contest voting XML file
  • Default Source Academy Profile pictures in Leaderboard based on NUSNet ID

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Code quality improvements

How to test

Checklist

  • I have tested this code
  • I have updated the documentation

@tohyzhong tohyzhong requested a review from RichDom2185 March 8, 2025 12:15
@tohyzhong tohyzhong self-assigned this Mar 8, 2025
@tohyzhong tohyzhong marked this pull request as ready for review March 9, 2025 10:24
@tohyzhong tohyzhong marked this pull request as draft March 9, 2025 10:25
@tohyzhong tohyzhong marked this pull request as ready for review March 18, 2025 17:02
@tohyzhong tohyzhong marked this pull request as draft March 18, 2025 17:02
…st scores and popular votes, update API endpoints, and refactor export button logic.
@coveralls
Copy link

coveralls commented Jun 10, 2025

Pull Request Test Coverage Report for Build 16799105886

Details

  • 162 of 1104 (14.67%) changed or added relevant lines in 32 files are covered.
  • 5 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.6%) to 43.464%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/commons/assessment/Assessment.tsx 2 4 50.0%
src/commons/assessmentWorkspace/AssessmentWorkspace.tsx 12 15 80.0%
src/pages/academy/groundControl/configureControls/ExportScoreLeaderboardButton.tsx 0 3 0.0%
src/pages/academy/groundControl/subcomponents/GroundControlConfigureCell.tsx 0 4 0.0%
src/features/leaderboard/LeaderboardActions.ts 19 25 76.0%
src/pages/academy/groundControl/configureControls/ExportVoteLeaderboardButton.tsx 0 6 0.0%
src/pages/academy/academyRoutes.tsx 0 8 0.0%
src/pages/academy/adminPanel/AdminPanel.tsx 0 12 0.0%
src/commons/dropdown/DropdownCreateCourse.tsx 32 48 66.67%
src/pages/academy/groundControl/configureControls/CalculateContestScoreButton.tsx 0 16 0.0%
Files with Coverage Reduction New Missed Lines %
src/pages/academy/academyRoutes.tsx 1 0.0%
src/commons/sagas/RequestsSaga.ts 4 20.03%
Totals Coverage Status
Change from base Build 16762561380: -0.6%
Covered Lines: 20503
Relevant Lines: 49349

💛 - Coveralls

@martin-henz martin-henz requested a review from sayomaki June 10, 2025 12:37
@sayomaki
Copy link
Contributor

Corresponding backend PR: source-academy/backend#1238

@RichDom2185 RichDom2185 marked this pull request as draft June 27, 2025 17:57
@sayomaki sayomaki marked this pull request as ready for review August 5, 2025 07:17
Copy link
Contributor

@sayomaki sayomaki left a comment

Choose a reason for hiding this comment

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

LGTM, will get this merged first and improvements will be made in a follow-up PR.

@sayomaki sayomaki merged commit a9734b5 into master Aug 7, 2025
9 checks passed
@sayomaki sayomaki deleted the leaderboard branch August 7, 2025 08:24
@sayomaki sayomaki mentioned this pull request Aug 7, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

7 participants