Skip to content

Commit cd10d47

Browse files
samejrmatt-aitken
authored andcommitted
Added a description panel to the Concurrency admin page
1 parent 494e1ea commit cd10d47

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

apps/webapp/app/routes/admin.concurrency.tsx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import { InformationCircleIcon } from "@heroicons/react/20/solid";
12
import type { LoaderFunctionArgs } from "@remix-run/server-runtime";
23
import { redirect, typedjson, useTypedLoaderData } from "remix-typedjson";
34
import { Header1 } from "~/components/primitives/Headers";
5+
import { InfoPanel } from "~/components/primitives/InfoPanel";
46
import { Paragraph } from "~/components/primitives/Paragraph";
57
import { requireUser } from "~/services/session.server";
68
import { concurrencyTracker } from "~/v3/services/taskRunConcurrencyTracker.server";
@@ -23,16 +25,22 @@ export default function AdminDashboardRoute() {
2325
return (
2426
<main
2527
aria-labelledby="primary-heading"
26-
className="flex h-full min-w-0 flex-1 flex-col gap-6 overflow-y-auto px-4 pb-4 lg:order-last"
28+
className="flex h-full w-fit min-w-0 flex-1 flex-col gap-4 overflow-y-auto px-4 pb-4 lg:order-last"
2729
>
28-
<div>
29-
<Header1 spacing>Dev</Header1>
30-
<Paragraph spacing>{devConcurrency}</Paragraph>
31-
</div>
32-
<div>
33-
<Header1 spacing>Deployed</Header1>
34-
<Paragraph spacing>{deployedConcurrency}</Paragraph>
30+
<div className="flex items-center divide-x divide-grid-bright rounded border border-grid-bright">
31+
<div className="w-1/2 p-3">
32+
<Paragraph spacing>Dev</Paragraph>
33+
<Header1>{devConcurrency}</Header1>
34+
</div>
35+
<div className="w-1/2 p-3">
36+
<Paragraph spacing>Deployed</Paragraph>
37+
<Header1>{deployedConcurrency}</Header1>
38+
</div>
3539
</div>
40+
<InfoPanel icon={InformationCircleIcon}>
41+
This refers to the number of 'Dequeued' runs, which are either currently executing or about
42+
to begin execution.
43+
</InfoPanel>
3644
</main>
3745
);
3846
}

0 commit comments

Comments
 (0)