ghostguild-org/server/api/members
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
..
[id] Tests, UX improvements. 2026-04-05 14:25:29 +01:00
me refactor(board): delete old board routes, absorb slackHandle into profile PATCH 2026-04-14 16:29:45 +01:00
[id].get.js Updates 2026-04-15 17:45:09 +01:00
cancel-subscription.post.js feat(launch): security and correctness fixes for 2026-05-01 launch 2026-04-25 18:42:36 +01:00
create.post.js feat(activation): wire autoFlagPreExistingSlackAccess into self-serve paths 2026-04-29 12:21:12 +01:00
directory.get.js Updates 2026-04-15 17:45:09 +01:00
my-calendar.get.js fix: use private helcimApiToken for all server-side Helcim API calls 2026-04-04 13:37:34 +01:00
my-events.get.js fix: use private helcimApiToken for all server-side Helcim API calls 2026-04-04 13:37:34 +01:00
profile.patch.js feat(server): rename contributionTier → contributionAmount in routes + utils 2026-04-19 18:44:29 +01:00
update-circle.post.js Tests, UX improvements. 2026-04-05 14:25:29 +01:00
update-contribution.post.js fix(helcim): read dateBilling on subscription CREATE to populate next-billing cache 2026-04-27 19:44:35 +01:00
update-email.post.js Tests, UX improvements. 2026-04-05 14:25:29 +01:00