fix(account): show a failed renewal and its grace end #376

Sammanfogat
supernaut sammanfogade 3 incheckningar från fix/375-past-due-notice in i main 2026-10-12 14:24:56 +00:00
Ägare

What

A subscription that could not be renewed now shows a notice on the account and subscription pages, with the date the grace period ends. This covers a failed renewal charge and a renewal the provider stopped.

  • SubscriptionStatus gains graceEndsAt, as the billing service already sends it.
  • pastDue() in src/lib/renewal.ts decides the notice. It is null unless the status is past_due and the grace end is still ahead.
  • The subscription page shows the support email. The copy makes no promise of a retry, since a stopped renewal is never retried.
  • English and Swedish strings added.

Tests

pnpm lint, pnpm check, pnpm test, pnpm lang-check and pnpm format:check pass. New unit tests cover pastDue.

Closes #375

## What A subscription that could not be renewed now shows a notice on the account and subscription pages, with the date the grace period ends. This covers a failed renewal charge and a renewal the provider stopped. - `SubscriptionStatus` gains `graceEndsAt`, as the billing service already sends it. - `pastDue()` in `src/lib/renewal.ts` decides the notice. It is null unless the status is `past_due` and the grace end is still ahead. - The subscription page shows the support email. The copy makes no promise of a retry, since a stopped renewal is never retried. - English and Swedish strings added. ## Tests `pnpm lint`, `pnpm check`, `pnpm test`, `pnpm lang-check` and `pnpm format:check` pass. New unit tests cover `pastDue`. Closes #375
supernaut lade till 3 incheckningar 2026-10-12 14:12:45 +00:00
A subscription in past_due showed no warning and no date, so access
ended at the end of grace without notice. Add graceEndsAt to the
client type and show a notice on the account and subscription pages.
A one-time year links to the pay-again form.

Closes #375
Billing never returns a grace end for a one-time year, so the pay link
could not show. Always show the contact line, use a status role, and
say "through" so the date reads as inclusive.

Refs #375
fix(account): word the past-due notice for a stopped renewal too
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m54s
ab24c0c019
A past_due subscription can also mean the provider stopped the renewal,
so the notice no longer promises another payment attempt.

Refs #375
supernaut sammanfogade incheckning be25a48649 till main 2026-10-12 14:24:56 +00:00
supernaut tog bort grenen fix/375-past-due-notice 2026-10-12 14:24:56 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-web!376
Ingen beskrivning angiven.