diff --git a/apps/webapp/app/components/primitives/DetailCell.tsx b/apps/webapp/app/components/primitives/DetailCell.tsx deleted file mode 100644 index 2ff4040b5..000000000 --- a/apps/webapp/app/components/primitives/DetailCell.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import { cn } from "~/utils/cn"; -import { Icon, IconInBox, RenderIcon } from "./Icon"; -import { Paragraph } from "./Paragraph"; - -const variations = { - small: { - label: { - variant: "small" as const, - className: "m-0 leading-[1.1rem]", - }, - description: { - variant: "extra-small" as const, - className: "m-0", - }, - }, - base: { - label: { - variant: "base" as const, - className: "m-0 leading-[1.1rem] ", - }, - description: { - variant: "small" as const, - className: "m-0", - }, - }, -}; - -type DetailCellProps = { - leadingIcon?: RenderIcon; - leadingIconClassName?: string; - trailingIcon?: RenderIcon; - trailingIconClassName?: string; - label: string | React.ReactNode; - description?: string | React.ReactNode; - className?: string; - variant?: keyof typeof variations; - boxClassName?: string; -}; - -export function DetailCell({ - leadingIcon, - leadingIconClassName, - trailingIcon, - trailingIconClassName, - label, - description, - className, - variant = "small", - boxClassName, -}: DetailCellProps) { - const variation = variations[variant]; - - return ( -
- -
- - {label} - - {description && ( - - {description} - - )} -
-
- -
-
- ); -} diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts/route.tsx index 08f40cffb..01290d601 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.alerts/route.tsx @@ -5,7 +5,6 @@ import { BellSlashIcon, BookOpenIcon, EnvelopeIcon, - GlobeAltIcon, LockClosedIcon, PlusIcon, TrashIcon, @@ -17,12 +16,12 @@ import { type ProjectAlertChannelType, type ProjectAlertType } from "@trigger.de import assertNever from "assert-never"; import { typedjson, useTypedLoaderData } from "remix-typedjson"; import { z } from "zod"; -import { AlertsNoneDev, AlertsNoneDeployed } from "~/components/BlankStatePanels"; +import { WebhookIcon } from "~/assets/icons/WebhookIcon"; +import { AlertsNoneDeployed, AlertsNoneDev } from "~/components/BlankStatePanels"; import { EnvironmentCombo } from "~/components/environments/EnvironmentLabel"; import { MainCenteredContainer, PageBody, PageContainer } from "~/components/layout/AppLayout"; import { Button, LinkButton } from "~/components/primitives/Buttons"; import { ClipboardField } from "~/components/primitives/ClipboardField"; -import { DetailCell } from "~/components/primitives/DetailCell"; import { Header2, Header3 } from "~/components/primitives/Headers"; import { NavBar, PageAccessories, PageTitle } from "~/components/primitives/PageHeader"; import { Paragraph } from "~/components/primitives/Paragraph"; @@ -35,13 +34,7 @@ import { TableHeaderCell, TableRow, } from "~/components/primitives/Table"; -import { - SimpleTooltip, - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger, -} from "~/components/primitives/Tooltip"; +import { SimpleTooltip } from "~/components/primitives/Tooltip"; import { EnabledStatus } from "~/components/runs/v3/EnabledStatus"; import { prisma } from "~/db.server"; import { useEnvironment } from "~/hooks/useEnvironment"; @@ -55,7 +48,6 @@ import { type AlertChannelListPresenterRecord, } from "~/presenters/v3/AlertChannelListPresenter.server"; import { requireUserId } from "~/services/session.server"; -import { cn } from "~/utils/cn"; import { EnvironmentParamSchema, docsPath, @@ -224,7 +216,7 @@ export default function Page() { {alertChannel.alertTypes.map((type) => alertTypeTitle(type)).join(", ")} - + @@ -415,7 +407,6 @@ function DisableAlertChannelButton(props: { id: string }) { return (
-