Skip to content

Commit 20dbbd3

Browse files
samejrmatt-aitken
authored andcommitted
Removes the Source column from the Rate Limits table
1 parent 51d3bcf commit 20dbbd3

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

apps/webapp/app/presenters/v3/LimitsPresenter.server.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export type RateLimitInfo = {
2828
name: string;
2929
description: string;
3030
config: RateLimiterConfig;
31-
source: "default" | "plan" | "override";
3231
currentTokens: number | null;
3332
};
3433

@@ -120,13 +119,9 @@ export class LimitsPresenter extends BasePresenter {
120119
const limits = currentPlan?.v3Subscription?.plan?.limits;
121120
const isOnTopPlan = currentPlan?.v3Subscription?.plan?.code === "v3_pro_1";
122121

123-
// Resolve API rate limit config
122+
// Resolve rate limit configs (org override or default)
124123
const apiRateLimitConfig = resolveApiRateLimitConfig(organization.apiRateLimiterConfig);
125-
const apiRateLimitSource = organization.apiRateLimiterConfig ? "override" : "default";
126-
127-
// Resolve batch rate limit config
128124
const batchRateLimitConfig = resolveBatchRateLimitConfig(organization.batchRateLimitConfig);
129-
const batchRateLimitSource = organization.batchRateLimitConfig ? "override" : "default";
130125

131126
// Resolve batch concurrency config
132127
const batchConcurrencyConfig = resolveBatchConcurrencyConfig(
@@ -201,14 +196,12 @@ export class LimitsPresenter extends BasePresenter {
201196
name: "API rate limit",
202197
description: "Rate limit for API requests (trigger, batch, etc.)",
203198
config: apiRateLimitConfig,
204-
source: apiRateLimitSource,
205199
currentTokens: apiRateLimitTokens,
206200
},
207201
batch: {
208202
name: "Batch rate limit",
209203
description: "Rate limit for batch trigger operations",
210204
config: batchRateLimitConfig,
211-
source: batchRateLimitSource,
212205
currentTokens: batchRateLimitTokens,
213206
},
214207
},

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ function RateLimitsSection({
318318
/>
319319
</span>
320320
</TableHeaderCell>
321-
<TableHeaderCell alignment="right">Source</TableHeaderCell>
322321
<TableHeaderCell alignment="right">Upgrade</TableHeaderCell>
323322
</TableRow>
324323
</TableHeader>
@@ -371,9 +370,6 @@ function RateLimitRow({ info }: { info: RateLimitInfo }) {
371370
<span className="text-text-dimmed"></span>
372371
)}
373372
</TableCell>
374-
<TableCell alignment="right">
375-
<SourceBadge source={info.source} />
376-
</TableCell>
377373
<TableCell alignment="right">
378374
<div className="flex justify-end">
379375
<Feedback

0 commit comments

Comments
 (0)