Add "queued" job status
Added a new "queued" status for jobs, indicating they are waiting to begin production, occurring before the "running" status.
This commit is contained in:
@@ -7,6 +7,7 @@ export const getStatusColor = (status: string) => {
|
||||
case 'Acquisition': return 'bg-yellow-600';
|
||||
case 'Staging': return 'bg-amber-600';
|
||||
case 'Inbound': return 'bg-orange-600';
|
||||
case 'Queued': return 'bg-red-600';
|
||||
case 'Running': return 'bg-blue-600';
|
||||
case 'Done': return 'bg-purple-600';
|
||||
case 'Delivered': return 'bg-indigo-600';
|
||||
@@ -24,6 +25,7 @@ export const getStatusBackgroundColor = (status: string) => {
|
||||
case 'Acquisition': return `bg-yellow-600/25`;
|
||||
case 'Staging': return `bg-amber-600/25`;
|
||||
case 'Inbound': return `bg-orange-600/25`;
|
||||
case 'Queued': return `bg-red-600/25`;
|
||||
case 'Running': return `bg-blue-600/25`;
|
||||
case 'Done': return `bg-purple-600/25`;
|
||||
case 'Delivered': return `bg-indigo-600/25`;
|
||||
@@ -41,6 +43,7 @@ export const getStatusBackgroundColorBright = (status: string) => {
|
||||
case 'Acquisition': return `bg-yellow-600/55`;
|
||||
case 'Staging': return `bg-amber-600/55`;
|
||||
case 'Inbound': return `bg-orange-600/55`;
|
||||
case 'Queued': return `bg-red-600/55`;
|
||||
case 'Running': return `bg-blue-600/55`;
|
||||
case 'Done': return `bg-purple-600/55`;
|
||||
case 'Delivered': return `bg-indigo-600/55`;
|
||||
@@ -58,20 +61,21 @@ export const getStatusPriority = (status: IndJobStatusOptions): number => {
|
||||
case 'Acquisition': return 2;
|
||||
case 'Staging': return 3;
|
||||
case 'Inbound': return 4;
|
||||
case 'Running': return 5;
|
||||
case 'Done': return 6;
|
||||
case 'Delivered': return 7;
|
||||
case 'Outbound': return 8;
|
||||
case 'Selling': return 9;
|
||||
case 'Closed': return 10;
|
||||
case 'Tracked': return 11;
|
||||
case 'Queued': return 5;
|
||||
case 'Running': return 6;
|
||||
case 'Done': return 7;
|
||||
case 'Delivered': return 8;
|
||||
case 'Outbound': return 9;
|
||||
case 'Selling': return 10;
|
||||
case 'Closed': return 11;
|
||||
case 'Tracked': return 12;
|
||||
default: return 0;
|
||||
}
|
||||
};
|
||||
|
||||
// Define the status sequence - using the actual enum values
|
||||
export const JOB_STATUSES = [
|
||||
'Planned', 'Acquisition', 'Staging', 'Inbound', 'Running', 'Done',
|
||||
'Planned', 'Acquisition', 'Staging', 'Inbound', 'Queued', 'Running', 'Done',
|
||||
'Delivered', 'Outbound', 'Selling', 'Closed', 'Tracked'
|
||||
] as const;
|
||||
|
||||
|
Reference in New Issue
Block a user