diff --git a/redisinsight/ui/src/components/base/display/toast/RiToast.tsx b/redisinsight/ui/src/components/base/display/toast/RiToast.tsx index 5dfb241012..a284f6791f 100644 --- a/redisinsight/ui/src/components/base/display/toast/RiToast.tsx +++ b/redisinsight/ui/src/components/base/display/toast/RiToast.tsx @@ -32,8 +32,10 @@ export const riToast = ( color = 'subdued' } toastContent.message = ( - - {message} + + + {message} + ) } else { diff --git a/redisinsight/ui/src/components/bottom-group-components/components/bottom-group-minimized/BottomGroupMinimized.tsx b/redisinsight/ui/src/components/bottom-group-components/components/bottom-group-minimized/BottomGroupMinimized.tsx index 22eb592601..e5b8b81207 100644 --- a/redisinsight/ui/src/components/bottom-group-components/components/bottom-group-minimized/BottomGroupMinimized.tsx +++ b/redisinsight/ui/src/components/bottom-group-components/components/bottom-group-minimized/BottomGroupMinimized.tsx @@ -147,7 +147,7 @@ const BottomGroupMinimized = () => { withIcon icon={CliIcon} label={ - + CLI } @@ -164,7 +164,7 @@ const BottomGroupMinimized = () => { withIcon icon={DocumentationIcon} label={ - + Command Helper } @@ -181,7 +181,7 @@ const BottomGroupMinimized = () => { withIcon icon={ProfilerIcon} label={ - + Profiler } diff --git a/redisinsight/ui/src/components/explore-guides/ExploreGuides.tsx b/redisinsight/ui/src/components/explore-guides/ExploreGuides.tsx index 89e171c739..9e1bab8ef4 100644 --- a/redisinsight/ui/src/components/explore-guides/ExploreGuides.tsx +++ b/redisinsight/ui/src/components/explore-guides/ExploreGuides.tsx @@ -43,11 +43,11 @@ const ExploreGuides = () => { return (
- + <Title color="primary" size="S" textAlign="center"> <span>Here's a good starting point</span> - + Explore the amazing world of Redis with our interactive guides @@ -55,6 +55,7 @@ const ExploreGuides = () => { {data.map(({ title, tutorialId, icon }) => ( handleLinkClick(tutorialId)} diff --git a/redisinsight/ui/src/components/navigation-menu/components/notifications-center/Notification/Notification.tsx b/redisinsight/ui/src/components/navigation-menu/components/notifications-center/Notification/Notification.tsx index 86a07f1e8d..0e97720b5e 100644 --- a/redisinsight/ui/src/components/navigation-menu/components/notifications-center/Notification/Notification.tsx +++ b/redisinsight/ui/src/components/navigation-menu/components/notifications-center/Notification/Notification.tsx @@ -34,6 +34,7 @@ const Notification = (props: Props) => { >` @@ -256,12 +256,14 @@ export default { return { title: ( <> - Action completed + + Action completed + {fileName ? ( <> - Commands executed from file: - {formatLongName(fileName, 34, 5)} + Commands executed from file: + {formatLongName(fileName, 34, 5)} ) : null} diff --git a/redisinsight/ui/src/components/upload-warning/UploadWarning.tsx b/redisinsight/ui/src/components/upload-warning/UploadWarning.tsx index 7a60b5e6d6..5a5a6dba1d 100644 --- a/redisinsight/ui/src/components/upload-warning/UploadWarning.tsx +++ b/redisinsight/ui/src/components/upload-warning/UploadWarning.tsx @@ -5,7 +5,7 @@ import { UploadWarningBanner } from 'uiSrc/components/upload-warning/styles' const UploadWarning = () => ( + Use files only from trusted authors to avoid automatic execution of malicious code. diff --git a/redisinsight/ui/src/components/virtual-table/VirtualTable.tsx b/redisinsight/ui/src/components/virtual-table/VirtualTable.tsx index ac43d95828..571c0efd15 100644 --- a/redisinsight/ui/src/components/virtual-table/VirtualTable.tsx +++ b/redisinsight/ui/src/components/virtual-table/VirtualTable.tsx @@ -383,7 +383,7 @@ const VirtualTable = (props: IProps) => { className={styles.tableRowCell} style={{ justifyContent: column.alignment, whiteSpace: 'normal' }} > - +
{ {noItemsMessage && (
-
{loading ? 'loading...' : noItemsMessage}
+ {loading ? 'loading...' : noItemsMessage}
)} diff --git a/redisinsight/ui/src/pages/browser/components/key-row-name/KeyRowName.tsx b/redisinsight/ui/src/pages/browser/components/key-row-name/KeyRowName.tsx index 15cbe26679..32b9c959e6 100644 --- a/redisinsight/ui/src/pages/browser/components/key-row-name/KeyRowName.tsx +++ b/redisinsight/ui/src/pages/browser/components/key-row-name/KeyRowName.tsx @@ -32,6 +32,7 @@ const KeyRowName = (props: Props) => { return (
diff --git a/redisinsight/ui/src/pages/browser/components/key-row-size/KeyRowSize.tsx b/redisinsight/ui/src/pages/browser/components/key-row-size/KeyRowSize.tsx index 143f4da8d8..8b65fb7e87 100644 --- a/redisinsight/ui/src/pages/browser/components/key-row-size/KeyRowSize.tsx +++ b/redisinsight/ui/src/pages/browser/components/key-row-size/KeyRowSize.tsx @@ -31,6 +31,7 @@ const KeyRowSize = (props: Props) => { if (!size) { return ( { return ( <> { } return ( { // remove key name from parents parents.pop() - parents.forEach((parent) => handleStatusOpen(parent, true)) + if (parents.length === 0) return + + // Use functional update to avoid stale closure issues + setStatusOpen((prevState) => { + const newOpenNodes = { ...prevState } + parents.forEach((parent) => { + newOpenNodes[parent] = true + }) + dispatch(setBrowserTreeNodesOpen(newOpenNodes)) + return newOpenNodes + }) } } diff --git a/redisinsight/ui/src/pages/browser/modules/key-details/components/list-details/list-details-table/ListDetailsTable.tsx b/redisinsight/ui/src/pages/browser/modules/key-details/components/list-details/list-details-table/ListDetailsTable.tsx index 9567f2df95..bd318e3673 100644 --- a/redisinsight/ui/src/pages/browser/modules/key-details/components/list-details/list-details-table/ListDetailsTable.tsx +++ b/redisinsight/ui/src/pages/browser/modules/key-details/components/list-details/list-details-table/ListDetailsTable.tsx @@ -262,7 +262,7 @@ const ListDetailsTable = () => { const cellContent = index?.toString().substring(0, 200) const tooltipContent = formatLongName(index?.toString()) return ( - +
{ const NoKeysSelectedMessage = () => ( <> {totalKeys > 0 ? ( - - Select the key from the list on the left to see the details of the - key. - + + + Select the key from the list on the left to see the details of the + key. + + ) : ( )} @@ -59,13 +61,13 @@ export const NoKeySelected = (props: Props) => {
- - {error ? ( + {error ? ( + {error} - ) : ( - !!keysLastRefreshTime && - )} - + + ) : ( + !!keysLastRefreshTime && + )}
) diff --git a/redisinsight/ui/src/pages/browser/modules/key-details/components/stream-details/add-stream-entity/StreamEntryFields/StreamEntryFields.styles.ts b/redisinsight/ui/src/pages/browser/modules/key-details/components/stream-details/add-stream-entity/StreamEntryFields/StreamEntryFields.styles.ts new file mode 100644 index 0000000000..81fded34cd --- /dev/null +++ b/redisinsight/ui/src/pages/browser/modules/key-details/components/stream-details/add-stream-entity/StreamEntryFields/StreamEntryFields.styles.ts @@ -0,0 +1,4 @@ +import styled from 'styled-components' +import { Row } from 'uiSrc/components/base/layout/flex' + +export const InlineRow = styled(Row).attrs({ as: 'span' })`` diff --git a/redisinsight/ui/src/pages/browser/modules/key-details/components/stream-details/add-stream-entity/StreamEntryFields/StreamEntryFields.tsx b/redisinsight/ui/src/pages/browser/modules/key-details/components/stream-details/add-stream-entity/StreamEntryFields/StreamEntryFields.tsx index 381db99c53..0fb7e120c0 100644 --- a/redisinsight/ui/src/pages/browser/modules/key-details/components/stream-details/add-stream-entity/StreamEntryFields/StreamEntryFields.tsx +++ b/redisinsight/ui/src/pages/browser/modules/key-details/components/stream-details/add-stream-entity/StreamEntryFields/StreamEntryFields.tsx @@ -11,6 +11,7 @@ import { Text } from 'uiSrc/components/base/text' import { TextInput } from 'uiSrc/components/base/inputs' import { streamIDTooltipText } from 'uiSrc/constants/texts' import { EntryIdContainer, FieldsWrapper } from '../AddStreamEntries.styles' +import { InlineRow } from './StreamEntryFields.styles' import { StreamGroupContent, TimeStampInfoIcon, @@ -117,7 +118,7 @@ const StreamEntryFields = (props: Props) => { + { {!showEntryError && ( - + Timestamp - Sequence Number or * )} {showEntryError && ( - + {entryIdError} )} - + } > { const cellContent = viewName.substring(0, 200) const tooltipContent = formatLongName(viewName) return ( - +
{ const cellContent = viewName.substring(0, 200) const tooltipContent = formatLongName(viewName) return ( - +
{ ) return ( - +
{
)} - +
{ data-testid={`${testIdPrefix}_content-value-${field}`} > diff --git a/redisinsight/ui/src/pages/browser/modules/key-details/shared/editable-textarea/EditableTextArea.tsx b/redisinsight/ui/src/pages/browser/modules/key-details/shared/editable-textarea/EditableTextArea.tsx index c351415889..647fc4c8eb 100644 --- a/redisinsight/ui/src/pages/browser/modules/key-details/shared/editable-textarea/EditableTextArea.tsx +++ b/redisinsight/ui/src/pages/browser/modules/key-details/shared/editable-textarea/EditableTextArea.tsx @@ -94,6 +94,7 @@ const EditableTextArea = (props: Props) => { data-testid={`${testIdPrefix}_content-value-${field}`} > diff --git a/redisinsight/ui/src/pages/home/components/databases-list/DatabasesList.config.tsx b/redisinsight/ui/src/pages/home/components/databases-list/DatabasesList.config.tsx index e2a58b0252..dd598db422 100644 --- a/redisinsight/ui/src/pages/home/components/databases-list/DatabasesList.config.tsx +++ b/redisinsight/ui/src/pages/home/components/databases-list/DatabasesList.config.tsx @@ -48,9 +48,9 @@ export const BASE_COLUMNS: ColumnDef[] = [ isHeaderCustom: true, enableSorting: false, header: Table.HeaderMultiRowSelectionButton, - cell: (props) => ( + cell: ({ row }) => ( e.stopPropagation()} /> ),