Skip to content

Commit dfc5c59

Browse files
committed
Colors the Running/Limit column text amber if the concurrency limit is hit
1 parent 56f4c23 commit dfc5c59

File tree

1 file changed

+10
-2
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues

1 file changed

+10
-2
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues/route.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,19 @@ export default function Page() {
380380
</TableCell>
381381
<TableCell
382382
alignment="right"
383-
className={queue.paused ? "opacity-50" : undefined}
383+
className={cn(
384+
queue.paused ? "opacity-50" : undefined,
385+
queue.running === queue.concurrencyLimit && "text-amber-500"
386+
)}
384387
>
385388
{queue.running}/
386389
{queue.concurrencyLimit ?? (
387-
<span className="text-text-dimmed">
390+
<span
391+
className={cn(
392+
"text-text-dimmed",
393+
queue.running === queue.concurrencyLimit && "text-amber-500"
394+
)}
395+
>
388396
{environment.concurrencyLimit} (Max)
389397
</span>
390398
)}

0 commit comments

Comments
 (0)