rwadurian/frontend/mobile-app/lib/features
hailin 5d671bf5ec feat(referral): integrate referral system with identity-service and mobile-app
## Backend Changes

### referral-service
- Add accountSequence field to ReferralRelationship aggregate for cross-service user identification
- Add findByAccountSequence() method to repository interface and implementation
- Update CreateReferralRelationshipCommand to accept accountSequence and inviterAccountSequence
- Modify ReferralService to support looking up inviter by accountSequence
- Update event handler to listen to identity.UserAccountAutoCreated and identity.UserAccountCreated topics
- Add initial database migration with all tables including accountSequence field
- Update DTO and controller to support new parameters

### identity-service
- Add inviterSequence field to MeResult interface
- Update getMe() method to return inviterSequence from user account
- Update MeResponseDto to include inviterSequence field

## Frontend Changes (mobile-app)

### API & Storage
- Add /me endpoint constant in api_endpoints.dart
- Add inviterSequence key in storage_keys.dart
- Add MeResponse and WalletAddressInfo classes in account_service.dart
- Add getMe() method to fetch complete user info including inviter
- Add getInviterSequence() method to retrieve from local storage

### Profile Page
- Update profile_page.dart to load referrer info from API
- Add _loadMeData() method to call getMe() API
- Display inviterSequence (referrer serial number) dynamically

## Flow Summary
1. User creates account with optional inviterReferralCode
2. identity-service validates and saves inviterSequence
3. identity-service publishes UserAccountAutoCreated/UserAccountCreated event
4. referral-service listens and creates referral relationship using inviterAccountSequence
5. Mobile app calls GET /me to display inviter info in profile page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-08 22:37:06 -08:00
..
auth/presentation fix(mobile-app): align back button to left in import mnemonic page 2025-12-07 20:26:24 -08:00
deposit/presentation/pages feat(mobile-app): add DST network support to deposit page 2025-12-08 19:25:29 -08:00
home/presentation feat(mobile-app): add import mnemonic page and fix share URL 2025-12-07 13:35:40 -08:00
mining/presentation/pages fix(mobile-app): remove cacheWidth/cacheHeight to fix avatar blur on high-DPI screens 2025-12-08 19:11:00 -08:00
planting/presentation refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
profile/presentation/pages feat(referral): integrate referral system with identity-service and mobile-app 2025-12-08 22:37:06 -08:00
ranking/presentation/pages style(mobile-app): add gradient background and card background to ranking page 2025-12-07 20:44:53 -08:00
share/presentation/pages feat(mobile-app): add import mnemonic page and fix share URL 2025-12-07 13:35:40 -08:00
trading/presentation/pages refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00