Repository navigation
feat: Knockout Challenge recap + recipient export scripts - #138
Merged
Merged
Conversation
added 2 commits
July 4, 2026 11:36
One-off tooling for the R32->R16 recap email blast: r32-recap.ts prints real R32 scorelines (flagging penalty shootouts) plus resolved R16 matchups; export-challenge-recipients.ts pulls the opted-in Knockout Challenge entrant email list (mirrors the eligibility gate in lib/challenge/leaderboard.ts) to ko-list.csv, gitignored since it carries real user emails.
scripts/challenge-progress.ts pulls the public Knockout Challenge leaderboard (getChallengeLeaderboard) and reports top standings, perfect-R32-bracket count, and average score — used for a progress-focused recap email instead of raw match scorelines.
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.
Summary
scripts/r32-recap.ts— read-only script that prints real Round of 32 scorelines (flagging penalty-shootout matches) and the resolved Round of 16 matchups.scripts/export-challenge-recipients.ts— read-only script that pulls the opted-in Knockout Challenge entrant email list (mirrors the eligibility gate already used inlib/challenge/leaderboard.ts'sgetChallengeLeaderboard) toko-list.csv.scripts/challenge-progress.ts— read-only script that pulls the public Knockout Challenge leaderboard and reports top standings, perfect-R32-bracket count, and average score.ko-list.csvis gitignored — it carries real user emails (PII) and must never be committed.Built to draft a one-off Knockout Challenge recap / Match Day Pickem promo email blast (sent as a Gmail draft, not part of this repo). The email leads with challenge standings (who's leading, average score) rather than raw match scores. All three scripts are reusable for the next round's recap (R16, QF, SF, Final).
Test plan
npm run typecheckpasses.update/.create/.deletePrisma calls