From f035ab8b6cd0fd57f8b54c9b542c7818b0573a77 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Sat, 24 Jan 2026 21:23:54 -0500 Subject: [PATCH] feat: Update navigation and module imports for staff onboarding and profile features --- BLOCKERS.md | 9 ++++++++- .../src/presentation/navigation/profile_navigator.dart | 8 ++++---- .../staff/profile/lib/src/staff_profile_module.dart | 6 ------ .../staff/staff_main/lib/src/staff_main_module.dart | 6 ++++++ .../packages/features/staff/staff_main/pubspec.yaml | 6 ++++++ 5 files changed, 24 insertions(+), 11 deletions(-) diff --git a/BLOCKERS.md b/BLOCKERS.md index 4dfa50f3..8cf36426 100644 --- a/BLOCKERS.md +++ b/BLOCKERS.md @@ -14,6 +14,13 @@ ### Why this task is blocked: - Although this page existed in the prototype, it was not connected to any other pages. In other words, there was no way to navigate to it from anywhere in the application. Therefore, this issue can be closed, as the page is not required in the main application. +## App +- Staff application + +### Github issue +- https://github.com/Oloodi/krow-workforce/issues/249 +### Why this task is blocked: +- Although this page existed in the prototype, it was not connected to any other pages. In other words, there was no way to navigate to it from anywhere in the application. Therefore, this issue can be closed, as the page is not required in the main application. # Deviations @@ -23,4 +30,4 @@ ### Github issue - https://github.com/Oloodi/krow-workforce/issues/240 ### Deveations: -- In the web prototype, when creating an order, position role rates are displayed based on the selected vendor. This behavior was missing in the mobile prototype. Therefore, we added a dropdown to select the vendor and display the corresponding role rates based on that selection. \ No newline at end of file +- In the web prototype, when creating an order, position role rates are displayed based on the selected vendor. This behavior was missing in the mobile prototype. Therefore, we added a dropdown to select the vendor and display the corresponding role rates based on that selection. diff --git a/apps/mobile/packages/features/staff/profile/lib/src/presentation/navigation/profile_navigator.dart b/apps/mobile/packages/features/staff/profile/lib/src/presentation/navigation/profile_navigator.dart index d9f46671..9f6012ca 100644 --- a/apps/mobile/packages/features/staff/profile/lib/src/presentation/navigation/profile_navigator.dart +++ b/apps/mobile/packages/features/staff/profile/lib/src/presentation/navigation/profile_navigator.dart @@ -8,22 +8,22 @@ import 'package:flutter_modular/flutter_modular.dart'; extension ProfileNavigator on IModularNavigator { /// Navigates to the personal info page. void pushPersonalInfo() { - pushNamed('./onboarding/personal-info'); + pushNamed('../onboarding/personal-info'); } /// Navigates to the emergency contact page. void pushEmergencyContact() { - pushNamed('./emergency-contact'); + pushNamed('../emergency-contact'); } /// Navigates to the experience page. void pushExperience() { - pushNamed('./experience'); + pushNamed('../experience'); } /// Navigates to the attire page. void pushAttire() { - pushNamed('/profile/onboarding/attire'); + pushNamed('../onboarding/attire'); } /// Navigates to the documents page. diff --git a/apps/mobile/packages/features/staff/profile/lib/src/staff_profile_module.dart b/apps/mobile/packages/features/staff/profile/lib/src/staff_profile_module.dart index 58076e24..4ad1dcca 100644 --- a/apps/mobile/packages/features/staff/profile/lib/src/staff_profile_module.dart +++ b/apps/mobile/packages/features/staff/profile/lib/src/staff_profile_module.dart @@ -1,9 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_modular/flutter_modular.dart'; import 'package:krow_data_connect/krow_data_connect.dart'; -import 'package:staff_profile_info/staff_profile_info.dart'; -import 'package:staff_emergency_contact/staff_emergency_contact.dart'; -import 'package:staff_profile_experience/staff_profile_experience.dart'; import 'data/repositories/profile_repository_impl.dart'; import 'domain/repositories/profile_repository.dart'; @@ -54,8 +51,5 @@ class StaffProfileModule extends Module { @override void routes(RouteManager r) { r.child('/', child: (BuildContext context) => const StaffProfilePage()); - r.module('/onboarding', module: StaffProfileInfoModule()); - r.module('/emergency-contact', module: StaffEmergencyContactModule()); - r.module('/experience', module: StaffProfileExperienceModule()); } } diff --git a/apps/mobile/packages/features/staff/staff_main/lib/src/staff_main_module.dart b/apps/mobile/packages/features/staff/staff_main/lib/src/staff_main_module.dart index 1971ea8d..d00a7c52 100644 --- a/apps/mobile/packages/features/staff/staff_main/lib/src/staff_main_module.dart +++ b/apps/mobile/packages/features/staff/staff_main/lib/src/staff_main_module.dart @@ -2,6 +2,9 @@ import 'package:flutter/material.dart'; import 'package:flutter_modular/flutter_modular.dart'; import 'package:staff_home/staff_home.dart'; import 'package:staff_profile/staff_profile.dart'; +import 'package:staff_profile_info/staff_profile_info.dart'; +import 'package:staff_emergency_contact/staff_emergency_contact.dart'; +import 'package:staff_profile_experience/staff_profile_experience.dart'; import 'package:staff_main/src/presentation/blocs/staff_main_cubit.dart'; import 'package:staff_main/src/presentation/constants/staff_main_routes.dart'; @@ -45,5 +48,8 @@ class StaffMainModule extends Module { ), ], ); + r.module('/onboarding', module: StaffProfileInfoModule()); + r.module('/emergency-contact', module: StaffEmergencyContactModule()); + r.module('/experience', module: StaffProfileExperienceModule()); } } diff --git a/apps/mobile/packages/features/staff/staff_main/pubspec.yaml b/apps/mobile/packages/features/staff/staff_main/pubspec.yaml index 9044124d..e513f6bd 100644 --- a/apps/mobile/packages/features/staff/staff_main/pubspec.yaml +++ b/apps/mobile/packages/features/staff/staff_main/pubspec.yaml @@ -27,6 +27,12 @@ dependencies: path: ../home staff_profile: path: ../profile + staff_profile_info: + path: ../profile_sections/onboarding/profile_info + staff_emergency_contact: + path: ../profile_sections/onboarding/emergency_contact + staff_profile_experience: + path: ../profile_sections/onboarding/experience # staff_shifts: # path: ../shifts # staff_payments: