File tree 4 files changed +11
-0
lines changed
4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { log } from "@gitpod/gitpod-protocol/lib/util/logging";
9
9
import Cookies from "js-cookie" ;
10
10
import { v4 } from "uuid" ;
11
11
import { Experiment } from "./experiments" ;
12
+ import { StartWorkspaceError } from "./start/StartPage" ;
12
13
13
14
export type Event =
14
15
| "invite_url_requested"
@@ -40,6 +41,8 @@ export interface TrackFeedback {
40
41
feedback : string ;
41
42
href : string ;
42
43
path : string ;
44
+ error_object ?: StartWorkspaceError ;
45
+ error_message ?: string ;
43
46
}
44
47
interface TrackDashboardClick {
45
48
dnt ?: boolean ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function ErrorMessage(props: { imgSrc: string; imgAlt?: string; message: string
22
22
initialSize = { 24 }
23
23
isError = { true }
24
24
isModal = { false }
25
+ error_message = { props . message }
25
26
/>
26
27
) }
27
28
</ >
Original file line number Diff line number Diff line change @@ -10,13 +10,16 @@ import happy from "../images/feedback/happy-emoji.svg";
10
10
import meh from "../images/feedback/meh-emoji.svg" ;
11
11
import crying from "../images/feedback/crying-emoji.svg" ;
12
12
import { trackEvent } from "../Analytics" ;
13
+ import { StartWorkspaceError } from "../start/StartPage" ;
13
14
14
15
function FeedbackComponent ( props : {
15
16
onClose ?: ( ) => void ;
16
17
isModal : boolean ;
17
18
isError : boolean ;
18
19
message ?: string ;
19
20
initialSize ?: number ;
21
+ error_object ?: StartWorkspaceError ;
22
+ error_message ?: string ;
20
23
} ) {
21
24
const [ text , setText ] = useState < string > ( "" ) ;
22
25
const [ selectedEmoji , setSelectedEmoji ] = useState < number | undefined > ( ) ;
@@ -35,6 +38,8 @@ function FeedbackComponent(props: {
35
38
feedback : text ,
36
39
href : window . location . href ,
37
40
path : window . location . pathname ,
41
+ error_object : props . error_object || undefined ,
42
+ error_message : props . error_message ,
38
43
} ;
39
44
trackEvent ( "feedback_submitted" , feedbackObj ) ;
40
45
}
Original file line number Diff line number Diff line change @@ -515,6 +515,8 @@ function RepositoryNotFoundView(p: { error: StartWorkspaceError }) {
515
515
message = { "Was this error message helpful?" }
516
516
isError = { true }
517
517
initialSize = { 24 }
518
+ error_object = { p . error }
519
+ error_message = { p . error . message }
518
520
/>
519
521
) }
520
522
</ StartPage >
You can’t perform that action at this time.
0 commit comments