Skip to content

Clarify billing consequences before account deletion - #1025

Merged
AnthonyRonning merged 2 commits into
masterfrom
codex/account-deletion-provider-copy
Sep 24, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
codex/account-deletion-provider-copy

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

The account-deletion dialog still tells every paid user to cancel manually, including Apple subscribers whose renewal is already off and card subscribers whose billing is now cleaned up during deletion.

Use the existing billing status to explain the relevant consequences: Apple cancellation stays with Apple, confirmed renewal-off needs no wait for expiry, and owned card subscriptions are canceled automatically. Inspect unselected subscriptions too, keep legacy Team ownership wording conditional, and replace “Proceed anyway” with “Continue deletion.” Known Free accounts no longer get a paid-plan warning solely because billing sets is_subscribed: true.

Replace the dialog's management link with a prominent Cancel button that receives initial focus and dismisses the dialog without starting deletion or acknowledging the warning. Continue deletion remains secondary. The deletion request/confirmation flow, APIs, and database behavior are unchanged.

Production rollout prerequisite: production billing and the enclave need the synchronous account-deletion cleanup before relying on the automatic card-cancellation wording. Master publishes the development web preview and uploads both Maple Dev and regular Maple TestFlight builds; the regular Maple build uses production services, so this prerequisite applies to its deletion testing too. Production web publication remains a separate release/manual step. The maintainer explicitly authorized readying and merging this PR with the review-approval bypass.

Validation:

  • Pinned Nix frontend CI: formatting, lint, typecheck, and all 1,194 tests pass, including 37 focused billing-access cases.
  • PR web artifact build passes; pre-commit checks pass.
  • Actual settings component/dialog checked in a local browser with synthetic billing fixtures: Apple renewal off at desktop and phone widths; Apple plus Team-owner card subscription at 390×844. Cancel receives initial focus, Enter and Escape dismiss the dialog, and attempting deletion again shows the warning again. Service calls were stubbed; this is presentation validation, not another live deletion test.
  • Independent source review completed with no remaining findings. No backend or native runtime changes in this PR.

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Maple development preview: https://04788e85.maple-ca8.pages.dev

Commit: e875dd73d2c9f20aee757ddb895f859573bbc391

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

@AnthonyRonning
AnthonyRonning marked this pull request as ready for review September 24, 2026 07:15
@AnthonyRonning
AnthonyRonning merged commit 2c03c95 into master Sep 24, 2026
25 checks passed
@AnthonyRonning
AnthonyRonning deleted the codex/account-deletion-provider-copy branch September 24, 2026 19:10

This branch was successfully deployed

1 active deployment
pages-pr-1025 — e875dd73 Deployed Sep 24, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant