Enhance staff profile management by updating data structures and repository implementation

- Added new fields to the Staff entity for better profile details.
- Updated ProfileRepositoryImpl to fetch staff profiles using a connector.
- Refactored GetProfileUseCase to map staff data to UI entities.
- Improved dependency injection in StaffProfileModule.
- Cleaned up unused mock data references and streamlined profile page logic.
This commit is contained in:
Achintha Isuru
2026-01-26 18:03:16 -05:00
parent 43922ab014
commit f4ac292c14
7 changed files with 85 additions and 40 deletions

View File

@@ -41,7 +41,7 @@ class ClientCreateOrderModule extends Module {
i.addLazySingleton(CreateRapidOrderUseCase.new);
// BLoCs
i.addSingleton<ClientCreateOrderBloc>(ClientCreateOrderBloc.new);
i.add<ClientCreateOrderBloc>(ClientCreateOrderBloc.new);
i.add<RapidOrderBloc>(RapidOrderBloc.new);
i.add<OneTimeOrderBloc>(
() => OneTimeOrderBloc(