File tree Expand file tree Collapse file tree 7 files changed +43
-179
lines changed
components/notifications/components/infinite-messages Expand file tree Collapse file tree 7 files changed +43
-179
lines changed Original file line number Diff line number Diff line change 96
96
"@testing-library/user-event" : " ^14.4.3" ,
97
97
"@types/classnames" : " ^2.2.11" ,
98
98
"@types/d3" : " ^7.4.0" ,
99
- "@types/date-fns" : " ^2.6.0" ,
100
99
"@types/detect-port" : " ^1.3.0" ,
101
100
"@types/electron-store" : " ^3.2.0" ,
102
101
"@types/express" : " ^4.17.3" ,
130
129
"@vitejs/plugin-react" : " ^4.2.1" ,
131
130
"@vitejs/plugin-react-swc" : " ^3.6.0" ,
132
131
"assert" : " ^2.1.0" ,
133
- "concurrently" : " ^5.3.0 " ,
132
+ "concurrently" : " ^9.0.1 " ,
134
133
"construct-style-sheets-polyfill" : " ^3.1.0" ,
135
134
"copyfiles" : " ^2.4.1" ,
136
135
"core-js" : " ^3.6.5" ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default {
40
40
} ,
41
41
ai : {
42
42
convAiApiUrl : process . env . RI_AI_CONVAI_API_URL || 'https://redis.io/convai/api' ,
43
- querySocketUrl : process . env . RI_AI_QUERY_SOCKET_URL || 'https://app.redislabs.com ' ,
43
+ querySocketUrl : process . env . RI_AI_QUERY_SOCKET_URL || 'https://cloud.redis.io ' ,
44
44
querySocketPath : process . env . RI_AI_QUERY_SOCKET_PATH || '/api/v1/cloud-copilot-service/socket.io/' ,
45
45
} ,
46
46
} ;
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import { OAuthProviders } from 'uiSrc/components/oauth/oauth-select-plan/constan
20
20
import { CloudSuccessResult } from 'uiSrc/slices/interfaces'
21
21
22
22
import { Maybe } from 'uiSrc/utils'
23
+ import { getUtmExternalLink } from 'uiSrc/utils/links'
24
+ import { EXTERNAL_LINKS , UTM_CAMPAINGS , UTM_MEDIUMS } from 'uiSrc/constants/links'
23
25
import styles from './styles.module.scss'
24
26
25
27
export enum InfiniteMessagesIds {
@@ -32,8 +34,10 @@ export enum InfiniteMessagesIds {
32
34
pipelineDeploySuccess = 'pipelineDeploySuccess'
33
35
}
34
36
35
- // TODO: after merge insights - remove and change to function
36
- const MANAGE_DB_LINK = 'https://app.redislabs.com/#/databases/?utm_source=redisinsight&utm_medium=main&utm_campaign=main'
37
+ const MANAGE_DB_LINK = getUtmExternalLink (
38
+ EXTERNAL_LINKS . cloudConsole ,
39
+ { campaign : UTM_CAMPAINGS . Main , medium : UTM_MEDIUMS . Main }
40
+ )
37
41
38
42
export const INFINITE_MESSAGES = {
39
43
AUTHENTICATING : ( ) => ( {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const EXTERNAL_LINKS = {
9
9
recommendationFeedback : 'https://github.com/RedisInsight/RedisInsight/issues/new/choose' ,
10
10
guidesRepo : 'https://github.com/RedisInsight/Tutorials' ,
11
11
redisStack : 'https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/' ,
12
- cloudConsole : 'https://app.redislabs.com /#/databases' ,
12
+ cloudConsole : 'https://cloud.redis.io /#/databases/ ' ,
13
13
tryFree : 'https://redis.io/try-free' ,
14
14
docker : 'https://redis.io/docs/install/install-stack/docker' ,
15
15
rdiQuickStart : 'https://redis.io/docs/latest/integrate/redis-data-integration/ingest/quick-start-guide/' ,
@@ -23,10 +23,12 @@ export const UTM_CAMPAINGS: Record<any, string> = {
23
23
[ OAuthSocialSource . Workbench ] : 'redisinsight_workbench' ,
24
24
[ CloudSsoUtmCampaign . BrowserFilter ] : 'browser_filter' ,
25
25
[ OAuthSocialSource . EmptyDatabasesList ] : 'empty_db_list' ,
26
+ Main : 'main' ,
26
27
}
27
28
28
29
export const UTM_MEDIUMS = {
29
30
App : 'app' ,
31
+ Main : 'main' ,
30
32
Rdi : 'rdi' ,
31
33
Recommendation : 'recommendation' ,
32
34
}
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import { EuiSpacer } from '@elastic/eui'
5
5
import { CustomErrorCodes } from 'uiSrc/constants'
6
6
import { DEFAULT_ERROR_MESSAGE } from 'uiSrc/utils'
7
7
import { CustomError } from 'uiSrc/slices/interfaces'
8
- import { EXTERNAL_LINKS } from 'uiSrc/constants/links'
8
+ import { EXTERNAL_LINKS , UTM_CAMPAINGS , UTM_MEDIUMS } from 'uiSrc/constants/links'
9
+ import { getUtmExternalLink } from './links'
9
10
10
11
export const getRdiValidationMessage = ( message : string = '' , loc ?: Array < string | number > ) : string => {
11
12
// first item is always "body"
@@ -178,7 +179,18 @@ export const parseCustomError = (err: CustomError | string = DEFAULT_ERROR_MESSA
178
179
< >
179
180
You already have a free Redis Cloud database running.
180
181
< EuiSpacer size = "s" />
181
- Check out your < a href = "https://app.redislabs.com/#/databases/?utm_source=redisinsight& utm_medium = main & utm_campaign = main " target = "_blank" rel = "noreferrer" > Cloud console</ a > for connection details.
182
+ Check out your
183
+ < a
184
+ href = { getUtmExternalLink (
185
+ EXTERNAL_LINKS . cloudConsole ,
186
+ { campaign : UTM_CAMPAINGS . Main , medium : UTM_MEDIUMS . Main }
187
+ ) }
188
+ target = "_blank"
189
+ rel = "noreferrer"
190
+ >
191
+ { ' Cloud console ' }
192
+ </ a >
193
+ for connection details.
182
194
</ >
183
195
)
184
196
break
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ const parseCustomErrorTests = [
147
147
< >
148
148
You already have a free Redis Cloud database running.
149
149
< EuiSpacer size = "s" />
150
- Check out your < a href = "https://app.redislabs.com/#/databases/ ?utm_source=redisinsight& utm_medium = main & utm_campaign = main " target = "_blank" rel = "noreferrer" > Cloud console</ a > for connection details.
150
+ Check out your< a href = "https://cloud.redis.io/ ?utm_source=redisinsight& utm_medium = main & utm_campaign = main # / databases / " target = "_blank" rel = "noreferrer" > Cloud console </ a > for connection details.
151
151
</ >
152
152
)
153
153
} ) ] ,
You can’t perform that action at this time.
0 commit comments