@@ -16,6 +16,7 @@ import {
16
16
} from '@src/lang/std/engineConnection'
17
17
import { SafeRenderer } from '@src/lib/markdown'
18
18
import { engineCommandManager } from '@src/lib/singletons'
19
+ import { openExternalBrowserIfDesktop } from '@src/lib/openWindow'
19
20
20
21
interface LoadingProps extends React . PropsWithChildren {
21
22
isDummy ?: boolean
@@ -33,6 +34,10 @@ const markedOptions: MarkedOptions = {
33
34
escape,
34
35
}
35
36
37
+ const statusUrl = 'https://status.zoo.dev'
38
+ const diagnosingNetworkIssuesUrl =
39
+ 'https://community.zoo.dev/t/diagnosing-network-connection-issues/156'
40
+
36
41
// This exists here and not in engineConnection because we want some styling
37
42
// available to us.
38
43
export const CONNECTION_ERROR_CALL_TO_ACTION_TEXT : Record <
@@ -61,7 +66,10 @@ export const CONNECTION_ERROR_CALL_TO_ACTION_TEXT: Record<
61
66
[ ConnectionError . Outage ] : (
62
67
< >
63
68
We seem to be experiencing an outage. Please visit{ ' ' }
64
- < a href = "https://status.zoo.dev" > status.zoo.dev</ a > for updates.
69
+ < a href = { statusUrl } onClick = { openExternalBrowserIfDesktop ( statusUrl ) } >
70
+ status.zoo.dev
71
+ </ a > { ' ' }
72
+ for updates.
65
73
</ >
66
74
) ,
67
75
[ ConnectionError . PeerConnectionRemoteDisconnected ] :
@@ -236,7 +244,12 @@ const Loading = ({
236
244
< div className = "text-sm" >
237
245
If the issue persists, please visit the community support thread
238
246
on{ ' ' }
239
- < a href = "https://community.zoo.dev/t/diagnosing-network-connection-issues/156" >
247
+ < a
248
+ href = { diagnosingNetworkIssuesUrl }
249
+ onClick = { openExternalBrowserIfDesktop (
250
+ diagnosingNetworkIssuesUrl
251
+ ) }
252
+ >
240
253
diagnosing network connection issues
241
254
</ a >
242
255
.
0 commit comments