Rezzy
TypeScript
Pull Request Opened
PR #62 opened: Add user profile fields and privacy support
Summary
- Add
UserPrivacyenum withpublicandprivatestates - Add migration for profile fields:
username,bio,avatar,location,privacy, plus soft deletes - Update
Usermodel withHasUidtrait,SoftDeletes,MustVerifyEmailinterface - Add
isPublic()andisPrivate()helper methods on User - Update
UserFactorywith new fields and states (public(),private(),withCompleteProfile()) - Add username validation rules to
ProfileValidationRulestrait - Update
CreateNewUseraction 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()andisPrivate()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