Skip to content

Commit 51d3bcf

Browse files
samejrmatt-aitken
authored andcommitted
Batch processing table row now included in the map
1 parent f2d6aaf commit 51d3bcf

File tree

1 file changed

+11
-32
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.limits

1 file changed

+11
-32
lines changed

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

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,16 @@ function QuotasSection({
470470
if (quotas.realtimeConnections) quotaRows.push(quotas.realtimeConnections);
471471
if (quotas.logRetentionDays) quotaRows.push(quotas.logRetentionDays);
472472

473+
// Include batch processing concurrency as a quota row
474+
quotaRows.push({
475+
name: "Batch processing concurrency",
476+
description: "Controls how many batch items can be processed simultaneously.",
477+
limit: batchConcurrency.limit,
478+
currentUsage: 0,
479+
source: batchConcurrency.source,
480+
canExceed: true, // Allow contact us on top plan, view plans otherwise
481+
});
482+
473483
// Add queue size quotas if set
474484
if (quotas.devQueueSize.limit !== null) quotaRows.push(quotas.devQueueSize);
475485
if (quotas.deployedQueueSize.limit !== null) quotaRows.push(quotas.deployedQueueSize);
@@ -503,38 +513,6 @@ function QuotasSection({
503513
billingPath={billingPath}
504514
/>
505515
))}
506-
<TableRow>
507-
<TableCell className="flex w-full items-center gap-1">
508-
<span className="text-sm">Batch processing concurrency</span>
509-
<InfoIconTooltip
510-
content="Controls how many batch items can be processed simultaneously."
511-
disableHoverableContent
512-
/>
513-
</TableCell>
514-
<TableCell alignment="right" className="font-medium tabular-nums">
515-
{formatNumber(batchConcurrency.limit)}
516-
</TableCell>
517-
<TableCell alignment="right" className="tabular-nums text-text-dimmed">
518-
519-
</TableCell>
520-
<TableCell alignment="right">
521-
<SourceBadge source={batchConcurrency.source} />
522-
</TableCell>
523-
<TableCell alignment="right">
524-
<div className="flex justify-end">
525-
{isOnTopPlan ? (
526-
<Feedback
527-
button={<Button variant="tertiary/small">Contact us</Button>}
528-
defaultValue="help"
529-
/>
530-
) : (
531-
<LinkButton to={billingPath} variant="tertiary/small">
532-
View plans
533-
</LinkButton>
534-
)}
535-
</div>
536-
</TableCell>
537-
</TableRow>
538516
</TableBody>
539517
</Table>
540518
</div>
@@ -596,6 +574,7 @@ function QuotaRow({
596574
"Alert channels",
597575
"Preview branches",
598576
"Realtime connections",
577+
"Batch processing concurrency",
599578
];
600579

601580
const isUpgradable = upgradableQuotas.includes(quota.name);

0 commit comments

Comments
 (0)