Skip to content

feat: Data Security section with permanent account deletion - #249

Open
farhat-is-coding wants to merge 1 commit into
farhat/feat/memory-exportfrom
farhat/feat/account-deletion
Open

feat: Data Security section with permanent account deletion#249
farhat-is-coding wants to merge 1 commit into
farhat/feat/memory-exportfrom
farhat/feat/account-deletion

Conversation

@farhat-is-coding

Copy link
Copy Markdown
Collaborator

What

Settings gains a Data Security card with a two-step account-deletion modal.

Stacked on #220 (data export) — merge that first; this PR's base auto-retargets to dev when it lands.

UX

  • Step 1 — the inventory. A plain-language list of everything that leaves with the account: every conversation, everything shared, all workflows, every agent, the Socratic Bots account, and all vectorized data. Includes an explicit "no trash can, no grace period, no undo" note and an Export my data first button wired to the existing full-context export.
  • Step 2 — the confirmation. Typing DELETE arms the destructive button. On success the session is cleared and the user lands on /login.

Implementation

Standard API → thunk → slice cycle (accountDeletion), calls DELETE users/api/account/ (backend PR: cmudco/dare-backend#323). One component per file: DataSecuritySettings card + DeleteAccountDialog.

Testing

Exercised live against the backend branch: export 200s, deletion removes the account and redirects; dialog state resets on close; delete button disabled until the phrase matches.

Settings gains a Data Security card with a two-step deletion modal: first a
plain-language inventory of everything that goes (conversations, shared
content, workflows, agents, the SocraticBooks account, vectorized data)
with an export-first escape hatch, then a typed-DELETE confirmation before
calling the expunge endpoint and signing the user out.
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