Skip to content

Feature/history tab - #27

Open
thyndoan wants to merge 15 commits into
mainfrom
feature/history-tab
Open

thyndoan wants to merge 15 commits into
mainfrom
feature/history-tab

Conversation

@thyndoan

@thyndoan thyndoan commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Tracking Info

Resolves #8

Changes

  • Added the History tab on the leaderboard screen
  • New components: HistoryTab, HistorySocialPopup, HistoryWeeklyRankingPopup, HistoryRankChangePopup, and history.module.css
  • "This Month" card shows the number of new socials and points this month
  • Feed is grouped by week: "This Week", "Last Week", then date range
  • Weeks show if they have at least one ranking or approved social
  • Newest alerts are on top

Popups

  • New Social Alert → event title and photos (scroll up and down)
  • "View this week's rankings!" → team ranking for that week
  • "Team X is now in Y place!" → "Recent Socials" with a stacked photo carousel

Other:

  • Added icons: social-icon.svg, trophy-icon.svg, week-ranking-icon.svg, ranking-1stplace-icon.svg, ranking-2ndplace-icon.svg, ranking-3rdplace-icon.svg, red-close-icon.svg, chevron-left.svg, chevron-right.svg

Testing

  • Ran frontend and backend locally
  • Opened /rankings and switched between Ranks and History
  • Checked social alerts, ranking alerts, and week titles with seed data
  • Clicked all 3 alerts to open and close the popup
  • Ran npm run lint-fix

Note

  • There is no "View this week's rankings!" data yet. I tested the weekly ranking popup with a temporary fake ranking.
  • For now, the rank change popup shows photos only.

Confirmation of Change

history RankChangePopup weeklyRankingPopup socialPopup
  1. Run backend and frontend (npm run dev)
  2. Go to http://localhost:3000/rankings
  3. Click History
  4. Click a "New Social Alert" to see the popup

@thyndoan thyndoan self-assigned this Nov 10, 2026
@thyndoan
thyndoan requested review from CharlieSuarezRobles and angeleend and removed request for alexisvvega and angeleend November 10, 2026 04:16
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.

Leaderboard: History Tab

1 participant