From dc35d85b72b53d40d6d257ec7dc83d6ef59046e0 Mon Sep 17 00:00:00 2001
From: adarsh <110150037+adarshm11@users.noreply.github.com>
Date: Fri, 26 Dec 2025 15:08:27 -0800
Subject: [PATCH 1/3] update j*b status
---
src/Components/Printing/JobStatus.js | 55 ++++++++++++++++++++++++----
1 file changed, 48 insertions(+), 7 deletions(-)
diff --git a/src/Components/Printing/JobStatus.js b/src/Components/Printing/JobStatus.js
index 55f01a581..c9fdf0532 100644
--- a/src/Components/Printing/JobStatus.js
+++ b/src/Components/Printing/JobStatus.js
@@ -1,13 +1,54 @@
import React from 'react';
-export default function JobStatus(props) {
+export default function JobStatus({ id, status, fileName }) {
+ const getStatusConfig = () => {
+ switch (status) {
+ case 'failed':
+ return {
+ color: 'alert-error',
+ icon: ,
+ loading: false
+ };
+ case 'completed':
+ return {
+ color: 'alert-success',
+ icon: ,
+ loading: false
+ };
+ default: // 'created', 'processing', etc.
+ return {
+ color: 'alert-info',
+ icon: null, // We'll use a spinner instead
+ loading: true
+ };
+ }
+ };
+
+ const config = getStatusConfig();
+
return (
-
-
-
-
{props.fileName} ({props.id}): {props.status}
+
+
+ {config.loading ? (
+
+ ) : (
+
+ )}
+
+
+
+ {fileName}
+
+ Job ID: {id}
+
+
+
);
From 223c9b7521cadc5ca3bdf30576854c3725ce3301 Mon Sep 17 00:00:00 2001
From: evan
Date: Fri, 26 Dec 2025 15:11:43 -0800
Subject: [PATCH 2/3] lint
---
src/Components/Printing/JobStatus.js | 38 ++++++++++++++--------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/Components/Printing/JobStatus.js b/src/Components/Printing/JobStatus.js
index c9fdf0532..5fee37a18 100644
--- a/src/Components/Printing/JobStatus.js
+++ b/src/Components/Printing/JobStatus.js
@@ -3,24 +3,24 @@ import React from 'react';
export default function JobStatus({ id, status, fileName }) {
const getStatusConfig = () => {
switch (status) {
- case 'failed':
- return {
- color: 'alert-error',
- icon: ,
- loading: false
- };
- case 'completed':
- return {
- color: 'alert-success',
- icon: ,
- loading: false
- };
- default: // 'created', 'processing', etc.
- return {
- color: 'alert-info',
- icon: null, // We'll use a spinner instead
- loading: true
- };
+ case 'failed':
+ return {
+ color: 'alert-error',
+ icon: ,
+ loading: false
+ };
+ case 'completed':
+ return {
+ color: 'alert-success',
+ icon: ,
+ loading: false
+ };
+ default: // 'created', 'processing', etc.
+ return {
+ color: 'alert-info',
+ icon: null, // We'll use a spinner instead
+ loading: true
+ };
}
};
@@ -36,7 +36,7 @@ export default function JobStatus({ id, status, fileName }) {
{config.icon}
)}
-
+
{fileName}
From 4646707e493bb4bd7b6c453bb3015d3d5ccbfdf4 Mon Sep 17 00:00:00 2001
From: evan
Date: Fri, 26 Dec 2025 15:12:01 -0800
Subject: [PATCH 3/3] no no import no no react
---
src/Components/Printing/JobStatus.js | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/Components/Printing/JobStatus.js b/src/Components/Printing/JobStatus.js
index 5fee37a18..2759082b0 100644
--- a/src/Components/Printing/JobStatus.js
+++ b/src/Components/Printing/JobStatus.js
@@ -1,5 +1,3 @@
-import React from 'react';
-
export default function JobStatus({ id, status, fileName }) {
const getStatusConfig = () => {
switch (status) {