feat: Update navigation and module imports for staff onboarding and profile features
This commit is contained in:
@@ -14,6 +14,13 @@
|
|||||||
### Why this task is blocked:
|
### 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.
|
- 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
|
# Deviations
|
||||||
|
|
||||||
|
|||||||
@@ -8,22 +8,22 @@ import 'package:flutter_modular/flutter_modular.dart';
|
|||||||
extension ProfileNavigator on IModularNavigator {
|
extension ProfileNavigator on IModularNavigator {
|
||||||
/// Navigates to the personal info page.
|
/// Navigates to the personal info page.
|
||||||
void pushPersonalInfo() {
|
void pushPersonalInfo() {
|
||||||
pushNamed('./onboarding/personal-info');
|
pushNamed('../onboarding/personal-info');
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Navigates to the emergency contact page.
|
/// Navigates to the emergency contact page.
|
||||||
void pushEmergencyContact() {
|
void pushEmergencyContact() {
|
||||||
pushNamed('./emergency-contact');
|
pushNamed('../emergency-contact');
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Navigates to the experience page.
|
/// Navigates to the experience page.
|
||||||
void pushExperience() {
|
void pushExperience() {
|
||||||
pushNamed('./experience');
|
pushNamed('../experience');
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Navigates to the attire page.
|
/// Navigates to the attire page.
|
||||||
void pushAttire() {
|
void pushAttire() {
|
||||||
pushNamed('/profile/onboarding/attire');
|
pushNamed('../onboarding/attire');
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Navigates to the documents page.
|
/// Navigates to the documents page.
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_modular/flutter_modular.dart';
|
import 'package:flutter_modular/flutter_modular.dart';
|
||||||
import 'package:krow_data_connect/krow_data_connect.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 'data/repositories/profile_repository_impl.dart';
|
||||||
import 'domain/repositories/profile_repository.dart';
|
import 'domain/repositories/profile_repository.dart';
|
||||||
@@ -54,8 +51,5 @@ class StaffProfileModule extends Module {
|
|||||||
@override
|
@override
|
||||||
void routes(RouteManager r) {
|
void routes(RouteManager r) {
|
||||||
r.child('/', child: (BuildContext context) => const StaffProfilePage());
|
r.child('/', child: (BuildContext context) => const StaffProfilePage());
|
||||||
r.module('/onboarding', module: StaffProfileInfoModule());
|
|
||||||
r.module('/emergency-contact', module: StaffEmergencyContactModule());
|
|
||||||
r.module('/experience', module: StaffProfileExperienceModule());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_modular/flutter_modular.dart';
|
import 'package:flutter_modular/flutter_modular.dart';
|
||||||
import 'package:staff_home/staff_home.dart';
|
import 'package:staff_home/staff_home.dart';
|
||||||
import 'package:staff_profile/staff_profile.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/blocs/staff_main_cubit.dart';
|
||||||
import 'package:staff_main/src/presentation/constants/staff_main_routes.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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,12 @@ dependencies:
|
|||||||
path: ../home
|
path: ../home
|
||||||
staff_profile:
|
staff_profile:
|
||||||
path: ../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:
|
# staff_shifts:
|
||||||
# path: ../shifts
|
# path: ../shifts
|
||||||
# staff_payments:
|
# staff_payments:
|
||||||
|
|||||||
Reference in New Issue
Block a user