Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
941e021
#RI-4828 - Re-work the Tree view
egor-zalenski Oct 20, 2023
0408d83
#RI-4828 - Re-work the Tree view
egor-zalenski Oct 20, 2023
f972e36
Merge branch 'main' into fe/feature/RI-4828_Rework_Tree_view
egor-zalenski Oct 20, 2023
8265f1e
#RI-4828 - Re-work the Tree view
egor-zalenski Oct 20, 2023
bd09d61
#RI-4828 - fix pr comments
egor-zalenski Oct 24, 2023
a58f2b1
Merge branch 'main' into fe/feature/RI-4828_Rework_Tree_view
vlad-dargel Oct 30, 2023
2999ab8
Merge branch 'main' into fe/feature/RI-4828_Rework_Tree_view
egor-zalenski Oct 31, 2023
02450eb
updates for existing tree view tests
vlad-dargel Oct 31, 2023
bd20875
* #RI-5095 - [FE] Scrollbar is displayed for "No keys" panel in tree …
egor-zalenski Oct 31, 2023
d947b26
Merge remote-tracking branch 'origin/fe/feature/RI-4828_Rework_Tree_v…
egor-zalenski Oct 31, 2023
1a56dc0
Merge branch 'fe/feature/RI-4828_Rework_Tree_view' into fe/bugfix/rew…
egor-zalenski Oct 31, 2023
0c6855e
Merge pull request #2739 from RedisInsight/fe/bugfix/rework-tree
egor-zalenski Oct 31, 2023
9bffd96
Merge branch 'fe/feature/RI-4828_Rework_Tree_view' into e2e/feature/R…
vlad-dargel Oct 31, 2023
b0a457a
add tests on sorting and fixes
vlad-dargel Oct 31, 2023
cacbec7
fixes after bugfix
vlad-dargel Oct 31, 2023
6d4b100
fix
vlad-dargel Oct 31, 2023
84a379d
Update Node.spec.tsx
egor-zalenski Oct 31, 2023
f283049
fixes by pr comments
vlad-dargel Nov 1, 2023
7e4a839
fix by pr comments
vlad-dargel Nov 1, 2023
8489f85
Merge branch 'fe/feature/RI-4828_Rework_Tree_view' into e2e/feature/R…
vlad-dargel Nov 1, 2023
68b84c9
Merge pull request #2741 from RedisInsight/e2e/feature/RI-4828_rework…
vlad-dargel Nov 1, 2023
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
4 changes: 0 additions & 4 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module.exports = {
'json',
],
testEnvironment: 'jest-environment-jsdom',
// type: 'module',
transformIgnorePatterns: [
'node_modules/(?!(monaco-editor|react-monaco-editor)/)',
],
Expand All @@ -61,8 +60,5 @@ module.exports = {
functions: 72,
lines: 80,
},
// './redisinsight/ui/src/slices/**/*.ts': {
// statements: 90,
// },
},
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"package:mac": "yarn build:prod && electron-builder build --mac -p never",
"package:mac:arm": "yarn build:prod && electron-builder build --mac --arm64 -p never",
"package:linux": "yarn build:prod && electron-builder build --linux -p never",
"postinstall": "skip-postinstall || (electron-builder install-app-deps && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./configs/webpack.config.renderer.dev.dll.ts && opencollective-postinstall && yarn-deduplicate yarn.lock)",
"postinstall": "patch-package && skip-postinstall || (electron-builder install-app-deps && cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./configs/webpack.config.renderer.dev.dll.ts && opencollective-postinstall && yarn-deduplicate yarn.lock)",
"start": "ts-node ./scripts/check-port-in-use.js && yarn start:renderer",
"start:renderer": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./configs/webpack.config.renderer.dev.ts",
"start:preload": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./configs/webpack.config.preload.dev.ts",
Expand All @@ -42,7 +42,7 @@
"start:web:public": "cross-env PUBLIC_DEV=true NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./configs/webpack.config.web.dev.ts",
"test": "jest ./redisinsight/ui -w 1",
"test:watch": "jest ./redisinsight/ui --watch -w 1",
"test:cov": "jest ./redisinsight/ui --coverage --no-cache --forceExit -w 3",
"test:cov": "jest ./redisinsight/ui --silent --coverage --no-cache --forceExit -w 3",
"test:cov:unit": "jest ./redisinsight/ui --group=-component --coverage -w 1",
"test:cov:component": "jest ./redisinsight/ui --group=component --coverage -w 1",
"type-check:ui": "tsc --project redisinsight/ui --noEmit"
Expand Down Expand Up @@ -204,6 +204,8 @@
"msw": "^1.3.2",
"node-sass": "^8.0.0",
"opencollective-postinstall": "^2.0.3",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"react-hot-loader": "^4.13.0",
"react-refresh": "^0.9.0",
"redux-mock-store": "^1.5.4",
Expand Down
49 changes: 49 additions & 0 deletions patches/react-vtree+3.0.0-beta.3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/node_modules/react-vtree/dist/cjs/Tree.js b/node_modules/react-vtree/dist/cjs/Tree.js
index c46ce3e..879f0a6 100644
--- a/node_modules/react-vtree/dist/cjs/Tree.js
+++ b/node_modules/react-vtree/dist/cjs/Tree.js
@@ -33,6 +33,7 @@ var Row = function Row(_ref) {
return /*#__PURE__*/_react.default.createElement(Node, Object.assign({
isScrolling: isScrolling,
style: style,
+ index: index,
treeData: treeData
}, data));
};
diff --git a/node_modules/react-vtree/dist/es/Tree.d.ts b/node_modules/react-vtree/dist/es/Tree.d.ts
index 5e7f57e..b216b36 100644
--- a/node_modules/react-vtree/dist/es/Tree.d.ts
+++ b/node_modules/react-vtree/dist/es/Tree.d.ts
@@ -24,6 +24,8 @@ export declare type NodePublicState<TData extends NodeData> = Readonly<{
data: TData;
setOpen: (state: boolean) => Promise<void>;
}> & {
+ index: number;
+ style: object;
isOpen: boolean;
};
export declare type NodeRecord<TNodePublicState extends NodePublicState<any>> = Readonly<{
diff --git a/node_modules/react-vtree/dist/es/Tree.js b/node_modules/react-vtree/dist/es/Tree.js
index 2b1c7c0..b22e873 100644
--- a/node_modules/react-vtree/dist/es/Tree.js
+++ b/node_modules/react-vtree/dist/es/Tree.js
@@ -19,6 +19,7 @@ export var Row = function Row(_ref) {
return /*#__PURE__*/React.createElement(Node, Object.assign({
isScrolling: isScrolling,
style: style,
+ index: index,
treeData: treeData
}, data));
};
diff --git a/node_modules/react-vtree/dist/lib/Tree.js b/node_modules/react-vtree/dist/lib/Tree.js
index fb824bd..6feba4e 100644
--- a/node_modules/react-vtree/dist/lib/Tree.js
+++ b/node_modules/react-vtree/dist/lib/Tree.js
@@ -17,6 +17,7 @@ export const Row = ({
return /*#__PURE__*/React.createElement(Node, Object.assign({
isScrolling: isScrolling,
style: style,
+ index: index,
treeData: treeData
}, data));
};
10 changes: 10 additions & 0 deletions redisinsight/ui/src/assets/img/browser/treeViewSort.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion redisinsight/ui/src/components/keys-summary/KeysSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import React from 'react'
import cx from 'classnames'
import { isNull } from 'lodash'
import { EuiText, EuiTextColor } from '@elastic/eui'
import { useSelector } from 'react-redux'

import { numberWithSpaces, nullableNumberWithSpaces } from 'uiSrc/utils/numbers'
import ScanMore from '../scan-more'
import { KeyViewType } from 'uiSrc/slices/interfaces/keys'
import { keysSelector } from 'uiSrc/slices/browser/keys'
import { KeyTreeSettings } from 'uiSrc/pages/browser/components/key-tree'

import ScanMore from '../scan-more'
import styles from './styles.module.scss'

export interface Props {
Expand Down Expand Up @@ -41,6 +45,8 @@ const KeysSummary = (props: Props) => {
&& nextCursor !== '0'
? '~' : ''

const { viewType } = useSelector(keysSelector)

return (
<>
{(!!totalItemsCount || isNull(totalItemsCount)) && (
Expand Down Expand Up @@ -88,6 +94,9 @@ const KeysSummary = (props: Props) => {
</EuiText>
)}
</EuiText>
{viewType === KeyViewType.Tree && (
<KeyTreeSettings loading={loading} />
)}
</div>
)}
{loading && !totalItemsCount && !isNull(totalItemsCount) && (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.content {
display: flex;
}

.loading {
opacity: 0;
}
Expand Down
234 changes: 0 additions & 234 deletions redisinsight/ui/src/components/virtual-tree/VirtualTree.tsx

This file was deleted.

Loading