Add subscription upgrade/change/cancel UX and account self-delete (#75) #76

Merged
westfarn merged 1 commits from feature/subscription-mgmt-and-account-delete into master 2026-08-01 12:24:11 -07:00
Owner

Summary

  • Closes #75
  • Companion for chat_backend#34 (self-delete API)
  • Account Billing: Upgrade / Change plan / Cancel CTAs (Stripe portal–first), plan picker when multiple public selectable plans exist, cancel confirmation with period-end messaging, complimentary users get no fake cancel
  • Usage card Upgrade scrolls/focuses Billing; analytics for upgrade/change/cancel intents
  • Danger Zone: email-confirmed DELETE /user/ then logout → /signin/

Test plan

  • npm test -- --watchAll=false --testPathPattern='BillingSection|DeleteAccountSection'
  • Paid Stripe user: Upgrade / Change plan / Cancel → portal (or checkout for higher selectable plan)
  • Cancel confirm shows period-end access copy; scheduled cancel notice when cancel_at_period_end
  • Backer/admin: complimentary message, no Cancel/Upgrade
  • Delete account: confirm email → soft-delete → signed out at /signin/
## Summary - Closes [#75](https://git.aimloperations.com/ai_ml_operations/chat_web_app/issues/75) - Companion for [chat_backend#34](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/34) (self-delete API) - Account Billing: Upgrade / Change plan / Cancel CTAs (Stripe portal–first), plan picker when multiple public selectable plans exist, cancel confirmation with period-end messaging, complimentary users get no fake cancel - Usage card Upgrade scrolls/focuses Billing; analytics for upgrade/change/cancel intents - Danger Zone: email-confirmed `DELETE /user/` then logout → `/signin/` ## Test plan - [ ] `npm test -- --watchAll=false --testPathPattern='BillingSection|DeleteAccountSection'` - [ ] Paid Stripe user: Upgrade / Change plan / Cancel → portal (or checkout for higher selectable plan) - [ ] Cancel confirm shows period-end access copy; scheduled cancel notice when `cancel_at_period_end` - [ ] Backer/admin: complimentary message, no Cancel/Upgrade - [ ] Delete account: confirm email → soft-delete → signed out at `/signin/`
westfarn added 1 commit 2026-08-01 12:15:20 -07:00
Surface Upgrade, Change plan, and Cancel on Account billing (portal-first),
plan picker when multiple public plans exist, complimentary-safe messaging,
and Danger Zone self-delete against DELETE /user/ (backend #34).
westfarn merged commit 19698658b1 into master 2026-08-01 12:24:11 -07:00
westfarn deleted branch feature/subscription-mgmt-and-account-delete 2026-08-01 12:24:11 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_web_app#76