Merge branch '208-p0-auth-05-get-started-screen' of https://github.com/Oloodi/krow-workforce into 208-p0-auth-05-get-started-screen

This commit is contained in:
Achintha Isuru
2026-01-25 17:01:38 -05:00
28 changed files with 21403 additions and 19444 deletions

View File

@@ -71,3 +71,4 @@ export 'src/entities/support/working_area.dart';
// Home
export 'src/entities/home/home_dashboard_data.dart';
export 'src/entities/home/reorder_item.dart';

View File

@@ -0,0 +1,46 @@
import 'package:equatable/equatable.dart';
/// Summary of a completed shift role used for reorder suggestions.
class ReorderItem extends Equatable {
const ReorderItem({
required this.orderId,
required this.title,
required this.location,
required this.hourlyRate,
required this.hours,
required this.workers,
required this.type,
});
/// Parent order id for the completed shift.
final String orderId;
/// Display title (role + shift title).
final String title;
/// Location from the shift.
final String location;
/// Hourly rate from the role.
final double hourlyRate;
/// Total hours for the shift role.
final double hours;
/// Worker count for the shift role.
final int workers;
/// Order type (e.g., ONE_TIME).
final String type;
@override
List<Object?> get props => <Object?>[
orderId,
title,
location,
hourlyRate,
hours,
workers,
type,
];
}

View File

@@ -10,7 +10,7 @@ class OneTimeOrderPosition extends Equatable {
required this.count,
required this.startTime,
required this.endTime,
this.lunchBreak = 30,
this.lunchBreak = 'NO_BREAK',
this.location,
});
/// The job role or title required.
@@ -25,8 +25,8 @@ class OneTimeOrderPosition extends Equatable {
/// The scheduled end time (e.g., "05:00 PM").
final String endTime;
/// The duration of the lunch break in minutes. Defaults to 30.
final int lunchBreak;
/// The break duration enum value (e.g., NO_BREAK, MIN_15, MIN_30).
final String lunchBreak;
/// Optional specific location for this position, if different from the order's main location.
final String? location;
@@ -47,7 +47,7 @@ class OneTimeOrderPosition extends Equatable {
int? count,
String? startTime,
String? endTime,
int? lunchBreak,
String? lunchBreak,
String? location,
}) {
return OneTimeOrderPosition(

View File

@@ -8,6 +8,7 @@ class OrderItem extends Equatable {
/// Creates an [OrderItem].
const OrderItem({
required this.id,
required this.orderId,
required this.title,
required this.clientName,
required this.status,
@@ -27,6 +28,9 @@ class OrderItem extends Equatable {
/// Unique identifier of the order.
final String id;
/// Parent order identifier.
final String orderId;
/// Title or name of the role.
final String title;
@@ -72,6 +76,7 @@ class OrderItem extends Equatable {
@override
List<Object?> get props => <Object?>[
id,
orderId,
title,
clientName,
status,