Skip to content

Send best-effort Slack notifications for new customer signups - #104

Merged
fkesheh merged 1 commit into
mainfrom
feat/signup-slack-webhook
Sep 23, 2026
Merged

fkesheh merged 1 commit into
mainfrom
feat/signup-slack-webhook

Conversation

@fkesheh

@fkesheh fkesheh commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

New customer registrations now schedule a best-effort Slack workflow notification after the registration response. The server-only SLACK_SIGNUP_WEBHOOK_URL configures the destination; the payload is { "app": "ftown", "customer": "<email>", "email": "<email>" }.

INSERT ... RETURNING id ensures only newly created accounts trigger notifications, including concurrent duplicate registration attempts. Missing configuration skips delivery. Network errors, non-2xx responses, and a three-second timeout are ignored without retries, preserving account creation behavior and the existing non-enumerating response.

Validation: all 279 UI tests pass, and the production build passes (including lint/type checks, with dummy build-only auth secrets). Added eight registration tests covering deferred delivery, the exact payload, duplicate/concurrent accounts, missing configuration, insertion failure, and network/HTTP/timeout failures. All webhook requests in tests are mocked; no live Slack messages sent.

Deployment configuration: set SLACK_SIGNUP_WEBHOOK_URL in the UI server environment. The actual webhook URL is not committed.

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ftown Ready Ready Preview Sep 23, 2026 7:26pm UTC

Request Review

@fkesheh
fkesheh merged commit a2fee02 into main Sep 23, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 1914db2d Deployed Sep 23, 2026 by vercel[bot]
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.

1 participant