fix(account): show a failed renewal and its grace end #375
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#375
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
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?
A failed renewal is invisible in the portal.
src/lib/billing-client.ts:47-64:SubscriptionStatushas nograceEndsAt.src/lib/renewal.ts:22,36-45:past_duereturns null, with a comment that another notice must explain it. None exists.The billing service already returns
graceEndsAt.Failing case: the renewal fails and the subscription goes
past_due. The account page shows no warning and no date. Access ends at the end of the grace period without notice.Fix: add
graceEndsAtto the client type. Show a notice on the account and subscription pages when the status ispast_due, with the grace end date and a way to pay. Optionally send one email the first time a reminder run seespast_due.Pairs with the billing-side fixes for renewal dates and Mollie-side cancellations in bitborg-payment.