Athena — roomy-mobile/archive/changes/2025-12-24-fix-seed-avatar-urls/tasks.md

1. Update Seed Script

  • [x] 1.1 Modify uploadAvatars() to return a map of userId → downloadUrl
  • [x] 1.2 Update createUserProfiles() to accept avatar URLs parameter
  • [x] 1.3 Set imageUrl field in userProfileDto using the uploaded avatar URL
  • [x] 1.4 Ensure avatar upload runs before profile creation (reorder function calls in main())

2. Verification

  • [x] 2.1 Run seed script against fresh emulator - shows "(with avatar)" for all profiles
  • [x] 2.2 Query Firestore emulator to verify imageUrl is populated in userProfiles
    • Verified: imageUrl: http://127.0.0.1:9203/v0/b/the-roomy-app.appspot.com/o/avatars%2Fdemo-emma.png?alt=media
  • [x] 2.3 Avatar URLs correctly formatted and stored in Firestore

Reacties

Nog geen reacties