Skip to content

Commit 1904763

Browse files
samejrmatt-aitken
authored andcommitted
Adds more icons to headers
1 parent 0a56dfe commit 1904763

File tree

1 file changed

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

1 file changed

+20
-14
lines changed

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

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { CheckIcon, XMarkIcon } from "@heroicons/react/20/solid";
2+
import { IconCrown, IconTallymark4 } from "@tabler/icons-react";
3+
import { Gauge, Gem } from "lucide-react";
24
import { type MetaFunction } from "@remix-run/react";
35
import { type LoaderFunctionArgs } from "@remix-run/server-runtime";
46
import { tryCatch } from "@trigger.dev/core";
@@ -176,7 +178,10 @@ function CurrentPlanSection({
176178
}) {
177179
return (
178180
<div className="flex flex-col gap-3">
179-
<Header2>Current plan</Header2>
181+
<Header2 className="flex items-center gap-1">
182+
<IconCrown className="size-6 text-amber-400" />
183+
Current plan
184+
</Header2>
180185
<Table variant="bright/no-hover">
181186
<TableBody>
182187
<TableRow>
@@ -203,7 +208,8 @@ function CurrentPlanSection({
203208
function ConcurrencySection({ concurrencyPath }: { concurrencyPath: string }) {
204209
return (
205210
<div className="flex flex-col gap-3">
206-
<Header2 className="flex items-center gap-1">
211+
<Header2 className="flex items-center gap-1.5">
212+
<ConcurrencyIcon className="size-5 text-orange-500" />
207213
Concurrency limits
208214
<InfoIconTooltip
209215
content="Concurrency limits control how many runs execute at the same time."
@@ -215,12 +221,7 @@ function ConcurrencySection({ concurrencyPath }: { concurrencyPath: string }) {
215221
<TableRow>
216222
<TableCell className="w-full text-sm">Concurrency</TableCell>
217223
<TableCell alignment="right">
218-
<LinkButton
219-
to={concurrencyPath}
220-
variant="secondary/small"
221-
LeadingIcon={ConcurrencyIcon}
222-
leadingIconClassName="text-orange-500"
223-
>
224+
<LinkButton to={concurrencyPath} variant="secondary/small">
224225
Manage concurrency
225226
</LinkButton>
226227
</TableCell>
@@ -245,8 +246,9 @@ function RateLimitsSection({
245246
return (
246247
<div className="flex flex-col gap-3">
247248
<div className="flex items-center justify-between">
248-
<Header2 className="flex items-center gap-1">
249-
Rate Limits
249+
<Header2 className="flex items-center gap-1.5">
250+
<Gauge className="size-5 text-indigo-500" />
251+
Rate limits
250252
<InfoIconTooltip
251253
content="Rate limits control how many API requests can be made within a time window. They are tracked per API key."
252254
disableHoverableContent
@@ -262,7 +264,7 @@ function RateLimitsSection({
262264
<Table variant="bright/no-hover">
263265
<TableHeader>
264266
<TableRow>
265-
<TableHeaderCell>Rate Limit</TableHeaderCell>
267+
<TableHeaderCell>Rate limit</TableHeaderCell>
266268
<TableHeaderCell alignment="right">
267269
<span className="flex items-center justify-end gap-x-1">
268270
Type
@@ -465,6 +467,7 @@ function QuotasSection({
465467
return (
466468
<div className="flex flex-col gap-3">
467469
<Header2 className="flex items-center gap-1">
470+
<IconTallymark4 className="size-6 text-blue-500" />
468471
Quotas
469472
<InfoIconTooltip
470473
content="Quotas define the maximum resources available to your organization."
@@ -630,7 +633,10 @@ function FeaturesSection({
630633

631634
return (
632635
<div className="flex flex-col gap-3">
633-
<Header2>Plan Features</Header2>
636+
<Header2 className="flex items-center gap-1.5">
637+
<Gem className="size-5 text-emerald-500" />
638+
Plan features
639+
</Header2>
634640
<Table variant="bright/no-hover">
635641
<TableHeader>
636642
<TableRow>
@@ -759,11 +765,11 @@ function SourceBadge({ source }: { source: "default" | "plan" | "override" }) {
759765
const variants: Record<typeof source, { label: string; className: string }> = {
760766
default: {
761767
label: "Default",
762-
className: "bg-charcoal-700 text-text-dimmed",
768+
className: "bg-indigo-500/20 text-indigo-400",
763769
},
764770
plan: {
765771
label: "Plan",
766-
className: "bg-indigo-500/20 text-indigo-400",
772+
className: "bg-purple-500/20 text-purple-400",
767773
},
768774
override: {
769775
label: "Override",

0 commit comments

Comments
 (0)