Skip to content

Feature/ranks page - #24

Merged
CharlieSuarezRobles merged 10 commits into
mainfrom
feature/ranks-page
Nov 19, 2026
Merged

CharlieSuarezRobles merged 10 commits into
mainfrom
feature/ranks-page

Conversation

@sofheim

@sofheim sofheim commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

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.tsx with data fetched from /api/teams and /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. IndividualTeam cards 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 added social_icon.png for the recent activity section

For 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

image Screenshot 2026-11-06 223625 Screenshot 2026-11-06 223549

@sofheim
sofheim requested a review from alexisvvega as a code owner November 7, 2026 07:20

@CharlieSuarezRobles CharlieSuarezRobles left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.

Comment thread frontend/app/rankings/page.tsx Resolved

@wasiddiqui-glitch wasiddiqui-glitch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Apart from Charlie's comments on the pictures of each team being displayed, everything looks good!

@CharlieSuarezRobles
CharlieSuarezRobles merged commit fccc5b7 into main Nov 19, 2026
2 checks passed
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.

Ranks page update

3 participants