File tree Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Expand file tree Collapse file tree 4 files changed +7
-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,7 @@ export interface TrackFeedback {
40
41
feedback : string ;
41
42
href : string ;
42
43
path : string ;
44
+ error_rendered ?: string | StartWorkspaceError | undefined ;
43
45
}
44
46
interface TrackDashboardClick {
45
47
dnt ?: boolean ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ function ErrorMessage(props: { imgSrc: string; imgAlt?: string; message: string
24
24
initialSize = { 24 }
25
25
isError = { true }
26
26
isModal = { false }
27
+ error_rendered = { props . message }
27
28
/>
28
29
) }
29
30
</ >
Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ 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_rendered ?: string | StartWorkspaceError ;
20
22
} ) {
21
23
const [ text , setText ] = useState < string > ( "" ) ;
22
24
const [ selectedEmoji , setSelectedEmoji ] = useState < number | undefined > ( ) ;
@@ -35,6 +37,7 @@ function FeedbackComponent(props: {
35
37
feedback : text ,
36
38
href : window . location . href ,
37
39
path : window . location . pathname ,
40
+ error_rendered : props . isError ? props . error_rendered : undefined ,
38
41
} ;
39
42
trackEvent ( "feedback_submitted" , feedbackObj ) ;
40
43
}
Original file line number Diff line number Diff line change @@ -440,6 +440,7 @@ function RepositoryNotFoundView(p: { error: StartWorkspaceError }) {
440
440
message = { "Was this error message helpful?" }
441
441
isError = { true }
442
442
initialSize = { 24 }
443
+ error_rendered = { p . error }
443
444
/>
444
445
) }
445
446
</ StartPage >
You can’t perform that action at this time.
0 commit comments