Skip to content

Commit 6485f37

Browse files
authored
fix(webapp): show the dev environment's actual limit in the concurrency page Total column (#4596)
## Summary On the Concurrency page, the dev environment row's Total always showed the plan's included dev concurrency, even when the environment's limit had been raised. The row's own "Extra concurrency" value was already derived from the real limit, so the two columns could disagree with each other. ## Root cause The Total cell renders `planConcurrencyLimit + allocation`, where `allocation` is the state behind the editable prod/staging inputs. Dev environments are deliberately excluded from that allocation map (dev concurrency is not purchasable), so the dev row's allocation always resolved to 0 and the Total fell back to the plan value. The dev row now renders the environment's actual `maximumConcurrencyLimit` instead.
1 parent d1ac3d5 commit 6485f37

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: fix
4+
---
5+
6+
Fix the Concurrency page showing the plan's default concurrency for the dev environment instead of the environment's actual limit.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@ function Upgradable({
541541
</div>
542542
</TableCell>
543543
<TableCell alignment="right">
544-
{environment.planConcurrencyLimit + (allocation.get(environment.id) ?? 0)}
544+
{environment.type === "DEVELOPMENT"
545+
? environment.maximumConcurrencyLimit
546+
: environment.planConcurrencyLimit + (allocation.get(environment.id) ?? 0)}
545547
</TableCell>
546548
</TableRow>
547549
))}

0 commit comments

Comments
 (0)