From 287ac2dff0be63f1d06787e4a16b5a56584894eb Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Tue, 4 Feb 2025 17:21:03 -0500 Subject: [PATCH] feat: unify all colors --- app/components/Attribute.tsx | 2 +- app/components/Link.tsx | 15 ++-- app/components/Menu.tsx | 5 +- app/components/Notice.tsx | 25 ++---- app/components/Select.tsx | 6 +- app/components/Spinner.tsx | 3 +- app/components/StatusCircle.tsx | 25 +++--- app/components/TableList.tsx | 6 +- app/components/Title.tsx | 2 +- app/components/Tooltip.tsx | 1 + app/routes/acls/components/fallback.tsx | 25 ++++-- app/routes/auth/login.tsx | 27 +++--- app/routes/dns/components/dns.tsx | 2 +- app/routes/dns/components/domains.tsx | 20 ++--- app/routes/dns/components/nameservers.tsx | 2 +- app/routes/dns/overview.tsx | 2 +- app/routes/machines/components/machine.tsx | 12 ++- app/routes/machines/dialogs/rename.tsx | 6 +- app/routes/machines/dialogs/routes.tsx | 69 +++++----------- app/routes/machines/dialogs/tags.tsx | 15 ++-- app/routes/machines/machine.tsx | 58 +++++-------- app/routes/machines/overview.tsx | 18 ++-- app/routes/settings/auth-keys.tsx | 82 +++++++++---------- app/routes/settings/components/agent.tsx | 9 +- .../settings/components/agent/manage.tsx | 23 ++---- app/routes/settings/overview.tsx | 11 +-- app/routes/users/components/auth.tsx | 8 +- app/routes/users/components/oidc.tsx | 8 +- app/routes/users/overview.tsx | 6 +- app/utils/config/headplane.ts | 24 +++--- 30 files changed, 233 insertions(+), 284 deletions(-) diff --git a/app/components/Attribute.tsx b/app/components/Attribute.tsx index 91bf246..a1e1f0d 100644 --- a/app/components/Attribute.tsx +++ b/app/components/Attribute.tsx @@ -54,7 +54,7 @@ export default function Attribute({ }, 1000); }} > - {value} +

{value}

diff --git a/app/components/Link.tsx b/app/components/Link.tsx index e7c931c..9a44a76 100644 --- a/app/components/Link.tsx +++ b/app/components/Link.tsx @@ -1,14 +1,19 @@ -import { LinkExternalIcon } from '@primer/octicons-react'; +import { ExternalLink } from 'lucide-react'; import cn from '~/utils/cn'; -interface Props { +export interface LinkProps { to: string; name: string; children: string; className?: string; } -export default function Link({ to, name: alt, children, className }: Props) { +export default function Link({ + to, + name: alt, + children, + className, +}: LinkProps) { return ( {children} - + ); } diff --git a/app/components/Menu.tsx b/app/components/Menu.tsx index b2e2ce3..3df17dc 100644 --- a/app/components/Menu.tsx +++ b/app/components/Menu.tsx @@ -97,7 +97,10 @@ function MenuSection({ section, state }: MenuSectionProps) { {section.key !== state.collection.getFirstKey() ? (
  • ) : undefined}
  • diff --git a/app/components/Notice.tsx b/app/components/Notice.tsx index 83506b3..18cecde 100644 --- a/app/components/Notice.tsx +++ b/app/components/Notice.tsx @@ -1,23 +1,16 @@ -import { InfoIcon } from '@primer/octicons-react'; -import type { ReactNode } from 'react'; -import cn from '~/utils/cn'; +import { CircleSlash2 } from 'lucide-react'; +import React from 'react'; +import Card from '~/components/Card'; -interface Props { - className?: string; - children: ReactNode; +export interface NoticeProps { + children: React.ReactNode; } -export default function Notice({ children, className }: Props) { +export default function Notice({ children }: NoticeProps) { return ( -
    - + + {children} -
    + ); } diff --git a/app/components/Select.tsx b/app/components/Select.tsx index eebb148..79da75a 100644 --- a/app/components/Select.tsx +++ b/app/components/Select.tsx @@ -14,7 +14,9 @@ import { Item, ListState, Node, useComboBoxState } from 'react-stately'; import Popover from '~/components/Popover'; import cn from '~/utils/cn'; -export interface SelectProps extends AriaComboBoxProps {} +export interface SelectProps extends AriaComboBoxProps { + className?: string; +} function Select(props: SelectProps) { const { contains } = useFilter({ sensitivity: 'base' }); @@ -45,7 +47,7 @@ function Select(props: SelectProps) { const { buttonProps } = useButton(triggerProps, buttonRef); return ( -
    +