ydb-embedded-ui 6.23.1 → 6.24.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +6 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +3 -2
- package/dist/components/PaginatedTable/PaginatedTable.js +15 -21
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +1 -2
- package/dist/components/PaginatedTable/TableChunk.js +5 -19
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/useScrollBasedChunks.d.ts +9 -0
- package/dist/components/PaginatedTable/useScrollBasedChunks.js +35 -0
- package/dist/components/PaginatedTable/useScrollBasedChunks.js.map +1 -0
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/VDisk/VDisk.js +2 -21
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDisk/VDisk.scss +2 -0
- package/dist/components/VDisk/VDiskWithDonorsStack.js +2 -2
- package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
- package/dist/components/VDisk/utils.d.ts +2 -0
- package/dist/components/VDisk/utils.js +23 -0
- package/dist/components/VDisk/utils.js.map +1 -0
- package/dist/components/VDiskInfo/VDiskInfo.js +2 -2
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +2 -3
- package/dist/components/VDiskPopup/VDiskPopup.js +22 -3
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/nodesColumns/columns.d.ts +55 -0
- package/dist/components/nodesColumns/columns.js +187 -0
- package/dist/components/nodesColumns/columns.js.map +1 -0
- package/dist/components/nodesColumns/constants.d.ts +39 -0
- package/dist/components/nodesColumns/constants.js +73 -0
- package/dist/components/nodesColumns/constants.js.map +1 -0
- package/dist/{containers/Nodes/columns → components/nodesColumns}/i18n/en.json +4 -3
- package/dist/components/nodesColumns/i18n/index.d.ts +2 -0
- package/dist/{containers/Nodes/columns → components/nodesColumns}/i18n/index.js +1 -1
- package/dist/components/nodesColumns/i18n/index.js.map +1 -0
- package/dist/components/nodesColumns/types.d.ts +8 -0
- package/dist/components/nodesColumns/types.js.map +1 -0
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +8 -4
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
- package/dist/containers/Authentication/Authentication.js +12 -10
- package/dist/containers/Authentication/Authentication.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +1 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Node/Node.js +1 -1
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +1 -1
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesWrapper.d.ts +2 -2
- package/dist/containers/Nodes/NodesWrapper.js +2 -2
- package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +3 -2
- package/dist/containers/Nodes/PaginatedNodes.js +3 -3
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/columns/columns.d.ts +2 -7
- package/dist/containers/Nodes/columns/columns.js +13 -187
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +1 -38
- package/dist/containers/Nodes/columns/constants.js +0 -68
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/columns/hooks.d.ts +3 -3
- package/dist/containers/Nodes/columns/hooks.js +2 -1
- package/dist/containers/Nodes/columns/hooks.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +2 -2
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +2 -2
- package/dist/containers/Storage/Disks/Disks.js +5 -6
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js +3 -6
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +4 -1
- package/dist/containers/Storage/PaginatedStorage.js +3 -2
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups.js +5 -5
- package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes.js +7 -7
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +3 -1
- package/dist/containers/Storage/Storage.js +3 -3
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageControls/StorageControls.js +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +3 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/StorageGroupsColumns.scss +10 -1
- package/dist/containers/Storage/StorageGroups/columns/columns.js +21 -16
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.js +1 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -2
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +5 -5
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +3 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +3 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +2 -38
- package/dist/containers/Storage/StorageNodes/columns/columns.js +34 -71
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +20 -4
- package/dist/containers/Storage/StorageNodes/columns/constants.js +4 -32
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +2 -39
- package/dist/containers/Storage/StorageNodes/columns/hooks.js +4 -4
- package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +0 -8
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +5 -5
- package/dist/containers/Storage/StorageWrapper.d.ts +6 -3
- package/dist/containers/Storage/StorageWrapper.js +10 -3
- package/dist/containers/Storage/StorageWrapper.js.map +1 -1
- package/dist/containers/Storage/types.d.ts +6 -0
- package/dist/containers/Storage/types.js +2 -0
- package/dist/containers/Storage/types.js.map +1 -0
- package/dist/containers/Storage/utils/index.d.ts +4 -6
- package/dist/containers/Storage/utils/index.js +35 -9
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +2 -2
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +2 -9
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -4
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +4 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +18 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +22 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +23 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +4 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +3 -4
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js +3 -2
- package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +1 -4
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +4 -4
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenants/Tenants.js +10 -2
- package/dist/containers/Tenants/Tenants.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js +3 -4
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/services/api.d.ts +3 -4
- package/dist/services/api.js +1 -3
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -2
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/reducers/cluster/__test__/parseGroupsStatsQueryResponse.test.js +62 -40
- package/dist/store/reducers/cluster/__test__/parseGroupsStatsQueryResponse.test.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.js +0 -1
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/utils.d.ts +1 -1
- package/dist/store/reducers/cluster/utils.js +2 -1
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/executeQuery.d.ts +0 -2
- package/dist/store/reducers/executeQuery.js +1 -2
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +4 -4
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +2 -7
- package/dist/store/reducers/nodes/utils.js +0 -6
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/preview.js +1 -1
- package/dist/store/reducers/preview.js.map +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +0 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +6 -7
- package/dist/store/reducers/storage/utils.js +23 -9
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +0 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +0 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
- package/dist/store/reducers/tenants/types.d.ts +1 -0
- package/dist/store/reducers/tenants/utils.js +4 -2
- package/dist/store/reducers/tenants/utils.js.map +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.js +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.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 +3 -1
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/nodes.d.ts +3 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/query.d.ts +16 -30
- package/dist/types/api/storage.d.ts +2 -2
- package/dist/types/store/query.d.ts +0 -1
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.js +0 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +1 -2
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
- package/dist/utils/disks/calculateVDiskSeverity.js +2 -3
- package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
- package/dist/utils/disks/prepareDisks.js +3 -0
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +1 -0
- package/dist/utils/nodes.d.ts +4 -2
- package/dist/utils/nodes.js +10 -1
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +5 -5
- package/dist/utils/query.js +7 -22
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/query.test.js +221 -56
- package/dist/utils/query.test.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -0
- package/dist/utils/storage.js +3 -0
- package/dist/utils/storage.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/PaginatedTable/useIntersectionObserver.d.ts +0 -9
- package/dist/components/PaginatedTable/useIntersectionObserver.js +0 -28
- package/dist/components/PaginatedTable/useIntersectionObserver.js.map +0 -1
- package/dist/containers/Nodes/columns/i18n/index.d.ts +0 -2
- package/dist/containers/Nodes/columns/i18n/index.js.map +0 -1
- package/dist/containers/Nodes/columns/types.d.ts +0 -9
- package/dist/containers/Nodes/columns/types.js.map +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +0 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +0 -7
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +0 -1
- /package/dist/{containers/Nodes/columns → components/nodesColumns}/types.js +0 -0
@@ -1,8 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
|
-
import {
|
3
|
+
import { VDisk } from '../../../components/VDisk/VDisk';
|
4
4
|
import { cn } from '../../../utils/cn';
|
5
|
-
import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
|
6
5
|
import { getPDiskId } from '../../../utils/disks/helpers';
|
7
6
|
import { PDisk } from '../PDisk';
|
8
7
|
import { isVdiskActive } from '../utils';
|
@@ -13,7 +12,7 @@ export function Disks({ vDisks = [], viewContext }) {
|
|
13
12
|
if (!vDisks.length) {
|
14
13
|
return null;
|
15
14
|
}
|
16
|
-
return (_jsxs("div", { className: b(null), children: [_jsx("div", { className: b('vdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => (_jsx(VDiskItem, { vDisk: vDisk, inactive: !isVdiskActive(vDisk, viewContext), highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk },
|
15
|
+
return (_jsxs("div", { className: b(null), children: [_jsx("div", { className: b('vdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => (_jsx(VDiskItem, { vDisk: vDisk, inactive: !isVdiskActive(vDisk, viewContext), highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, vDisk.StringifiedId))) }), _jsx("div", { className: b('pdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
|
17
16
|
var _a;
|
18
17
|
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)));
|
19
18
|
}) })] }));
|
@@ -21,13 +20,13 @@ export function Disks({ vDisks = [], viewContext }) {
|
|
21
20
|
function VDiskItem({ vDisk, highlightedVDisk, inactive, setHighlightedVDisk }) {
|
22
21
|
// Do not show PDisk popup for VDisk
|
23
22
|
const vDiskToShow = { ...vDisk, PDisk: undefined };
|
24
|
-
const vDiskId =
|
23
|
+
const vDiskId = vDisk.StringifiedId;
|
25
24
|
return (_jsx("div", { style: {
|
26
25
|
flexGrow: Number(vDisk.AllocatedSize) || 1,
|
27
|
-
}, className: b('vdisk-item'), children: _jsx(
|
26
|
+
}, 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') }) }));
|
28
27
|
}
|
29
28
|
function PDiskItem({ vDisk, highlightedVDisk, setHighlightedVDisk }) {
|
30
|
-
const vDiskId =
|
29
|
+
const vDiskId = vDisk.StringifiedId;
|
31
30
|
if (!vDisk.PDisk) {
|
32
31
|
return null;
|
33
32
|
}
|
@@ -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,
|
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,CAAC;AAEvC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAOlC,MAAM,UAAU,KAAK,CAAC,EAAC,MAAM,GAAG,EAAE,EAAE,WAAW,EAAa;IACxD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAsB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IAAI,CAAC;SAC7C,EACD,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAE1B,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"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
|
2
|
-
import type {
|
2
|
+
import type { StorageViewContext } from '../types';
|
3
3
|
import './PDisk.scss';
|
4
4
|
interface PDiskProps {
|
5
5
|
data?: PreparedPDisk;
|
@@ -9,7 +9,7 @@ interface PDiskProps {
|
|
9
9
|
onHidePopup?: VoidFunction;
|
10
10
|
className?: string;
|
11
11
|
progressBarClassName?: string;
|
12
|
-
viewContext?:
|
12
|
+
viewContext?: StorageViewContext;
|
13
13
|
}
|
14
14
|
export declare const PDisk: ({ data, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, viewContext, }: PDiskProps) => import("react/jsx-runtime").JSX.Element;
|
15
15
|
export {};
|
@@ -3,19 +3,16 @@ import React from 'react';
|
|
3
3
|
import { DiskStateProgressBar } from '../../../components/DiskStateProgressBar/DiskStateProgressBar';
|
4
4
|
import { InternalLink } from '../../../components/InternalLink';
|
5
5
|
import { PDiskPopup } from '../../../components/PDiskPopup/PDiskPopup';
|
6
|
-
import {
|
6
|
+
import { VDisk } from '../../../components/VDisk/VDisk';
|
7
7
|
import routes, { createHref, getPDiskPagePath } from '../../../routes';
|
8
|
-
import { useDiskPagesAvailable } from '../../../store/reducers/capabilities/hooks';
|
9
8
|
import { valueIsDefined } from '../../../utils';
|
10
9
|
import { cn } from '../../../utils/cn';
|
11
|
-
import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
|
12
10
|
import { STRUCTURE } from '../../Node/NodePages';
|
13
11
|
import { isVdiskActive } from '../utils';
|
14
12
|
import './PDisk.scss';
|
15
13
|
const b = cn('pdisk-storage');
|
16
14
|
export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, viewContext, }) => {
|
17
15
|
const [isPopupVisible, setIsPopupVisible] = React.useState(false);
|
18
|
-
const diskPagesAvailable = useDiskPagesAvailable();
|
19
16
|
const anchor = React.useRef(null);
|
20
17
|
const { NodeId, PDiskId } = data;
|
21
18
|
const pDiskIdsDefined = valueIsDefined(NodeId) && valueIsDefined(PDiskId);
|
@@ -36,14 +33,14 @@ export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup,
|
|
36
33
|
// 1 is small enough for empty disks to be of the minimum width
|
37
34
|
// but if all of them are empty, `flex-grow: 1` would size them evenly
|
38
35
|
flexGrow: Number(vdisk.AllocatedSize) || 1,
|
39
|
-
}, children: _jsx(
|
36
|
+
}, children: _jsx(VDisk, { data: vdisk, inactive: !isVdiskActive(vdisk, viewContext), compact: true }) }, vdisk.StringifiedId));
|
40
37
|
}) }));
|
41
38
|
};
|
42
39
|
let pDiskPath;
|
43
40
|
if (pDiskIdsDefined) {
|
44
41
|
pDiskPath = createHref(routes.node, { id: NodeId, activeTab: STRUCTURE }, { pdiskId: PDiskId });
|
45
42
|
}
|
46
|
-
if (pDiskIdsDefined
|
43
|
+
if (pDiskIdsDefined) {
|
47
44
|
pDiskPath = getPDiskPagePath(PDiskId, NodeId);
|
48
45
|
}
|
49
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 })] }));
|
@@ -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,
|
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,C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C7B,YAAY,EAAE,eAAe,aAE7B,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"}
|
@@ -1,8 +1,11 @@
|
|
1
|
+
import type { StorageViewContext } from './types';
|
1
2
|
export interface PaginatedStorageProps {
|
2
3
|
database?: string;
|
3
4
|
nodeId?: string | number;
|
4
5
|
groupId?: string | number;
|
5
6
|
pDiskId?: string | number;
|
6
|
-
|
7
|
+
viewContext: StorageViewContext;
|
8
|
+
parentRef?: React.RefObject<HTMLElement>;
|
9
|
+
initialEntitiesCount?: number;
|
7
10
|
}
|
8
11
|
export declare const PaginatedStorage: (props: PaginatedStorageProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -2,12 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { PaginatedStorageGroups } from './PaginatedStorageGroups';
|
3
3
|
import { PaginatedStorageNodes } from './PaginatedStorageNodes';
|
4
4
|
import { useStorageQueryParams } from './useStorageQueryParams';
|
5
|
+
import { getStorageGroupsInitialEntitiesCount, getStorageNodesInitialEntitiesCount } from './utils';
|
5
6
|
export const PaginatedStorage = (props) => {
|
6
7
|
const { storageType } = useStorageQueryParams();
|
7
8
|
const isNodes = storageType === 'nodes';
|
8
9
|
if (isNodes) {
|
9
|
-
return _jsx(PaginatedStorageNodes, { ...props });
|
10
|
+
return (_jsx(PaginatedStorageNodes, { initialEntitiesCount: getStorageNodesInitialEntitiesCount(props.viewContext), ...props }));
|
10
11
|
}
|
11
|
-
return _jsx(PaginatedStorageGroups, { ...props });
|
12
|
+
return (_jsx(PaginatedStorageGroups, { initialEntitiesCount: getStorageGroupsInitialEntitiesCount(props.viewContext), ...props }));
|
12
13
|
};
|
13
14
|
//# sourceMappingURL=PaginatedStorage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaginatedStorage.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;
|
1
|
+
{"version":3,"file":"PaginatedStorage.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,oCAAoC,EAAE,mCAAmC,EAAC,MAAM,SAAS,CAAC;AAelG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAC7D,MAAM,EAAC,WAAW,EAAC,GAAG,qBAAqB,EAAE,CAAC;IAE9C,MAAM,OAAO,GAAG,WAAW,KAAK,OAAO,CAAC;IAExC,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,CACH,KAAC,qBAAqB,IAClB,oBAAoB,EAAE,mCAAmC,CAAC,KAAK,CAAC,WAAW,CAAC,KACxE,KAAK,GACX,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,sBAAsB,IACnB,oBAAoB,EAAE,oCAAoC,CAAC,KAAK,CAAC,WAAW,CAAC,KACzE,KAAK,GACX,CACL,CAAC;AACN,CAAC,CAAC"}
|
@@ -34,23 +34,23 @@ export function PaginatedStorageGroups(props) {
|
|
34
34
|
};
|
35
35
|
return _jsx(LoaderWrapper, { loading: !capabilitiesLoaded, children: renderContent() });
|
36
36
|
}
|
37
|
-
function StorageGroupsComponent({ database, nodeId, groupId, pDiskId,
|
37
|
+
function StorageGroupsComponent({ database, nodeId, groupId, pDiskId, viewContext, parentRef, initialEntitiesCount, }) {
|
38
38
|
const { searchValue, visibleEntities, handleShowAllGroups } = useStorageQueryParams();
|
39
39
|
const { columnsToShow, columnsToSelect, setColumns } = useStorageGroupsSelectedColumns({
|
40
40
|
visibleEntities,
|
41
|
-
|
41
|
+
viewContext,
|
42
42
|
});
|
43
43
|
const renderControls = ({ totalEntities, foundEntities, inited }) => {
|
44
44
|
return (_jsx(StorageGroupsControls, { withTypeSelector: true, withGroupBySelect: true, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns }));
|
45
45
|
};
|
46
|
-
return (_jsx(PaginatedStorageGroupsTable, { database: database, nodeId: nodeId, groupId: groupId, pDiskId: pDiskId, searchValue: searchValue, visibleEntities: visibleEntities, onShowAll: handleShowAllGroups,
|
46
|
+
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
47
|
}
|
48
|
-
function GroupedStorageGroupsComponent({ database, nodeId, groupId, pDiskId, }) {
|
48
|
+
function GroupedStorageGroupsComponent({ database, nodeId, groupId, pDiskId, viewContext, }) {
|
49
49
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
50
50
|
const { searchValue, storageGroupsGroupByParam, visibleEntities, handleShowAllGroups } = useStorageQueryParams();
|
51
51
|
const { columnsToShow, columnsToSelect, setColumns } = useStorageGroupsSelectedColumns({
|
52
52
|
visibleEntities,
|
53
|
-
|
53
|
+
viewContext,
|
54
54
|
});
|
55
55
|
const { currentData, isFetching, error } = storageApi.useGetStorageGroupsInfoQuery({
|
56
56
|
database,
|
@@ -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,EAAC,CAAC,EAAE,gCAAgC,EAAC,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAE9D,OAAO,gBAAgB,CAAC;AAExB,MAAM,UAAU,sBAAsB,CAAC,KAA4B;IAC/D,MAAM,EAAC,yBAAyB,EAAE,eAAe,EAAE,mBAAmB,EAAC,GACnE,qBAAqB,EAAE,CAAC;IAE5B,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IACnD,MAAM,gCAAgC,GAAG,kCAAkC,EAAE,CAAC;IAE9E,yCAAyC;IACzC,mCAAmC;IACnC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,gCAAgC,IAAI,eAAe,KAAK,KAAK,EAAE,CAAC;YAChE,mBAAmB,EAAE,CAAC;QAC1B,CAAC;IACL,CAAC,EAAE,CAAC,mBAAmB,EAAE,gCAAgC,EAAE,eAAe,CAAC,CAAC,CAAC;IAE7E,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,gCAAgC,IAAI,yBAAyB,EAAE,CAAC;YAChE,OAAO,KAAC,6BAA6B,OAAK,KAAK,GAAI,CAAC;QACxD,CAAC;QAED,OAAO,KAAC,sBAAsB,OAAK,KAAK,GAAI,CAAC;IACjD,CAAC,CAAC;IAEF,OAAO,KAAC,aAAa,IAAC,OAAO,EAAE,CAAC,kBAAkB,YAAG,aAAa,EAAE,GAAiB,CAAC;AAC1F,CAAC;AAED,SAAS,sBAAsB,CAAC,EAC5B,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,
|
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,CA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EtC,KAAC,2BAA2B,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"}
|
@@ -39,23 +39,23 @@ export const PaginatedStorageNodes = (props) => {
|
|
39
39
|
};
|
40
40
|
return _jsx(LoaderWrapper, { loading: !capabilitiesLoaded, children: renderContent() });
|
41
41
|
};
|
42
|
-
function StorageNodesComponent({ database, nodeId, groupId,
|
42
|
+
function StorageNodesComponent({ database, nodeId, groupId, viewContext, parentRef, initialEntitiesCount, }) {
|
43
43
|
const { searchValue, visibleEntities, nodesUptimeFilter, handleShowAllNodes } = useStorageQueryParams();
|
44
44
|
const { columnsToShow, columnsToSelect, setColumns } = useStorageNodesColumnsToSelect({
|
45
45
|
database,
|
46
|
-
|
46
|
+
viewContext,
|
47
47
|
});
|
48
48
|
const renderControls = ({ totalEntities, foundEntities, inited }) => {
|
49
49
|
return (_jsx(StorageNodesControls, { withTypeSelector: true, withGroupBySelect: true, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited, columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns }));
|
50
50
|
};
|
51
|
-
return (_jsx(PaginatedStorageNodesTable, { database: database, nodeId: nodeId, groupId: groupId, searchValue: searchValue, visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, onShowAll: handleShowAllNodes,
|
51
|
+
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
52
|
}
|
53
|
-
function GroupedStorageNodesComponent({ database, groupId, nodeId }) {
|
53
|
+
function GroupedStorageNodesComponent({ database, groupId, nodeId, viewContext, }) {
|
54
54
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
55
55
|
const { searchValue, storageNodesGroupByParam, handleShowAllNodes } = useStorageQueryParams();
|
56
56
|
const { columnsToShow, columnsToSelect, setColumns } = useStorageNodesColumnsToSelect({
|
57
57
|
database,
|
58
|
-
|
58
|
+
viewContext,
|
59
59
|
});
|
60
60
|
const { currentData, isFetching, error } = storageApi.useGetStorageNodesInfoQuery({
|
61
61
|
database,
|
@@ -84,7 +84,7 @@ function GroupedStorageNodesComponent({ database, groupId, nodeId }) {
|
|
84
84
|
};
|
85
85
|
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), error ? _jsx(ResponseError, { error: error }) : null, _jsx(TableWithControlsLayout.Table, { loading: isLoading, className: b('groups-wrapper'), children: renderGroups() })] }));
|
86
86
|
}
|
87
|
-
function useStorageNodesColumnsToSelect({ database,
|
87
|
+
function useStorageNodesColumnsToSelect({ database, viewContext, }) {
|
88
88
|
const { balancer } = useClusterBaseInfo();
|
89
89
|
const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
|
90
90
|
const { visibleEntities } = useStorageQueryParams();
|
@@ -92,7 +92,7 @@ function useStorageNodesColumnsToSelect({ database, groupId, }) {
|
|
92
92
|
additionalNodesProps,
|
93
93
|
visibleEntities,
|
94
94
|
database,
|
95
|
-
|
95
|
+
viewContext,
|
96
96
|
});
|
97
97
|
}
|
98
98
|
//# sourceMappingURL=PaginatedStorageNodes.js.map
|
@@ -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,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,i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OAAO,EAAE,aAAa,EACtB,oBAAoB,EAAE,KAAK,GAC7B,IApBG,IAAI,CAqBA,CAChB,CAAC;YACN,CAAC,CAAC,CAAC;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,9 +1,11 @@
|
|
1
|
+
import type { StorageViewContext } from './types';
|
1
2
|
import './Storage.scss';
|
2
3
|
interface StorageProps {
|
3
4
|
database?: string;
|
4
5
|
nodeId?: string | number;
|
5
6
|
groupId?: string | number;
|
6
7
|
pDiskId?: string | number;
|
8
|
+
viewContext: StorageViewContext;
|
7
9
|
}
|
8
|
-
export declare const Storage: ({ database, nodeId, groupId, pDiskId }: StorageProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export declare const Storage: ({ database, viewContext, nodeId, groupId, pDiskId }: StorageProps) => import("react/jsx-runtime").JSX.Element;
|
9
11
|
export {};
|
@@ -19,7 +19,7 @@ import { b } from './shared';
|
|
19
19
|
import { useStorageQueryParams } from './useStorageQueryParams';
|
20
20
|
import { defaultSortNode, getDefaultSortGroup } from './utils';
|
21
21
|
import './Storage.scss';
|
22
|
-
export const Storage = ({ database, nodeId, groupId, pDiskId }) => {
|
22
|
+
export const Storage = ({ database, viewContext, nodeId, groupId, pDiskId }) => {
|
23
23
|
var _a, _b;
|
24
24
|
const { balancer } = useClusterBaseInfo();
|
25
25
|
const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
|
@@ -43,9 +43,9 @@ export const Storage = ({ database, nodeId, groupId, pDiskId }) => {
|
|
43
43
|
additionalNodesProps,
|
44
44
|
visibleEntities,
|
45
45
|
database,
|
46
|
-
|
46
|
+
viewContext,
|
47
47
|
});
|
48
|
-
const { columnsToShow: storageGroupsColumnsToShow, columnsToSelect: storageGroupsColumnsToSelect, setColumns: setStorageGroupsSelectedColumns, } = useStorageGroupsSelectedColumns({ visibleEntities,
|
48
|
+
const { columnsToShow: storageGroupsColumnsToShow, columnsToSelect: storageGroupsColumnsToSelect, setColumns: setStorageGroupsSelectedColumns, } = useStorageGroupsSelectedColumns({ visibleEntities, viewContext });
|
49
49
|
const nodesQuery = storageApi.useGetStorageNodesInfoQuery({
|
50
50
|
database,
|
51
51
|
with: visibleEntities,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/containers/Storage/Storage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB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pB,CAAC;IACN,CAAC,CAAC;IAEF,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,IAAC,QAAQ,EAAC,MAAM,GAAG,CAAC;IAC5C,CAAC;IAED,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,IAC1B,OAAO,EAAE,SAAS,IAAI,CAAC,kBAAkB,EACzC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAEpB,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,GACX,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -16,13 +16,13 @@ export function StorageGroupsControls({ withTypeSelector, withGroupBySelect, ent
|
|
16
16
|
const handleGroupBySelectUpdate = (value) => {
|
17
17
|
handleStorageGroupsGroupByParamChange(value[0]);
|
18
18
|
};
|
19
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Search, { value: searchValue, onChange: handleTextFilterChange, placeholder: i18n('controls_groups-search-placeholder'), className: b('search') }), withTypeSelector && (_jsx(StorageTypeFilter, { value: storageType, onChange: handleStorageTypeChange })), withGroupBySelect ? null : (_jsx(StorageVisibleEntitiesFilter, { value: visibleEntities, onChange: handleVisibleEntitiesChange })), _jsx(EntitiesCount, { label: i18n('groups'), loading: entitiesLoading, total: entitiesCountTotal, current: entitiesCountCurrent }), _jsx(TableColumnSetup, { popupWidth: 200, items: columnsToSelect, showStatus: true, onUpdate: handleSelectedColumnsUpdate, sortable: false }), withGroupBySelect ? (_jsxs(React.Fragment, { children: [_jsx(Text, { variant: "body-2", children: i18n('controls_group-by-placeholder') }), _jsx(Select, { hasClear: true, placeholder: '-', width:
|
19
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Search, { value: searchValue, onChange: handleTextFilterChange, placeholder: i18n('controls_groups-search-placeholder'), className: b('search') }), withTypeSelector && (_jsx(StorageTypeFilter, { value: storageType, onChange: handleStorageTypeChange })), withGroupBySelect ? null : (_jsx(StorageVisibleEntitiesFilter, { value: visibleEntities, onChange: handleVisibleEntitiesChange })), _jsx(EntitiesCount, { label: i18n('groups'), loading: entitiesLoading, total: entitiesCountTotal, current: entitiesCountCurrent }), _jsx(TableColumnSetup, { popupWidth: 200, items: columnsToSelect, showStatus: true, onUpdate: handleSelectedColumnsUpdate, sortable: false }), withGroupBySelect ? (_jsxs(React.Fragment, { children: [_jsx(Text, { variant: "body-2", children: i18n('controls_group-by-placeholder') }), _jsx(Select, { hasClear: true, placeholder: '-', width: 150, defaultValue: storageGroupsGroupByParam ? [storageGroupsGroupByParam] : undefined, onUpdate: handleGroupBySelectUpdate, options: STORAGE_GROUPS_GROUP_BY_OPTIONS })] })) : null] }));
|
20
20
|
}
|
21
21
|
export function StorageNodesControls({ withTypeSelector, withGroupBySelect, entitiesCountCurrent, entitiesCountTotal, entitiesLoading, columnsToSelect, handleSelectedColumnsUpdate, }) {
|
22
22
|
const { searchValue, storageType, visibleEntities, nodesUptimeFilter, storageNodesGroupByParam, handleTextFilterChange, handleStorageTypeChange, handleVisibleEntitiesChange, handleUptimeFilterChange, handleStorageNodesGroupByParamChange, } = useStorageQueryParams();
|
23
23
|
const handleGroupBySelectUpdate = (value) => {
|
24
24
|
handleStorageNodesGroupByParamChange(value[0]);
|
25
25
|
};
|
26
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Search, { value: searchValue, onChange: handleTextFilterChange, placeholder: i18n('controls_nodes-search-placeholder'), className: b('search') }), withTypeSelector && (_jsx(StorageTypeFilter, { value: storageType, onChange: handleStorageTypeChange })), withGroupBySelect ? null : (_jsx(StorageVisibleEntitiesFilter, { value: visibleEntities, onChange: handleVisibleEntitiesChange })), withGroupBySelect ? null : (_jsx(UptimeFilter, { value: nodesUptimeFilter, onChange: handleUptimeFilterChange })), _jsx(EntitiesCount, { label: i18n('nodes'), loading: entitiesLoading, total: entitiesCountTotal, current: entitiesCountCurrent }), _jsx(TableColumnSetup, { popupWidth: 200, items: columnsToSelect, showStatus: true, onUpdate: handleSelectedColumnsUpdate, sortable: false }), withGroupBySelect ? (_jsxs(React.Fragment, { children: [_jsx(Text, { variant: "body-2", children: i18n('controls_group-by-placeholder') }), _jsx(Select, { hasClear: true, placeholder: '-', width:
|
26
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Search, { value: searchValue, onChange: handleTextFilterChange, placeholder: i18n('controls_nodes-search-placeholder'), className: b('search') }), withTypeSelector && (_jsx(StorageTypeFilter, { value: storageType, onChange: handleStorageTypeChange })), withGroupBySelect ? null : (_jsx(StorageVisibleEntitiesFilter, { value: visibleEntities, onChange: handleVisibleEntitiesChange })), withGroupBySelect ? null : (_jsx(UptimeFilter, { value: nodesUptimeFilter, onChange: handleUptimeFilterChange })), _jsx(EntitiesCount, { label: i18n('nodes'), loading: entitiesLoading, total: entitiesCountTotal, current: entitiesCountCurrent }), _jsx(TableColumnSetup, { popupWidth: 200, items: columnsToSelect, showStatus: true, onUpdate: handleSelectedColumnsUpdate, sortable: false }), withGroupBySelect ? (_jsxs(React.Fragment, { children: [_jsx(Text, { variant: "body-2", children: i18n('controls_group-by-placeholder') }), _jsx(Select, { hasClear: true, placeholder: '-', width: 150, defaultValue: storageNodesGroupByParam ? [storageNodesGroupByParam] : undefined, onUpdate: handleGroupBySelectUpdate, options: STORAGE_NODES_GROUP_BY_OPTIONS })] })) : null] }));
|
27
27
|
}
|
28
28
|
//# sourceMappingURL=StorageControls.js.map
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import type { RenderControls, RenderErrorMessage } from '../../../components/PaginatedTable';
|
2
3
|
import type { VisibleEntities } from '../../../store/reducers/storage/types';
|
3
4
|
import type { GroupsGroupByField } from '../../../types/api/storage';
|
@@ -13,10 +14,10 @@ interface PaginatedStorageGroupsTableProps {
|
|
13
14
|
searchValue: string;
|
14
15
|
visibleEntities: VisibleEntities;
|
15
16
|
onShowAll: VoidFunction;
|
16
|
-
|
17
|
+
parentRef?: React.RefObject<HTMLElement>;
|
17
18
|
renderControls?: RenderControls;
|
18
19
|
renderErrorMessage: RenderErrorMessage;
|
19
20
|
initialEntitiesCount?: number;
|
20
21
|
}
|
21
|
-
export declare const PaginatedStorageGroupsTable: ({ columns, database, nodeId, groupId, pDiskId, filterGroup, filterGroupBy, searchValue, visibleEntities, onShowAll,
|
22
|
+
export declare const PaginatedStorageGroupsTable: ({ columns, database, nodeId, groupId, pDiskId, filterGroup, filterGroupBy, searchValue, visibleEntities, onShowAll, parentRef, renderControls, renderErrorMessage, initialEntitiesCount, }: PaginatedStorageGroupsTableProps) => import("react/jsx-runtime").JSX.Element;
|
22
23
|
export {};
|
@@ -8,7 +8,7 @@ import { StorageGroupsEmptyDataMessage } from './StorageGroupsEmptyDataMessage';
|
|
8
8
|
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
|
9
9
|
import { useGroupsGetter } from './getGroups';
|
10
10
|
import i18n from './i18n';
|
11
|
-
export const PaginatedStorageGroupsTable = ({ columns, database, nodeId, groupId, pDiskId, filterGroup, filterGroupBy, searchValue, visibleEntities, onShowAll,
|
11
|
+
export const PaginatedStorageGroupsTable = ({ columns, database, nodeId, groupId, pDiskId, filterGroup, filterGroupBy, searchValue, visibleEntities, onShowAll, parentRef, renderControls, renderErrorMessage, initialEntitiesCount, }) => {
|
12
12
|
const capabilitiesLoaded = useCapabilitiesLoaded();
|
13
13
|
const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
|
14
14
|
const fetchData = useGroupsGetter(groupsHandlerAvailable);
|
@@ -39,6 +39,6 @@ export const PaginatedStorageGroupsTable = ({ columns, database, nodeId, groupId
|
|
39
39
|
}
|
40
40
|
return i18n('empty.default');
|
41
41
|
};
|
42
|
-
return (_jsx(LoaderWrapper, { loading: !capabilitiesLoaded, children: _jsx(ResizeablePaginatedTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY,
|
42
|
+
return (_jsx(LoaderWrapper, { loading: !capabilitiesLoaded, children: _jsx(ResizeablePaginatedTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, parentRef: parentRef, columns: columns, fetchData: fetchData, limit: 50, initialEntitiesCount: initialEntitiesCount, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, filters: tableFilters, tableName: "storage-groups" }) }));
|
43
43
|
};
|
44
44
|
//# sourceMappingURL=PaginatedStorageGroupsTable.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaginatedStorageGroupsTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAE9E,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAI3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAuB1B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EACxC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,EACb,WAAW,EACX,eAAe,EACf,SAAS,EACT,
|
1
|
+
{"version":3,"file":"PaginatedStorageGroupsTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAE9E,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAI3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAuB1B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EACxC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,EACb,WAAW,EACX,eAAe,EACf,SAAS,EACT,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,oBAAoB,GACW,EAAE,EAAE;IACnC,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IACnD,MAAM,sBAAsB,GAAG,gCAAgC,EAAE,CAAC;IAElE,MAAM,SAAS,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAE1D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO;YACH,WAAW;YACX,eAAe;YACf,QAAQ;YACR,MAAM;YACN,OAAO;YACP,OAAO;YACP,WAAW;YACX,aAAa;SAChB,CAAC;IACN,CAAC,EAAE;QACC,WAAW;QACX,eAAe;QACf,QAAQ;QACR,MAAM;QACN,OAAO;QACP,OAAO;QACP,WAAW;QACX,aAAa;KAChB,CAAC,CAAC;IAEH,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;YAC3C,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,aAAa,IAAC,OAAO,EAAE,CAAC,kBAAkB,YACvC,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,mCAAmC,EACtD,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,EACT,oBAAoB,EAAE,oBAAoB,EAC1C,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,gBAAgB,GAC5B,GACU,CACnB,CAAC;AACN,CAAC,CAAC"}
|
@@ -12,12 +12,12 @@ import { getStorageGroupPath } from '../../../../routes';
|
|
12
12
|
import { valueIsDefined } from '../../../../utils';
|
13
13
|
import { cn } from '../../../../utils/cn';
|
14
14
|
import { EMPTY_DATA_PLACEHOLDER } from '../../../../utils/constants';
|
15
|
-
import { formatNumber
|
16
|
-
import { isSortableStorageProperty } from '../../../../utils/storage';
|
17
|
-
import { formatToMs
|
15
|
+
import { formatNumber } from '../../../../utils/dataFormatters/dataFormatters';
|
16
|
+
import { getSpaceUsageSeverity, isSortableStorageProperty } from '../../../../utils/storage';
|
17
|
+
import { formatToMs } from '../../../../utils/timeParsers';
|
18
18
|
import { bytesToGB, bytesToSpeed } from '../../../../utils/utils';
|
19
19
|
import { Disks } from '../../Disks/Disks';
|
20
|
-
import { getDegradedSeverity,
|
20
|
+
import { getDegradedSeverity, isVdiskActive } from '../../utils';
|
21
21
|
import i18n from '../i18n';
|
22
22
|
import { STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES } from './constants';
|
23
23
|
import './StorageGroupsColumns.scss';
|
@@ -27,9 +27,7 @@ const poolNameColumn = {
|
|
27
27
|
header: STORAGE_GROUPS_COLUMNS_TITLES.PoolName,
|
28
28
|
width: 250,
|
29
29
|
render: ({ row }) => {
|
30
|
-
|
31
|
-
const splitted = (_a = row.PoolName) === null || _a === void 0 ? void 0 : _a.split('/');
|
32
|
-
return (splitted && (_jsx(CellWithPopover, { wrapperClassName: b('pool-name-wrapper'), content: row.PoolName, placement: ['right'], behavior: PopoverBehavior.Immediate, children: splitted[splitted.length - 1] })));
|
30
|
+
return row.PoolName ? (_jsx(CellWithPopover, { content: row.PoolName, placement: ['right'], behavior: PopoverBehavior.Immediate, className: b('pool-name-wrapper'), children: _jsx("span", { className: b('pool-name'), children: row.PoolName }) })) : (EMPTY_DATA_PLACEHOLDER);
|
33
31
|
},
|
34
32
|
align: DataTable.LEFT,
|
35
33
|
};
|
@@ -62,15 +60,21 @@ const degradedColumn = {
|
|
62
60
|
const usageColumn = {
|
63
61
|
name: STORAGE_GROUPS_COLUMNS_IDS.Usage,
|
64
62
|
header: STORAGE_GROUPS_COLUMNS_TITLES.Usage,
|
65
|
-
width:
|
63
|
+
width: 85,
|
64
|
+
resizeMinWidth: 75,
|
65
|
+
render: ({ row }) => {
|
66
|
+
return valueIsDefined(row.Usage) ? (_jsx(UsageLabel, { value: Math.floor(row.Usage), theme: getSpaceUsageSeverity(row.Usage) })) : (EMPTY_DATA_PLACEHOLDER);
|
67
|
+
},
|
68
|
+
align: DataTable.LEFT,
|
69
|
+
};
|
70
|
+
const diskSpaceUsageColumn = {
|
71
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.DiskSpaceUsage,
|
72
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.DiskSpaceUsage,
|
73
|
+
width: 115,
|
66
74
|
resizeMinWidth: 75,
|
67
75
|
render: ({ row }) => {
|
68
|
-
|
69
|
-
// but the absence of a value is more clear
|
70
|
-
return row.Limit ? (_jsx(UsageLabel, { value: row.Usage, theme: getUsageSeverityForStorageGroup(row.Usage) })) : ('-');
|
76
|
+
return valueIsDefined(row.DiskSpaceUsage) ? (_jsx(UsageLabel, { value: Math.floor(row.DiskSpaceUsage), theme: getSpaceUsageSeverity(row.DiskSpaceUsage) })) : (EMPTY_DATA_PLACEHOLDER);
|
71
77
|
},
|
72
|
-
// without a limit exclude usage from sort to display at the bottom
|
73
|
-
sortAccessor: (row) => (row.Limit ? row.Usage : null),
|
74
78
|
align: DataTable.LEFT,
|
75
79
|
};
|
76
80
|
const groupIdColumn = {
|
@@ -134,7 +138,7 @@ const latencyColumn = {
|
|
134
138
|
width: 100,
|
135
139
|
render: ({ row }) => {
|
136
140
|
return valueIsDefined(row.LatencyPutTabletLogMs)
|
137
|
-
? formatToMs(
|
141
|
+
? formatToMs(row.LatencyPutTabletLogMs)
|
138
142
|
: EMPTY_DATA_PLACEHOLDER;
|
139
143
|
},
|
140
144
|
align: DataTable.RIGHT,
|
@@ -156,7 +160,7 @@ const getVDisksColumn = (data) => ({
|
|
156
160
|
className: b('vdisks-column'),
|
157
161
|
render: ({ row }) => {
|
158
162
|
var _a;
|
159
|
-
return (_jsx("div", { className: b('vdisks-wrapper'), children: (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.map((vDisk) => (_jsx(VDiskWithDonorsStack, { data: vDisk, inactive: !isVdiskActive(vDisk, data), className: b('vdisks-item') },
|
163
|
+
return (_jsx("div", { className: b('vdisks-wrapper'), children: (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.map((vDisk) => (_jsx(VDiskWithDonorsStack, { data: vDisk, inactive: !isVdiskActive(vDisk, data === null || data === void 0 ? void 0 : data.viewContext), className: b('vdisks-item') }, vDisk.StringifiedId))) }));
|
160
164
|
},
|
161
165
|
align: DataTable.CENTER,
|
162
166
|
width: 900,
|
@@ -168,7 +172,7 @@ const getDisksColumn = (data) => ({
|
|
168
172
|
header: STORAGE_GROUPS_COLUMNS_TITLES.VDisksPDisks,
|
169
173
|
className: b('disks-column'),
|
170
174
|
render: ({ row }) => {
|
171
|
-
return _jsx(Disks, { vDisks: row.VDisks, viewContext: data });
|
175
|
+
return _jsx(Disks, { vDisks: row.VDisks, viewContext: data === null || data === void 0 ? void 0 : data.viewContext });
|
172
176
|
},
|
173
177
|
align: DataTable.CENTER,
|
174
178
|
width: 900,
|
@@ -199,6 +203,7 @@ export const getStorageGroupsColumns = (data) => {
|
|
199
203
|
erasureColumn,
|
200
204
|
degradedColumn,
|
201
205
|
usageColumn,
|
206
|
+
diskSpaceUsageColumn,
|
202
207
|
usedColumn,
|
203
208
|
limitColumn,
|
204
209
|
usedSpaceFlagColumn,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,YAAY,
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAE,yBAAyB,EAAC,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,mBAAmB,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AAC/D,OAAO,IAAI,MAAM,SAAS,CAAC;AAE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