Skip to content

feat(settings): ask an optional reason when deleting the account - #607

Merged
Armin1019 merged 2 commits into
mainfrom
feat/1631-delete-account-reason
Oct 18, 2026
Merged

Armin1019 merged 2 commits into
mainfrom
feat/1631-delete-account-reason

Conversation

@Armin1019

@Armin1019 Armin1019 commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Asks users why they delete their account, so product can see why people leave. The question is optional and adds no required tap (Apple 5.1.1(v)).

  • Delete modal (Settings → Account → Delete Account): one optional single-choice question with 7 reasons, plus a 200-character text box when "Other" is picked. Tapping the chosen reason again clears it. The order is shuffled each time the modal opens, with "Other" always last, so the first option isn't over-picked.
  • Analytics: new account_deleted event with a fixed reason key (skipped when nothing is chosen) and other_text only for "Other". It fires just before the delete request and is flushed, so it leaves while the user is still identified (logout resets PostHog right after). Wrapped in try/catch, so analytics can never block the deletion.
  • Wording approved by Freya, with her three changes applied (softer title, new privacy reason, "no longer need this kind of app"). Approval screenshot below.
  • No backend change.

Verified: Android emulator on staging. Reasons show, select and clear; "Other" opens the text box; reopening the modal starts empty with a new order. Deleted a throwaway account with a reason → account deleted and logged out. Captured payload (PostHog is off outside production, so this is a temporary local log, already removed):

09:14:05.990  account_deleted {"reason":"no_longer_needed","otherText":""}
09:14:09.841  clear credentials successfully   ← logout, after the event

The production check (an account_deleted event seen in PostHog) happens after release, per the PBI.
1-new-wording
3-after-delete-logged-out

Release note

Deleting your account now includes a short, optional question about why you're leaving, so we can keep improving Blotz.

Status:

  • User-facing — announce it
  • Beta / partial — announce, but tagged as beta
  • Hidden in production (feature-flagged / not enabled for users) — don't announce
  • Internal only (refactor / infra / tests / CI / deps) — don't announce

Adds a single-choice, optional question to the delete-account modal (shuffled, Other last, 200-char free text) and sends the answer as account_deleted to PostHog before the delete request, flushed and wrapped so analytics never blocks deletion.
@Armin1019 Armin1019 added the L2 Review level 2: AI review + 1 tech-lead candidate label Oct 18, 2026
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

148 tests   148 ✅  9s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 045cb2a.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Package Line Rate Branch Rate Complexity Health
BlotzTask 4% 36% 2969 ❌
BlotzTask 4% 36% 2969 ❌
Summary 4% (5190 / 117310) 36% (1138 / 3178) 5938 ❌

@Armin1019
Armin1019 enabled auto-merge (squash) October 18, 2026 12:13
@Armin1019
Armin1019 merged commit 3884422 into main Oct 18, 2026
4 checks passed
@Armin1019
Armin1019 deleted the feat/1631-delete-account-reason branch October 18, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L2 Review level 2: AI review + 1 tech-lead candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants