Skip to content

Open-source status page, incident response and uptime monitoring

fix: incident icons (#2878)

Maximilian Kaskea9fbe338aee5
diff --git a/apps/dashboard/src/components/incidents/incident-communication.tsx b/apps/dashboard/src/components/incidents/incident-communication.tsx
index 0858770ae..fddd531bd 100644
--- a/apps/dashboard/src/components/incidents/incident-communication.tsx
+++ b/apps/dashboard/src/components/incidents/incident-communication.tsx
@@ -1,7 +1,7 @@
"use client";
import type { RouterOutputs } from "@openstatus/api";
-import { Add, ArrowUpRight, Linked, Send, Unlinked } from "@openstatus/icons";
+import { Add, Linked, Report as ReportIcon, Unlinked } from "@openstatus/icons";
import {
AlertDialog,
AlertDialogAction,
@@ -141,7 +141,7 @@ function LinkedReport({
className="w-[var(--radix-dropdown-menu-trigger-width)]"
>
<DropdownMenuItem onSelect={() => setComposing(true)}>
- <Send />
+ <Add />
Post public update
</DropdownMenuItem>
{report.pageId ? (
@@ -149,7 +149,7 @@ function LinkedReport({
<NextLink
href={`/status-pages/${report.pageId}/status-reports/${report.id}`}
>
- <ArrowUpRight />
+ <ReportIcon />
Open report
</NextLink>
</DropdownMenuItem>
diff --git a/packages/icons/src/nucleo/external-link.tsx b/packages/icons/src/nucleo/external-link.tsx
index a3d2aeb10..637fb43c0 100644
--- a/packages/icons/src/nucleo/external-link.tsx
+++ b/packages/icons/src/nucleo/external-link.tsx
@@ -2,28 +2,46 @@ import { forwardRef } from "react";
import type { IconProps } from "../types";
-// from nucleo-ui-fill-12 (ShareUpRight); filled glyph, so strokeWidth has no effect
+// from nucleo-ui-outline-18 (ShareUpRight); 18px grid, so the 1.5 stroke renders as 2px at size 24
export const ExternalLink = forwardRef<SVGSVGElement, IconProps>(
- ({ size = 24, ...props }, ref) => (
+ ({ size = 24, strokeWidth = 1.5, ...props }, ref) => (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
- viewBox="0 0 12 12"
+ viewBox="0 0 18 18"
style={{ flexShrink: 0 }}
{...props}
>
- <path
- d="m8.75,11.5H3.25c-1.517,0-2.75-1.233-2.75-2.75V3.25C.5,1.733,1.733.5,3.25.5h1.25c.414,0,.75.336.75.75s-.336.75-.75.75h-1.25c-.689,0-1.25.561-1.25,1.25v5.5c0,.689.561,1.25,1.25,1.25h5.5c.689,0,1.25-.561,1.25-1.25v-1.25c0-.414.336-.75.75-.75s.75.336.75.75v1.25c0,1.517-1.233,2.75-2.75,2.75Z"
- strokeWidth="0"
- fill="currentColor"
- ></path>
- <path
- d="m10.75.5h-3.75c-.414,0-.75.336-.75.75s.336.75.75.75h1.939l-2.202,2.202c-.293.293-.293.768,0,1.061.146.146.338.22.53.22s.384-.073.53-.22l2.202-2.202v1.939c0,.414.336.75.75.75s.75-.336.75-.75V1.25c0-.414-.336-.75-.75-.75Z"
- fill="currentColor"
- strokeWidth="0"
+ <polyline
+ points="10.5 2.75 15.25 2.75 15.25 7.5"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={strokeWidth}
data-color="color-2"
+ ></polyline>
+ <line
+ x1="15.25"
+ y1="2.75"
+ x2="9"
+ y2="9"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={strokeWidth}
+ data-color="color-2"
+ ></line>
+ <path
+ d="M15.25,10.5v2.75c0,1.105-.895,2-2,2H4.75c-1.105,0-2-.895-2-2V4.75c0-1.105,.895-2,2-2h2.75"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={strokeWidth}
></path>
</svg>
),