From 01f41ccce078ee80aa5c0073458939fdf8416122 Mon Sep 17 00:00:00 2001 From: Dijana Antovska Date: Tue, 28 Oct 2025 13:47:16 +0200 Subject: [PATCH 01/18] edit text casing --- .../components/add-database-screen/AddDatabaseScreen.tsx | 6 +++--- .../database-panel-dialog/DatabasePanelDialog.tsx | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx b/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx index 8c17dfacb2..da540b3fdb 100644 --- a/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx +++ b/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx @@ -130,7 +130,7 @@ const AddDatabaseScreen = (props: Props) => { loading={isLoading} data-testid="btn-test-connection" > - Test Connection + Test connection @@ -142,7 +142,7 @@ const AddDatabaseScreen = (props: Props) => { onClick={() => handleProceedForm(AddDbType.manual)} data-testid="btn-connection-settings" > - Connection Settings + Connection settings @@ -158,7 +158,7 @@ const AddDatabaseScreen = (props: Props) => { icon={isInvalid ? InfoIcon : undefined} data-testid="btn-submit" > - Add Database + Add database diff --git a/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx b/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx index b83a396a50..b9ce50b822 100644 --- a/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx +++ b/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx @@ -30,7 +30,6 @@ import CloudConnectionFormWrapper from 'uiSrc/pages/home/components/cloud-connec import ImportDatabase from 'uiSrc/pages/home/components/import-database' import { FormDialog } from 'uiSrc/components' import { ModalHeaderProvider } from 'uiSrc/contexts/ModalTitleProvider' -import { Title } from 'uiSrc/components/base/text/Title' import ClusterConnectionFormWrapper from 'uiSrc/pages/home/components/cluster-connection' import { FlexItem, Row } from 'uiSrc/components/base/layout/flex' import { IconButton } from 'uiSrc/components/base/forms/buttons' @@ -188,7 +187,7 @@ const DatabasePanelDialog = (props: Props) => { } >
Date: Wed, 29 Oct 2025 13:11:43 +0200 Subject: [PATCH 02/18] change modal title from M to L --- .../database-panel-dialog/DatabasePanelDialog.tsx | 3 ++- .../manual-connection-form/ManualConnectionForm.tsx | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx b/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx index b9ce50b822..1709837ca2 100644 --- a/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx +++ b/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx @@ -36,6 +36,7 @@ import { IconButton } from 'uiSrc/components/base/forms/buttons' import { ArrowLeftIcon } from 'uiSrc/components/base/icons' import styles from './styles.module.scss' import { FooterDatabaseForm } from 'uiSrc/components/form-dialog/FooterDatabaseForm' +import { Title } from 'uiSrc/components/base/text' export interface Props { editMode: boolean @@ -187,7 +188,7 @@ const DatabasePanelDialog = (props: Props) => { Add database} footer={} >
{ /> - Clone Database + Clone Database , ) @@ -175,11 +175,11 @@ const ManualConnectionForm = (props: Props) => { } if (isEditMode) { - setModalHeader(Edit Database) + setModalHeader(Edit Database) return } - setModalHeader(Connection Settings, true) + setModalHeader(Connection Settings, true) }, [isEditMode, isCloneMode]) useEffect(() => { From 250c0552683cd05b7b74ea3e497fde812fd94ad0 Mon Sep 17 00:00:00 2001 From: Dijana Antovska Date: Wed, 29 Oct 2025 13:22:15 +0200 Subject: [PATCH 03/18] increase button sizes --- .../home/components/add-database-screen/AddDatabaseScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx b/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx index da540b3fdb..a45ab23716 100644 --- a/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx +++ b/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx @@ -138,7 +138,7 @@ const AddDatabaseScreen = (props: Props) => { handleProceedForm(AddDbType.manual)} data-testid="btn-connection-settings" > @@ -152,7 +152,7 @@ const AddDatabaseScreen = (props: Props) => { content={isInvalid ? {ConnectionUrlError} : null} > Date: Wed, 29 Oct 2025 13:22:33 +0200 Subject: [PATCH 04/18] remove unused style, add spacing --- .../components/add-database-screen/AddDatabaseScreen.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx b/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx index a45ab23716..a7ac9d5a4b 100644 --- a/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx +++ b/redisinsight/ui/src/pages/home/components/add-database-screen/AddDatabaseScreen.tsx @@ -103,7 +103,7 @@ const AddDatabaseScreen = (props: Props) => { }) return ( -
+
@@ -113,8 +113,8 @@ const AddDatabaseScreen = (props: Props) => { /> - - + + Date: Wed, 29 Oct 2025 13:22:53 +0200 Subject: [PATCH 05/18] remove unneeded styles and add wrapper styled component for scrollable body --- .../DatabasePanelDialog.tsx | 29 +++++++++---------- .../database-panel-dialog/styles.module.scss | 23 --------------- 2 files changed, 14 insertions(+), 38 deletions(-) delete mode 100644 redisinsight/ui/src/pages/home/components/database-panel-dialog/styles.module.scss diff --git a/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx b/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx index 1709837ca2..9ea430284d 100644 --- a/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx +++ b/redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx @@ -1,6 +1,7 @@ import React, { useEffect, useState } from 'react' import { useDispatch, useSelector } from 'react-redux' -import cx from 'classnames' +import styled from 'styled-components' + import { Nullable } from 'uiSrc/utils' import { UrlHandlingActions } from 'uiSrc/slices/interfaces/urlHandling' import { Instance } from 'uiSrc/slices/interfaces' @@ -34,10 +35,14 @@ import ClusterConnectionFormWrapper from 'uiSrc/pages/home/components/cluster-co import { FlexItem, Row } from 'uiSrc/components/base/layout/flex' import { IconButton } from 'uiSrc/components/base/forms/buttons' import { ArrowLeftIcon } from 'uiSrc/components/base/icons' -import styles from './styles.module.scss' import { FooterDatabaseForm } from 'uiSrc/components/form-dialog/FooterDatabaseForm' import { Title } from 'uiSrc/components/base/text' +const ScrollableWrapper = styled.div` + height: 100%; + overflow: scroll; +` + export interface Props { editMode: boolean urlHandlingAction?: Nullable @@ -191,19 +196,13 @@ const DatabasePanelDialog = (props: Props) => { header={modalHeader ?? Add database} footer={} > -
-
- - {Form()} - -
-
+ + + {Form()} + + ) } diff --git a/redisinsight/ui/src/pages/home/components/database-panel-dialog/styles.module.scss b/redisinsight/ui/src/pages/home/components/database-panel-dialog/styles.module.scss deleted file mode 100644 index 8bc8459e86..0000000000 --- a/redisinsight/ui/src/pages/home/components/database-panel-dialog/styles.module.scss +++ /dev/null @@ -1,23 +0,0 @@ -.bodyWrapper { - height: 100%; - overflow: hidden; - - display: flex; - flex-direction: column; -} - -.formWrapper { - flex-grow: 1; - padding: 16px 0; - height: 100%; - - .softwareTypes { - display: flex; - align-items: center; - - :global(.euiRadioGroup__item) { - margin-top: 0; - margin-right: 12px; - } - } -} From 2fe3da91f73049fef43a7945b9e169f9b0a0b687 Mon Sep 17 00:00:00 2001 From: Dijana Antovska Date: Wed, 29 Oct 2025 14:35:04 +0200 Subject: [PATCH 06/18] style the connection url, remove some styles on the way --- .../components/connection-url/ConnectionUrl.tsx | 12 ++++++++---- .../components/connection-url/styles.module.scss | 12 +++++------- redisinsight/ui/src/pages/home/styles.scss | 4 ---- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/redisinsight/ui/src/pages/home/components/add-database-screen/components/connection-url/ConnectionUrl.tsx b/redisinsight/ui/src/pages/home/components/add-database-screen/components/connection-url/ConnectionUrl.tsx index 1187042a94..54564fb051 100644 --- a/redisinsight/ui/src/pages/home/components/add-database-screen/components/connection-url/ConnectionUrl.tsx +++ b/redisinsight/ui/src/pages/home/components/add-database-screen/components/connection-url/ConnectionUrl.tsx @@ -4,6 +4,9 @@ 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 { FlexGroup } from 'uiSrc/components/base/layout/flex' +import { Text } from 'uiSrc/components/base/text' + import styles from './styles.module.scss' export interface Props { @@ -14,11 +17,12 @@ export interface Props { const ConnectionUrl = ({ value, onChange }: Props) => ( -
Connection URL
+ + Connection URL @@ -37,9 +41,9 @@ const ConnectionUrl = ({ value, onChange }: Props) => ( } > - + -
+ } >