From ff1e1351f151c82d6e9d6c5593e18a22a041124e Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Mon, 4 May 2026 17:01:21 +0000 Subject: [PATCH] fix(CAR-812): correct receipt email format and --env flag parser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - docs: fix email address format to receipts+@receipts.cartsnitch.com (per Settings → Receipt Email UI, not the old farh.net domain format) - docs: fix UI section label from 'Account' to 'Receipt Email' - scripts/seed-env.sh: fix --env flag parser when called as './seed-env.sh --env uat' positional form was already correct; flag form was consuming --env as ENV value Co-Authored-By: Paperclip --- docs/uat-receipt-submission.md | 13 ++++--------- scripts/seed-env.sh | 6 ++++-- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/docs/uat-receipt-submission.md b/docs/uat-receipt-submission.md index 97d1a97..ac87630 100644 --- a/docs/uat-receipt-submission.md +++ b/docs/uat-receipt-submission.md @@ -50,14 +50,9 @@ MatchResult created with method=upc, confidence=1.0 for known UPCs ### Email Address Format -Each user is assigned a unique inbound token. The email address format depends on the environment: +Each user is assigned a unique inbound token. The receipt submission email address is shown in **Settings → Receipt Email** on the UI: -| Environment | Domain | -|-------------|--------| -| Dev | `cartsnitch.dev.farh.net` | -| UAT | `cartsnitch.uat.farh.net` | - -**Address:** `@cartsnitch..farh.net` +**Address:** `receipts+@receipts.cartsnitch.com` To find a user's token in the UAT database (requires `kubectl` access to `cartsnitch-uat`): @@ -83,10 +78,10 @@ kubectl exec -n cartsnitch-uat deployment/cartsnitch-api -- \\ ### Steps 1. **Obtain the test user's inbound token.** - Use the UAT Settings → Account page in the UI, or query the DB directly (see above). + Use the UAT Settings → Receipt Email page in the UI to see the full address `receipts+@receipts.cartsnitch.com`, or query the DB directly (see above). 2. **Compose the email.** - Send to: `@cartsnitch.uat.farh.net` + Send to: the address shown in Settings → Receipt Email Subject: anything Body: plain-text or HTML receipt content diff --git a/scripts/seed-env.sh b/scripts/seed-env.sh index 2b19538..93c083d 100755 --- a/scripts/seed-env.sh +++ b/scripts/seed-env.sh @@ -22,8 +22,10 @@ set -euo pipefail # --- Config ------------------------------------------------------------------- -ENV="${1:-dev}" -shift || true +ENV="dev" +if [[ "${1:-}" == "dev" || "${1:-}" == "uat" ]]; then + ENV="$1"; shift +fi while [[ $# -gt 0 ]]; do case "$1" in