Skip to content

Feat: build 17#105

Merged
destucr merged 5 commits intomainfrom
development
Dec 1, 2025
Merged

Feat: build 17#105
destucr merged 5 commits intomainfrom
development

Conversation

@destucr
Copy link
Contributor

@destucr destucr commented Dec 1, 2025

🎯 Summary

This pull request introduces significant updates to account management, data synchronization, and user experience. Key improvements include secure account deletion, periodic data sync for fathers, enhanced onboarding and profile UI, and project dependency cleanups.

✨ Features/Changes

Account Deletion and Data Cleanup

  • Added deleteAccount() in AuthenticationService to remove user data from Firebase Auth, Firestore, and Firebase Storage with proper error handling.
  • Implemented deleteAllData() in UserProfileManager to clear all local data, including UserDefaults, profile images, and local heartbeat/moment files.
  • Updated ProfileViewModel and ProfileView to support account deletion with confirmation and error handling.

Periodic Data Synchronization

  • Added periodic sync in HeartbeatSoundManager for fathers, syncing heartbeats and moments every 30 seconds and updating local state/UI.

User Experience and UI Improvements

  • Enhanced onboarding in NameInputView to update greetings and images based on selected role and clarified role-setting logic.
  • Improved ProfileView to reflect sign-in state using authService.isAuthenticated and added a destructive sign-out button.

Dependency and Project File Updates

  • Removed unused AudioKit, AudioKitEX, and Orb framework references from the Xcode project.
  • Updated SwiftPM Package.resolved to reflect removed dependencies.

Firebase Integration

  • Imported FirebaseStorage in AuthenticationService to enable deletion of files from Firebase Storage during account deletion.

📁 Files Changed

  • AuthenticationService.swift – Added account deletion logic and Firebase Storage import.
  • UserProfileManager.swift – Added local data deletion method.
  • ProfileViewModel.swift – Updated for account deletion support.
  • ProfileView.swift – Added UI for deletion confirmation and sign-out.
  • HeartbeatSoundManager.swift – Added periodic data synchronization.
  • NameInputView.swift – Improved onboarding flow and role logic.
  • Package.resolved – Updated dependencies.
  • Xcode project file – Removed unused framework references.

🔧 Usage Examples (if applicable)

// Deleting user account
await authService.deleteAccount()

// Clearing all local user data
userProfileManager.deleteAllData()

@destucr destucr added bug Something isn't working enhancement New feature or request labels Dec 1, 2025
@destucr destucr merged commit f5bb87d into main Dec 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants