mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
chore: updates in UI due to migration to OAS3.1
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
6
internal/web/dist/index.html
vendored
6
internal/web/dist/index.html
vendored
@@ -5,9 +5,9 @@
|
|||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>AutoGlue</title>
|
<title>AutoGlue</title>
|
||||||
<script type="module" crossorigin src="/assets/index-52pog1DZ.js"></script>
|
<script type="module" crossorigin src="/assets/index-BRRMZeeQ.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/assets/react-B75e6Si-.js">
|
<link rel="modulepreload" crossorigin href="/assets/react-B7S5QDrv.js">
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-tX4seA_J.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-VHZG0dIU.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
BIN
internal/web/dist/index.html.br
vendored
BIN
internal/web/dist/index.html.br
vendored
Binary file not shown.
BIN
internal/web/dist/index.html.gz
vendored
BIN
internal/web/dist/index.html.gz
vendored
Binary file not shown.
@@ -1,7 +1,5 @@
|
|||||||
import { type FC, useEffect, useState } from "react"
|
import { type FC, useEffect, useState } from "react"
|
||||||
import { archerAdminApi } from "@/api/archer_admin"
|
import { archerAdminApi } from "@/api/archer_admin"
|
||||||
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"
|
|
||||||
import { Loader2, Plus, RefreshCw, Search, X } from "lucide-react"
|
|
||||||
import {
|
import {
|
||||||
type AdminListArcherJobsRequest,
|
type AdminListArcherJobsRequest,
|
||||||
AdminListArcherJobsStatusEnum,
|
AdminListArcherJobsStatusEnum,
|
||||||
@@ -9,6 +7,8 @@ import {
|
|||||||
type DtoPageJob,
|
type DtoPageJob,
|
||||||
type DtoQueueInfo,
|
type DtoQueueInfo,
|
||||||
} from "@/sdk"
|
} from "@/sdk"
|
||||||
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { Loader2, Plus, RefreshCw, Search, X } from "lucide-react"
|
||||||
|
|
||||||
import { cn } from "@/lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
import { Badge } from "@/components/ui/badge"
|
import { Badge } from "@/components/ui/badge"
|
||||||
@@ -296,8 +296,7 @@ export const JobsPage: FC = () => {
|
|||||||
)}
|
)}
|
||||||
{items.map((j) => {
|
{items.map((j) => {
|
||||||
const jobStatus: JobStatus =
|
const jobStatus: JobStatus =
|
||||||
(j.status as JobStatus | undefined) ??
|
(j.status as JobStatus | undefined) ?? AdminListArcherJobsStatusEnum.queued
|
||||||
AdminListArcherJobsStatusEnum.queued
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TableRow key={j.id}>
|
<TableRow key={j.id}>
|
||||||
@@ -309,10 +308,7 @@ export const JobsPage: FC = () => {
|
|||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn("rounded-md px-2 py-0.5 text-xs", statusClass[jobStatus])}
|
||||||
"rounded-md px-2 py-0.5 text-xs",
|
|
||||||
statusClass[jobStatus],
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
{jobStatus}
|
{jobStatus}
|
||||||
</span>
|
</span>
|
||||||
@@ -418,9 +414,7 @@ function DetailsButton({ job }: { job: DtoJob }) {
|
|||||||
<CardTitle className="text-sm">Last error</CardTitle>
|
<CardTitle className="text-sm">Last error</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<pre className="overflow-auto text-xs whitespace-pre-wrap">
|
<pre className="overflow-auto text-xs whitespace-pre-wrap">{job.last_error}</pre>
|
||||||
{job.last_error}
|
|
||||||
</pre>
|
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
@@ -446,9 +440,9 @@ function DetailsButton({ job }: { job: DtoJob }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function EnqueueDialog({
|
function EnqueueDialog({
|
||||||
onSubmit,
|
onSubmit,
|
||||||
submitting,
|
submitting,
|
||||||
}: {
|
}: {
|
||||||
onSubmit: (body: {
|
onSubmit: (body: {
|
||||||
queue: string
|
queue: string
|
||||||
type: string
|
type: string
|
||||||
@@ -513,11 +507,7 @@ function EnqueueDialog({
|
|||||||
</div>
|
</div>
|
||||||
<div className="grid gap-2">
|
<div className="grid gap-2">
|
||||||
<Label>Run at (optional)</Label>
|
<Label>Run at (optional)</Label>
|
||||||
<Input
|
<Input type="datetime-local" value={runAt} onChange={(e) => setRunAt(e.target.value)} />
|
||||||
type="datetime-local"
|
|
||||||
value={runAt}
|
|
||||||
onChange={(e) => setRunAt(e.target.value)}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<DialogFooter>
|
<DialogFooter>
|
||||||
|
|||||||
Reference in New Issue
Block a user