Skip to content

Commit 3d2e428

Browse files
committed
Added tooltip and changed wording around
1 parent a409300 commit 3d2e428

File tree

1 file changed

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

1 file changed

+26
-9
lines changed

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

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,14 @@ export default function Page() {
282282
animate
283283
valueClassName={limitClassName}
284284
suffix={
285-
limitStatus === "burst"
286-
? `Including ${environment.running - environment.concurrencyLimit} burst runs`
287-
: limitStatus === "limit"
288-
? "At concurrency limit"
289-
: undefined
285+
limitStatus === "burst" ? (
286+
<span className={cn(limitClassName, "flex items-center gap-1")}>
287+
Including {environment.running - environment.concurrencyLimit} burst runs{" "}
288+
<BurstFactorTooltip environment={environment} />
289+
</span>
290+
) : limitStatus === "limit" ? (
291+
"At concurrency limit"
292+
) : undefined
290293
}
291294
compactThreshold={1000000}
292295
/>
@@ -299,10 +302,7 @@ export default function Page() {
299302
environment.burstFactor > 1 ? (
300303
<span className={cn(limitClassName, "flex items-center gap-1")}>
301304
Burst limit {environment.burstFactor * environment.concurrencyLimit}{" "}
302-
<InfoIconTooltip
303-
content={`You can burst up to ${environment.burstFactor}x your concurrency limit. For a single queue you can't go above your normal limit (${environment.concurrencyLimit}), but you can burst when running across multiple queues/tasks.`}
304-
contentClassName="max-w-xs"
305-
/>
305+
<BurstFactorTooltip environment={environment} />
306306
</span>
307307
) : undefined
308308
}
@@ -783,3 +783,20 @@ export function QueueFilters() {
783783
</div>
784784
);
785785
}
786+
787+
function BurstFactorTooltip({
788+
environment,
789+
}: {
790+
environment: { burstFactor: number; concurrencyLimit: number };
791+
}) {
792+
return (
793+
<InfoIconTooltip
794+
content={`Your single queue concurrency limit is capped at ${
795+
environment.concurrencyLimit
796+
}, but you can burst up to ${
797+
environment.burstFactor * environment.concurrencyLimit
798+
} when across multiple queues/tasks.`}
799+
contentClassName="max-w-xs"
800+
/>
801+
);
802+
}

0 commit comments

Comments
 (0)