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:
Achintha Isuru
2026-02-04 18:22:39 -05:00
parent b5c3af580c
commit 3b11c49d90
41 changed files with 122 additions and 434 deletions

View File

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

View File

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

View File

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