ydb-embedded-ui 6.24.0 → 6.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/components/CellWithPopover/CellWithPopover.js +2 -1
  2. package/dist/components/CellWithPopover/CellWithPopover.js.map +1 -1
  3. package/dist/components/PDiskPopup/PDiskPopup.js +8 -1
  4. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  5. package/dist/components/VDisk/VDisk.js +10 -5
  6. package/dist/components/VDisk/VDisk.js.map +1 -1
  7. package/dist/components/VDiskPopup/VDiskPopup.js +8 -1
  8. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  9. package/dist/containers/Cluster/Cluster.js +3 -1
  10. package/dist/containers/Cluster/Cluster.js.map +1 -1
  11. package/dist/containers/Cluster/utils.d.ts +4 -0
  12. package/dist/containers/Cluster/utils.js +6 -1
  13. package/dist/containers/Cluster/utils.js.map +1 -1
  14. package/dist/containers/Storage/PDisk/PDisk.js +10 -5
  15. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  16. package/dist/containers/Storage/PaginatedStorageGroups.js +2 -1
  17. package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -1
  18. package/dist/containers/Storage/PaginatedStorageNodes.js +2 -1
  19. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
  20. package/dist/containers/Tablets/Tablets.js +2 -123
  21. package/dist/containers/Tablets/Tablets.js.map +1 -1
  22. package/dist/containers/Tablets/TabletsTable.d.ts +10 -0
  23. package/dist/containers/Tablets/TabletsTable.js +129 -0
  24. package/dist/containers/Tablets/TabletsTable.js.map +1 -0
  25. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +2 -3
  26. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  27. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.scss +1 -1
  28. package/package.json +1 -1
@@ -3,7 +3,8 @@ import { Popover } from '@gravity-ui/uikit';
3
3
  import { cn } from '../../utils/cn';
4
4
  import './CellWithPopover.scss';
5
5
  const b = cn('ydb-cell-with-popover');
6
+ const DELAY_TIMEOUT = 100;
6
7
  export function CellWithPopover({ children, className, wrapperClassName, ...props }) {
7
- return (_jsx("div", { className: b(null, wrapperClassName), children: _jsx(Popover, { className: b('popover', className), ...props, children: children }) }));
8
+ return (_jsx("div", { className: b(null, wrapperClassName), children: _jsx(Popover, { delayClosing: DELAY_TIMEOUT, delayOpening: DELAY_TIMEOUT, className: b('popover', className), ...props, children: children }) }));
8
9
  }
9
10
  //# sourceMappingURL=CellWithPopover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CellWithPopover.js","sourceRoot":"","sources":["../../../src/components/CellWithPopover/CellWithPopover.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,wBAAwB,CAAC;AAEhC,MAAM,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC;AAMtC,MAAM,UAAU,eAAe,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,GAAG,KAAK,EACW;IACnB,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,gBAAgB,CAAC,YACrC,KAAC,OAAO,IAAC,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,KAAM,KAAK,YACjD,QAAQ,GACH,GACR,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"CellWithPopover.js","sourceRoot":"","sources":["../../../src/components/CellWithPopover/CellWithPopover.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,wBAAwB,CAAC;AAEhC,MAAM,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC,CAAC;AAMtC,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,MAAM,UAAU,eAAe,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,GAAG,KAAK,EACW;IACnB,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,gBAAgB,CAAC,YACrC,KAAC,OAAO,IACJ,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAC3B,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,KAC9B,KAAK,YAER,QAAQ,GACH,GACR,CACT,CAAC;AACN,CAAC"}
@@ -49,9 +49,16 @@ export const PDiskPopup = ({ data, ...props }) => {
49
49
  const nodeHostsMap = useTypedSelector(selectNodeHostsMap);
50
50
  const nodeHost = valueIsDefined(data.NodeId) ? nodeHostsMap === null || nodeHostsMap === void 0 ? void 0 : nodeHostsMap.get(data.NodeId) : undefined;
51
51
  const info = React.useMemo(() => preparePDiskData(data, nodeHost), [data, nodeHost]);
52
+ const [isPopupContentHovered, setIsPopupContentHovered] = React.useState(false);
53
+ const onMouseLeave = React.useCallback(() => {
54
+ setIsPopupContentHovered(false);
55
+ }, []);
56
+ const onMouseEnter = React.useCallback(() => {
57
+ setIsPopupContentHovered(true);
58
+ }, []);
52
59
  return (_jsx(Popup, { contentClassName: b(), placement: ['top', 'bottom'], hasArrow: true,
53
60
  // bigger offset for easier switching to neighbour nodes
54
61
  // matches the default offset for popup with arrow out of a sense of beauty
55
- offset: [0, 12], ...props, children: _jsx(InfoViewer, { title: "PDisk", info: info, size: "s" }) }));
62
+ offset: [0, 12], onMouseLeave: onMouseLeave, onMouseEnter: onMouseEnter, ...props, open: isPopupContentHovered || props.open, children: _jsx(InfoViewer, { title: "PDisk", info: info, size: "s" }) }));
56
63
  };
57
64
  //# sourceMappingURL=PDiskPopup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PDiskPopup.js","sourceRoot":"","sources":["../../../src/components/PDiskPopup/PDiskPop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AM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACxC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH,KAAC,KAAK,IACF,gBAAgB,EAAE,CAAC,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,QAAQ;QACR,wDAAwD;QACxD,2EAA2E;QAC3E,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EACf,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,KACtB,KAAK,EACT,IAAI,EAAE,qBAAqB,IAAI,KAAK,CAAC,IAAI,YAEzC,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,GAAG,GAAG,GAC7C,CACX,CAAC;AACN,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
+ import { debounce } from 'lodash';
3
4
  import { cn } from '../../utils/cn';
4
5
  import { DiskStateProgressBar } from '../DiskStateProgressBar/DiskStateProgressBar';
5
6
  import { InternalLink } from '../InternalLink';
@@ -7,18 +8,22 @@ import { VDiskPopup } from '../VDiskPopup/VDiskPopup';
7
8
  import { getVDiskLink } from './utils';
8
9
  import './VDisk.scss';
9
10
  const b = cn('ydb-vdisk-component');
11
+ const DEBOUNCE_TIMEOUT = 100;
10
12
  export const VDisk = ({ data = {}, compact, inactive, showPopup, onShowPopup, onHidePopup, progressBarClassName, }) => {
11
13
  const [isPopupVisible, setIsPopupVisible] = React.useState(false);
12
14
  const anchor = React.useRef(null);
13
- const handleShowPopup = () => {
15
+ const debouncedHandleShowPopup = debounce(() => {
14
16
  setIsPopupVisible(true);
15
17
  onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup();
16
- };
17
- const handleHidePopup = () => {
18
+ }, DEBOUNCE_TIMEOUT);
19
+ const debouncedHandleHidePopup = debounce(() => {
18
20
  setIsPopupVisible(false);
19
21
  onHidePopup === null || onHidePopup === void 0 ? void 0 : onHidePopup();
20
- };
22
+ }, DEBOUNCE_TIMEOUT);
21
23
  const vDiskPath = getVDiskLink(data);
22
- return (_jsxs(React.Fragment, { children: [_jsx("div", { className: b(), ref: anchor, onMouseEnter: handleShowPopup, onMouseLeave: handleHidePopup, children: _jsx(InternalLink, { to: vDiskPath, className: b('content'), children: _jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity, compact: compact, inactive: inactive, className: progressBarClassName }) }) }), _jsx(VDiskPopup, { data: data, anchorRef: anchor, open: isPopupVisible || showPopup })] }));
24
+ return (_jsxs(React.Fragment, { children: [_jsx("div", { className: b(), ref: anchor, onMouseEnter: debouncedHandleShowPopup, onMouseLeave: () => {
25
+ debouncedHandleShowPopup.cancel();
26
+ debouncedHandleHidePopup();
27
+ }, children: _jsx(InternalLink, { to: vDiskPath, className: b('content'), children: _jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity, compact: compact, inactive: inactive, className: progressBarClassName }) }) }), _jsx(VDiskPopup, { data: data, anchorRef: anchor, open: isPopupVisible || showPopup })] }));
23
28
  };
24
29
  //# sourceMappingURL=VDisk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VDisk.js","sourceRoot":"","sources":["../../../src/components/VDisk/VDisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAC,oBAAoB,EAAC,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAErC,OAAO,c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C;IACpB,CAAC,EAAE,gBAAgB,CAAC,CAAC;IAErB,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAErC,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,cACI,SAAS,EAAE,CAAC,EAAE,EACd,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,wBAAwB,EACtC,YAAY,EAAE,GAAG,EAAE;oBACf,wBAAwB,CAAC,MAAM,EAAE,CAAC;oBAClC,wBAAwB,EAAE,CAAC;gBAC/B,CAAC,YAED,KAAC,YAAY,IAAC,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAChD,KAAC,oBAAoB,IACjB,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,EAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,oBAAoB,GACjC,GACS,GACb,EACN,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,IAAI,SAAS,GAAI,IACnE,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -90,6 +90,13 @@ const prepareVDiskData = (data) => {
90
90
  };
91
91
  export const VDiskPopup = ({ data, ...props }) => {
92
92
  const isFullData = isFullVDiskData(data);
93
+ const [isPopupContentHovered, setIsPopupContentHovered] = React.useState(false);
94
+ const onMouseLeave = React.useCallback(() => {
95
+ setIsPopupContentHovered(false);
96
+ }, []);
97
+ const onMouseEnter = React.useCallback(() => {
98
+ setIsPopupContentHovered(true);
99
+ }, []);
93
100
  const vdiskInfo = React.useMemo(() => (isFullData ? prepareVDiskData(data) : prepareUnavailableVDiskData(data)), [data, isFullData]);
94
101
  const nodeHostsMap = useTypedSelector(selectNodeHostsMap);
95
102
  const nodeHost = valueIsDefined(data.NodeId) ? nodeHostsMap === null || nodeHostsMap === void 0 ? void 0 : nodeHostsMap.get(data.NodeId) : undefined;
@@ -114,6 +121,6 @@ export const VDiskPopup = ({ data, ...props }) => {
114
121
  return (_jsxs(Popup, { contentClassName: b(), placement: ['top', 'bottom'], hasArrow: true,
115
122
  // bigger offset for easier switching to neighbour nodes
116
123
  // matches the default offset for popup with arrow out of a sense of beauty
117
- offset: [0, 12], ...props, children: [data.DonorMode && _jsx(Label, { className: b('donor-label'), children: "Donor" }), _jsx(InfoViewer, { title: "VDisk", info: vdiskInfo, size: "s" }), pdiskInfo && _jsx(InfoViewer, { title: "PDisk", info: pdiskInfo, size: "s" }), donorsInfo.length > 0 && _jsx(InfoViewer, { title: "Donors", info: donorsInfo, size: "s" })] }));
124
+ offset: [0, 12], onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, ...props, open: isPopupContentHovered || props.open, children: [data.DonorMode && _jsx(Label, { className: b('donor-label'), children: "Donor" }), _jsx(InfoViewer, { title: "VDisk", info: vdiskInfo, size: "s" }), pdiskInfo && _jsx(InfoViewer, { title: "PDisk", info: pdiskInfo, size: "s" }), donorsInfo.length > 0 && _jsx(InfoViewer, { title: "Donors", info: donorsInfo, size: "s" })] }));
118
125
  };
119
126
  //# sourceMappingURL=VDiskPopup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VDiskPopup.js","sourceRoot":"","sources":["../../../src/components/VDiskPopup/VDiskPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,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AAC,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,QAAQ;QACR,wDAAwD;QACxD,2EAA2E;QAC3E,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EACf,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,KACtB,KAAK,EACT,IAAI,EAAE,qBAAqB,IAAI,KAAK,CAAC,IAAI,aAExC,IAAI,CAAC,SAAS,IAAI,KAAC,KAAK,IAAC,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,sBAAe,EACpE,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,GAAG,EACrD,SAAS,IAAI,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,GAAG,EACnE,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,KAAC,UAAU,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,GAAG,GAAG,IAC9E,CACX,CAAC;AACN,CAAC,CAAC"}
@@ -15,6 +15,7 @@ import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
15
15
  import { parseVersionsToVersionToColorMap } from '../../utils/versions';
16
16
  import { NodesWrapper } from '../Nodes/NodesWrapper';
17
17
  import { StorageWrapper } from '../Storage/StorageWrapper';
18
+ import { TabletsTable } from '../Tablets/TabletsTable';
18
19
  import { Tenants } from '../Tenants/Tenants';
19
20
  import { Versions } from '../Versions/Versions';
20
21
  import { ClusterInfo } from './ClusterInfo/ClusterInfo';
@@ -22,6 +23,7 @@ import { clusterTabs, clusterTabsIds, getClusterPath, isClusterTab } from './uti
22
23
  import './Cluster.scss';
23
24
  const b = cn('cluster');
24
25
  export function Cluster({ additionalClusterProps, additionalTenantsProps, additionalNodesProps, additionalVersionsProps, }) {
26
+ var _a;
25
27
  const container = React.useRef(null);
26
28
  const dispatch = useTypedDispatch();
27
29
  const activeTabId = useClusterTab();
@@ -53,7 +55,7 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
53
55
  return (_jsx(InternalLink, { to: path, onClick: () => {
54
56
  dispatch(updateDefaultClusterTab(id));
55
57
  }, children: node }, id));
56
- } }) }), _jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants)).pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentRef: container, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage)).pathname, children: _jsx(StorageWrapper, { parentRef: container }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions)).pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] }));
58
+ } }) }), _jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tablets)).pathname, children: _jsxs("div", { className: b('tablets'), children: [_jsx("div", { className: b('fake-block') }), _jsx(TabletsTable, { tablets: (_a = cluster.SystemTablets) !== null && _a !== void 0 ? _a : [], className: b('tablets-table') })] }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants)).pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentRef: container, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage)).pathname, children: _jsx(StorageWrapper, { parentRef: container }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions)).pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] }));
57
59
  }
58
60
  function useClusterTab() {
59
61
  const dispatch = useTypedDispatch();
@@ -1 +1 @@
1
- {"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,EAAE,EAAC,yBAAyB,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CAAC;IAEtC,OAAO,SAAS,CAAC;AACrB,CAAC"}
@@ -5,6 +5,7 @@ export declare const clusterTabsIds: {
5
5
  readonly nodes: "nodes";
6
6
  readonly storage: "storage";
7
7
  readonly versions: "versions";
8
+ readonly tablets: "tablets";
8
9
  };
9
10
  export type ClusterTab = ValueOf<typeof clusterTabsIds>;
10
11
  export declare const clusterTabs: ({
@@ -22,6 +23,9 @@ export declare const clusterTabs: ({
22
23
  } | {
23
24
  id: "versions";
24
25
  title: string;
26
+ } | {
27
+ id: "tablets";
28
+ title: string;
25
29
  })[];
26
30
  export declare function isClusterTab(tab: any): tab is ClusterTab;
27
31
  export declare const getClusterPath: (activeTab?: ClusterTab, query?: {}) => string;
@@ -5,6 +5,7 @@ export const clusterTabsIds = {
5
5
  nodes: 'nodes',
6
6
  storage: 'storage',
7
7
  versions: 'versions',
8
+ tablets: 'tablets',
8
9
  };
9
10
  const overview = {
10
11
  id: clusterTabsIds.overview,
@@ -26,7 +27,11 @@ const versions = {
26
27
  id: clusterTabsIds.versions,
27
28
  title: 'Versions',
28
29
  };
29
- export const clusterTabs = [overview, tenants, nodes, storage, versions];
30
+ const tablets = {
31
+ id: clusterTabsIds.tablets,
32
+ title: 'Tablets',
33
+ };
34
+ export const clusterTabs = [overview, tenants, nodes, storage, tablets, versions];
30
35
  export function isClusterTab(tab) {
31
36
  return Object.values(clusterTabsIds).includes(tab);
32
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/containers/Cluster/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGhD,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX,MAAM,QAAQ,GAAG;IACb,EAAE,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DiskStateProgressBar } from '../../../components/DiskStateProgressBar/DiskStateProgressBar';
4
5
  import { InternalLink } from '../../../components/InternalLink';
5
6
  import { PDiskPopup } from '../../../components/PDiskPopup/PDiskPopup';
@@ -11,19 +12,20 @@ import { STRUCTURE } from '../../Node/NodePages';
11
12
  import { isVdiskActive } from '../utils';
12
13
  import './PDisk.scss';
13
14
  const b = cn('pdisk-storage');
15
+ const DEBOUNCE_TIMEOUT = 100;
14
16
  export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, viewContext, }) => {
15
17
  const [isPopupVisible, setIsPopupVisible] = React.useState(false);
16
18
  const anchor = React.useRef(null);
17
19
  const { NodeId, PDiskId } = data;
18
20
  const pDiskIdsDefined = valueIsDefined(NodeId) && valueIsDefined(PDiskId);
19
- const handleShowPopup = () => {
21
+ const debouncedHandleShowPopup = debounce(() => {
20
22
  setIsPopupVisible(true);
21
23
  onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup();
22
- };
23
- const handleHidePopup = () => {
24
+ }, DEBOUNCE_TIMEOUT);
25
+ const debouncedHandleHidePopup = debounce(() => {
24
26
  setIsPopupVisible(false);
25
27
  onHidePopup === null || onHidePopup === void 0 ? void 0 : onHidePopup();
26
- };
28
+ }, DEBOUNCE_TIMEOUT);
27
29
  const renderVDisks = () => {
28
30
  if (!(vDisks === null || vDisks === void 0 ? void 0 : vDisks.length)) {
29
31
  return null;
@@ -43,6 +45,9 @@ export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup,
43
45
  if (pDiskIdsDefined) {
44
46
  pDiskPath = getPDiskPagePath(PDiskId, NodeId);
45
47
  }
46
- return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: b(null, className), ref: anchor, children: [renderVDisks(), _jsxs(InternalLink, { to: pDiskPath, className: b('content'), onMouseEnter: handleShowPopup, onMouseLeave: handleHidePopup, children: [_jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity, className: progressBarClassName }), _jsx("div", { className: b('media-type'), children: data.Type })] })] }), _jsx(PDiskPopup, { data: data, anchorRef: anchor, open: isPopupVisible || showPopup })] }));
48
+ return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: b(null, className), ref: anchor, children: [renderVDisks(), _jsxs(InternalLink, { to: pDiskPath, className: b('content'), onMouseEnter: debouncedHandleShowPopup, onMouseLeave: () => {
49
+ debouncedHandleShowPopup.cancel();
50
+ debouncedHandleHidePopup();
51
+ }, children: [_jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity, className: progressBarClassName }), _jsx("div", { className: b('media-type'), children: data.Type })] })] }), _jsx(PDiskPopup, { data: data, anchorRef: anchor, open: isPopupVisible || showPopup })] }));
47
52
  };
48
53
  //# sourceMappingURL=PDisk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PDisk.js","sourceRoot":"","sources":["../../../../src/containers/Storage/PDisk/PDisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AACtD,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAErC,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAE/C,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAEvC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;AAa9B,MAAM,CA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AAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,MAAM,aAC1C,YAAY,EAAE,EACf,MAAC,YAAY,IACT,EAAE,EAAE,SAAS,EACb,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EACvB,YAAY,EAAE,wBAAwB,EACtC,YAAY,EAAE,GAAG,EAAE;4BACf,wBAAwB,CAAC,MAAM,EAAE,CAAC;4BAClC,wBAAwB,EAAE,CAAC;wBAC/B,CAAC,aAED,KAAC,oBAAoB,IACjB,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,EAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,oBAAoB,GACjC,EACF,cAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAG,IAAI,CAAC,IAAI,GAAO,IACvC,IACb,EACN,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,IAAI,SAAS,GAAI,IACnE,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -36,12 +36,13 @@ export function PaginatedStorageGroups(props) {
36
36
  }
37
37
  function StorageGroupsComponent({ database, nodeId, groupId, pDiskId, viewContext, parentRef, initialEntitiesCount, }) {
38
38
  const { searchValue, visibleEntities, handleShowAllGroups } = useStorageQueryParams();
39
+ const storageGroupsHandlerHasGroupping = useStorageGroupsHandlerHasGrouping();
39
40
  const { columnsToShow, columnsToSelect, setColumns } = useStorageGroupsSelectedColumns({
40
41
  visibleEntities,
41
42
  viewContext,
42
43
  });
43
44
  const renderControls = ({ totalEntities, foundEntities, inited }) => {
44
- return (_jsx(StorageGroupsControls, { withTypeSelector: true, withGroupBySelect: true, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns }));
45
+ return (_jsx(StorageGroupsControls, { withTypeSelector: true, withGroupBySelect: storageGroupsHandlerHasGroupping, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns }));
45
46
  };
46
47
  return (_jsx(PaginatedStorageGroupsTable, { database: database, nodeId: nodeId, groupId: groupId, pDiskId: pDiskId, searchValue: searchValue, visibleEntities: visibleEntities, onShowAll: handleShowAllGroups, parentRef: parentRef, renderControls: renderControls, renderErrorMessage: renderPaginatedTableErrorMessage, columns: columnsToShow, initialEntitiesCount: initialEntitiesCount }));
47
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedStorageGroups.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorageGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,kCAAkC,GACrC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAC,qBAAqB,EAAC,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAC,2BAA2B,EAAC,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,iBAAiB,EAAC,MAAM,qCAAqC,CAAC;AACtE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,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AK,EACtB,SAAS,EAAE,mBAAmB,EAC9B,kBAAkB,EAAE,gCAAgC,EACpD,OAAO,EAAE,aAAa,EACtB,oBAAoB,EAAE,KAAK,GAC7B,IApBG,IAAI,CAqBA,CAChB,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC5E,YAAY,EAAE,GACa,IACV,CAC7B,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"PaginatedStorageGroups.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorageGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,kCAAkC,GACrC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAC,qBAAqB,EAAC,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAC,2BAA2B,EAAC,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,UAAU,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IACxB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,IAAI,EACjB,aAAa,EAAE,yBAAyB,EACxC,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,KAAK,EACtB,SAAS,EAAE,mBAAmB,EAC9B,kBAAkB,EAAE,gCAAgC,EACpD,OAAO,EAAE,aAAa,EACtB,oBAAoB,EAAE,KAAK,GAC7B,IApBG,IAAI,CAqBA,CAChB,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC5E,YAAY,EAAE,GACa,IACV,CAC7B,CAAC;AACN,CAAC"}
@@ -41,12 +41,13 @@ export const PaginatedStorageNodes = (props) => {
41
41
  };
42
42
  function StorageNodesComponent({ database, nodeId, groupId, viewContext, parentRef, initialEntitiesCount, }) {
43
43
  const { searchValue, visibleEntities, nodesUptimeFilter, handleShowAllNodes } = useStorageQueryParams();
44
+ const viewerNodesHandlerHasGrouping = useViewerNodesHandlerHasGrouping();
44
45
  const { columnsToShow, columnsToSelect, setColumns } = useStorageNodesColumnsToSelect({
45
46
  database,
46
47
  viewContext,
47
48
  });
48
49
  const renderControls = ({ totalEntities, foundEntities, inited }) => {
49
- return (_jsx(StorageNodesControls, { withTypeSelector: true, withGroupBySelect: true, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns }));
50
+ return (_jsx(StorageNodesControls, { withTypeSelector: true, withGroupBySelect: viewerNodesHandlerHasGrouping, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns }));
50
51
  };
51
52
  return (_jsx(PaginatedStorageNodesTable, { database: database, nodeId: nodeId, groupId: groupId, searchValue: searchValue, visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, onShowAll: handleShowAllNodes, parentRef: parentRef, renderControls: renderControls, renderErrorMessage: renderPaginatedTableErrorMessage, columns: columnsToShow, initialEntitiesCount: initialEntitiesCount }));
52
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedStorageNodes.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorageNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,sBAAsB,EAAC,MAAM,mCAAmC,CAAC;AAGzE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAC,0BAA0B,EAAC,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAC,8BAA8B,EAAC,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AC;QACP,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC5E,YAAY,EAAE,GACa,IACV,CAC7B,CAAC;AACN,CAAC;AAED,SAAS,8BAA8B,CAAC,EACpC,QAAQ,EACR,WAAW,GAId;IACG,MAAM,EAAC,QAAQ,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACxC,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAClE,MAAM,EAAC,eAAe,EAAC,GAAG,qBAAqB,EAAE,CAAC;IAElD,OAAO,8BAA8B,CAAC;QAClC,oBAAoB;QACpB,eAAe;QACf,QAAQ;QACR,WAAW;KACd,CAAC,CAAC;AACP,CAAC"}
@@ -1,133 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ArrowsRotateRight } from '@gravity-ui/icons';
3
- import { Icon, Text } from '@gravity-ui/uikit';
4
2
  import { skipToken } from '@reduxjs/toolkit/query';
5
- import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
6
- import { DeveloperUILinkButton } from '../../components/DeveloperUILinkButton/DeveloperUILinkButton';
7
- import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
8
3
  import { ResponseError } from '../../components/Errors/ResponseError';
9
- import { InternalLink } from '../../components/InternalLink';
10
- import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
11
4
  import { TableSkeleton } from '../../components/TableSkeleton/TableSkeleton';
12
- import { TabletState } from '../../components/TabletState/TabletState';
13
- import { getTabletPagePath } from '../../routes';
14
- import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
15
- import { tabletApi } from '../../store/reducers/tablet';
16
5
  import { selectTabletsWithFqdn, tabletsApi } from '../../store/reducers/tablets';
17
- import { ETabletState } from '../../types/api/tablet';
18
6
  import { cn } from '../../utils/cn';
19
- import { DEFAULT_TABLE_SETTINGS, EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
20
- import { calcUptime } from '../../utils/dataFormatters/dataFormatters';
21
- import { createTabletDeveloperUIHref } from '../../utils/developerUI/developerUI';
22
7
  import { useAutoRefreshInterval, useTypedSelector } from '../../utils/hooks';
23
- import { getDefaultNodePath } from '../Node/NodePages';
24
- import i18n from './i18n';
8
+ import { TabletsTable } from './TabletsTable';
25
9
  const b = cn('tablets');
26
- function getColumns({ database }) {
27
- const columns = [
28
- {
29
- name: 'Type',
30
- get header() {
31
- return i18n('Type');
32
- },
33
- render: ({ row }) => {
34
- const isFollower = row.Leader === false;
35
- return (_jsxs("span", { children: [row.Type, " ", isFollower ? _jsx(Text, { color: "secondary", children: "follower" }) : ''] }));
36
- },
37
- },
38
- {
39
- name: 'TabletId',
40
- width: 220,
41
- get header() {
42
- return i18n('Tablet');
43
- },
44
- render: ({ row }) => {
45
- var _a;
46
- if (!row.TabletId) {
47
- return EMPTY_DATA_PLACEHOLDER;
48
- }
49
- const tabletPath = getTabletPagePath(row.TabletId, {
50
- nodeId: row.NodeId,
51
- type: row.Type,
52
- tenantName: database,
53
- });
54
- return (_jsx(EntityStatus, { name: (_a = row.TabletId) === null || _a === void 0 ? void 0 : _a.toString(), path: tabletPath, hasClipboardButton: true, showStatus: false, additionalControls: _jsx(DeveloperUILinkButton, { href: createTabletDeveloperUIHref(row.TabletId) }) }));
55
- },
56
- },
57
- {
58
- name: 'State',
59
- get header() {
60
- return i18n('State');
61
- },
62
- render: ({ row }) => {
63
- return _jsx(TabletState, { state: row.State });
64
- },
65
- },
66
- {
67
- name: 'NodeId',
68
- get header() {
69
- return i18n('Node ID');
70
- },
71
- render: ({ row }) => {
72
- const nodePath = row.NodeId === undefined ? undefined : getDefaultNodePath(row.NodeId);
73
- return _jsx(InternalLink, { to: nodePath, children: row.NodeId });
74
- },
75
- align: 'right',
76
- },
77
- {
78
- name: 'fqdn',
79
- get header() {
80
- return i18n('Node FQDN');
81
- },
82
- render: ({ row }) => {
83
- if (!row.fqdn) {
84
- return _jsx("span", { children: "\u2014" });
85
- }
86
- return _jsx(EntityStatus, { name: row.fqdn, showStatus: false, hasClipboardButton: true });
87
- },
88
- },
89
- {
90
- name: 'Generation',
91
- get header() {
92
- return i18n('Generation');
93
- },
94
- align: 'right',
95
- },
96
- {
97
- name: 'Uptime',
98
- get header() {
99
- return i18n('Uptime');
100
- },
101
- render: ({ row }) => {
102
- return calcUptime(row.ChangeTime);
103
- },
104
- sortAccessor: (row) => -Number(row.ChangeTime),
105
- align: 'right',
106
- },
107
- {
108
- name: 'Actions',
109
- sortable: false,
110
- resizeable: false,
111
- header: '',
112
- render: ({ row }) => {
113
- return _jsx(TabletActions, { ...row });
114
- },
115
- },
116
- ];
117
- return columns;
118
- }
119
- function TabletActions(tablet) {
120
- const isDisabledRestart = tablet.State === ETabletState.Stopped;
121
- const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
122
- const [killTablet] = tabletApi.useKillTabletMutation();
123
- const id = tablet.TabletId;
124
- if (!id) {
125
- return null;
126
- }
127
- return (_jsx(ButtonWithConfirmDialog, { buttonView: "outlined", dialogHeader: i18n('dialog.kill-header'), dialogText: i18n('dialog.kill-text'), onConfirmAction: () => {
128
- return killTablet({ id }).unwrap();
129
- }, buttonDisabled: isDisabledRestart || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.kill-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: _jsx(Icon, { data: ArrowsRotateRight }) }));
130
- }
131
10
  export function Tablets({ nodeId, path, database, className }) {
132
11
  const [autoRefreshInterval] = useAutoRefreshInterval();
133
12
  let params = {};
@@ -146,6 +25,6 @@ export function Tablets({ nodeId, path, database, className }) {
146
25
  if (loading) {
147
26
  return _jsx(TableSkeleton, {});
148
27
  }
149
- return (_jsxs("div", { className: b(null, className), children: [error ? _jsx(ResponseError, { error: error }) : null, currentData ? (_jsx(ResizeableDataTable, { columns: getColumns({ database }), data: tablets, settings: DEFAULT_TABLE_SETTINGS, emptyDataMessage: i18n('noTabletsData') })) : null] }));
28
+ return (_jsxs("div", { className: b(null, className), children: [error ? _jsx(ResponseError, { error: error }) : null, currentData ? _jsx(TabletsTable, { tablets: tablets, database: database }) : null] }));
150
29
  }
151
30
  //# sourceMappingURL=Tablets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tablets.js","sourceRoot":"","sources":["../../../src/containers/Tablets/Tablets.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,qBAAqB,EAAC,MAAM,8DAA8D,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,WAAW,EAAC,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,C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AAO,EAAE,CAAC;QACV,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,aAC7B,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9C,WAAW,CAAC,CAAC,CAAC,KAAC,YAAY,IAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,IAC1E,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { TTabletStateInfo } from '../../types/api/tablet';
2
+ interface TabletsTableProps {
3
+ database?: string;
4
+ tablets: (TTabletStateInfo & {
5
+ fqdn?: string;
6
+ })[];
7
+ className?: string;
8
+ }
9
+ export declare function TabletsTable({ database, tablets, className }: TabletsTableProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,129 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowsRotateRight } from '@gravity-ui/icons';
3
+ import { Icon, Text } from '@gravity-ui/uikit';
4
+ import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
5
+ import { DeveloperUILinkButton } from '../../components/DeveloperUILinkButton/DeveloperUILinkButton';
6
+ import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
7
+ import { InternalLink } from '../../components/InternalLink';
8
+ import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
9
+ import { TabletState } from '../../components/TabletState/TabletState';
10
+ import { getTabletPagePath } from '../../routes';
11
+ import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
12
+ import { tabletApi } from '../../store/reducers/tablet';
13
+ import { ETabletState } from '../../types/api/tablet';
14
+ import { DEFAULT_TABLE_SETTINGS, EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
15
+ import { calcUptime } from '../../utils/dataFormatters/dataFormatters';
16
+ import { createTabletDeveloperUIHref } from '../../utils/developerUI/developerUI';
17
+ import { useTypedSelector } from '../../utils/hooks';
18
+ import { getDefaultNodePath } from '../Node/NodePages';
19
+ import i18n from './i18n';
20
+ function getColumns({ database }) {
21
+ const columns = [
22
+ {
23
+ name: 'Type',
24
+ width: 150,
25
+ get header() {
26
+ return i18n('Type');
27
+ },
28
+ render: ({ row }) => {
29
+ const isFollower = row.Leader === false;
30
+ return (_jsxs("span", { children: [row.Type, " ", isFollower ? _jsx(Text, { color: "secondary", children: "follower" }) : ''] }));
31
+ },
32
+ },
33
+ {
34
+ name: 'TabletId',
35
+ width: 220,
36
+ get header() {
37
+ return i18n('Tablet');
38
+ },
39
+ render: ({ row }) => {
40
+ var _a;
41
+ if (!row.TabletId) {
42
+ return EMPTY_DATA_PLACEHOLDER;
43
+ }
44
+ const tabletPath = getTabletPagePath(row.TabletId, {
45
+ nodeId: row.NodeId,
46
+ type: row.Type,
47
+ tenantName: database,
48
+ });
49
+ return (_jsx(EntityStatus, { name: (_a = row.TabletId) === null || _a === void 0 ? void 0 : _a.toString(), path: tabletPath, hasClipboardButton: true, showStatus: false, additionalControls: _jsx(DeveloperUILinkButton, { href: createTabletDeveloperUIHref(row.TabletId) }) }));
50
+ },
51
+ },
52
+ {
53
+ name: 'State',
54
+ get header() {
55
+ return i18n('State');
56
+ },
57
+ render: ({ row }) => {
58
+ return _jsx(TabletState, { state: row.State });
59
+ },
60
+ },
61
+ {
62
+ name: 'NodeId',
63
+ get header() {
64
+ return i18n('Node ID');
65
+ },
66
+ render: ({ row }) => {
67
+ const nodePath = row.NodeId === undefined ? undefined : getDefaultNodePath(row.NodeId);
68
+ return _jsx(InternalLink, { to: nodePath, children: row.NodeId });
69
+ },
70
+ align: 'right',
71
+ },
72
+ {
73
+ name: 'fqdn',
74
+ get header() {
75
+ return i18n('Node FQDN');
76
+ },
77
+ render: ({ row }) => {
78
+ if (!row.fqdn) {
79
+ return _jsx("span", { children: "\u2014" });
80
+ }
81
+ return _jsx(EntityStatus, { name: row.fqdn, showStatus: false, hasClipboardButton: true });
82
+ },
83
+ },
84
+ {
85
+ name: 'Generation',
86
+ get header() {
87
+ return i18n('Generation');
88
+ },
89
+ align: 'right',
90
+ },
91
+ {
92
+ name: 'Uptime',
93
+ get header() {
94
+ return i18n('Uptime');
95
+ },
96
+ render: ({ row }) => {
97
+ return calcUptime(row.ChangeTime);
98
+ },
99
+ sortAccessor: (row) => -Number(row.ChangeTime),
100
+ align: 'right',
101
+ },
102
+ {
103
+ name: 'Actions',
104
+ sortable: false,
105
+ resizeable: false,
106
+ header: '',
107
+ render: ({ row }) => {
108
+ return _jsx(TabletActions, { ...row });
109
+ },
110
+ },
111
+ ];
112
+ return columns;
113
+ }
114
+ function TabletActions(tablet) {
115
+ const isDisabledRestart = tablet.State === ETabletState.Stopped;
116
+ const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
117
+ const [killTablet] = tabletApi.useKillTabletMutation();
118
+ const id = tablet.TabletId;
119
+ if (!id) {
120
+ return null;
121
+ }
122
+ return (_jsx(ButtonWithConfirmDialog, { buttonView: "outlined", dialogHeader: i18n('dialog.kill-header'), dialogText: i18n('dialog.kill-text'), onConfirmAction: () => {
123
+ return killTablet({ id }).unwrap();
124
+ }, buttonDisabled: isDisabledRestart || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.kill-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: _jsx(Icon, { data: ArrowsRotateRight }) }));
125
+ }
126
+ export function TabletsTable({ database, tablets, className }) {
127
+ return (_jsx(ResizeableDataTable, { wrapperClassName: className, columns: getColumns({ database }), data: tablets, settings: DEFAULT_TABLE_SETTINGS, emptyDataMessage: i18n('noTabletsData') }));
128
+ }
129
+ //# sourceMappingURL=TabletsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabletsTable.js","sourceR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mBAAmB,IAChB,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,UAAU,CAAC,EAAC,QAAQ,EAAC,CAAC,EAC/B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,GACzC,CACL,CAAC;AACN,CAAC"}
@@ -69,16 +69,15 @@ export function ExecuteResult({ result, isResultsCollapsed, theme, tenantName, o
69
69
  setActiveSection(value);
70
70
  };
71
71
  const renderResult = () => {
72
- var _a;
73
72
  return (_jsxs("div", { className: b('result-wrapper'), children: [resultsSetsCount > 1 && (_jsx("div", { children: _jsx(Tabs, { className: b('result-tabs'), size: "l", items: getArray(resultsSetsCount).map((item) => {
74
73
  var _a, _b;
75
74
  return ({
76
75
  id: String(item),
77
76
  title: `Result #${item + 1}${((_b = (_a = data === null || data === void 0 ? void 0 : data.resultSets) === null || _a === void 0 ? void 0 : _a[item]) === null || _b === void 0 ? void 0 : _b.truncated) ? ' (T)' : ''}`,
78
77
  });
79
- }), activeTab: String(selectedResultSet), onSelectTab: (tabId) => setSelectedResultSet(Number(tabId)) }) })), _jsxs("div", { className: b('result'), children: [_jsxs("div", { className: b('result-head'), children: [_jsx(Text, { variant: "subheader-3", children: (currentResult === null || currentResult === void 0 ? void 0 : currentResult.truncated)
78
+ }), activeTab: String(selectedResultSet), onSelectTab: (tabId) => setSelectedResultSet(Number(tabId)) }) })), currentResult && (_jsxs("div", { className: b('result'), children: [_jsxs("div", { className: b('result-head'), children: [_jsx(Text, { variant: "subheader-3", children: (currentResult === null || currentResult === void 0 ? void 0 : currentResult.truncated)
80
79
  ? i18n('title.truncated')
81
- : i18n('title.result') }), _jsx(Text, { color: "secondary", variant: "body-2", className: b('row-count'), children: `(${(_a = currentResult === null || currentResult === void 0 ? void 0 : currentResult.result) === null || _a === void 0 ? void 0 : _a.length})` })] }), _jsx(QueryResultTable, { data: currentResult === null || currentResult === void 0 ? void 0 : currentResult.result, columns: currentResult === null || currentResult === void 0 ? void 0 : currentResult.columns })] })] }));
80
+ : i18n('title.result') }), currentResult.result && (_jsx(Text, { color: "secondary", variant: "body-2", className: b('row-count'), children: `(${currentResult.result.length})` }))] }), _jsx(QueryResultTable, { data: currentResult.result, columns: currentResult.columns })] }))] }));
82
81
  };
83
82
  const getStatsToCopy = () => {
84
83
  switch (activeSection) {
@@ -1 +1 @@
1
- {"version":3,"file":"ExecuteResult.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/ExecuteResult/ExecuteResult.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAE5C,OAAO,EAAC,eAAe,EAAC,MAAM,wCAAwC,CAAC;AACvE,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,sBAAsB,MAAM,sEAAsE,CAAC;AAC1G,OAAO,UAAU,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAC,gBAAgB,EAAC,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AAIxE,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,kBAAkB,EAAC,MAAM,iDAAiD,CAAC;AACnF,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAA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C,IAAI,IAC5D,EACN,eAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,aAC7B,qBAAqB,EAAE,EACxB,KAAC,sBAAsB,KAAG,EAC1B,KAAC,2BAA2B,IACxB,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,kBAAkB,EAC/B,gBAAgB,EAAC,QAAQ,GAC3B,IACA,IACJ,EACL,SAAS,IAAI,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,mBAAmB,KAAG,EAC3E,KAAC,aAAa,IAAC,OAAO,EAAE,SAAS,YAC7B,KAAC,UAAU,cAAE,mBAAmB,EAAE,GAAc,GACpC,IACH,CACpB,CAAC;AACN,CAAC"}
@@ -5,7 +5,7 @@
5
5
  overflow: auto;
6
6
 
7
7
  height: 100%;
8
- padding: 0 0 15px;
8
+ padding: 0 15px 15px;
9
9
  &__table {
10
10
  width: 100%;
11
11
  max-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.24.0",
3
+ "version": "6.25.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],