1- import { CheckIcon , ClockIcon , CloudArrowDownIcon , QueueListIcon } from "@heroicons/react/20/solid" ;
1+ import {
2+ CheckIcon ,
3+ ClockIcon ,
4+ CloudArrowDownIcon ,
5+ EnvelopeIcon ,
6+ QueueListIcon ,
7+ } from "@heroicons/react/20/solid" ;
28import { Link } from "@remix-run/react" ;
39import { LoaderFunctionArgs } from "@remix-run/server-runtime" ;
410import {
@@ -13,6 +19,7 @@ import { typedjson, useTypedFetcher } from "remix-typedjson";
1319import { ExitIcon } from "~/assets/icons/ExitIcon" ;
1420import { CodeBlock } from "~/components/code/CodeBlock" ;
1521import { EnvironmentLabel } from "~/components/environments/EnvironmentLabel" ;
22+ import { Feedback } from "~/components/Feedback" ;
1623import { Button , LinkButton } from "~/components/primitives/Buttons" ;
1724import { Callout } from "~/components/primitives/Callout" ;
1825import { DateTime , DateTimeAccurate } from "~/components/primitives/DateTime" ;
@@ -963,11 +970,26 @@ function RunError({ error }: { error: TaskRunError }) {
963970 < div className = "flex flex-col gap-2 rounded-sm border border-rose-500/50 px-3 pb-3 pt-2" >
964971 < Header3 className = "text-rose-500" > { name } </ Header3 >
965972 { enhancedError . message && < Callout variant = "error" > { enhancedError . message } </ Callout > }
966- { enhancedError . link && (
967- < Callout variant = "docs" to = { enhancedError . link . href } >
968- { enhancedError . link . name }
969- </ Callout >
970- ) }
973+ { enhancedError . link &&
974+ ( enhancedError . link . magic === "CONTACT_FORM" ? (
975+ < Feedback
976+ button = {
977+ < Button
978+ variant = "tertiary/medium"
979+ LeadingIcon = { EnvelopeIcon }
980+ leadingIconClassName = "text-blue-400"
981+ fullWidth
982+ textAlignLeft
983+ >
984+ { enhancedError . link . name }
985+ </ Button >
986+ }
987+ />
988+ ) : (
989+ < Callout variant = "docs" to = { enhancedError . link . href } >
990+ { enhancedError . link . name }
991+ </ Callout >
992+ ) ) }
971993 { enhancedError . stackTrace && (
972994 < CodeBlock
973995 showCopyButton = { false }
0 commit comments