Skip to content

Commit bde88e0

Browse files
authored
Merge pull request #4201 from RedisInsight/fe/feature/RI-6443_Change_color
#RI-6443 - Change button colors and add a default value
2 parents 2b8ba9b + 442164d commit bde88e0

File tree

4 files changed

+10
-26
lines changed

4 files changed

+10
-26
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('ConnectionUrl', () => {
8383
password: undefined,
8484
port: 6322,
8585
tls: false,
86-
username: undefined
86+
username: 'default'
8787
}
8888
)
8989
})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const getPayload = (connectionUrl: string, returnOnError = false) => {
4242
name: details?.hostname || '127.0.0.1:6379',
4343
host: details?.host || '127.0.0.1',
4444
port: details?.port || 6379,
45-
username: details?.username || undefined,
45+
username: details?.username || 'default',
4646
password: details?.password || undefined,
4747
tls: details?.protocol === 'rediss',
4848
db: details?.dbNumber,
@@ -91,7 +91,7 @@ const ConnectionUrl = (props: Props) => {
9191

9292
const formik = useFormik({
9393
initialValues: {
94-
connectionURL: ''
94+
connectionURL: 'redis://[email protected]:6379'
9595
},
9696
validate,
9797
enableReinitialize: true,
@@ -134,7 +134,7 @@ const ConnectionUrl = (props: Props) => {
134134
value={formik.values.connectionURL}
135135
onChange={formik.handleChange}
136136
fullWidth
137-
placeholder="redis://127.0.0.1:6379"
137+
placeholder="redis://default@127.0.0.1:6379"
138138
resize="none"
139139
style={{ height: 88 }}
140140
data-testid="connection-url"

redisinsight/ui/src/pages/home/components/connection-url/components/connectivity-options/ConnectivityOptions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const ConnectivityOptions = (props: Props) => {
2828
<EuiTitle size="xs" className={styles.sectionTitle}>
2929
<span>
3030
<CloudIcon className={styles.cloudIcon} />Get started with Redis Cloud account
31-
<div className={styles.recommendedBox}><StarIcon />Recommended</div>
3231
</span>
3332
</EuiTitle>
3433
<EuiSpacer />
@@ -40,7 +39,7 @@ const ConnectivityOptions = (props: Props) => {
4039
onClick={() => onClickOption(AddDbType.cloud)}
4140
data-testid="discover-cloud-btn"
4241
>
43-
Discover Cloud dbs
42+
Add Cloud databases
4443
</EuiButton>
4544
</EuiFlexItem>
4645
<EuiFlexItem grow={1}>
@@ -62,6 +61,7 @@ const ConnectivityOptions = (props: Props) => {
6261
}}
6362
data-testid="create-free-db-btn"
6463
>
64+
<StarIcon className={styles.star} />
6565
Create free database
6666
</EuiButton>
6767
)}

redisinsight/ui/src/pages/home/components/connection-url/components/connectivity-options/styles.module.scss

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,6 @@
88
}
99
}
1010

11-
.recommendedBox {
12-
display: flex;
13-
align-items: center;
14-
15-
border: 1px solid var(--euiColorSecondary);
16-
background-color: var(--tableRowSelectedColor);
17-
18-
margin-left: 8px;
19-
20-
font-size: 10px;
21-
padding: 5px 8px;
22-
line-height: 1;
23-
24-
> svg {
25-
width: 10px;
26-
height: 10px;
27-
margin-right: 4px;
28-
}
29-
}
30-
3111
.typeBtn {
3212
width: 100%;
3313
height: 76px !important;
@@ -44,3 +24,7 @@
4424
background-color: transparent !important;
4525
}
4626
}
27+
28+
.star {
29+
margin-right: 4px;
30+
}

0 commit comments

Comments
 (0)