ydb-embedded-ui 6.27.1 → 6.29.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -21
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js +2 -2
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/EntityStatus/EntityStatus.d.ts +1 -2
- package/dist/components/EntityStatus/EntityStatus.js +5 -3
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +24 -2
- package/dist/components/HoverPopup/HoverPopup.d.ts +4 -3
- package/dist/components/HoverPopup/HoverPopup.js +2 -2
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/LoaderWrapper/LoaderWrapper.d.ts +1 -1
- package/dist/components/MonitoringButton/MonitoringButton.d.ts +1 -3
- package/dist/components/MonitoringButton/MonitoringButton.js +2 -5
- package/dist/components/MonitoringButton/MonitoringButton.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -5
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +3 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +16 -2
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/StatusIcon/StatusIcon.scss +1 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +4 -4
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.d.ts +6 -0
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js +18 -0
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -0
- package/dist/components/TabletNameWrapper/i18n/en.json +4 -0
- package/dist/components/TabletNameWrapper/i18n/index.d.ts +2 -0
- package/dist/components/TabletNameWrapper/i18n/index.js +5 -0
- package/dist/components/TabletNameWrapper/i18n/index.js.map +1 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.d.ts +8 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js +34 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -0
- package/dist/components/TenantNameWrapper/i18n/en.json +5 -0
- package/dist/components/TenantNameWrapper/i18n/index.d.ts +2 -0
- package/dist/components/TenantNameWrapper/i18n/index.js +5 -0
- package/dist/components/TenantNameWrapper/i18n/index.js.map +1 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.d.ts +2 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +27 -5
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.scss +7 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/en.json +5 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.d.ts +2 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.js +5 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.js.map +1 -0
- package/dist/components/VDiskInfo/VDiskInfo.js +5 -4
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.js +42 -5
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/nodesColumns/columns.js +6 -6
- package/dist/containers/App/App.scss +2 -4
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +1 -3
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +1 -3
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +2 -2
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +6 -13
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.d.ts +7 -4
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js +20 -8
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js.map +1 -1
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.scss +6 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js +1 -1
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- package/dist/containers/Clusters/columns.js +3 -3
- package/dist/containers/Node/NodeStructure/Pdisk.js +4 -4
- package/dist/containers/Node/NodeStructure/Pdisk.js.map +1 -1
- package/dist/containers/Operations/Operations.scss +5 -0
- package/dist/containers/Operations/OperationsControls.d.ts +1 -0
- package/dist/containers/Operations/OperationsControls.js +2 -1
- package/dist/containers/Operations/OperationsControls.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +4 -4
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.js +11 -5
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.scss +0 -9
- package/dist/containers/Storage/Storage.js +1 -0
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/columns.js +3 -3
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +3 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/TabletsTable.js +2 -8
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +9 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +9 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +8 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +4 -8
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +10 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -6
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
- package/dist/containers/Tenants/Tenants.js +2 -24
- package/dist/containers/Tenants/Tenants.js.map +1 -1
- package/dist/containers/Versions/NodesTable/NodesTable.js +2 -2
- package/dist/services/api.js +1 -1
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +6 -4
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/types/additionalProps.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +2 -0
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/utils/__test__/prepareBackend.test.js +1 -1
- package/dist/utils/__test__/prepareBackend.test.js.map +1 -1
- package/dist/utils/developerUI/__test__/developerUI.test.js +4 -4
- package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
- package/dist/utils/developerUI/developerUI.js +4 -4
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/monaco/yql/constants.js +2 -0
- package/dist/utils/monaco/yql/constants.js.map +1 -1
- package/dist/utils/prepareBackend.js +2 -2
- package/dist/utils/prepareBackend.js.map +1 -1
- package/dist/utils/tableUtils/getRequiredDataFields.js +1 -1
- package/dist/utils/tableUtils/getRequiredDataFields.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/MonitoringButton/MonitoringButton.scss +0 -11
@@ -46,6 +46,8 @@ body,
|
|
46
46
|
--ydb-color-status-red: var(--g-color-base-danger-heavy);
|
47
47
|
--ydb-color-status-blue: var(--g-color-base-info-heavy);
|
48
48
|
--ydb-color-status-black: var(--g-color-base-misc-heavy);
|
49
|
+
|
50
|
+
--g-popover-max-width: 500px;
|
49
51
|
}
|
50
52
|
|
51
53
|
:is(#tab, .g-tabs-item_active .g-tabs-item__title) {
|
@@ -103,7 +105,3 @@ body,
|
|
103
105
|
.app_embedded {
|
104
106
|
font-family: 'Rubik', sans-serif;
|
105
107
|
}
|
106
|
-
|
107
|
-
.g-popup {
|
108
|
-
max-width: 500px;
|
109
|
-
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { ClipboardButton } from '@gravity-ui/uikit';
|
3
|
-
import { MonitoringButton } from '../../../components/MonitoringButton/MonitoringButton';
|
4
3
|
import { getVersionColors, getVersionMap } from '../../../utils/clusterVersionColors';
|
5
4
|
import { cn } from '../../../utils/cn';
|
6
5
|
import { getCleanBalancerValue, removeViewerPathname } from '../../../utils/parseBalancer';
|
@@ -57,8 +56,7 @@ const getAdditionalTenantsProps = (clusterName, monitoring, balancer, useCluster
|
|
57
56
|
if (monitoring && getMonitoringLink) {
|
58
57
|
additionalTenantsProps.getMonitoringLink = (dbName, dbType) => {
|
59
58
|
if (dbName && dbType) {
|
60
|
-
|
61
|
-
return _jsx(MonitoringButton, { href: href });
|
59
|
+
return getMonitoringLink({ monitoring, dbName, dbType, clusterName });
|
62
60
|
}
|
63
61
|
return null;
|
64
62
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExtendedCluster.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"ExtendedCluster.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAUlD,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAErC,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAC,sBAAsB,EAAE,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AAEhG,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,OAAO,wBAAwB,CAAC;AAEhC,MAAM,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC;AAEjC,MAAM,yBAAyB,GAAG,CAAC,QAAgB,EAAE,EAAE;IACnD,MAAM,YAAY,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAErD,OAAO;QACH,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,aACxB,YAAY,EACb,KAAC,eAAe,IAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAC,GAAG,EAAC,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,GAAI,IAChF,CACT;KAC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,oBAAoB,GAC5C,GACA,CACT,CAAC;AACN,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { MonitoringButton } from '../../../components/MonitoringButton/MonitoringButton';
|
3
2
|
import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
|
4
3
|
import { useAdditionalNodeProps } from '../useClusterData';
|
5
4
|
export function ExtendedTenant({ component: TenantComponent, getMonitoringLink, }) {
|
@@ -8,12 +7,11 @@ export function ExtendedTenant({ component: TenantComponent, getMonitoringLink,
|
|
8
7
|
const additionalTenantProps = {
|
9
8
|
getMonitoringLink: (dbName, dbType) => {
|
10
9
|
if (monitoring && dbName && dbType && getMonitoringLink) {
|
11
|
-
|
10
|
+
return getMonitoringLink({
|
12
11
|
monitoring,
|
13
12
|
dbName,
|
14
13
|
dbType,
|
15
14
|
});
|
16
|
-
return href ? _jsx(MonitoringButton, { href: href, visible: true, size: "xs" }) : null;
|
17
15
|
}
|
18
16
|
return null;
|
19
17
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExtendedTenant.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"ExtendedTenant.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAI3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAOzD,MAAM,UAAU,cAAc,CAAC,EAC3B,SAAS,EAAE,eAAe,EAC1B,iBAAiB,GACC;IAClB,MAAM,EAAC,QAAQ,EAAE,UAAU,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACpD,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAElE,MAAM,qBAAqB,GAAG;QAC1B,iBAAiB,EAAE,CAAC,MAAe,EAAE,MAAoB,EAAE,EAAE;YACzD,IAAI,UAAU,IAAI,MAAM,IAAI,MAAM,IAAI,iBAAiB,EAAE,CAAC;gBACtD,OAAO,iBAAiB,CAAC;oBACrB,UAAU;oBACV,MAAM;oBACN,MAAM;iBACT,CAAC,CAAC;YACP,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,eAAe,IACZ,qBAAqB,EAAE,qBAAqB,EAC5C,oBAAoB,EAAE,oBAAoB,GAC5C,CACL,CAAC;AACN,CAAC"}
|
@@ -51,12 +51,12 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
51
51
|
return (_jsx(EntityStatus, { size: "m", status: cluster === null || cluster === void 0 ? void 0 : cluster.Overall, name: clusterTitle, className: b('title') }));
|
52
52
|
};
|
53
53
|
const activeTab = React.useMemo(() => clusterTabs.find(({ id }) => id === activeTabId), [activeTabId]);
|
54
|
-
return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }), _jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsx(ClusterDashboard, { cluster: cluster, groupStats: groupsStats, loading: infoLoading }), _jsx("div", { className: b('tabs-sticky-wrapper'), children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
|
54
|
+
return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }), _jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsx(ClusterDashboard, { cluster: cluster, groupStats: groupsStats, loading: infoLoading, error: clusterError || (cluster === null || cluster === void 0 ? void 0 : cluster.error) }), _jsx("div", { className: b('tabs-sticky-wrapper'), children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
|
55
55
|
const path = getClusterPath(id, { clusterName, backend });
|
56
56
|
return (_jsx(InternalLink, { to: path, onClick: () => {
|
57
57
|
dispatch(updateDefaultClusterTab(id));
|
58
58
|
}, children: node }, id));
|
59
|
-
} }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tablets)).pathname, children:
|
59
|
+
} }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tablets)).pathname, children: _jsx("div", { className: b('tablets'), children: _jsx(TabletsTable, { loading: infoLoading, tablets: clusterTablets, 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, cluster: cluster }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] }));
|
60
60
|
}
|
61
61
|
function useClusterTab() {
|
62
62
|
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,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EACH,UAAU,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,uBAAuB,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AAOxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAC,gCAAgC,EA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,CAAC;IACpC,CAAC;SAAM,CAAC;QACJ,SAAS,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;YAC3B,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;QACjD,CAAC;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
@@ -31,8 +31,11 @@
|
|
31
31
|
z-index: 3;
|
32
32
|
|
33
33
|
margin-top: 20px;
|
34
|
-
margin-right: -
|
35
|
-
padding-right:
|
34
|
+
margin-right: -40px;
|
35
|
+
padding-right: 40px;
|
36
|
+
padding-left: 20px;
|
37
|
+
|
38
|
+
transform: translateX(-20px);
|
36
39
|
@include sticky-top();
|
37
40
|
}
|
38
41
|
&__tabs {
|
@@ -61,20 +64,10 @@
|
|
61
64
|
&__tablets {
|
62
65
|
.data-table__sticky_moving {
|
63
66
|
// Place table head right after controls
|
64
|
-
top:
|
67
|
+
top: 40px !important;
|
65
68
|
}
|
66
69
|
}
|
67
70
|
|
68
|
-
&__fake-block {
|
69
|
-
position: sticky;
|
70
|
-
z-index: 3;
|
71
|
-
top: 40px;
|
72
|
-
|
73
|
-
height: 20px;
|
74
|
-
|
75
|
-
background-color: var(--g-color-base-background);
|
76
|
-
}
|
77
|
-
|
78
71
|
.ydb-table-with-controls-layout {
|
79
72
|
--data-table-sticky-top-offset: 102px;
|
80
73
|
}
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import type { ClusterGroupsStats } from '../../../store/reducers/cluster/types';
|
2
|
-
import type { TClusterInfo } from '../../../types/api/cluster';
|
2
|
+
import type { TClusterInfo, TClusterInfoV2 } from '../../../types/api/cluster';
|
3
|
+
import type { IResponseError } from '../../../types/api/error';
|
3
4
|
import './ClusterDashboard.scss';
|
4
|
-
|
5
|
-
|
5
|
+
export declare function isClusterInfoV5(info?: TClusterInfo): info is TClusterInfoV2;
|
6
|
+
interface ClusterDashboardProps<T = TClusterInfo> {
|
7
|
+
cluster: T;
|
6
8
|
groupStats?: ClusterGroupsStats;
|
7
9
|
loading?: boolean;
|
10
|
+
error?: IResponseError | string;
|
8
11
|
}
|
9
|
-
export declare function ClusterDashboard(props: ClusterDashboardProps): import("react/jsx-runtime").JSX.Element;
|
12
|
+
export declare function ClusterDashboard({ cluster, ...props }: ClusterDashboardProps): import("react/jsx-runtime").JSX.Element | null;
|
10
13
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { Flex, Text } from '@gravity-ui/uikit';
|
3
|
+
import { ResponseError } from '../../../components/Errors/ResponseError';
|
3
4
|
import { Tags } from '../../../components/Tags';
|
4
|
-
import { isClusterInfoV2 } from '../../../types/api/cluster';
|
5
5
|
import { valueIsDefined } from '../../../utils';
|
6
6
|
import { formatNumber } from '../../../utils/dataFormatters/dataFormatters';
|
7
7
|
import i18n from '../i18n';
|
@@ -12,25 +12,37 @@ import { ClusterMetricsStorage } from './components/ClusterMetricsStorage';
|
|
12
12
|
import { b } from './shared';
|
13
13
|
import { getDCInfo, getNodesRolesInfo, getStorageGroupStats, getTotalStorageGroupsUsed, } from './utils';
|
14
14
|
import './ClusterDashboard.scss';
|
15
|
+
// fixed CPU calculation
|
16
|
+
export function isClusterInfoV5(info) {
|
17
|
+
return info
|
18
|
+
? 'Version' in info && typeof info.Version === 'number' && info.Version >= 5
|
19
|
+
: false;
|
20
|
+
}
|
15
21
|
function Amount({ value }) {
|
16
22
|
if (!valueIsDefined(value)) {
|
17
23
|
return null;
|
18
24
|
}
|
19
25
|
return (_jsx(Text, { variant: "subheader-3", color: "secondary", children: formatNumber(value) }));
|
20
26
|
}
|
21
|
-
export function ClusterDashboard(props) {
|
22
|
-
|
27
|
+
export function ClusterDashboard({ cluster, ...props }) {
|
28
|
+
const isSupportedClusterResponse = isClusterInfoV5(cluster);
|
29
|
+
if (!isSupportedClusterResponse) {
|
30
|
+
return null;
|
31
|
+
}
|
32
|
+
if (props.error) {
|
33
|
+
return _jsx(ResponseError, { error: props.error, className: b('error') });
|
34
|
+
}
|
35
|
+
return (_jsx("div", { className: b(), children: _jsxs(Flex, { gap: 4, wrap: true, children: [_jsx(Flex, { gap: 4, wrap: "nowrap", children: _jsx(ClusterDoughnuts, { ...props, cluster: cluster }) }), _jsx("div", { className: b('cards-container'), children: _jsx(ClusterDashboardCards, { ...props, cluster: cluster }) })] }) }));
|
23
36
|
}
|
24
37
|
function ClusterDoughnuts({ cluster, loading }) {
|
25
38
|
if (loading) {
|
26
39
|
return _jsx(ClusterDashboardSkeleton, {});
|
27
40
|
}
|
28
41
|
const metricsCards = [];
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
}
|
42
|
+
const { CoresUsed, NumberOfCpus, CoresTotal } = cluster;
|
43
|
+
const total = CoresTotal !== null && CoresTotal !== void 0 ? CoresTotal : NumberOfCpus;
|
44
|
+
if (valueIsDefined(CoresUsed) && valueIsDefined(total)) {
|
45
|
+
metricsCards.push(_jsx(ClusterMetricsCores, { value: CoresUsed, capacity: total }, "cores"));
|
34
46
|
}
|
35
47
|
const { StorageTotal, StorageUsed } = cluster;
|
36
48
|
if (valueIsDefined(StorageTotal) && valueIsDefined(StorageUsed)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ClusterDashboard.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterDashboard/ClusterDashboard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"ClusterDashboard.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterDashboard/ClusterDashboard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC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IAAI,CAAC,iBAAiB,CAAC,YACrE,KAAC,MAAM,IAAC,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,GAAI,IADN,SAAS,CAErB,CACxB,CAAC;IACN,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
@@ -40,7 +40,7 @@ export const getInfo = (cluster, additionalInfo, links) => {
|
|
40
40
|
// sort stack to achieve order "green, orange, yellow, red, blue, grey"
|
41
41
|
arrayNodesStates.sort((a, b) => COLORS_PRIORITY[b[0]] - COLORS_PRIORITY[a[0]]);
|
42
42
|
const nodesStates = arrayNodesStates.map(([state, count]) => {
|
43
|
-
return (_jsx(NodesState, { state: state, children: count }, state));
|
43
|
+
return (_jsx(NodesState, { state: state, children: formatNumber(count) }, state));
|
44
44
|
});
|
45
45
|
info.push({
|
46
46
|
label: i18n('label_nodes-state'),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAI3D,OAAO,EAAC,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,8CAA8C,CAAC;AAC1E,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAC3B,MAAM,eAAe,GAA0B;IAC3C,KAAK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;IACP,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC"}
|
@@ -84,7 +84,7 @@ export const CLUSTERS_COLUMNS = [
|
|
84
84
|
{
|
85
85
|
name: COLUMNS_NAMES.NODES,
|
86
86
|
header: COLUMNS_TITLES[COLUMNS_NAMES.NODES],
|
87
|
-
resizeMinWidth:
|
87
|
+
resizeMinWidth: 170,
|
88
88
|
defaultOrder: DataTable.DESCENDING,
|
89
89
|
sortAccessor: ({ cluster = {} }) => {
|
90
90
|
const { NodesTotal = 0 } = cluster;
|
@@ -101,7 +101,7 @@ export const CLUSTERS_COLUMNS = [
|
|
101
101
|
{
|
102
102
|
name: COLUMNS_NAMES.LOAD,
|
103
103
|
header: COLUMNS_TITLES[COLUMNS_NAMES.LOAD],
|
104
|
-
resizeMinWidth:
|
104
|
+
resizeMinWidth: 170,
|
105
105
|
defaultOrder: DataTable.DESCENDING,
|
106
106
|
sortAccessor: ({ cluster }) => {
|
107
107
|
return cluster === null || cluster === void 0 ? void 0 : cluster.NumberOfCpus;
|
@@ -117,7 +117,7 @@ export const CLUSTERS_COLUMNS = [
|
|
117
117
|
{
|
118
118
|
name: COLUMNS_NAMES.STORAGE,
|
119
119
|
header: COLUMNS_TITLES[COLUMNS_NAMES.STORAGE],
|
120
|
-
resizeMinWidth:
|
120
|
+
resizeMinWidth: 170,
|
121
121
|
defaultOrder: DataTable.DESCENDING,
|
122
122
|
sortAccessor: ({ cluster }) => {
|
123
123
|
return Number(cluster === null || cluster === void 0 ? void 0 : cluster.StorageTotal);
|
@@ -4,9 +4,9 @@ import { ArrowUpRightFromSquare, CircleInfoFill } from '@gravity-ui/icons';
|
|
4
4
|
import DataTable from '@gravity-ui/react-data-table';
|
5
5
|
import { ArrowToggle, Button, Icon, Popover } from '@gravity-ui/uikit';
|
6
6
|
import isEmpty from 'lodash/isEmpty';
|
7
|
-
import { EntityStatus } from '../../../components/EntityStatus/EntityStatus';
|
8
7
|
import { PDiskInfo } from '../../../components/PDiskInfo/PDiskInfo';
|
9
8
|
import { ProgressViewer } from '../../../components/ProgressViewer/ProgressViewer';
|
9
|
+
import { StatusIcon } from '../../../components/StatusIcon/StatusIcon';
|
10
10
|
import { VDiskInfo } from '../../../components/VDiskInfo/VDiskInfo';
|
11
11
|
import { EFlag } from '../../../types/api/enums';
|
12
12
|
import { EVDiskState } from '../../../types/api/vdisk';
|
@@ -58,7 +58,7 @@ function getColumns({ pDiskId, selectedVdiskId, nodeId, }) {
|
|
58
58
|
header: vDiskTableColumnsNames[VDiskTableColumnsIds.VDiskState],
|
59
59
|
width: 70,
|
60
60
|
render: ({ row }) => {
|
61
|
-
return (_jsx(
|
61
|
+
return (_jsx(StatusIcon, { status: row.VDiskState === EVDiskState.OK ? EFlag.Green : EFlag.Red }));
|
62
62
|
},
|
63
63
|
sortAccessor: (row) => (row.VDiskState === EVDiskState.OK ? 1 : 0),
|
64
64
|
align: DataTable.CENTER,
|
@@ -66,7 +66,7 @@ function getColumns({ pDiskId, selectedVdiskId, nodeId, }) {
|
|
66
66
|
{
|
67
67
|
name: VDiskTableColumnsIds.Size,
|
68
68
|
header: vDiskTableColumnsNames[VDiskTableColumnsIds.Size],
|
69
|
-
width:
|
69
|
+
width: 170,
|
70
70
|
render: ({ row }) => {
|
71
71
|
return (_jsx(ProgressViewer, { value: row.AllocatedSize, capacity: Number(row.AllocatedSize) + Number(row.AvailableSize), formatValues: formatStorageValuesToGb, colorizeProgress: true }));
|
72
72
|
},
|
@@ -109,6 +109,6 @@ export function PDisk({ id, data, selectedVdiskId, nodeId, unfolded: unfoldedFro
|
|
109
109
|
}
|
110
110
|
return (_jsxs("div", { children: [_jsx(PDiskInfo, { pDisk: data, nodeId: nodeId, className: b('pdisk-details'), withPDiskPageLink: true }), _jsxs("div", { className: b('vdisks-container'), children: [_jsx("div", { className: b('vdisks-header'), children: "VDisks" }), renderVDisks()] })] }));
|
111
111
|
};
|
112
|
-
return (_jsxs("div", { className: b('pdisk'), id: id, children: [_jsxs("div", { className: b('pdisk-header'), children: [_jsxs("div", { className: b('pdisk-title-wrapper'), children: [_jsx(
|
112
|
+
return (_jsxs("div", { className: b('pdisk'), id: id, children: [_jsxs("div", { className: b('pdisk-header'), children: [_jsxs("div", { className: b('pdisk-title-wrapper'), children: [_jsx(StatusIcon, { status: Device }), _jsx(PDiskTitleBadge, { label: "PDiskID", value: PDiskId, className: b('pdisk-title-id') }), _jsx(PDiskTitleBadge, { value: Type, className: b('pdisk-title-type') }), _jsx(ProgressViewer, { value: total - available, capacity: total, formatValues: formatStorageValuesToGb, colorizeProgress: true, className: b('pdisk-title-size') }), _jsx(PDiskTitleBadge, { label: "VDisks", value: vDisks.length })] }), _jsx(Button, { onClick: unfolded ? onClosePDiskDetails : onOpenPDiskDetails, view: "flat-secondary", children: _jsx(ArrowToggle, { direction: unfolded ? 'top' : 'bottom' }) })] }), unfolded && renderPDiskDetails()] }));
|
113
113
|
}
|
114
114
|
//# sourceMappingURL=Pdisk.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Pdisk.js","sourceRoot":"","sources":["../../../../src/containers/Node/NodeStructure/Pdisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACzE,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AACrE,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"Pdisk.js","sourceRoot":"","sources":["../../../../src/containers/Node/NodeStructure/Pdisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACzE,OAAO,SAAS,MAAM,8BAA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AAY,EAAE,uBAAuB,EACrC,gBAAgB,EAAE,IAAI,EACtB,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,GAClC,EACF,KAAC,eAAe,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,MAAM,GAAI,IACtD,EACN,KAAC,MAAM,IACH,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,kBAAkB,EAC5D,IAAI,EAAC,gBAAgB,YAErB,KAAC,WAAW,IAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,GAAI,GAClD,IACP,EACL,QAAQ,IAAI,kBAAkB,EAAE,IAC/B,CACT,CAAC;AACN,CAAC"}
|
@@ -6,7 +6,8 @@ import { Search } from '../../components/Search';
|
|
6
6
|
import { OPERATION_KINDS } from './constants';
|
7
7
|
import i18n from './i18n';
|
8
8
|
import { b } from './shared';
|
9
|
+
import './Operations.scss';
|
9
10
|
export function OperationsControls({ kind, searchValue, entitiesCountCurrent, entitiesCountTotal, entitiesLoading, handleKindChange, handleSearchChange, }) {
|
10
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Search, { value: searchValue, onChange: handleSearchChange, placeholder: i18n('pleaceholder_search'), className: b('search') }), _jsx(Select, { value: [kind], options: OPERATION_KINDS, onUpdate: (value) => handleKindChange(value[0]) }), _jsx(EntitiesCount, { label: i18n('label_operations'), loading: entitiesLoading, total: entitiesCountTotal, current: entitiesCountCurrent })] }));
|
11
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Search, { value: searchValue, onChange: handleSearchChange, placeholder: i18n('pleaceholder_search'), className: b('search') }), _jsx(Select, { value: [kind], width: 150, options: OPERATION_KINDS, onUpdate: (value) => handleKindChange(value[0]) }), _jsx(EntitiesCount, { label: i18n('label_operations'), loading: entitiesLoading, total: entitiesCountTotal, current: entitiesCountCurrent })] }));
|
11
12
|
}
|
12
13
|
//# sourceMappingURL=OperationsControls.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"OperationsControls.js","sourceRoot":"","sources":["../../../src/containers/Operations/OperationsControls.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAG/C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAY3B,MAAM,UAAU,kBAAkB,CAAC,EAC/B,IAAI,EACJ,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACI;IACtB,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,MAAM,IACH,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAE,IAAI,CAAC,qBAAqB,CAAC,EACxC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,GACxB,EACF,KAAC,MAAM,IACH,KAAK,EAAE,CAAC,IAAI,CAAC,EACb,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAkB,CAAC,GAClE,EACF,KAAC,aAAa,IACV,KAAK,EAAE,IAAI,CAAC,kBAAkB,CAAC,EAC/B,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,oBAAoB,GAC/B,IACW,CACpB,CAAC;AACN,CAAC"}
|
1
|
+
{"version":3,"file":"OperationsControls.js","sourceRoot":"","sources":["../../../src/containers/Operations/OperationsControls.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAG/C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAE3B,OAAO,mBAAmB,CAAC;AAY3B,MAAM,UAAU,kBAAkB,CAAC,EAC/B,IAAI,EACJ,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACI;IACtB,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,KAAC,MAAM,IACH,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAE,IAAI,CAAC,qBAAqB,CAAC,EACxC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,GACxB,EACF,KAAC,MAAM,IACH,KAAK,EAAE,CAAC,IAAI,CAAC,EACb,KAAK,EAAE,GAAG,EACV,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAkB,CAAC,GAClE,EACF,KAAC,aAAa,IACV,KAAK,EAAE,IAAI,CAAC,kBAAkB,CAAC,EAC/B,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,kBAAkB,EACzB,OAAO,EAAE,oBAAoB,GAC/B,IACW,CACpB,CAAC;AACN,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import { ContentWithPopup } from '../../../components/ContentWithPopup/ContentWithPopup';
|
3
2
|
import { DiskStateProgressBar } from '../../../components/DiskStateProgressBar/DiskStateProgressBar';
|
3
|
+
import { HoverPopup } from '../../../components/HoverPopup/HoverPopup';
|
4
4
|
import { InfoViewer } from '../../../components/InfoViewer';
|
5
5
|
import { InternalLink } from '../../../components/InternalLink';
|
6
6
|
import { ProgressViewer } from '../../../components/ProgressViewer/ProgressViewer';
|
@@ -41,13 +41,13 @@ function Slot({ item, pDiskId, nodeId }) {
|
|
41
41
|
valueIsDefined(nodeId)
|
42
42
|
? getVDiskPagePath(item.SlotData.VDiskSlotId, pDiskId, nodeId)
|
43
43
|
: undefined;
|
44
|
-
return (_jsx(
|
44
|
+
return (_jsx(HoverPopup, { popupContent: _jsx(VDiskInfo, { data: item.SlotData, withTitle: true }), contentClassName: b('vdisk-popup'), placement: ['right', 'top'], children: _jsx(InternalLink, { to: vDiskPagePath, children: _jsx(DiskStateProgressBar, { className: b('slot'), severity: item.Severity, diskAllocatedPercent: item.UsagePercent, content: _jsx(SlotContent, { id: item.Id, title: item.Title, used: item.Used, total: item.Total }) }) }) }));
|
45
45
|
}
|
46
46
|
if (isLogSlot(item)) {
|
47
|
-
return (_jsx(
|
47
|
+
return (_jsx(HoverPopup, { popupContent: _jsx(LogInfo, { data: item.SlotData }), contentClassName: b('vdisk-popup'), placement: ['right', 'top'], children: _jsx(DiskStateProgressBar, { className: b('slot'), severity: item.Severity, diskAllocatedPercent: item.UsagePercent, content: _jsx(SlotContent, { title: pDiskPageKeyset('log'), used: item.Used, total: item.Total }) }) }));
|
48
48
|
}
|
49
49
|
if (isEmptySlot(item)) {
|
50
|
-
return (_jsx(
|
50
|
+
return (_jsx(HoverPopup, { popupContent: _jsx(EmptySlotInfo, { data: item.SlotData }), contentClassName: b('vdisk-popup'), placement: ['right', 'top'], children: _jsx(DiskStateProgressBar, { className: b('slot'), severity: item.Severity, empty: true, content: _jsx(SlotContent, { title: pDiskPageKeyset('empty-slot'),
|
51
51
|
// Empty slots have only total size
|
52
52
|
used: item.Total }) }) }));
|
53
53
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PDiskSpaceDistribution.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"PDiskSpaceDistribution.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AACnG,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AAErE,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAC,SAAS,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAQjD,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,uBAAuB,EAAC,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAExC,OAAO,EAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AAE5D,OAAO,+BAA+B,CAAC;AAEvC,MAAM,CAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC,CAAC;AAE7C,MAAM,WAAW,GAAG,EAAE,CAAC;AAMvB,MAAM,UAAU,sBAAsB,CAAC,EAAC,IAAI,EAA8B;IACtE,MAAM,EAAC,SAAS,EAAC,GAAG,IAAI,CAAC;IAEzB,MAAM,EAAC,OAAO,EAAE,MAAM,EAAC,G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E,IAAI,GAAI,CAAC;AAC5E,CAAC"}
|
@@ -1,29 +1,35 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
|
+
import { Flex, useLayoutContext } from '@gravity-ui/uikit';
|
3
4
|
import { VDisk } from '../../../components/VDisk/VDisk';
|
5
|
+
import { valueIsDefined } from '../../../utils';
|
4
6
|
import { cn } from '../../../utils/cn';
|
5
7
|
import { getPDiskId } from '../../../utils/disks/helpers';
|
6
8
|
import { PDisk } from '../PDisk';
|
7
9
|
import { isVdiskActive } from '../utils';
|
8
10
|
import './Disks.scss';
|
9
11
|
const b = cn('ydb-storage-disks');
|
12
|
+
const VDISKS_CONTAINER_WIDTH = 300;
|
10
13
|
export function Disks({ vDisks = [], viewContext }) {
|
11
14
|
const [highlightedVDisk, setHighlightedVDisk] = React.useState();
|
15
|
+
const { theme: { spaceBaseSize }, } = useLayoutContext();
|
12
16
|
if (!vDisks.length) {
|
13
17
|
return null;
|
14
18
|
}
|
15
|
-
|
19
|
+
const unavailableVDiskWidth = (VDISKS_CONTAINER_WIDTH - spaceBaseSize * (vDisks.length - 1)) / vDisks.length;
|
20
|
+
return (_jsxs("div", { className: b(null), children: [_jsx(Flex, { direction: 'row', gap: 1, grow: true, style: { width: VDISKS_CONTAINER_WIDTH }, children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => (_jsx(VDiskItem, { vDisk: vDisk, inactive: !isVdiskActive(vDisk, viewContext), highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk, unavailableVDiskWidth: unavailableVDiskWidth }, vDisk.StringifiedId))) }), _jsx("div", { className: b('pdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
|
16
21
|
var _a;
|
17
22
|
return (_jsx(PDiskItem, { vDisk: vDisk, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, getPDiskId(vDisk.NodeId, (_a = vDisk === null || vDisk === void 0 ? void 0 : vDisk.PDisk) === null || _a === void 0 ? void 0 : _a.PDiskId)));
|
18
23
|
}) })] }));
|
19
24
|
}
|
20
|
-
function VDiskItem({ vDisk, highlightedVDisk, inactive, setHighlightedVDisk }) {
|
25
|
+
function VDiskItem({ vDisk, highlightedVDisk, inactive, setHighlightedVDisk, unavailableVDiskWidth, }) {
|
21
26
|
// Do not show PDisk popup for VDisk
|
22
27
|
const vDiskToShow = { ...vDisk, PDisk: undefined };
|
23
28
|
const vDiskId = vDisk.StringifiedId;
|
24
|
-
|
25
|
-
|
26
|
-
|
29
|
+
// show vdisks without AllocatedSize as having average width (#1433)
|
30
|
+
const minWidth = valueIsDefined(vDiskToShow.AllocatedSize) ? undefined : unavailableVDiskWidth;
|
31
|
+
const flexGrow = Number(vDiskToShow.AllocatedSize) || 1;
|
32
|
+
return (_jsx("div", { style: { flexGrow, minWidth }, className: b('vdisk-item'), children: _jsx(VDisk, { data: vDiskToShow, compact: true, inactive: inactive, showPopup: highlightedVDisk === vDiskId, onShowPopup: () => setHighlightedVDisk(vDiskId), onHidePopup: () => setHighlightedVDisk(undefined), progressBarClassName: b('vdisk-progress-bar') }) }));
|
27
33
|
}
|
28
34
|
function PDiskItem({ vDisk, highlightedVDisk, setHighlightedVDisk }) {
|
29
35
|
const vDiskId = vDisk.StringifiedId;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Disks.js","sourceRoot":"","sources":["../../../../src/containers/Storage/Disks/Disks.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AAE/B,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,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;IAC/F,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAExD,OAAO,CACH,cAAK,KAAK,EAAE,EAAC,QAAQ,EAAE,QAAQ,EAAC,EAAE,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YACxD,KAAC,KAAK,IACF,IAAI,EAAE,WAAW,EACjB,OAAO,QACP,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,gBAAgB,KAAK,OAAO,EACvC,WAAW,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAC/C,WAAW,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,EACjD,oBAAoB,EAAE,CAAC,CAAC,oBAAoB,CAAC,GAC/C,GACA,CACT,CAAC;AACN,CAAC;AAED,SAAS,SAAS,CAAC,EAAC,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAiB;IAC7E,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC;IAEpC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,KAAC,KAAK,IACF,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,EAC1B,oBAAoB,EAAE,CAAC,CAAC,oBAAoB,CAAC,EAC7C,IAAI,EAAE,KAAK,CAAC,KAAK,EACjB,SAAS,EAAE,gBAAgB,KAAK,OAAO,EACvC,WAAW,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAC/C,WAAW,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,GACnD,CACL,CAAC;AACN,CAAC"}
|
@@ -62,6 +62,7 @@ export const Storage = ({ database, viewContext, nodeId, groupId, pDiskId }) =>
|
|
62
62
|
groupId,
|
63
63
|
pDiskId,
|
64
64
|
shouldUseGroupsHandler: groupsHandlerAvailable,
|
65
|
+
fieldsRequired: 'all',
|
65
66
|
}, {
|
66
67
|
skip: !isGroups || !capabilitiesLoaded,
|
67
68
|
pollingInterval: autoRefreshInterval,
|