Refactor staff profile management to remove livePhoto references and update repository methods for current user authentication

This commit is contained in:
Achintha Isuru
2026-01-26 18:41:13 -05:00
parent f4ac292c14
commit 060036fe36
14 changed files with 106 additions and 213 deletions

View File

@@ -79,7 +79,6 @@ class PersonalInfoRepositoryImpl implements PersonalInfoRepositoryInterface {
status: StaffStatus.active, // TODO: Map from actual status field when available
address: dto.addres,
avatar: dto.photoUrl,
livePhoto: null, // TODO: Map when available in data schema
);
}
}

View File

@@ -33,7 +33,6 @@ class PersonalInfoRepositoryMock implements PersonalInfoRepositoryInterface {
status: StaffStatus.active,
address: 'Montreal, Quebec',
avatar: null,
livePhoto: null,
);
}

View File

@@ -88,7 +88,6 @@ class PersonalInfoBloc extends Bloc<PersonalInfoEvent, PersonalInfoState>
status: staff.status,
address: staff.address,
avatar: staff.avatar,
livePhoto: staff.livePhoto,
);
case 'address':
return Staff(
@@ -100,7 +99,6 @@ class PersonalInfoBloc extends Bloc<PersonalInfoEvent, PersonalInfoState>
status: staff.status,
address: value,
avatar: staff.avatar,
livePhoto: staff.livePhoto,
);
default:
return staff;