From 75d292b06c03dc61e48af84fe48db95eb0a48094 Mon Sep 17 00:00:00 2001
From: nicktrn <55853254+nicktrn@users.noreply.github.com>
Date: Thu, 24 Oct 2024 16:42:34 +0100
Subject: [PATCH] magic links on span event errors
---
.../app/components/runs/v3/SpanEvents.tsx | 28 +++++++++++++++----
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/apps/webapp/app/components/runs/v3/SpanEvents.tsx b/apps/webapp/app/components/runs/v3/SpanEvents.tsx
index c6135f3f9..868ffde50 100644
--- a/apps/webapp/app/components/runs/v3/SpanEvents.tsx
+++ b/apps/webapp/app/components/runs/v3/SpanEvents.tsx
@@ -1,3 +1,4 @@
+import { EnvelopeIcon } from "@heroicons/react/20/solid";
import {
exceptionEventEnhancer,
isExceptionSpanEvent,
@@ -5,6 +6,8 @@ import {
type SpanEvent as OtelSpanEvent,
} from "@trigger.dev/core/v3";
import { CodeBlock } from "~/components/code/CodeBlock";
+import { Feedback } from "~/components/Feedback";
+import { Button } from "~/components/primitives/Buttons";
import { Callout } from "~/components/primitives/Callout";
import { DateTimeAccurate } from "~/components/primitives/DateTime";
import { Header2, Header3 } from "~/components/primitives/Headers";
@@ -75,11 +78,26 @@ export function SpanEventError({
titleClassName="text-rose-500"
/>
{enhancedException.message && {enhancedException.message}}
- {enhancedException.link && (
-
- {enhancedException.link.name}
-
- )}
+ {enhancedException.link &&
+ (enhancedException.link.magic === "CONTACT_FORM" ? (
+
+ {enhancedException.link.name}
+
+ }
+ />
+ ) : (
+
+ {enhancedException.link.name}
+
+ ))}
{enhancedException.stacktrace && (