fix(CAR-812): correct receipt email format and --env flag parser

- docs: fix email address format to receipts+<token>@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 <noreply@paperclip.ing>
This commit is contained in:
2026-05-04 17:01:21 +00:00
committed by Barcode Betty [agent]
parent d57a90ed59
commit ff1e1351f1
2 changed files with 8 additions and 11 deletions
+4 -9
View File
@@ -50,14 +50,9 @@ MatchResult created with method=upc, confidence=1.0 for known UPCs
### Email Address Format ### 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 | **Address:** `receipts+<email_inbound_token>@receipts.cartsnitch.com`
|-------------|--------|
| Dev | `cartsnitch.dev.farh.net` |
| UAT | `cartsnitch.uat.farh.net` |
**Address:** `<email_inbound_token>@cartsnitch.<env>.farh.net`
To find a user's token in the UAT database (requires `kubectl` access to `cartsnitch-uat`): 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 ### Steps
1. **Obtain the test user's inbound token.** 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+<token>@receipts.cartsnitch.com`, or query the DB directly (see above).
2. **Compose the email.** 2. **Compose the email.**
Send to: `<token>@cartsnitch.uat.farh.net` Send to: the address shown in Settings → Receipt Email
Subject: anything Subject: anything
Body: plain-text or HTML receipt content Body: plain-text or HTML receipt content
+4 -2
View File
@@ -22,8 +22,10 @@
set -euo pipefail set -euo pipefail
# --- Config ------------------------------------------------------------------- # --- Config -------------------------------------------------------------------
ENV="${1:-dev}" ENV="dev"
shift || true if [[ "${1:-}" == "dev" || "${1:-}" == "uat" ]]; then
ENV="$1"; shift
fi
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
case "$1" in case "$1" in