diff --git a/frontend/src/pages/JobsPage.tsx b/frontend/src/pages/JobsPage.tsx index 39e3c91..81e71de 100644 --- a/frontend/src/pages/JobsPage.tsx +++ b/frontend/src/pages/JobsPage.tsx @@ -1,4 +1,4 @@ -import { Plus, RotateCcw } from "lucide-react"; +import { Eye, Plus, RotateCcw } from "lucide-react"; import { FormEvent, useCallback, useEffect, useMemo, useState } from "react"; import { Link } from "react-router-dom"; import { toast } from "sonner"; @@ -93,6 +93,7 @@ export function JobsPage() { max_attempts: nextMaxAttempts }); await refresh(); + setCreateOpen(false); toast.success("Demo job created."); } catch (caught) { toast.error(caught instanceof Error ? caught.message : String(caught)); @@ -115,6 +116,7 @@ export function JobsPage() { try { await Promise.all(batch.map(([type, nextPriority]) => api.createJob({ type, payload: demoPayload(type), priority: nextPriority, max_attempts: 3 }))); await refresh(); + setCreateOpen(false); toast.success("Batch created."); } catch (caught) { toast.error(caught instanceof Error ? caught.message : String(caught)); @@ -135,29 +137,6 @@ export function JobsPage() { -
-
- - - - - - -
-
-
setStatusFilter(value as JobStatus | "all")} /> @@ -182,7 +161,9 @@ export function JobsPage() { - {job.type} + + {job.type} + {job.priority} {job.attempts}/{job.max_attempts} @@ -192,8 +173,8 @@ export function JobsPage() { {job.locked_by ?? "-"} - - Detail + + @@ -207,6 +188,26 @@ export function JobsPage() { {createOpen && ( setCreateOpen(false)}>
+
+ + + + + + +
+ diff --git a/frontend/src/styles.css b/frontend/src/styles.css index d6b5868..3a1add7 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -992,6 +992,12 @@ code { text-overflow: ellipsis; } +.inline-code { + max-width: 100%; + padding: 4px 7px; + white-space: nowrap; +} + .action-grid { display: grid; gap: 8px; @@ -1004,6 +1010,12 @@ code { gap: 8px; } +.preset-grid { + display: grid; + gap: 8px; + grid-template-columns: repeat(3, minmax(0, 1fr)); +} + .checkbox-row { align-items: center; display: flex; @@ -1164,6 +1176,7 @@ code { .modal-backdrop { align-items: center; + backdrop-filter: blur(10px); background: rgb(0 0 0 / 48%); display: flex; inset: 0;