feat(create-client): auto-link family member after client creation

- After creating a client from 'Create as Client' button, automatically
  call PUT /clients/{parentId}/familymembers/{memberId} with the new
  linkedClientId to link the family member record
- Show snackbar feedback on success or failure of the auto-link
- nomination-apply now also passes familyMemberId and parentClientId
  in prefill state so auto-link works from the nomination page too

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jaanu423
2026-06-23 10:40:00 +05:30
co-authored by Claude Sonnet 4.6
parent 10b301c30c
commit e59c3a14af
2 changed files with 32 additions and 2 deletions
@@ -135,7 +135,9 @@ export class NominationApplyComponent implements OnInit {
mobileNo: member.mobileNumber || '',
dateOfBirth: member.dateOfBirth || null,
panNumber: member.panNumber || '',
aadhaarNumber: member.aadhaarNumber || ''
aadhaarNumber: member.aadhaarNumber || '',
familyMemberId: member.id,
parentClientId: this.selectedMemberId
};
this.router.navigate(
[