Skip to content

Open-source status page, incident response and uptime monitoring

feat: icons package (#1352)

Maximilian Kaske9136d873a96e
diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json
index 37b98e6c9..fd53f827b 100644
--- a/apps/dashboard/package.json
+++ b/apps/dashboard/package.json
@@ -29,6 +29,7 @@
"@openstatus/emails": "workspace:*",
"@openstatus/error": "workspace:*",
"@openstatus/header-analysis": "workspace:*",
+ "@openstatus/icons": "workspace:*",
"@openstatus/notification-discord": "workspace:*",
"@openstatus/notification-emails": "workspace:*",
"@openstatus/notification-ntfy": "workspace:*",
diff --git a/apps/dashboard/src/app/(public)/login/page.tsx b/apps/dashboard/src/app/(public)/login/page.tsx
index 06ff01bfc..b2f950bce 100644
--- a/apps/dashboard/src/app/(public)/login/page.tsx
+++ b/apps/dashboard/src/app/(public)/login/page.tsx
@@ -1,10 +1,10 @@
import Link from "next/link";
-import { GitHubIcon } from "@/components/icons/github";
-import { GoogleIcon } from "@/components/icons/google";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import { signIn } from "@/lib/auth";
+import { GitHubIcon } from "@openstatus/icons";
+import { GoogleIcon } from "@openstatus/icons";
import type { SearchParams } from "nuqs/server";
import MagicLinkForm from "./_components/magic-link-form";
import { searchParamsCache } from "./search-params";
diff --git a/apps/dashboard/src/components/nav/nav-help.tsx b/apps/dashboard/src/components/nav/nav-help.tsx
index d9212eaeb..c42dc4bf9 100644
--- a/apps/dashboard/src/components/nav/nav-help.tsx
+++ b/apps/dashboard/src/components/nav/nav-help.tsx
@@ -1,8 +1,6 @@
"use client";
import { FormDialogSupportContact } from "@/components/forms/support-contact/dialog";
-import { DiscordIcon } from "@/components/icons/discord";
-import { GitHubIcon } from "@/components/icons/github";
import {
DropdownMenu,
DropdownMenuContent,
@@ -18,6 +16,8 @@ import {
SidebarMenuItem,
} from "@/components/ui/sidebar";
import { useSidebar } from "@/components/ui/sidebar";
+import { DiscordIcon } from "@openstatus/icons";
+import { GitHubIcon } from "@openstatus/icons";
import {
Book,
Braces,
diff --git a/apps/dashboard/src/data/notifications.client.ts b/apps/dashboard/src/data/notifications.client.ts
index 4ee8fdd69..5ca57b1c9 100644
--- a/apps/dashboard/src/data/notifications.client.ts
+++ b/apps/dashboard/src/data/notifications.client.ts
@@ -6,10 +6,10 @@ import { FormPagerDuty } from "@/components/forms/notifications/form-pagerduty";
import { FormSlack } from "@/components/forms/notifications/form-slack";
import { FormSms } from "@/components/forms/notifications/form-sms";
import { FormWebhook } from "@/components/forms/notifications/form-webhook";
-import { DiscordIcon } from "@/components/icons/discord";
-import { OpsGenieIcon } from "@/components/icons/opsgenie";
-import { PagerDutyIcon } from "@/components/icons/pagerduty";
-import { SlackIcon } from "@/components/icons/slack";
+import { DiscordIcon } from "@openstatus/icons";
+import { OpsGenieIcon } from "@openstatus/icons";
+import { PagerDutyIcon } from "@openstatus/icons";
+import { SlackIcon } from "@openstatus/icons";
import { sendTestDiscordMessage as sendTestDiscord } from "@openstatus/notification-discord";
import { sendTest as sendTestNtfy } from "@openstatus/notification-ntfy";
import { sendTest as sendTestOpsGenie } from "@openstatus/notification-opsgenie";
diff --git a/packages/icons/README.md b/packages/icons/README.md
new file mode 100644
index 000000000..ea0aff1a8
--- /dev/null
+++ b/packages/icons/README.md
@@ -0,0 +1,186 @@
+# Lucide React Icons Used in Dashboard
+
+This document lists all the lucide-react icons currently used in the OpenStatus dashboard application.
+
+## Complete Icon List
+
+- Activity
+- AlertCircle
+- ArrowUpRight
+- AudioLines
+- Bell
+- Book
+- Bookmark
+- Braces
+- CalendarClock
+- CalendarIcon
+- Check
+- CheckCircle2
+- CheckIcon
+- ChevronDown
+- ChevronDownIcon
+- ChevronLeft
+- ChevronRight
+- ChevronRightIcon
+- ChevronUp
+- ChevronUpIcon
+- ChevronsUpDown
+- CircleCheck
+- CircleDashed
+- CircleIcon
+- Clock
+- ClockIcon
+- Cog
+- Copy
+- CopyPlus
+- CreditCard
+- ExternalLink
+- Eye
+- FileDown
+- FileJson
+- Filter
+- Globe
+- GripVertical
+- Hammer
+- HelpCircle
+- Info
+- Inbox
+- Key
+- Laptop
+- LayoutGrid
+- LifeBuoy
+- List
+- Loader
+- LoaderCircle
+- Lock
+- LogOut
+- Logs
+- Megaphone
+- Mic
+- Moon
+- MoreHorizontal
+- Network
+- PanelLeftIcon
+- PanelRight
+- PanelTop
+- Pencil
+- Plus
+- PlusCircle
+- Rocket
+- Search
+- SearchCheck
+- SearchIcon
+- Settings
+- Settings2
+- Siren
+- Sparkles
+- Sun
+- TableProperties
+- Terminal
+- Trash2
+- User
+- Users
+- Workflow
+- X
+- XCircle
+- XIcon
+
+## Usage Statistics
+
+- **Total Icons**: 75 unique icons
+- **Most Common**: Check, Plus, X, ChevronRight, ChevronDown, ChevronUp
+- **Categories**:
+ - Navigation (Chevron*, Arrow*, MoreHorizontal)
+ - Actions (Plus, X, Trash2, Copy, Pencil)
+ - Status (Check, AlertCircle, CheckCircle2, XCircle)
+ - UI Elements (Settings, Search, Bell, Lock)
+ - Content (Book, Braces, TableProperties, Globe)
+
+## Icon Categories
+
+### Navigation & Direction
+- ArrowUpRight
+- ChevronDown, ChevronDownIcon
+- ChevronLeft
+- ChevronRight, ChevronRightIcon
+- ChevronUp, ChevronUpIcon
+- ChevronsUpDown
+
+### Actions & Operations
+- Check, CheckIcon
+- Copy, CopyPlus
+- Eye
+- Pencil
+- Plus, PlusCircle
+- Trash2
+- X, XIcon
+
+### Status & Feedback
+- AlertCircle
+- CheckCircle2
+- CircleCheck
+- CircleDashed
+- Loader, LoaderCircle
+- XCircle
+
+### UI & Interface
+- Bell
+- Lock
+- MoreHorizontal
+- PanelLeftIcon, PanelRight, PanelTop
+- Search, SearchIcon
+- Settings, Settings2
+
+### Content & Data
+- Book
+- Braces
+- TableProperties
+- Globe
+- Network
+- Terminal
+
+### Time & Calendar
+- CalendarClock
+- CalendarIcon
+- Clock, ClockIcon
+
+### User & Account
+- CreditCard
+- LogOut
+- User
+- Users
+
+### System & Technical
+- Activity
+- Cog
+- FileDown, FileJson
+- Key
+- Logs
+- Workflow
+
+### Theme & Appearance
+- Laptop
+- Moon
+- Sun
+
+### Communication
+- AudioLines
+- Inbox
+- Mic
+- Megaphone
+
+### Miscellaneous
+- Bookmark
+- ExternalLink
+- Filter
+- GripVertical
+- Hammer
+- HelpCircle
+- Info
+- LayoutGrid
+- LifeBuoy
+- List
+- Rocket
+- SearchCheck
+- Siren
+- Sparkles
diff --git a/packages/icons/package.json b/packages/icons/package.json
new file mode 100644
index 000000000..70037ab57
--- /dev/null
+++ b/packages/icons/package.json
@@ -0,0 +1,20 @@
+{
+ "name": "@openstatus/icons",
+ "version": "0.0.0",
+ "main": "./src/index.tsx",
+ "types": "./src/index.tsx",
+ "license": "MIT",
+ "scripts": {
+ "lint": "biome lint \"**/*.ts*\""
+ },
+ "devDependencies": {
+ "@biomejs/biome": "1.9.4",
+ "@openstatus/tsconfig": "workspace:*",
+ "@types/react": "19.1.10",
+ "@types/react-dom": "19.1.7",
+ "typescript": "5.7.2"
+ },
+ "dependencies": {
+ "react": "19.1.1"
+ }
+}
diff --git a/apps/dashboard/src/components/icons/discord.tsx b/packages/icons/src/discord.tsx
similarity index 100%
rename from apps/dashboard/src/components/icons/discord.tsx
rename to packages/icons/src/discord.tsx
diff --git a/apps/dashboard/src/components/icons/github.tsx b/packages/icons/src/github.tsx
similarity index 100%
rename from apps/dashboard/src/components/icons/github.tsx
rename to packages/icons/src/github.tsx
diff --git a/apps/dashboard/src/components/icons/google.tsx b/packages/icons/src/google.tsx
similarity index 100%
rename from apps/dashboard/src/components/icons/google.tsx
rename to packages/icons/src/google.tsx
diff --git a/packages/icons/src/index.tsx b/packages/icons/src/index.tsx
new file mode 100644
index 000000000..a68c1e68e
--- /dev/null
+++ b/packages/icons/src/index.tsx
@@ -0,0 +1,6 @@
+export * from "./discord";
+export * from "./github";
+export * from "./google";
+export * from "./pagerduty";
+export * from "./slack";
+export * from "./opsgenie";
diff --git a/apps/dashboard/src/components/icons/opsgenie.tsx b/packages/icons/src/opsgenie.tsx
similarity index 100%
rename from apps/dashboard/src/components/icons/opsgenie.tsx
rename to packages/icons/src/opsgenie.tsx
diff --git a/apps/dashboard/src/components/icons/pagerduty.tsx b/packages/icons/src/pagerduty.tsx
similarity index 100%
rename from apps/dashboard/src/components/icons/pagerduty.tsx
rename to packages/icons/src/pagerduty.tsx
diff --git a/apps/dashboard/src/components/icons/slack.tsx b/packages/icons/src/slack.tsx
similarity index 100%
rename from apps/dashboard/src/components/icons/slack.tsx
rename to packages/icons/src/slack.tsx
diff --git a/packages/icons/tsconfig.json b/packages/icons/tsconfig.json
new file mode 100644
index 000000000..cec44c664
--- /dev/null
+++ b/packages/icons/tsconfig.json
@@ -0,0 +1,10 @@
+{
+ "extends": "@openstatus/tsconfig/react-library.json",
+ "include": ["."],
+ "exclude": ["dist", "build", "node_modules"],
+ "compilerOptions": {
+ "paths": {
+ "@/*": ["./src/*"]
+ }
+ }
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b8908abd6..3036ba4d6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -86,6 +86,9 @@ importers:
'@openstatus/header-analysis':
specifier: workspace:*
version: link:../../packages/header-analysis
+ '@openstatus/icons':
+ specifier: workspace:*
+ version: link:../../packages/icons
'@openstatus/notification-discord':
specifier: workspace:*
version: link:../../packages/notifications/discord
@@ -1345,6 +1348,28 @@ importers:
specifier: 5.7.2
version: 5.7.2
+ packages/icons:
+ dependencies:
+ react:
+ specifier: 19.1.1
+ version: 19.1.1
+ devDependencies:
+ '@biomejs/biome':
+ specifier: 1.9.4
+ version: 1.9.4
+ '@openstatus/tsconfig':
+ specifier: workspace:*
+ version: link:../tsconfig
+ '@types/react':
+ specifier: 19.1.10
+ version: 19.1.10
+ '@types/react-dom':
+ specifier: 19.1.7
+ version: 19.1.7(@types/[email protected])
+ typescript:
+ specifier: 5.7.2
+ version: 5.7.2
+
packages/notifications/discord:
dependencies:
'@openstatus/db':