feat(reminders): mail the customer when a renewal fails #389
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web!389
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/past-due-mail"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
Mail the customer once when a renewal fails. The renewal-reminder run now checks for
past_duebefore the usual reminders. The mail gives the grace end date and links to the account page. Swedish and English.How
duePastDueinsrc/lib/renewal-reminders.ts:past_duewith a livegraceEndsAtand a period end.(sub, currentPeriodEnd, threshold = -1). No migration, no new column. Existing reminder thresholds are 30, 7, 1, 0, so they never collide.pastDueNoticeinsrc/i18n/emails.ts.Copy
Tests
Branch, dedupe, later failed period, failed send, no mail for active or canceled, email copy, and a Postgres claim test for the new threshold.
Closes #388