Repository navigation
Feature/ranks page - #24
Merged
Merged
Conversation
… some minor style changes.
CharlieSuarezRobles
left a comment
Collaborator
There was a problem hiding this comment.
Nice job! Everything works correctly. We just need to make sure the picture of each team is being displayed. I think the error is coming from getTeams from the backend that is not returning the url corresponding to the key of the team.
wasiddiqui-glitch
approved these changes
Nov 12, 2026
wasiddiqui-glitch
left a comment
Collaborator
There was a problem hiding this comment.
Apart from Charlie's comments on the pictures of each team being displayed, everything looks good!
CharlieSuarezRobles
approved these changes
Nov 19, 2026
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.
Tracking Info
Resolves #20
Changes
The ranking page now uses real data. Replaced the hardcoded podium, top-3, and runner-up lists in
rankings/page.tsxwith data fetched from/api/teamsand/api/submissions. Teams are sorted by points: the top 3 go on the podium and in the Top 3 Teams list, and the rest show under Runner Ups. Podium falls back to the default profile image when a team has no avatar.Added Expandable team cards with recent activity.
IndividualTeamcards can now be clicked or opened with enter/space to expand and show the team's most recent submission: event name, date, and points earned. Only one card can be expanded at a time, and clicking it again collapses it. Also addedsocial_icon.pngfor the recent activity sectionFor styling I added styles for the expanded card and the recent activity panel. Also did small spacing and font-size adjustments to the section labels, team names, and tab switch.
Testing
Created seed teams and submissions in MongoDB Compass and checked that the rankings page displayed them correctly (team order, points, and each team's most recent submission). Checked that clicking a team expands/collapses it and that only one team is expanded at a time.
Confirmation of Change