Refactor navigation and remove unused navigator extensions across staff features
- Removed background color from CreateOrderView, OneTimeOrderView, and RapidOrderView. - Updated navigation paths in OneTimeOrderView and other staff authentication pages to use new constants. - Deleted unused navigator extensions for staff authentication, home, profile, and shifts. - Refactored navigation in StaffMainModule to use new path constants. - Cleaned up imports and adjusted navigation calls in various staff-related pages and widgets.
This commit is contained in:
@@ -27,6 +27,14 @@ extension ClientNavigator on IModularNavigator {
|
||||
// AUTHENTICATION FLOWS
|
||||
// ==========================================================================
|
||||
|
||||
/// Navigate to the root authentication screen.
|
||||
///
|
||||
/// This effectively logs out the user by navigating to root.
|
||||
/// Used when signing out or session expires.
|
||||
void toClientRoot() {
|
||||
navigate(ClientPaths.root);
|
||||
}
|
||||
|
||||
/// Navigates to the client sign-in page.
|
||||
///
|
||||
/// This page allows existing clients to log in using email/password
|
||||
|
||||
@@ -28,6 +28,14 @@ extension StaffNavigator on IModularNavigator {
|
||||
// AUTHENTICATION FLOWS
|
||||
// ==========================================================================
|
||||
|
||||
/// Navigates to the root get started/authentication screen.
|
||||
///
|
||||
/// This effectively logs out the user by navigating to root.
|
||||
/// Used when signing out or session expires.
|
||||
void toGetStarted() {
|
||||
navigate(StaffPaths.root);
|
||||
}
|
||||
|
||||
/// Navigates to the phone verification page.
|
||||
///
|
||||
/// Used for both login and signup flows to verify phone numbers via OTP.
|
||||
@@ -289,16 +297,4 @@ extension StaffNavigator on IModularNavigator {
|
||||
void toSettings() {
|
||||
pushNamed(StaffPaths.settings);
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// SPECIAL NAVIGATION
|
||||
// ==========================================================================
|
||||
|
||||
/// Navigates to the get started/authentication screen.
|
||||
///
|
||||
/// This effectively logs out the user by navigating to root.
|
||||
/// Used when signing out or session expires.
|
||||
void toGetStarted() {
|
||||
navigate(StaffPaths.root);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,12 +45,12 @@ class StaffPaths {
|
||||
///
|
||||
/// Used for both login and signup flows to verify phone numbers via OTP.
|
||||
/// Expects `mode` argument: 'login' or 'signup'
|
||||
static const String phoneVerification = './phone-verification';
|
||||
static const String phoneVerification = '/phone-verification';
|
||||
|
||||
/// Profile setup page (relative path within auth module).
|
||||
///
|
||||
/// Initial profile setup for new staff members after verification.
|
||||
static const String profileSetup = './profile-setup';
|
||||
static const String profileSetup = '/profile-setup';
|
||||
|
||||
// ==========================================================================
|
||||
// MAIN SHELL & NAVIGATION
|
||||
|
||||
Reference in New Issue
Block a user