Stu Mason
Stu Mason

Activity

StuMason/api.rezzy.one
Rezzy
TypeScript
Pull Request Opened

PR #62 opened: Add user profile fields and privacy support

Summary

  • Add UserPrivacy enum with public and private states
  • Add migration for profile fields: username, bio, avatar, location, privacy, plus soft deletes
  • Update User model with HasUid trait, SoftDeletes, MustVerifyEmail interface
  • Add isPublic() and isPrivate() helper methods on User
  • Update UserFactory with new fields and states (public(), private(), withCompleteProfile())
  • Add username validation rules to ProfileValidationRules trait
  • Update CreateNewUser action to include username during registration
  • Comprehensive unit and feature tests for all changes

Test plan

  • All 59 tests passing
  • User can be created with all profile fields
  • Privacy casting to enum works correctly
  • isPublic() and isPrivate() methods work correctly
  • User can be soft deleted and restored
  • User can be found by UID
  • Username uniqueness enforced at database level
  • Registration requires and validates username
  • Profile update requires username

Closes #6

Stu Mason + AI [email protected]

+985
additions
-13
deletions
14
files changed