Skip to content

Commit 2c3e9fd

Browse files
committed
"Increase limit" link to concurrency page
1 parent 4b10b25 commit 2c3e9fd

File tree

1 file changed

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

1 file changed

+16
-13
lines changed

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

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,18 @@ import { EnvironmentQueuePresenter } from "~/presenters/v3/EnvironmentQueuePrese
6868
import { QueueListPresenter } from "~/presenters/v3/QueueListPresenter.server";
6969
import { requireUserId } from "~/services/session.server";
7070
import { cn } from "~/utils/cn";
71-
import { docsPath, EnvironmentParamSchema, v3BillingPath, v3RunsPath } from "~/utils/pathBuilder";
71+
import {
72+
concurrencyPath,
73+
docsPath,
74+
EnvironmentParamSchema,
75+
v3BillingPath,
76+
v3RunsPath,
77+
} from "~/utils/pathBuilder";
7278
import { concurrencySystem } from "~/v3/services/concurrencySystemInstance.server";
7379
import { PauseEnvironmentService } from "~/v3/services/pauseEnvironment.server";
7480
import { PauseQueueService } from "~/v3/services/pauseQueue.server";
7581
import { useCurrentPlan } from "../_app.orgs.$organizationSlug/route";
82+
import { ConcurrencyIcon } from "~/assets/icons/ConcurrencyIcon";
7683

7784
const SearchParamsSchema = z.object({
7885
query: z.string().optional(),
@@ -406,18 +413,14 @@ export default function Page() {
406413
accessory={
407414
plan ? (
408415
plan?.v3Subscription?.plan?.limits.concurrentRuns.canExceed ? (
409-
<Feedback
410-
button={
411-
<Button
412-
variant="tertiary/small"
413-
LeadingIcon={ChatBubbleLeftEllipsisIcon}
414-
leadingIconClassName="text-indigo-500"
415-
>
416-
Increase limit…
417-
</Button>
418-
}
419-
defaultValue="concurrency"
420-
/>
416+
<LinkButton
417+
to={concurrencyPath(organization, project, env)}
418+
variant="tertiary/small"
419+
LeadingIcon={ConcurrencyIcon}
420+
leadingIconClassName="text-amber-500"
421+
>
422+
Increase limit
423+
</LinkButton>
421424
) : (
422425
<LinkButton
423426
to={v3BillingPath(organization, "Upgrade your plan for more concurrency")}

0 commit comments

Comments
 (0)