Skip to content

Commit 31b7ea8

Browse files
committed
#RI-6377 - fix host
#RI-6378 - fix links colors
1 parent a800f1a commit 31b7ea8

File tree

3 files changed

+23
-28
lines changed

3 files changed

+23
-28
lines changed

redisinsight/ui/src/pages/home/components/connection-url/ConnectionUrl.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const getPayload = (connectionUrl: string, returnOnError = false) => {
3535
if (!details && returnOnError) return null
3636

3737
return {
38-
name: details?.hostname || 'localhost:6379',
39-
host: details?.host || 'localhost',
38+
name: details?.hostname || '127.0.0.1:6379',
39+
host: details?.host || '127.0.0.1',
4040
port: details?.port || 6379,
4141
username: details?.username || undefined,
4242
password: details?.password || undefined,
@@ -129,7 +129,7 @@ const ConnectionUrl = (props: Props) => {
129129
value={formik.values.connectionURL}
130130
onChange={formik.handleChange}
131131
fullWidth
132-
placeholder="redis://localhost:6379"
132+
placeholder="redis://127.0.0.1:6379"
133133
resize="none"
134134
style={{ height: 88 }}
135135
data-testid="connection-url"

redisinsight/ui/src/pages/home/components/form/Messages.tsx

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import React from 'react'
2-
import { EuiLink, EuiText } from '@elastic/eui'
2+
import { EuiText } from '@elastic/eui'
3+
import cx from 'classnames'
34
import { APPLICATION_NAME } from 'uiSrc/constants'
45

56
import { getUtmExternalLink } from 'uiSrc/utils/links'
7+
import { ExternalLink } from 'uiSrc/components'
68
import styles from '../styles.module.scss'
79

810
const MessageCloudApiKeys = () => (
911
<EuiText color="subdued" size="s" className={styles.message} data-testid="summary">
1012
{'Enter Redis Cloud API keys to discover and add databases. API keys can be enabled by following the steps mentioned in the '}
11-
<EuiLink
12-
color="text"
13-
className={styles.link}
14-
external={false}
15-
target="_blank"
13+
14+
<ExternalLink
15+
className={cx(styles.link, styles.external)}
1616
href="https://docs.redis.com/latest/rc/api/get-started/enable-the-api/"
1717
>
1818
documentation.
19-
</EuiLink>
19+
</ExternalLink>
2020
</EuiText>
2121
)
2222

@@ -26,15 +26,12 @@ const MessageStandalone = () => (
2626
{' '}
2727
{APPLICATION_NAME}
2828
. &nbsp;
29-
<EuiLink
30-
color="text"
29+
<ExternalLink
30+
className={cx(styles.link, styles.external)}
3131
href={getUtmExternalLink('https://redis.io/docs/latest/develop/connect/insight#connection-management', { campaign: 'redisinsight' })}
32-
className={styles.link}
33-
external={false}
34-
target="_blank"
3532
>
3633
Learn more here.
37-
</EuiLink>
34+
</ExternalLink>
3835
</EuiText>
3936
)
4037

@@ -45,15 +42,12 @@ const MessageSentinel = () => (
4542
{' '}
4643
{APPLICATION_NAME}
4744
. &nbsp;
48-
<EuiLink
49-
color="text"
45+
<ExternalLink
46+
className={cx(styles.link, styles.external)}
5047
href={getUtmExternalLink('https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel/', { campaign: 'redisinsight' })}
51-
className={styles.link}
52-
external={false}
53-
target="_blank"
5448
>
5549
Learn more here.
56-
</EuiLink>
50+
</ExternalLink>
5751
</EuiText>
5852
)
5953

@@ -64,15 +58,12 @@ const MessageEnterpriceSoftware = () => (
6458
{' '}
6559
{APPLICATION_NAME}
6660
. &nbsp;
67-
<EuiLink
68-
color="text"
61+
<ExternalLink
62+
className={cx(styles.link, styles.external)}
6963
href={getUtmExternalLink('https://redis.io/redis-enterprise-software/overview/', { campaign: 'redisinsight' })}
70-
className={styles.link}
71-
external={false}
72-
target="_blank"
7364
>
7465
Learn more here.
75-
</EuiLink>
66+
</ExternalLink>
7667
</EuiText>
7768
)
7869

redisinsight/ui/src/pages/home/components/styles.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@
143143
&:hover {
144144
text-decoration: none !important;
145145
}
146+
147+
&.external:global(.euiLink) {
148+
color: var(--externalLinkColor) !important;
149+
}
146150
}
147151

148152
.fullWidth {

0 commit comments

Comments
 (0)