Skip to content

feat: redux action to delete user + remember email for confirmation message - #1553

Merged
knipec merged 7 commits into
mainfrom
feat/delete-user
Jul 16, 2026
Merged

feat: redux action to delete user + remember email for confirmation message#1553
knipec merged 7 commits into
mainfrom
feat/delete-user

Conversation

@knipec

@knipec knipec commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
  • Add deleteUserAccount action to account slice.
  • If it succeeds: Set state variable for deleted email address, so mobile-client can show it on the login screen after account logout and auto-deletion
  • If it is blocked: Return blocked
  • TODO: Update package.json and package-lock after merging backend PR

Related Issues

techmatters/terraso-mobile-client#3308

knipec added 2 commits June 30, 2026 15:27
…essage

- Add deleteUserAccount action to account slice
- Set state variable for deleted email address, so mobile-client can show it on the login screen after account logout and auto-deletion
@knipec
knipec force-pushed the feat/delete-user branch from 0caeed1 to 8c631ab Compare June 30, 2026 22:37
@knipec
knipec requested a review from johannesparty June 30, 2026 22:49
Comment thread package-lock.json
Comment thread src/account/accountService.ts Outdated
The blocked branch never rendered blocker details — the slice reducer
only inspects `kind === 'blocked'` and flips the pending pref. Now that
the backend has dropped the structured blockers payload from
UserDeleteMutation, collapse the result type accordingly:

  DeleteUserAccountResult =
    | { kind: 'deleted'; email: string }
    | { kind: 'blocked' };

Also removes the graphql query's blockers { ... } selection and the
filter/map that was cleaning up codegen's Maybe<> wrappers around a
list nobody read.
Comment thread src/account/accountSlice.ts Outdated

@johannesparty johannesparty left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

Comment thread src/account/accountSlice.ts Outdated
@knipec
knipec merged commit 869646b into main Jul 16, 2026
5 checks passed
@knipec
knipec deleted the feat/delete-user branch July 16, 2026 23:15
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.

2 participants