gigafibre-fsm/scripts/campaigns/templates
louispaulb 73c42d6997 fix(campaigns/reminder): softer tone + render expiry in tests
The reminder copy read as pushy on test sends ("Hâte-toi! ... Tu n'as
encore rien fait, et le délai approche"). Toned down to factual and
friendly: state availability + offer the no-pressure path.

FR before / after:
   Hâte-toi! Ton cadeau de 60 $ expire le ___.       (red bold)
  → 🎁 Ton cadeau de 60 $ reste disponible jusqu'au 1 juillet 2026.
                                                       (brand dark green)

  Tu n'as encore rien fait, et le délai approche. Si tu n'utilises
  pas ton cadeau d'ici là, il ne pourra plus être réclamé.
  → On voulait juste s'assurer que tu ne l'as pas manqué — la carte-
  cadeau qu'on t'a envoyée peut s'utiliser chez des centaines de
  marques canadiennes, en quelques clics.
  Si tu préfères ne pas l'utiliser, aucun souci — pas besoin de
  répondre à ce courriel.

EN copy mirrored.

Also: {{expires_at_date}} was rendering empty in test sends and
previews because neither the test-send endpoint, the preview
endpoint, nor the editor's testSendForm.vars seeded it. Three fixes:
- Hub preview endpoint: compute now+30d as default sample date.
- Hub test-send endpoint: same default + expose view_url='' so the
  Mustache section block collapses cleanly in internal tests.
- Editor test-send dialog: pre-fill expires_at_date (and expires_in_
  days) with the same now+30d value, plus expose both fields as
  editable inputs so the operator can override per-test.

Verified live on prod: the preview endpoint with no vars now renders
"Ton cadeau de 60 $ reste disponible jusqu'au 1 juillet 2026."

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 11:55:20 -04:00
..
gift-email-en.html feat(campaigns/templates): visible wrapper-expiry date in the email 2026-05-22 10:47:58 -04:00
gift-email-en.json feat(campaigns/templates): visible wrapper-expiry date in the email 2026-05-22 10:47:58 -04:00
gift-email-fr.html feat(campaigns/templates): visible wrapper-expiry date in the email 2026-05-22 10:47:58 -04:00
gift-email-fr.json feat(campaigns/templates): visible wrapper-expiry date in the email 2026-05-22 10:47:58 -04:00
gift-email-reminder-en.html fix(campaigns/reminder): softer tone + render expiry in tests 2026-06-01 11:55:20 -04:00
gift-email-reminder-en.json fix(campaigns/reminder): softer tone + render expiry in tests 2026-06-01 11:55:20 -04:00
gift-email-reminder-fr.html fix(campaigns/reminder): softer tone + render expiry in tests 2026-06-01 11:55:20 -04:00
gift-email-reminder-fr.json fix(campaigns/reminder): softer tone + render expiry in tests 2026-06-01 11:55:20 -04:00