Skip to content

Commit 4f36bd1

Browse files
committed
queue detail: link to concurrency docs
While using this at work the other day with some other engineers, I realized it'd be great if they could more easily understand what all these settings mean by linking to the docs.
1 parent 60a358c commit 4f36bd1

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

src/components/QueueDetail.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import TopNavTitleOnly from "@components/TopNavTitleOnly";
77
import { useFeatures } from "@contexts/Features.hook";
88
import { Switch } from "@headlessui/react";
99
import { ArrowRightIcon } from "@heroicons/react/20/solid";
10+
import { BookOpenIcon } from "@heroicons/react/24/outline";
1011
import { PauseCircleIcon, PlayCircleIcon } from "@heroicons/react/24/outline";
1112
import { Features } from "@services/features";
1213
import { type Producer } from "@services/producers";
@@ -421,9 +422,20 @@ const ConcurrencySettings = ({
421422
</div>
422423
)}
423424
</div>
424-
<p className="mt-1 text-sm/6 text-gray-600 dark:text-gray-400">
425-
Control how many jobs can run simultaneously in this queue.
426-
</p>
425+
<div className="mt-1 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between">
426+
<p className="text-sm/6 text-gray-600 dark:text-gray-400">
427+
Control how many jobs can run simultaneously in this queue.
428+
</p>
429+
<a
430+
className="inline-flex items-center text-sm font-medium text-brand-primary hover:text-brand-primary/80"
431+
href="https://riverqueue.com/docs/pro/concurrency-limits"
432+
rel="noopener noreferrer"
433+
target="_blank"
434+
>
435+
<BookOpenIcon aria-hidden="true" className="mr-1.5 size-4" />
436+
View docs
437+
</a>
438+
</div>
427439
</div>
428440

429441
<div className="space-y-6">

0 commit comments

Comments
 (0)