Skip to content

Commit 8a116ef

Browse files
samejrmatt-aitken
authored andcommitted
More table layout improvements
1 parent da2eeff commit 8a116ef

File tree

1 file changed

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

1 file changed

+35
-31
lines changed

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

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function CurrentPlanSection({ planName, billingPath }: { planName: string; billi
160160
<Table variant="bright/no-hover">
161161
<TableBody>
162162
<TableRow>
163-
<TableCell className="w-full text-sm text-text-bright">{planName}</TableCell>
163+
<TableCell className="w-full text-sm">{planName}</TableCell>
164164
<TableCell alignment="right">
165165
{isPro ? (
166166
<Feedback
@@ -185,12 +185,15 @@ function ConcurrencySection({ concurrencyPath }: { concurrencyPath: string }) {
185185
<div className="flex flex-col gap-3">
186186
<Header2 className="flex items-center gap-1">
187187
Concurrency limits
188-
<InfoIconTooltip content="Concurrency limits control how many runs execute at the same time." />
188+
<InfoIconTooltip
189+
content="Concurrency limits control how many runs execute at the same time."
190+
disableHoverableContent
191+
/>
189192
</Header2>
190193
<Table variant="bright/no-hover">
191194
<TableBody>
192195
<TableRow>
193-
<TableCell className="w-full text-sm text-text-bright">Concurrency</TableCell>
196+
<TableCell className="w-full text-sm">Concurrency</TableCell>
194197
<TableCell alignment="right">
195198
<LinkButton to={concurrencyPath} variant="secondary/small">
196199
Manage concurrency
@@ -212,13 +215,14 @@ function RateLimitsSection({
212215
}) {
213216
return (
214217
<div className="flex flex-col gap-3">
215-
<div className="border-b border-grid-dimmed pb-1">
216-
<Header2>Rate Limits</Header2>
217-
</div>
218+
<Header2 className="flex items-center gap-1">
219+
Rate Limits
220+
<InfoIconTooltip
221+
content="Rate limits control how many API requests can be made within a time window."
222+
disableHoverableContent
223+
/>
224+
</Header2>
218225
<div className="flex flex-col gap-2">
219-
<Paragraph variant="small">
220-
Rate limits control how many API requests can be made within a time window.
221-
</Paragraph>
222226
<div className="flex items-center gap-2 rounded-md border border-charcoal-700 bg-charcoal-850 px-3 py-2">
223227
<EnvironmentCombo environment={{ type: environmentType }} className="text-xs" />
224228
<Paragraph variant="extra-small" className="text-text-dimmed">
@@ -235,8 +239,11 @@ function RateLimitsSection({
235239
<TableHeaderCell alignment="right">Configuration</TableHeaderCell>
236240
<TableHeaderCell alignment="right">
237241
<span className="flex items-center justify-end gap-x-1">
238-
Current
239-
<InfoIconTooltip content="Current available tokens for this environment's API key" />
242+
Available
243+
<InfoIconTooltip
244+
content="Current available tokens for this environment's API key"
245+
disableHoverableContent
246+
/>
240247
</span>
241248
</TableHeaderCell>
242249
<TableHeaderCell alignment="right">Source</TableHeaderCell>
@@ -307,7 +314,7 @@ function RateLimitTypeBadge({ config }: { config: RateLimitInfo["config"] }) {
307314
return (
308315
<span className="inline-flex items-center gap-1">
309316
<Badge variant="extra-small">Token bucket</Badge>
310-
<InfoIconTooltip content={tooltip} />
317+
<InfoIconTooltip content={tooltip} disableHoverableContent />
311318
</span>
312319
);
313320
}
@@ -318,7 +325,7 @@ function RateLimitTypeBadge({ config }: { config: RateLimitInfo["config"] }) {
318325
return (
319326
<span className="inline-flex items-center gap-1">
320327
<Badge variant="extra-small">Fixed window</Badge>
321-
<InfoIconTooltip content={tooltip} />
328+
<InfoIconTooltip content={tooltip} disableHoverableContent />
322329
</span>
323330
);
324331
}
@@ -329,7 +336,7 @@ function RateLimitTypeBadge({ config }: { config: RateLimitInfo["config"] }) {
329336
return (
330337
<span className="inline-flex items-center gap-1">
331338
<Badge variant="extra-small">Sliding window</Badge>
332-
<InfoIconTooltip content={tooltip} />
339+
<InfoIconTooltip content={tooltip} disableHoverableContent />
333340
</span>
334341
);
335342
}
@@ -401,7 +408,10 @@ function QuotasSection({
401408
<div className="flex flex-col gap-3">
402409
<Header2 className="flex items-center gap-1">
403410
Quotas
404-
<InfoIconTooltip content="Quotas define the maximum resources available to your organization." />
411+
<InfoIconTooltip
412+
content="Quotas define the maximum resources available to your organization."
413+
disableHoverableContent
414+
/>
405415
</Header2>
406416
<Table variant="bright/no-hover">
407417
<TableHeader>
@@ -417,13 +427,12 @@ function QuotasSection({
417427
<QuotaRow key={quota.name} quota={quota} />
418428
))}
419429
<TableRow>
420-
<TableCell>
421-
<div className="flex flex-col">
422-
<span className="font-medium text-text-bright">Batch processing concurrency</span>
423-
<span className="text-xs text-text-dimmed">
424-
Concurrent batch items being processed
425-
</span>
426-
</div>
430+
<TableCell className="flex w-full items-center gap-1">
431+
<span className="text-sm">Batch processing concurrency</span>
432+
<InfoIconTooltip
433+
content="Controls how many batch items can be processed simultaneously."
434+
disableHoverableContent
435+
/>
427436
</TableCell>
428437
<TableCell alignment="right" className="font-medium tabular-nums">
429438
{formatNumber(batchConcurrency.limit)}
@@ -449,11 +458,9 @@ function QuotaRow({ quota }: { quota: QuotaInfo }) {
449458

450459
return (
451460
<TableRow>
452-
<TableCell>
453-
<div className="flex flex-col">
454-
<span className="font-medium text-text-bright">{quota.name}</span>
455-
<span className="text-xs text-text-dimmed">{quota.description}</span>
456-
</div>
461+
<TableCell className="flex w-full items-center gap-1">
462+
<span className="text-sm">{quota.name}</span>
463+
<InfoIconTooltip content={quota.description} disableHoverableContent />
457464
</TableCell>
458465
<TableCell alignment="right" className="font-medium tabular-nums">
459466
{quota.limit !== null
@@ -520,10 +527,7 @@ function FeatureRow({ feature }: { feature: FeatureInfo }) {
520527
Enabled
521528
</span>
522529
) : (
523-
<span className="inline-flex items-center gap-1 text-text-dimmed">
524-
<XMarkIcon className="h-4 w-4" />
525-
Not available
526-
</span>
530+
<span className="inline-flex items-center gap-1 text-text-dimmed">Not available</span>
527531
);
528532
};
529533

0 commit comments

Comments
 (0)