Repository navigation
feat: waitlist with admin approval and invite mails - #6
Merged
Merged
Conversation
Community members can join a public waitlist (/warteliste) with name, email and consent. Admins approve entries in /admin, which issues a Golden Ticket for Vibecoding Germany without consuming their own three-ticket budget, and sends the invitation via the existing Vibecoding Germany SMTP account (server-side env only). Without SMTP configuration the admin area falls back to mailto and copy-link. - supabase: additive migration 0002 (waitlist_entries, private.admins, join/approve/reject/delete/mark-invited RPCs), owner backfilled as admin - app: waitlist page, admin page, invite API route, nodemailer 10.2.1 - tests: 74 SQL contract checks, 21 app tests - docs: deployment order, SMTP env vars, Flutter contract, validation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
A public waitlist so we can invite the WhatsApp and forum community, plus an admin area for approving people.
/warteliste: name, email and a consent checkbox. Entering the same address twice keeps one entry and shows the same response, so nobody can find out whether an address is already on the list. Spam protection is a hidden field that only bots fill in and a cap of 60 entries per 10 minutes. No captcha, as the masterplan asks./admin(admins only): filter by Open/Approved/Rejected, search, approve, reject and delete (with confirmation). A sidebar badge shows how many requests are open.creator_id= admin) without using up the admin's own 3-ticket budget. The invitation is then sent by email, through the same Vibecoding Germany SMTP account Supabase Auth already uses. Invite all open works through the queue one entry at a time. Each send is logged (invited_at,invite_count).mailto:and copy-link.How
supabase/migrations/0002_waitlist.sqlonly adds things; the 6 core tables are unchanged. It addspublic.waitlist_entries(only admins can read it, no direct writes),private.admins(no client access), and the RPCsjoin_waitlist(anon),is_admin,approve_waitlist_entry,reject_waitlist_entry,delete_waitlist_entryandmark_waitlist_invited. The current owner of Vibecoding Germany is added as admin;bootstrap-owner.sqldoes the same on fresh projects.POST /api/admin/waitlist/inviteruns with the logged-in user's Supabase session, and the database decides whether they are an admin. A custom header (x-humans-only: admin) plus a JSON-only content type keep other sites from triggering the route. Links in the mail always useSITE_URL, never the request host. SMTP errors are logged on the server only, never sent to the browser.SITE_URL,SMTP_HOST/PORT/USER/PASSWORD/FROM, optionalSMTP_REPLY_TO). They are neverNEXT_PUBLIC_*and no credentials are in the repo. New dependency:nodemailerpinned to10.2.1(more than two weeks old).Deployment order (important)
0002_waitlist.sqlto the live Supabase project.is_admin()on load and won't work before the migration is applied..env.productionon the VPS and restart PM2.Details:
docs/DEPLOYMENT.md,docs/FLUTTER_CONTRACT.md.Validation
python3 supabase/tests/contract.py: 74/74 (23 new waitlist checks)npm run lint,npm run typecheck,npm test(21/21),npm run build: greenNot yet verified: the migration and the invite route against hosted Supabase with a real session, and actual delivery through the Vibecoding Germany SMTP (spam score, rate limits).
Release impact
Minor (new feature, likely 2.1.0). Per the repo's release law this needs a separate release request;
app/package.jsonis not bumped here.🤖 Generated with Claude Code