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
37 changes: 0 additions & 37 deletions redisinsight/ui/src/assets/img/icons/rocket.svg

This file was deleted.

10 changes: 0 additions & 10 deletions redisinsight/ui/src/assets/img/oauth/rocket.svg

This file was deleted.

6 changes: 0 additions & 6 deletions redisinsight/ui/src/assets/img/rdi/rocket.svg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ export const BaseButton = ({
icon={icon}
iconSide={iconSide}
loading={loading}
size={btnSize}
/>
{children}
<ButtonIcon
buttonSide="right"
icon={icon}
iconSide={iconSide}
loading={loading}
size={btnSize}
/>
</Button>
)
Expand Down
21 changes: 6 additions & 15 deletions redisinsight/ui/src/components/base/icons/iconRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import RedisDbBlueSvg from 'uiSrc/assets/img/icons/redis_db_blue.svg?react'
import RedisLogoFullSvg from 'uiSrc/assets/img/logo.svg?react'
import RedisLogoSvg from 'uiSrc/assets/img/logo_small.svg?react'
import ResetSvg from 'uiSrc/assets/img/rdi/reset.svg?react'
import RocketSvg from 'uiSrc/assets/img/rdi/rocket.svg?react'
import ShrinkSvg from 'uiSrc/assets/img/icons/shrink.svg?react'
import SilentModeSvg from 'uiSrc/assets/img/icons/silent_mode.svg?react'
import SnoozeSvg from 'uiSrc/assets/img/icons/snooze.svg?react'
Expand Down Expand Up @@ -130,12 +129,9 @@ import PipelineStatisticsSvg from 'uiSrc/assets/img/sidebar/pipeline_statistics.
import PubSubSvg from 'uiSrc/assets/img/sidebar/pubsub.svg?react'
import SlowLogSvg from 'uiSrc/assets/img/sidebar/slowlog.svg?react'
import WorkbenchSvg from 'uiSrc/assets/img/sidebar/workbench.svg?react'
// Missing SVGs and not used/legacy:
// import BrowserActiveSvg from 'uiSrc/assets/img/sidebar/browser_active.svg?react'
// import PipelineStatisticsActiveSvg from 'uiSrc/assets/img/sidebar/pipeline_statistics_active.svg?react'
// import PubSubActiveSvg from 'uiSrc/assets/img/sidebar/pubsub_active.svg?react'
// import SlowLogActiveSvg from 'uiSrc/assets/img/sidebar/slowlog_active.svg?react'
// import WorkbenchActiveSvg from 'uiSrc/assets/img/sidebar/workbench_active.svg?react'

import ShieldSvg from 'uiSrc/assets/img/shield.svg?react'
import RedisSoftwareSvg from 'uiSrc/assets/img/redis-software.svg?react'

import { Icon, IconProps } from './Icon'

Expand Down Expand Up @@ -208,7 +204,6 @@ export const RedisDbBlueIcon = createIconComponent(RedisDbBlueSvg)
export const RedisLogo = createIconComponent(RedisLogoSvg)
export const RedisLogoFullIcon = createIconComponent(RedisLogoFullSvg)
export const RiResetIcon = createIconComponent(ResetSvg)
export const RiRocketIcon = createIconComponent(RocketSvg)
export const RiStarsIcon = createIconComponent(StarsSvg)
export const RiStopIcon = createIconComponent(StopIconSvg)
export const RiUserIcon = createIconComponent(UserSvg)
Expand Down Expand Up @@ -308,10 +303,6 @@ export const PipelineStatisticsIcon = createIconComponent(PipelineStatisticsSvg)
export const PubSubIcon = createIconComponent(PubSubSvg)
export const SlowLogIcon = createIconComponent(SlowLogSvg)
export const WorkbenchIcon = createIconComponent(WorkbenchSvg)
// export const BrowserActiveIcon = createIconComponent(BrowserActiveSvg)
// export const PipelineStatisticsActiveIcon = createIconComponent(
// PipelineStatisticsActiveSvg,
// )
// export const PubSubActiveIcon = createIconComponent(PubSubActiveSvg)
// export const SlowLogActiveIcon = createIconComponent(SlowLogActiveSvg)
// export const WorkbenchActiveIcon = createIconComponent(WorkbenchActiveSvg)

export const ShieldIcon = createIconComponent(ShieldSvg)
export const RedisSoftwareIcon = createIconComponent(RedisSoftwareSvg)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { debounce } from 'lodash'
import { useLocation, useParams } from 'react-router-dom'
import { useSelector } from 'react-redux'

import { ChevronLeftIcon } from 'uiSrc/components/base/icons'
import { ChevronLeftIcon, RocketIcon } from 'uiSrc/components/base/icons'
import { ExternalLink, HorizontalRule, LoadingContent } from 'uiSrc/components'
import { RiPopover } from 'uiSrc/components/base'
import { IEnablementAreaItem } from 'uiSrc/slices/interfaces'
Expand All @@ -16,7 +16,6 @@ import {
} from 'uiSrc/telemetry'
import { getTutorialCapability, Nullable } from 'uiSrc/utils'

import RocketIcon from 'uiSrc/assets/img/icons/rocket.svg?react'
import { appContextCapability } from 'uiSrc/slices/app/context'
import {
isShowCapabilityTutorialPopover,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import styled from 'styled-components'

export const CustomHorizontalRule = styled.div`
margin: 12px 0;
width: 100%;
text-align: center;
position: relative;

&:before,
&:after {
content: '';
display: block;
width: 47%;
height: 1px;
background: ${({ theme }: { theme: Theme }) =>
theme.semantic.color.background.neutral500};
position: absolute;
top: 50%;
}

&:after {
right: 0;
}
`
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useFormik } from 'formik'
import { useDispatch, useSelector } from 'react-redux'
import { useHistory } from 'react-router'
import { toNumber } from 'lodash'
import { Nullable, parseRedisUrl } from 'uiSrc/utils'

import { Nullable, parseRedisUrl } from 'uiSrc/utils'
import { AddDbType, DEFAULT_TIMEOUT } from 'uiSrc/pages/home/constants'
import { Instance } from 'uiSrc/slices/interfaces'
import {
Expand All @@ -25,8 +25,7 @@ import { RiTooltip } from 'uiSrc/components'
import ConnectivityOptions from './components/connectivity-options'
import ConnectionUrl from './components/connection-url'
import { Values } from './constants'

import styles from './styles.module.scss'
import { CustomHorizontalRule } from './AddDatabaseScreen.styles'

export interface Props {
onSelectOption: (type: AddDbType, db: Nullable<Record<string, any>>) => void
Expand Down Expand Up @@ -103,7 +102,7 @@ const AddDatabaseScreen = (props: Props) => {
})

return (
<div className="eui-yScroll">
<div>
<form onSubmit={formik.handleSubmit} data-testid="form">
<Row responsive>
<FlexItem grow>
Expand All @@ -113,8 +112,8 @@ const AddDatabaseScreen = (props: Props) => {
/>
</FlexItem>
</Row>

<Row responsive justify="between" style={{ padding: 4 }}>
<Spacer size="xxl" />
<Row responsive justify="between" align="center">
<FlexItem>
<RiTooltip
position="top"
Expand All @@ -130,19 +129,19 @@ const AddDatabaseScreen = (props: Props) => {
loading={isLoading}
data-testid="btn-test-connection"
>
Test Connection
Test connection
</EmptyButton>
</RiTooltip>
</FlexItem>
<FlexItem>
<Row responsive gap="l">
<FlexItem>
<SecondaryButton
size="small"
size="medium"
onClick={() => handleProceedForm(AddDbType.manual)}
data-testid="btn-connection-settings"
>
Connection Settings
Connection settings
</SecondaryButton>
</FlexItem>
<FlexItem>
Expand All @@ -152,13 +151,13 @@ const AddDatabaseScreen = (props: Props) => {
content={isInvalid ? <span>{ConnectionUrlError}</span> : null}
>
<PrimaryButton
size="small"
size="medium"
type="submit"
disabled={!!isInvalid}
icon={isInvalid ? InfoIcon : undefined}
data-testid="btn-submit"
>
Add Database
Add database
</PrimaryButton>
</RiTooltip>
</FlexItem>
Expand All @@ -167,7 +166,7 @@ const AddDatabaseScreen = (props: Props) => {
</Row>
</form>
<Spacer />
<div className={styles.hr}>Or</div>
<CustomHorizontalRule>Or</CustomHorizontalRule>
<Spacer />
<ConnectivityOptions
onClickOption={handleProceedForm}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import React from 'react'
import styled from 'styled-components'

import { FormField } from 'uiSrc/components/base/forms/FormField'
import { TextArea } from 'uiSrc/components/base/inputs'
import { RiIcon } from 'uiSrc/components/base/icons/RiIcon'
import { RiTooltip } from 'uiSrc/components'
import styles from './styles.module.scss'
import { FlexGroup, FlexItem } from 'uiSrc/components/base/layout/flex'
import { Text } from 'uiSrc/components/base/text'

const PointerIcon = styled(RiIcon)`
cursor: pointer;
`

export interface Props {
value: string
Expand All @@ -14,8 +20,8 @@ export interface Props {
const ConnectionUrl = ({ value, onChange }: Props) => (
<FormField
label={
<div className={styles.connectionUrlInfo}>
<div>Connection URL</div>
<FlexGroup gap="s" align="center">
<Text>Connection URL</Text>
<RiTooltip
title="The following connection URLs are supported:"
className="homePage_tooltip"
Expand All @@ -37,9 +43,11 @@ const ConnectionUrl = ({ value, onChange }: Props) => (
</ul>
}
>
<RiIcon type="InfoIcon" style={{ cursor: 'pointer' }} />
<FlexItem>
<PointerIcon type="InfoIcon" />
</FlexItem>
</RiTooltip>
</div>
</FlexGroup>
}
>
<TextArea
Expand All @@ -48,7 +56,6 @@ const ConnectionUrl = ({ value, onChange }: Props) => (
value={value}
onChangeCapture={onChange}
placeholder="redis://default@127.0.0.1:6379"
style={{ height: 88 }}
data-testid="connection-url"
/>
</FormField>
Expand Down

This file was deleted.

Loading
Loading