Conversation
Viewing an admin program page auto-mounted the stats/admins/judging/signups sections, each of which signs an admin-action message on load — so just *viewing* a program popped a wallet signature (and on mock previews, where /api/admin/session can't mint the cached bearer, every navigation re-prompted). Gate the wallet-admin sections behind a 'LOAD ADMIN DATA' control: viewing the program needs no signature; clicking it mounts the sections, whose concurrent loads dedup to a single wallet popup. Email-admin path unchanged (no popup).
…-submit allowlist Part 3 (headline): when results are published, each winning submission (one with a prize) that hasn't been notified gets an email from Stadium with the prize and a note that the team will reach out to arrange collection (Bitrefill giftcards are off-chain). New prize-award template + prize-award.service (best-effort, transient, mirrors the invite/confirmation services), triggered fire-and-forget in setResultsPublished on publish. A new prize_notified_at column makes unpublish/republish a no-op for already-emailed winners; a failed send leaves it unset so a later publish retries. Adds replyTo support to the email transport (PRIZE_CONTACT_EMAIL, defaults to RESEND_FROM_EMAIL). Part 1 (diagnostics): the program-admin invite now surfaces the real Resend error (send_failed: <reason>) instead of a bare send_failed, so a misconfigured sender domain is diagnosable from the UI (admin-only action). Part 2 (testing): SUBMIT_TEST_EMAILS env allowlist lets specific emails bypass the checked-in (Luma signup) gate on the public submit form; off by default, case-insensitive. Such submissions stay flagged eligible:false. Migration 20260613000000 is additive/nullable (apply to prod before deploy). Server suite green (396).
…fixes feat(judging): winner prize emails + email-error diagnostics + test-submit allowlist
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
Pre-merge checklist status
Code: server Note: the "checked-in guest list" error sacha hit is the server's hard gate; the |
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.
Promotes
developtomainto deploy the post-launch judging fixes (PR #175 + the recovered defer-sign gate).Included
prize_notified_atso republish never double-sends.send_failed: <reason>) instead of a generic message.SUBMIT_TEST_EMAILSallowlist: lets specific emails bypass the checked-in (Luma) gate on the public submit form (off by default).supabase db push(addsprize_notified_at). The winner-email query needs it.SUBMIT_TEST_EMAILS=sacha@joinwebzero.com; optionalPRIZE_CONTACT_EMAIL.RESEND_FROM_EMAILmust be@stadium.joinwebzero.com(DNS/DKIM verified ✓) and the domain shown Verified — the real unblock for all outbound email.Verification
Server
396 passed; client build + lint clean. Email paths are unit-tested here and verified end-to-end on prod (mock previews can't send email).🤖 Generated with Claude Code