From 2737d2661cf0f64cb9764f3a55ee7d0441fe1e4d Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Wed, 22 May 2024 21:14:52 -0500 Subject: [PATCH] remove links to empty placeholder queue detail page --- ui/src/components/JobDetail.tsx | 12 ++---------- ui/src/components/QueueList.tsx | 25 ++++++++++--------------- 2 files changed, 12 insertions(+), 25 deletions(-) diff --git a/ui/src/components/JobDetail.tsx b/ui/src/components/JobDetail.tsx index 1ba55e4..628b7a0 100644 --- a/ui/src/components/JobDetail.tsx +++ b/ui/src/components/JobDetail.tsx @@ -10,7 +10,6 @@ import { capitalize } from "@utils/string"; import clsx from "clsx"; import JobTimeline from "./JobTimeline"; import { FormEvent, useMemo, useState } from "react"; -import { Link } from "@tanstack/react-router"; import TopNavTitleOnly from "./TopNavTitleOnly"; import RelativeTimeFormatter from "./RelativeTimeFormatter"; import JobAttemptErrors from "./JobAttemptErrors"; @@ -118,7 +117,6 @@ export default function JobDetail({ cancel, job, retry }: JobDetailProps) {

ID: {job.id.toString()} - {/* {capitalize(job.state)} */}

@@ -159,14 +157,8 @@ export default function JobDetail({ cancel, job, retry }: JobDetailProps) {
Queue
-
- - {job.queue} - +
+ {job.queue}
diff --git a/ui/src/components/QueueList.tsx b/ui/src/components/QueueList.tsx index e7f1ed5..48cb732 100644 --- a/ui/src/components/QueueList.tsx +++ b/ui/src/components/QueueList.tsx @@ -1,6 +1,5 @@ import { Queue } from "@services/queues"; import { PauseCircleIcon, PlayCircleIcon } from "@heroicons/react/24/outline"; -import { Link } from "@tanstack/react-router"; import TopNavTitleOnly from "@components/TopNavTitleOnly"; import RelativeTimeFormatter from "@components/RelativeTimeFormatter"; @@ -69,22 +68,10 @@ const QueueList = ({ {queues.map((queue) => ( - + {queue.name} - +
-
Created
-
- -
Available
{queue.countAvailable} available @@ -93,6 +80,14 @@ const QueueList = ({
{queue.countRunning} running
+
Created
+
+ +