Skip to content

Commit 35df062

Browse files
committed
#RI-5624 - change links
1 parent e1e0077 commit 35df062

File tree

11 files changed

+50
-27
lines changed

11 files changed

+50
-27
lines changed

redisinsight/ui/src/components/consents-settings/ConsentsSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const ConsentsSettings = ({ onSubmitted }: Props) => {
279279
<EuiLink
280280
external={false}
281281
target="_blank"
282-
href="https://github.com/RedisInsight/RedisInsight/blob/main/LICENSE"
282+
href="https://github.com/Redis-Insight/Redis-Insight/blob/main/LICENSE"
283283
>
284284
Server Side Public License
285285
</EuiLink>

redisinsight/ui/src/components/database-side-panels/panels/enablement-area/EnablementArea/components/EmptyPrompt/EmptyPrompt.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react'
22
import { EuiEmptyPrompt, EuiIcon, EuiLink } from '@elastic/eui'
33

4+
import { EXTERNAL_LINKS } from 'uiSrc/constants/links'
45
import styles from './styles.module.scss'
56

67
const EmptyPrompt = () => (
@@ -18,7 +19,7 @@ const EmptyPrompt = () => (
1819
{' '}
1920
<EuiLink
2021
color="ghost"
21-
href="https://github.com/RedisInsight/RedisInsight/issues"
22+
href={EXTERNAL_LINKS.githubIssues}
2223
external={false}
2324
target="_blank"
2425
data-testid="contact-us"

redisinsight/ui/src/components/onboarding-features/OnboardingFeatures.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
toggleInsightsPanel
2828
} from 'uiSrc/slices/panels/insights'
2929
import { InsightsPanelTabs } from 'uiSrc/slices/interfaces/insights'
30+
import { EXTERNAL_LINKS } from 'uiSrc/constants/links'
3031
import styles from './styles.module.scss'
3132

3233
const sendTelemetry = (databaseId: string, step: string, action: string) => sendEventTelemetry({
@@ -218,9 +219,9 @@ const ONBOARDING_FEATURES = {
218219
<EuiSpacer size="xs" />
219220
Take advantage of syntax highlighting, intelligent auto-complete, and working with commands in editor mode.
220221
<EuiSpacer size="xs" />
221-
Workbench visualizes complex <a href="https://redis.io/docs/about/about-stack/" target="_blank" rel="noreferrer">Redis Stack</a> data
222+
Workbench visualizes complex <a href={EXTERNAL_LINKS.redisStack} target="_blank" rel="noreferrer">Redis Stack</a> data
222223
models such as documents, graphs, and time series.
223-
Or you <a href="https://github.com/RedisInsight/Packages" target="_blank" rel="noreferrer">can build your own visualization</a>.
224+
Or you <a href="https://github.com/Redis-Insight/Packages" target="_blank" rel="noreferrer">can build your own visualization</a>.
224225

225226
{isString(firstIndex) && (
226227
<>
@@ -308,7 +309,7 @@ const ONBOARDING_FEATURES = {
308309
<>
309310
Share your Redis expertise with your team and the wider community by building custom Redis Insight tutorials.
310311
<EuiSpacer size="xs" />
311-
Use our <a href="https://github.com/RedisInsight/Tutorials" target="_blank" rel="noreferrer">instructions</a> to
312+
Use our <a href="https://github.com/Redis-Insight/Tutorials" target="_blank" rel="noreferrer">instructions</a> to
312313
describe your implementations of Redis for other users to follow and
313314
interact with in the context of a connected Redis database
314315
</>

redisinsight/ui/src/components/recommendation-voting/RecommendationVoting.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('RecommendationVoting', () => {
5353
fireEvent.click(screen.getByTestId('not useful-vote-btn'))
5454
await waitForEuiPopoverVisible()
5555

56-
expect(document.querySelector('[data-test-subj="github-repo-link"]')).toHaveAttribute('href', 'https://github.com/RedisInsight/RedisInsight/issues/new/choose')
56+
expect(document.querySelector('[data-test-subj="github-repo-link"]')).toHaveAttribute('href', 'https://github.com/Redis-Insight/Redis-Insight/issues/new/choose')
5757
})
5858

5959
it('should render proper popover and btn should be disabled"', async () => {

redisinsight/ui/src/constants/links.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { CloudSsoUtmCampaign, OAuthSocialSource } from 'uiSrc/slices/interfaces'
22

33
export const EXTERNAL_LINKS = {
4-
githubRepo: 'https://github.com/RedisInsight/RedisInsight',
5-
githubIssues: 'https://github.com/RedisInsight/RedisInsight/issues',
6-
releaseNotes: 'https://github.com/RedisInsight/RedisInsight/releases',
4+
githubRepo: 'https://github.com/Redis-Insight/Redis-Insight',
5+
githubIssues: 'https://github.com/Redis-Insight/Redis-Insight/issues',
6+
releaseNotes: 'https://github.com/Redis-Insight/Redis-Insight/releases',
77
userSurvey: 'https://www.surveymonkey.com/r/redisinsight',
8-
recommendationFeedback: 'https://github.com/RedisInsight/RedisInsight/issues/new/choose',
9-
guidesRepo: 'https://github.com/RedisInsight/Tutorials',
10-
redisStack: 'https://redis.io/docs/about/about-stack/',
8+
recommendationFeedback: 'https://github.com/Redis-Insight/Redis-Insight/issues/new/choose',
9+
guidesRepo: 'https://github.com/Redis-Insight/Tutorials',
10+
redisStack: 'hhttps://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/',
1111
cloudConsole: 'https://app.redislabs.com/#/databases',
1212
tryFree: 'https://redis.com/try-free',
1313
docker: 'https://redis.io/docs/getting-started/install-stack/docker',

redisinsight/ui/src/pages/browser/components/create-redisearch-index/CreateRedisearchIndex.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { sendEventTelemetry, TelemetryEvent } from 'uiSrc/telemetry'
2929
import { keysSelector } from 'uiSrc/slices/browser/keys'
3030
import { connectedInstanceSelector } from 'uiSrc/slices/instances/instances'
3131
import { getFieldTypeOptions } from 'uiSrc/utils/redisearch'
32+
import { getUtmExternalLink } from 'uiSrc/utils/links'
3233
import { CreateRedisearchIndexDto } from 'apiSrc/modules/browser/redisearch/dto'
3334

3435
import { KEY_TYPE_OPTIONS, RedisearchIndexKeyType } from './constants'
@@ -154,7 +155,12 @@ const CreateRedisearchIndex = ({ onClosePanel, onCreateIndex }: Props) => {
154155
<>
155156
<EuiLink
156157
external={false}
157-
href="https://redis.io/commands/ft.create/#SCHEMA"
158+
href={getUtmExternalLink(
159+
'https://redis.io/commands/ft.create/#SCHEMA',
160+
{
161+
campaign: 'browser_search'
162+
}
163+
)}
158164
target="_blank"
159165
>
160166
Declares

redisinsight/ui/src/pages/browser/components/create-redisearch-index/CreateRedisearchIndexWrapper.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
EuiToolTip
1010
} from '@elastic/eui'
1111
import cx from 'classnames'
12+
import { getUtmExternalLink } from 'uiSrc/utils/links'
1213
import CreateRedisearchIndex from './CreateRedisearchIndex'
1314

1415
import styles from './styles.module.scss'
@@ -55,7 +56,12 @@ const CreateRedisearchIndexWrapper = ({ arePanelsCollapsed, onClosePanel, onCrea
5556
{' '}
5657
<EuiLink
5758
color="text"
58-
href="https://redis.io/commands/ft.create/"
59+
href={getUtmExternalLink(
60+
'https://redis.io/commands/ft.create/',
61+
{
62+
campaign: 'browser_search'
63+
}
64+
)}
5965
className={styles.link}
6066
external={false}
6167
target="_blank"

redisinsight/ui/src/pages/browser/modules/key-details/components/unsupported-type-details/UnsupportedTypeDetails.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react'
22
import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTitle } from '@elastic/eui'
33

4+
import { EXTERNAL_LINKS } from 'uiSrc/constants/links'
45
import styles from './styles.module.scss'
56

67
const UnsupportedTypeDetails = () => (
@@ -15,7 +16,7 @@ const UnsupportedTypeDetails = () => (
1516
If you have any ideas or suggestions, please
1617
{' '}
1718
<a
18-
href="https://github.com/RedisInsight/RedisInsight/issues"
19+
href={EXTERNAL_LINKS.githubIssues}
1920
className={styles.link}
2021
target="_blank"
2122
rel="noreferrer"

redisinsight/ui/src/utils/commands.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
ICommandArg,
66
ICommandArgGenerated
77
} from 'uiSrc/constants'
8+
import { getUtmExternalLink } from 'uiSrc/utils/links'
89

910
enum ArgumentType {
1011
INTEGER = 'integer',
@@ -190,7 +191,12 @@ export const generateArgsNames = (
190191

191192
export const getDocUrlForCommand = (commandName: string): string => {
192193
const command = commandName.replace(/\s+/g, '-').toLowerCase()
193-
return `https://redis.io/commands/${command}`
194+
return getUtmExternalLink(
195+
`https://redis.io/docs/latest/commands/${command}`,
196+
{
197+
campaign: 'redisinsight_command_helper'
198+
}
199+
)
194200
}
195201

196202
export const getCommandRepeat = (command = ''): [string, number] => {

redisinsight/ui/src/utils/oauth/parseCloudOAuthError.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { EuiSpacer } from '@elastic/eui'
55
import { CustomErrorCodes } from 'uiSrc/constants'
66
import { DEFAULT_ERROR_MESSAGE } from 'uiSrc/utils'
77
import { CustomError } from 'uiSrc/slices/interfaces'
8+
import { EXTERNAL_LINKS } from 'uiSrc/constants/links'
89

910
export const parseCloudOAuthError = (err: CustomError | string = DEFAULT_ERROR_MESSAGE): AxiosError => {
1011
const error = {
@@ -40,7 +41,7 @@ export const parseCloudOAuthError = (err: CustomError | string = DEFAULT_ERROR_M
4041
<EuiSpacer size="xs" />
4142
Try again later.
4243
<EuiSpacer size="s" />
43-
If the issue persists, <a href="https://github.com/RedisInsight/RedisInsight/issues" target="_blank" rel="noreferrer">report the issue.</a>
44+
If the issue persists, <a href={EXTERNAL_LINKS.githubIssues} target="_blank" rel="noreferrer">report the issue.</a>
4445
</>
4546
)
4647
break
@@ -50,7 +51,7 @@ export const parseCloudOAuthError = (err: CustomError | string = DEFAULT_ERROR_M
5051
<>
5152
Unknown authorization request.
5253
<EuiSpacer size="s" />
53-
If the issue persists, <a href="https://github.com/RedisInsight/RedisInsight/issues" target="_blank" rel="noreferrer">report the issue.</a>
54+
If the issue persists, <a href={EXTERNAL_LINKS.githubIssues} target="_blank" rel="noreferrer">report the issue.</a>
5455
</>
5556
)
5657
break
@@ -60,7 +61,7 @@ export const parseCloudOAuthError = (err: CustomError | string = DEFAULT_ERROR_M
6061
<>
6162
An unexpected error occurred.
6263
<EuiSpacer size="s" />
63-
If the issue persists, <a href="https://github.com/RedisInsight/RedisInsight/issues" target="_blank" rel="noreferrer">report the issue.</a>
64+
If the issue persists, <a href={EXTERNAL_LINKS.githubIssues} target="_blank" rel="noreferrer">report the issue.</a>
6465
</>
6566
)
6667
break
@@ -72,7 +73,7 @@ export const parseCloudOAuthError = (err: CustomError | string = DEFAULT_ERROR_M
7273
<EuiSpacer size="xs" />
7374
Try again later.
7475
<EuiSpacer size="s" />
75-
If the issue persists, <a href="https://github.com/RedisInsight/RedisInsight/issues" target="_blank" rel="noreferrer">report the issue.</a>
76+
If the issue persists, <a href={EXTERNAL_LINKS.githubIssues} target="_blank" rel="noreferrer">report the issue.</a>
7677
</>
7778
)
7879
break
@@ -92,7 +93,7 @@ export const parseCloudOAuthError = (err: CustomError | string = DEFAULT_ERROR_M
9293
<>
9394
Try restarting Redis Insight.
9495
<EuiSpacer size="s" />
95-
If the issue persists, <a href="https://github.com/RedisInsight/RedisInsight/issues" target="_blank" rel="noreferrer">report the issue.</a>
96+
If the issue persists, <a href={EXTERNAL_LINKS.githubIssues} target="_blank" rel="noreferrer">report the issue.</a>
9697
</>
9798
)
9899
break
@@ -105,7 +106,7 @@ export const parseCloudOAuthError = (err: CustomError | string = DEFAULT_ERROR_M
105106
<EuiSpacer size="xs" />
106107
Try again later.
107108
<EuiSpacer size="s" />
108-
If the issue persists, <a href="https://github.com/RedisInsight/RedisInsight/issues" target="_blank" rel="noreferrer">report the issue.</a>
109+
If the issue persists, <a href={EXTERNAL_LINKS.githubIssues} target="_blank" rel="noreferrer">report the issue.</a>
109110
</>
110111
)
111112
break
@@ -119,7 +120,7 @@ export const parseCloudOAuthError = (err: CustomError | string = DEFAULT_ERROR_M
119120
<EuiSpacer size="xs" />
120121
Try again later.
121122
<EuiSpacer size="s" />
122-
If the issue persists, <a href="https://github.com/RedisInsight/RedisInsight/issues" target="_blank" rel="noreferrer">report the issue.</a>
123+
If the issue persists, <a href={EXTERNAL_LINKS.githubIssues} target="_blank" rel="noreferrer">report the issue.</a>
123124
</>
124125
)
125126
break

0 commit comments

Comments
 (0)