Skip to content

added upcoming achievements to region#99

Merged
f3-jolt merged 1 commit intostagingfrom
area42
Mar 26, 2026
Merged

added upcoming achievements to region#99
f3-jolt merged 1 commit intostagingfrom
area42

Conversation

@f3-jolt
Copy link
Copy Markdown
Collaborator

@f3-jolt f3-jolt commented Mar 26, 2026

👋 TL;DR

Adds an Upcoming Achievements card to the region page, surfacing PAX who are approaching post/Q milestones or have an FNG anniversary within the next 14 days.

🔎 Details

New AchievementsCard component powered by a new BigQuery CTE in getPageData. The card shows region-level PAX approaching post milestones (within 5) or Q milestones (within 3), as well as FNG anniversaries in the next 14 days. Users can toggle between Region and Nation scope and filter by achievement type (All / Posts / Qs / Anniversaries) via a dropdown. Rows are sorted by urgency — anniversaries first by days remaining, then milestones by count remaining.

Data plumbing runs through a new RegionAchievementPax type in types.ts, a new achievements CTE in regions.ts, and updated props in loader.ts, page.tsx, and PageWrapper.tsx.

✅ How to Test

  • Region page loads without error when achievements data is present
  • Region page loads without error when achievements is null or empty
  • Region/Nation scope toggle correctly switches post and Q counts
  • All/Posts/Qs/Anniversaries dropdown filters the list correctly
  • Anniversary rows show the correct year label and days-until string
  • PAX with no approaching milestone and no upcoming anniversary do not appear
  • Layout renders correctly on mobile (single column) and desktop (2-column, Kotter + Upcoming Events stacked right)

🥜 GIF

lack-of-hustle

@f3-jolt f3-jolt merged commit c24dd35 into staging Mar 26, 2026
6 checks passed
@f3-jolt f3-jolt deleted the area42 branch March 26, 2026 00:58
@f3-jolt f3-jolt linked an issue Mar 26, 2026 that may be closed by this pull request
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.

F3Versaries

1 participant