Files
conversation-history/SquareMCP/deployments/2026-07-23-signup-slack-alert-and-palmbeachyr-publish-handoff.md
T

132 lines
3.1 KiB
Markdown

# Signup Slack Alert + Palm Beach YR Publish Handoff
Date: 2026-07-23
Repo: `hermes-mcp`
Branch: `palmbeachyr-site-launch`
Latest pushed commit: `a7477a9` (`feat: alert Slack on new signups`)
Previous publish branch commit: `c508f01`
## What changed
Added Slack notifications for successful SquareMCP account signups.
Files changed:
- `src/notifications/slack.ts`
- Added `SignupAlertPayload`.
- Added `sendSignupAlert()`.
- Uses existing `SLACK_PILOT_WEBHOOK_URL`.
- Sends email, plan, role, source, customer ID, and IP.
- `src/index.ts`
- Imports `sendSignupAlert`.
- Calls it after successful `/api/auth/signup` response.
- Fire-and-forget; signup does not fail if Slack notification fails.
- `src/notifications/notifications.test.ts`
- Added focused tests for signup Slack notifications.
## Verification
Passed locally on Mac:
```bash
npx vitest run src/notifications/notifications.test.ts
# 1 test file passed, 25 tests passed
npm run build
# PASS
```
Palm Beach York Rite site smoke test also passed locally before publish attempt:
```bash
npm run test:palmbeachyr-site
# palmbeachyr site smoke test: PASS
```
## Publish state
Code is pushed to origin:
```bash
git push origin palmbeachyr-site-launch
# c508f01..a7477a9 palmbeachyr-site-launch -> palmbeachyr-site-launch
```
Local Mac working tree only had untracked Ruflo tool-cache directories after commit/push:
- `.agents/`
- `.claude-flow/`
## Blocker
Codex shell was on the Mac, not `art0`:
```text
hostname: macbookpro.lan
OS: Darwin
cwd: /Users/garfieldheron/abbeyroadtechWorkSpace/hermes-mcp
microk8s: not found
```
SSH from Mac-side Codex environment failed:
```text
ssh art0 hostname
# Could not resolve hostname art0
ssh garfield@104.190.60.129 hostname
# connect to host 104.190.60.129 port 22: Connection refused
```
Therefore the code is pushed but not deployed by Codex.
## Publish commands to run on art0 console
Run from the actual `art0` console/session:
```bash
cd /home/garfield/hermes-mcp
git fetch origin
git switch palmbeachyr-site-launch
git pull --ff-only origin palmbeachyr-site-launch
COMMIT=$(git rev-parse --short HEAD)
docker build \
-t localhost:32000/palmbeachyr-site:$COMMIT \
-f product/palmbeachyr-site/Dockerfile .
docker push localhost:32000/palmbeachyr-site:$COMMIT
microk8s kubectl set image deployment/palmbeachyr-site \
palmbeachyr-site=localhost:32000/palmbeachyr-site:$COMMIT \
-n fetcherpay
microk8s kubectl rollout status deployment/palmbeachyr-site -n fetcherpay
curl -fsSI https://palmbeachyr.org
curl -fsSI https://www.palmbeachyr.org
```
Expected image tag if branch is still at latest pushed commit:
```text
localhost:32000/palmbeachyr-site:a7477a9
```
## Important environment note
Signup Slack alerts depend on `SLACK_PILOT_WEBHOOK_URL` being set in the deployed Hermes environment. No new secret name was introduced.
## Related context
Earlier conflict in `src/index.ts` was resolved by keeping the upstream side:
- Keep `PUT` in CORS methods.
- Keep `/webhook/whatsapp` raw-body middleware before `express.json()`.
This was landed before the signup Slack alert commit.