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" ;
2
8
import { Link } from "@remix-run/react" ;
3
9
import { LoaderFunctionArgs } from "@remix-run/server-runtime" ;
4
10
import {
@@ -13,6 +19,7 @@ import { typedjson, useTypedFetcher } from "remix-typedjson";
13
19
import { ExitIcon } from "~/assets/icons/ExitIcon" ;
14
20
import { CodeBlock } from "~/components/code/CodeBlock" ;
15
21
import { EnvironmentLabel } from "~/components/environments/EnvironmentLabel" ;
22
+ import { Feedback } from "~/components/Feedback" ;
16
23
import { Button , LinkButton } from "~/components/primitives/Buttons" ;
17
24
import { Callout } from "~/components/primitives/Callout" ;
18
25
import { DateTime , DateTimeAccurate } from "~/components/primitives/DateTime" ;
@@ -963,11 +970,26 @@ function RunError({ error }: { error: TaskRunError }) {
963
970
< div className = "flex flex-col gap-2 rounded-sm border border-rose-500/50 px-3 pb-3 pt-2" >
964
971
< Header3 className = "text-rose-500" > { name } </ Header3 >
965
972
{ 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
+ ) ) }
971
993
{ enhancedError . stackTrace && (
972
994
< CodeBlock
973
995
showCopyButton = { false }
0 commit comments