From ff99d321f717d70e4e872e0edb3ae24cd4d47e03 Mon Sep 17 00:00:00 2001
From: Maximilian Kaske <56969857+mxkaske@users.noreply.github.com>
Date: Thu, 3 Oct 2024 10:52:56 +0200
Subject: [PATCH] chore: add job type icon (#1025)
* chore: add job type icon
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
---
.../(dashboard)/monitors/[id]/layout.tsx | 3 ++
apps/web/src/components/icons.tsx | 7 ++-
.../monitor/job-type-icon-with-tooltip.tsx | 46 +++++++++++++++++++
3 files changed, 54 insertions(+), 2 deletions(-)
create mode 100644 apps/web/src/components/monitor/job-type-icon-with-tooltip.tsx
diff --git a/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx b/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx
index 319f1d734b..c829f01343 100644
--- a/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx
+++ b/apps/web/src/app/app/[workspaceSlug]/(dashboard)/monitors/[id]/layout.tsx
@@ -4,6 +4,7 @@ import { Badge } from "@openstatus/ui/src/components/badge";
import { Header } from "@/components/dashboard/header";
import AppPageWithSidebarLayout from "@/components/layout/app-page-with-sidebar-layout";
+import { JobTypeIconWithTooltip } from "@/components/monitor/job-type-icon-with-tooltip";
import { StatusDotWithTooltip } from "@/components/monitor/status-dot-with-tooltip";
import { TagBadgeWithTooltip } from "@/components/monitor/tag-badge-with-tooltip";
import { api } from "@/trpc/server";
@@ -63,6 +64,8 @@ export default async function Layout({
every {monitor.periodicity}
+ •
+
{monitor.public ? (
<>
•
diff --git a/apps/web/src/components/icons.tsx b/apps/web/src/components/icons.tsx
index 706e8c5fb8..bae04adac0 100644
--- a/apps/web/src/components/icons.tsx
+++ b/apps/web/src/components/icons.tsx
@@ -18,7 +18,7 @@ import {
FileClock,
Fingerprint,
Gauge,
- Globe2,
+ Globe,
Hammer,
Hourglass,
Image,
@@ -44,6 +44,7 @@ import {
Ratio,
Search,
SearchCheck,
+ Server,
Siren,
Sparkles,
SunMedium,
@@ -62,6 +63,7 @@ import {
import type { LucideIcon, LucideProps } from "lucide-react";
export type Icon = LucideIcon;
+export type IconProps = LucideProps;
export type ValidIcon = keyof typeof Icons;
export const Icons = {
@@ -86,7 +88,7 @@ export const Icons = {
tag: Tag,
trash: Trash,
twitter: TwitterIcon,
- globe: Globe2,
+ globe: Globe,
plug: Plug,
copy: Copy,
check: Check,
@@ -124,6 +126,7 @@ export const Icons = {
camera: Camera,
"book-open-check": BookOpenCheck,
info: Info,
+ server: Server,
discord: ({ ...props }: LucideProps) => (