ghostguild-org/tests/server/utils
Jennie Robinson Faber b1d8cb1966 feat(slack): autoFlagPreExistingSlackAccess helper
Best-effort lookup of an activating member's email in the Slack
workspace. On a hit, flips slackInvited:true and stamps slackInvitedAt
without sending a fresh invite. Races against a 3s timeout and swallows
all errors so activation never blocks on Slack.

- Promotes SlackService.findUserByEmail from private to public so the
  helper can call it without a wrapper.
- New activity-log action: slack_access_auto_detected (actor = subject).
- Idempotent: short-circuits when slackInvited is already true.

Callers wired in next commit.
2026-04-29 12:13:59 +01:00
..
adminAlerts.test.js feat(admin): add alert aggregator with dismissal filtering 2026-04-08 11:14:54 +01:00
auth.test.js Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
escapeHtml.test.js Add Vitest security test suite and update security evaluation doc 2026-03-01 12:30:06 +00:00
helcim.test.js refactor(helcim): normalize listHelcimCustomerCards return shape 2026-04-27 19:16:32 +01:00
loadEvent.test.js fix(events): enforce series-pass, hidden, and deadline gates 2026-04-20 19:03:34 +01:00
member-number.test.js Huge bunch of UI/UX improvements and tweaks! 2026-04-06 16:17:12 +01:00
payments.test.js feat(payments): add upsertPaymentFromHelcim helper with idempotent insert 2026-04-20 13:15:38 +01:00
slackAccess.test.js feat(slack): autoFlagPreExistingSlackAccess helper 2026-04-29 12:13:59 +01:00
tickets.test.js fix(events): gate members-only events in calculateTicketPrice 2026-04-20 20:12:24 +01:00