Skip to content

Commit 54c8678

Browse files
samejrmatt-aitken
authored andcommitted
Add button icon and update icon colors
1 parent 31d9aaa commit 54c8678

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,23 +351,23 @@ export function SideMenu({
351351
<SideMenuItem
352352
name="Concurrency"
353353
icon={ConcurrencyIcon}
354-
activeIconColor="text-amber-500"
354+
activeIconColor="text-concurrency"
355355
to={concurrencyPath(organization, project, environment)}
356356
data-action="concurrency"
357357
/>
358358
)}
359359
<SideMenuItem
360360
name="Regions"
361361
icon={GlobeAmericasIcon}
362-
activeIconColor="text-green-500"
362+
activeIconColor="text-regions"
363363
to={regionsPath(organization, project, environment)}
364364
data-action="regions"
365365
badge={<V4Badge />}
366366
/>
367367
<SideMenuItem
368368
name="Limits"
369369
icon={AdjustmentsHorizontalIcon}
370-
activeIconColor="text-purple-500"
370+
activeIconColor="text-limits"
371371
to={limitsPath(organization, project, environment)}
372372
data-action="limits"
373373
/>

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import {
4242
EnvironmentParamSchema,
4343
organizationBillingPath,
4444
} from "~/utils/pathBuilder";
45+
import { ConcurrencyIcon } from "~/assets/icons/ConcurrencyIcon";
4546

4647
export const meta: MetaFunction = () => {
4748
return [
@@ -207,7 +208,12 @@ function ConcurrencySection({ concurrencyPath }: { concurrencyPath: string }) {
207208
<TableRow>
208209
<TableCell className="w-full text-sm">Concurrency</TableCell>
209210
<TableCell alignment="right">
210-
<LinkButton to={concurrencyPath} variant="secondary/small">
211+
<LinkButton
212+
to={concurrencyPath}
213+
variant="secondary/small"
214+
LeadingIcon={ConcurrencyIcon}
215+
leadingIconClassName="text-orange-500"
216+
>
211217
Manage concurrency
212218
</LinkButton>
213219
</TableCell>

apps/webapp/tailwind.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ const batches = colors.pink[500];
160160
const schedules = colors.yellow[500];
161161
const queues = colors.purple[500];
162162
const deployments = colors.green[500];
163+
const concurrency = colors.amber[500];
164+
const limits = colors.purple[500];
165+
const regions = colors.green[500];
163166
const logs = colors.blue[500];
164167
const tests = colors.lime[500];
165168
const apiKeys = colors.amber[500];
@@ -235,7 +238,10 @@ module.exports = {
235238
runs,
236239
batches,
237240
schedules,
241+
concurrency,
238242
queues,
243+
regions,
244+
limits,
239245
deployments,
240246
logs,
241247
tests,

0 commit comments

Comments
 (0)