Add delete account feature to mobile app

- DELETE /api/auth/account/ API call in AuthApi + APILayer
- authProvider field on User model for email vs social auth detection
- DeleteAccountDialog with password (email) or "type DELETE" (social) confirmation
- Red "Delete Account" card on ProfileScreen
- Navigation wired in App.kt (clears data, returns to login)
- 10 i18n strings in strings.xml
- ViewModel unit tests for delete account state
This commit is contained in:
Trey T
2026-03-26 10:41:17 -05:00
parent 2e5dbaea50
commit af45588503
9 changed files with 352 additions and 0 deletions

View File

@@ -556,6 +556,18 @@
<string name="profile_app_name">honeyDue</string>
<string name="profile_edit_profile">Edit Profile</string>
<!-- Delete Account -->
<string name="delete_account_title">Delete Account</string>
<string name="delete_account_subtitle">Permanently delete your account</string>
<string name="delete_account_warning">This action is permanent and cannot be undone. All your data will be deleted.</string>
<string name="delete_account_shared_warning">Any residences you own that are shared with other users will also be deleted.</string>
<string name="delete_account_confirm_password">Enter your password to confirm</string>
<string name="delete_account_confirm_type">Type DELETE to confirm</string>
<string name="delete_account_button">Delete My Account</string>
<string name="delete_account_cancel">Cancel</string>
<string name="delete_account_success">Account deleted successfully</string>
<string name="delete_account_failed">Failed to delete account</string>
<!-- Settings -->
<string name="settings_title">Settings</string>
<string name="settings_notifications">Notification Preferences</string>