ghostguild-org/server/api
Jennie Robinson Faber 8e76ce9366
Some checks failed
Test / vitest (push) Successful in 11m49s
Test / playwright (push) Failing after 9m43s
Test / visual (push) Failing after 9m24s
Test / Notify on failure (push) Successful in 2s
refactor(launch): collapse helcim-pay duplication and use setAuthCookie helper
Follow-up to 51230e5. /simplify review surfaced residual duplication
and a timer leak.

- useHelcimPay: extract _initializeTicket(metadata, errorPrefix) to
  collapse initializeTicketPayment + initializeSeriesTicketPayment
  (95% identical bodies). Drop the dead `amount` arg from initialize-
  TicketPayment — server re-derives ticket amounts in initialize-
  payment.post.js and never reads body.amount for ticket types.
  Capture timer ids and clearTimeout on resolve/reject so the 10-min
  payment timer and 5-second observer timer stop leaking after every
  payment.
- EventTicketPurchase: caller updated for the dropped arg.
- verify.post.js: replace inline jwt.sign + setCookie block with the
  setAuthCookie(event, member) helper. verify was the last hand-rolled
  caller after the helper was extracted in 208638e.
- LAUNCH_READINESS: add simplify-pass-followups bullet pointing to the
  six deferred items in docs/TODO.md.

Tests: 758 passing, 2 skipped, 0 failing.
2026-04-25 22:13:24 +01:00
..
admin feat(emails): warmer copy across invite, welcome, and event emails 2026-04-20 13:48:38 +01:00
auth refactor(launch): collapse helcim-pay duplication and use setAuthCookie helper 2026-04-25 22:13:24 +01:00
board refactor(board): atomic delete + query limit + composable cleanup 2026-04-15 12:47:53 +01:00
dev feat(server): rename contributionTier → contributionAmount in routes + utils 2026-04-19 18:44:29 +01:00
events feat(launch): security and correctness fixes for 2026-05-01 launch 2026-04-25 18:42:36 +01:00
helcim refactor(launch): simplify launch-readiness fixes 2026-04-25 19:34:16 +01:00
internal refactor(launch): simplify launch-readiness fixes 2026-04-25 19:34:16 +01:00
invite feat(signup): unify cadence UX across accept-invite, join, and account 2026-04-20 12:34:59 +01:00
members feat(launch): security and correctness fixes for 2026-05-01 launch 2026-04-25 18:42:36 +01:00
onboarding feat(member): account/profile polish + tier upgrade flow 2026-04-14 20:35:37 +01:00
series feat(launch): security and correctness fixes for 2026-05-01 launch 2026-04-25 18:42:36 +01:00
site-content New SiteContent. 2026-04-16 21:11:14 +01:00
tags feat: add Tags API endpoints and validation schemas 2026-04-05 16:15:29 +01:00
upload Add Zod validation, fix mass assignment, remove test endpoints and dead code 2026-03-01 14:02:46 +00:00
wiki fix: rename hasEngagedEcology → hasEngagedBoard in onboarding status, clean up stale ecology references 2026-04-14 12:25:24 +01:00
health.get.js feat: add /api/health endpoint for uptime monitoring 2026-04-04 12:35:26 +01:00