Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('ConnectionUrl', () => {
password: undefined,
port: 6322,
tls: false,
username: undefined
username: 'default'
}
)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getPayload = (connectionUrl: string, returnOnError = false) => {
name: details?.hostname || '127.0.0.1:6379',
host: details?.host || '127.0.0.1',
port: details?.port || 6379,
username: details?.username || undefined,
username: details?.username || 'default',
password: details?.password || undefined,
tls: details?.protocol === 'rediss',
db: details?.dbNumber,
Expand Down Expand Up @@ -91,7 +91,7 @@ const ConnectionUrl = (props: Props) => {

const formik = useFormik({
initialValues: {
connectionURL: ''
connectionURL: 'redis://[email protected]:6379'
},
validate,
enableReinitialize: true,
Expand Down Expand Up @@ -134,7 +134,7 @@ const ConnectionUrl = (props: Props) => {
value={formik.values.connectionURL}
onChange={formik.handleChange}
fullWidth
placeholder="redis://127.0.0.1:6379"
placeholder="redis://default@127.0.0.1:6379"
resize="none"
style={{ height: 88 }}
data-testid="connection-url"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const ConnectivityOptions = (props: Props) => {
<EuiTitle size="xs" className={styles.sectionTitle}>
<span>
<CloudIcon className={styles.cloudIcon} />Get started with Redis Cloud account
<div className={styles.recommendedBox}><StarIcon />Recommended</div>
</span>
</EuiTitle>
<EuiSpacer />
Expand All @@ -40,7 +39,7 @@ const ConnectivityOptions = (props: Props) => {
onClick={() => onClickOption(AddDbType.cloud)}
data-testid="discover-cloud-btn"
>
Discover Cloud dbs
Add Cloud databases
</EuiButton>
</EuiFlexItem>
<EuiFlexItem grow={1}>
Expand All @@ -62,6 +61,7 @@ const ConnectivityOptions = (props: Props) => {
}}
data-testid="create-free-db-btn"
>
<StarIcon className={styles.star} />
Create free database
</EuiButton>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,6 @@
}
}

.recommendedBox {
display: flex;
align-items: center;

border: 1px solid var(--euiColorSecondary);
background-color: var(--tableRowSelectedColor);

margin-left: 8px;

font-size: 10px;
padding: 5px 8px;
line-height: 1;

> svg {
width: 10px;
height: 10px;
margin-right: 4px;
}
}

.typeBtn {
width: 100%;
height: 76px !important;
Expand All @@ -44,3 +24,7 @@
background-color: transparent !important;
}
}

.star {
margin-right: 4px;
}
Loading