feat: Remove tax forms from staff profile completion queries and related checks

This commit is contained in:
Achintha Isuru
2026-03-02 12:12:08 -05:00
parent 2ea5a25858
commit 78e99ac470
2 changed files with 1 additions and 11 deletions

View File

@@ -33,10 +33,7 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
final dc.GetStaffProfileCompletionStaff? staff = response.data.staff; final dc.GetStaffProfileCompletionStaff? staff = response.data.staff;
final List<dc.GetStaffProfileCompletionEmergencyContacts> final List<dc.GetStaffProfileCompletionEmergencyContacts>
emergencyContacts = response.data.emergencyContacts; emergencyContacts = response.data.emergencyContacts;
final List<dc.GetStaffProfileCompletionTaxForms> taxForms = return _isProfileComplete(staff, emergencyContacts);
response.data.taxForms;
return _isProfileComplete(staff, emergencyContacts, taxForms);
}); });
} }
@@ -148,7 +145,6 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
bool _isProfileComplete( bool _isProfileComplete(
dc.GetStaffProfileCompletionStaff? staff, dc.GetStaffProfileCompletionStaff? staff,
List<dc.GetStaffProfileCompletionEmergencyContacts> emergencyContacts, List<dc.GetStaffProfileCompletionEmergencyContacts> emergencyContacts,
List<dc.GetStaffProfileCompletionTaxForms> taxForms,
) { ) {
if (staff == null) return false; if (staff == null) return false;
@@ -160,7 +156,6 @@ class StaffConnectorRepositoryImpl implements StaffConnectorRepository {
return (staff.fullName.trim().isNotEmpty) && return (staff.fullName.trim().isNotEmpty) &&
(staff.email?.trim().isNotEmpty ?? false) && (staff.email?.trim().isNotEmpty ?? false) &&
emergencyContacts.isNotEmpty && emergencyContacts.isNotEmpty &&
taxForms.isNotEmpty &&
hasExperience; hasExperience;
} }

View File

@@ -15,11 +15,6 @@ query getStaffProfileCompletion($id: UUID!) @auth(level: USER) {
emergencyContacts(where: { staffId: { eq: $id } }) { emergencyContacts(where: { staffId: { eq: $id } }) {
id id
} }
taxForms(where: { staffId: { eq: $id } }) {
id
formType
status
}
} }
query getStaffPersonalInfoCompletion($id: UUID!) @auth(level: USER) { query getStaffPersonalInfoCompletion($id: UUID!) @auth(level: USER) {