diff --git a/src/pages/Simulations.jsx b/src/pages/Simulations.jsx
index 622b188fb..add538c77 100644
--- a/src/pages/Simulations.jsx
+++ b/src/pages/Simulations.jsx
@@ -92,6 +92,17 @@ export default function SimulationsPage() {
key: "reform_policy_id",
},
{ title: "Status", dataIndex: "status", key: "status" },
+ {
+ title: "Queue Position",
+ dataIndex: "queue_position",
+ key: "queue_position",
+ render: (pos) =>
+ pos === undefined || pos === null ? (
+ —
+ ) : (
+ 0 ? "orange" : "blue"}>{pos}
+ ),
+ },
{ title: "Comment", dataIndex: "message", key: "message" },
//{ title: 'Options Hash', dataIndex: 'options_hash', key: 'options_hash' },
{ title: "Options", dataIndex: "options_json", key: "options_json" },
@@ -158,17 +169,26 @@ function formatRow(row) {
));
- row.status =
- {
- ok: OK,
- computing: (
-
-
- COMPUTING
-
- ),
- error: ERROR,
- }[row.status] || row.status;
+
+ // Show queue position if present and > 0
+ if (row.status === "computing" && row.queue_position > 0) {
+ row.status = (
+ POSITION IN QUEUE: {row.queue_position}
+ );
+ } else {
+ row.status =
+ {
+ ok: OK,
+ computing: (
+
+
+ CALCULATING
+
+ ),
+ error: ERROR,
+ }[row.status] || row.status;
+ }
+
const CODE_FIELDS = [
"country_id",
"baseline_policy_id",