feat: Implement order details page and navigation for available orders
This commit is contained in:
@@ -112,6 +112,13 @@ extension StaffNavigator on IModularNavigator {
|
||||
safeNavigate(StaffPaths.shiftDetails(shift.id), arguments: shift);
|
||||
}
|
||||
|
||||
/// Navigates to the order details page for a given [AvailableOrder].
|
||||
///
|
||||
/// The order is passed as a data argument to the route.
|
||||
void toOrderDetails(AvailableOrder order) {
|
||||
safePush(StaffPaths.orderDetailsRoute, arguments: order);
|
||||
}
|
||||
|
||||
/// Navigates to shift details by ID only (no pre-fetched [Shift] object).
|
||||
///
|
||||
/// Used when only the shift ID is available (e.g. from dashboard list items).
|
||||
|
||||
@@ -107,6 +107,11 @@ class StaffPaths {
|
||||
/// View detailed information for a specific shift.
|
||||
static const String shiftDetailsRoute = '/worker-main/shift-details';
|
||||
|
||||
/// Order details route.
|
||||
///
|
||||
/// View detailed information for an available order and book/apply.
|
||||
static const String orderDetailsRoute = '/worker-main/order-details';
|
||||
|
||||
/// Shift details page (dynamic).
|
||||
///
|
||||
/// View detailed information for a specific shift.
|
||||
|
||||
Reference in New Issue
Block a user