Account export / restore-into-new-tree / delete #27

Merged
justin merged 1 commits from account-export-restore-delete into main 2026-06-07 11:26:06 -04:00
Owner

GET /me/export (zip), POST /me/import (restore into new trees, non-destructive), DELETE /me (email-guarded). Settings page wires all three. No migration. 52 tests pass.

GET /me/export (zip), POST /me/import (restore into new trees, non-destructive), DELETE /me (email-guarded). Settings page wires all three. No migration. 52 tests pass.
justin added 1 commit 2026-06-07 11:26:05 -04:00
New account_service + endpoints under /users/me:
- GET /me/export — zip of every owned tree (account.json + media blobs).
- POST /me/import — restore a backup into NEW trees (ids remapped, media
  re-uploaded); non-destructive, never touches existing data.
- DELETE /me — soft-delete the user, their owned trees, and revoke sessions;
  guarded by retyping the account email.

Settings page wires all three (export download, restore upload, delete with
typed-email confirmation). No migration — uses existing tables + soft-delete.

52 backend tests pass (export→restore round-trip + delete guards); frontend builds.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
justin merged commit 9b04bcefba into main 2026-06-07 11:26:06 -04:00
justin deleted branch account-export-restore-delete 2026-06-07 11:26:06 -04:00
Sign in to join this conversation.