Skip to content

feat(billing): grant launch welcome credits - #33

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/welcome-credits-first-50
Jul 12, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
feat/welcome-credits-first-50

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Summary

  • grant a fixed $1 credit atomically to the first 50 non-anonymous accounts
  • preserve the lifetime cap after deletion and expose an operator-only kill switch
  • add private/RLS-protected campaign state with no client RPC
  • add real database, rollback, privilege, and 100-signup concurrency CI

Validated

  • bun run check (234 tests, coverage, all package builds)
  • fresh supabase db start migration
  • 23/23 pgTAP checks
  • 100 concurrent signups produced exactly 50 grants
  • Supabase security advisors: no issues
  • independent security, CI, and anti-overengineering reviews

Not performed

  • no migration was applied to a hosted Supabase project

Closes #32
Refs pickforge/pickforge#135

@ElbertePlinio
ElbertePlinio merged commit 0e65485 into main Jul 12, 2026
2 checks passed
@ElbertePlinio
ElbertePlinio deleted the feat/welcome-credits-first-50 branch July 12, 2026 01:43
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.

Welcome credits: atomic $1 grant for the first 50 accounts

1 participant