ghostguild-org/server/api
Jennie Robinson Faber 55029e7eb7 feat(activation): wire autoFlagPreExistingSlackAccess into self-serve paths
Replaces the per-file inviteToSlack helpers with a single auto-flag
call. Self-serve activation paths now check for pre-existing workspace
membership (silent on miss) instead of attempting an admin-only invite.

- helcim/subscription.post.js: removed local inviteToSlack; both
  free- and paid-tier activation branches now call the helper, then
  notifyNewMember with the canonical 'manual_invitation_required' arg.
- members/create.post.js: same shape — helper + canonical notify arg.
- invite/accept.post.js (free-tier branch): added the helper call after
  member creation. Free-tier had no prior Slack call (audit confirmed);
  paid-tier remains untouched and activates via the Helcim webhook.

Admin-created and CSV-imported members intentionally do NOT call the
helper — admins flip the flag manually after sending the invite.

Test stub for autoFlagPreExistingSlackAccess added to server setup.
2026-04-29 12:21:12 +01:00
..
admin refactor(env): unify required-env validation through useRuntimeConfig 2026-04-26 14:47:02 +01:00
auth feat(payments): persist helcimCustomerCode + skip getOrCreateCustomer on card-on-file 2026-04-27 19:16:32 +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 feat(activation): wire autoFlagPreExistingSlackAccess into self-serve paths 2026-04-29 12:21:12 +01:00
internal fix(reconcile): pass customerCode (not helcimCustomerId) to Helcim transactions API 2026-04-27 19:31:59 +01:00
invite feat(activation): wire autoFlagPreExistingSlackAccess into self-serve paths 2026-04-29 12:21:12 +01:00
members feat(activation): wire autoFlagPreExistingSlackAccess into self-serve paths 2026-04-29 12:21:12 +01:00
onboarding feat(member): account/profile polish + tier upgrade flow 2026-04-14 20:35:37 +01:00
series refactor(series): extract loadPublicSeries helper 2026-04-27 19:16:32 +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