feat(account): move subscription actions to their own page #368

Sammanfogat
supernaut sammanfogade 2 incheckningar från feat/subscription-page in i main 2026-10-11 19:36:10 +00:00
Ägare

Moves the subscription actions off the account page.

  • New page /account/subscription (en: /en/account/subscription) with the current plan, the upgrade checkout, the one-time renewal and the withdrawal. Result notices (?checkout=, ?withdrawal=) show at the top.
  • The account page keeps the profile and shows a short plan summary with a link to the new page.
  • /api/checkout, /api/withdraw, the payment return page and the renewal reminder email now point to the new page. No fragment is needed.
  • Same auth as /account through a shared accountGate(): 404 when sign-in is unconfigured, login redirect when signed out, groups refreshed from Keycloak before render.
  • The account panel is split into account-panel and subscription-panel. Form behaviour is unchanged.
  • en and sv strings, the accounts guide, design doc and tests follow. Version 1.36.0.

Reminder emails sent before this change link to /account#checkout; they now land on the account page and its link to the new page.

Tests: redirects for both languages, notice whitelisting, accountGate cases. A built server returned 404 unconfigured, a login redirect signed out, and the notices above the forms signed in. Pre-push ran lint, type-check, vitest, build and e2e.

Closes #366
Closes #364

Moves the subscription actions off the account page. - New page `/account/subscription` (en: `/en/account/subscription`) with the current plan, the upgrade checkout, the one-time renewal and the withdrawal. Result notices (`?checkout=`, `?withdrawal=`) show at the top. - The account page keeps the profile and shows a short plan summary with a link to the new page. - `/api/checkout`, `/api/withdraw`, the payment return page and the renewal reminder email now point to the new page. No fragment is needed. - Same auth as `/account` through a shared `accountGate()`: 404 when sign-in is unconfigured, login redirect when signed out, groups refreshed from Keycloak before render. - The account panel is split into `account-panel` and `subscription-panel`. Form behaviour is unchanged. - en and sv strings, the accounts guide, design doc and tests follow. Version 1.36.0. Reminder emails sent before this change link to `/account#checkout`; they now land on the account page and its link to the new page. Tests: redirects for both languages, notice whitelisting, `accountGate` cases. A built server returned 404 unconfigured, a login redirect signed out, and the notices above the forms signed in. Pre-push ran lint, type-check, vitest, build and e2e. Closes #366 Closes #364
supernaut lade till 2 incheckningar 2026-10-11 19:33:38 +00:00
Adds /account/subscription (sv) and /en/account/subscription with the plan, upgrade checkout, one-time renewal and withdrawal. Result notices show at the top, so the redirects no longer need a fragment. The account page keeps the profile and a plan summary with a link. Bumps to 1.36.0.
Merge remote-tracking branch 'origin/main' into feat/subscription-page
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m2s
4cc8f3d345
# Conflicts:
#	package.json
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-11 19:33:53 +00:00
supernaut sammanfogade incheckning 30a3fe2bc2 till main 2026-10-11 19:36:10 +00:00
supernaut tog bort grenen feat/subscription-page 2026-10-11 19:36:10 +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!368
Ingen beskrivning angiven.