feat: Update navigation and module imports for staff onboarding and profile features

This commit is contained in:
Achintha Isuru
2026-01-24 21:23:54 -05:00
parent 98ed6e67a3
commit f035ab8b6c
5 changed files with 24 additions and 11 deletions

View File

@@ -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.
- 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.

View File

@@ -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.

View File

@@ -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());
}
}

View File

@@ -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());
}
}

View File

@@ -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: