ydb-embedded-ui 6.30.0 → 6.32.0-hotfix.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
- package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js +9 -5
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js.map +1 -1
- package/dist/components/CellWithPopover/CellWithPopover.d.ts +2 -1
- package/dist/components/CellWithPopover/CellWithPopover.js +2 -2
- package/dist/components/CellWithPopover/CellWithPopover.js.map +1 -1
- package/dist/components/CellWithPopover/CellWithPopover.scss +4 -0
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +4 -0
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +9 -5
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +9 -9
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +1 -1
- package/dist/components/ProgressViewer/ProgressViewer.d.ts +2 -1
- package/dist/components/ProgressViewer/ProgressViewer.js +2 -2
- package/dist/components/ProgressViewer/ProgressViewer.js.map +1 -1
- package/dist/components/Search/Search.d.ts +3 -1
- package/dist/components/Search/Search.js +2 -2
- package/dist/components/Search/Search.js.map +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js +1 -1
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +23 -8
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/en.json +3 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.d.ts +1 -1
- package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.d.ts +4 -0
- package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.js +1 -1
- package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.js.map +1 -1
- package/dist/components/VDiskInfo/VDiskInfo.js +1 -2
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.js +1 -9
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/nodesColumns/NodesColumns.scss +6 -0
- package/dist/components/nodesColumns/columns.d.ts +10 -0
- package/dist/components/nodesColumns/columns.js +56 -4
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/constants.d.ts +8 -0
- package/dist/components/nodesColumns/constants.js +20 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +7 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/i18n/index.d.ts +1 -1
- package/dist/containers/Header/Header.js +2 -9
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +11 -33
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/Nodes.scss +4 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +11 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.js +24 -0
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -0
- package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -2
- package/dist/containers/Nodes/PaginatedNodes.js +78 -54
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodesTable.d.ts +22 -0
- package/dist/containers/Nodes/PaginatedNodesTable.js +30 -0
- package/dist/containers/Nodes/PaginatedNodesTable.js.map +1 -0
- package/dist/containers/Nodes/columns/columns.js +3 -1
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +4 -0
- package/dist/containers/Nodes/columns/constants.js +29 -1
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/getNodes.js +6 -7
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/Nodes/i18n/en.json +5 -1
- package/dist/containers/Nodes/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/i18n/index.js +1 -2
- package/dist/containers/Nodes/i18n/index.js.map +1 -1
- package/dist/containers/Nodes/shared.d.ts +5 -0
- package/dist/containers/Nodes/shared.js +16 -0
- package/dist/containers/Nodes/shared.js.map +1 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +9 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.js +34 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -0
- package/dist/containers/Operations/Operations.js +3 -3
- package/dist/containers/Operations/Operations.js.map +1 -1
- package/dist/containers/Operations/OperationsControls.d.ts +1 -1
- package/dist/containers/Operations/columns.d.ts +6 -2
- package/dist/containers/Operations/columns.js +45 -4
- package/dist/containers/Operations/columns.js.map +1 -1
- package/dist/containers/Operations/constants.d.ts +1 -1
- package/dist/containers/Operations/i18n/en.json +7 -1
- package/dist/containers/Operations/i18n/index.d.ts +1 -1
- package/dist/containers/Operations/useOperationsQueryParams.d.ts +1 -1
- package/dist/containers/Storage/Disks/Disks.js +1 -2
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes.js +1 -2
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageControls/StorageControls.js +2 -2
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js +3 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.js +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/utils/index.d.ts +1 -1
- package/dist/containers/Tablets/TabletsTable.js +3 -1
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +2 -2
- package/dist/containers/Tenant/Query/Issues/Issues.d.ts +4 -2
- package/dist/containers/Tenant/Query/Issues/Issues.js +7 -7
- package/dist/containers/Tenant/Query/Issues/Issues.js.map +1 -1
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -1
- package/dist/containers/Tenant/i18n/en.json +1 -0
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +5 -1
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js +5 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
- package/dist/services/api.d.ts +3 -1
- package/dist/services/api.js +12 -0
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/node/selectors.js +5 -5
- package/dist/store/reducers/node/selectors.js.map +1 -1
- package/dist/store/reducers/node/types.d.ts +3 -4
- package/dist/store/reducers/nodes/types.d.ts +3 -1
- package/dist/store/reducers/nodes/utils.d.ts +1 -1
- package/dist/store/reducers/nodes/utils.js +9 -4
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/operations.d.ts +6 -0
- package/dist/store/reducers/operations.js +41 -0
- package/dist/store/reducers/operations.js.map +1 -0
- package/dist/store/reducers/pdisk/utils.js +6 -3
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/settings/hooks.d.ts +5 -0
- package/dist/store/reducers/settings/hooks.js +14 -0
- package/dist/store/reducers/settings/hooks.js.map +1 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +1 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +354 -0
- package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +37 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js +72 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -0
- package/dist/store/reducers/storage/utils.js +7 -28
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
- package/dist/store/reducers/vdisk/utils.js +3 -3
- package/dist/store/reducers/vdisk/utils.js.map +1 -1
- package/dist/types/api/error.d.ts +4 -1
- package/dist/types/api/nodes.d.ts +4 -2
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/{operationList.d.ts → operations.d.ts} +8 -0
- package/dist/types/api/{operationList.js → operations.js} +1 -1
- package/dist/types/api/operations.js.map +1 -0
- package/dist/types/api/pdisk.d.ts +1 -1
- package/dist/types/api/storage.d.ts +2 -2
- package/dist/utils/developerUI/__test__/developerUI.test.js +21 -1
- package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -0
- package/dist/utils/developerUI/developerUI.js +3 -0
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +10 -7
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js.map +1 -1
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +8 -23
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
- package/dist/utils/disks/__test__/prepareDisks.test.d.ts +1 -0
- package/dist/utils/disks/__test__/prepareDisks.test.js +200 -0
- package/dist/utils/disks/__test__/prepareDisks.test.js.map +1 -0
- package/dist/utils/disks/calculatePDiskSeverity.d.ts +5 -2
- package/dist/utils/disks/calculatePDiskSeverity.js +2 -2
- package/dist/utils/disks/calculatePDiskSeverity.js.map +1 -1
- package/dist/utils/disks/calculateVDiskSeverity.d.ts +8 -2
- package/dist/utils/disks/calculateVDiskSeverity.js +0 -4
- package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
- package/dist/utils/disks/helpers.d.ts +2 -1
- package/dist/utils/disks/helpers.js.map +1 -1
- package/dist/utils/disks/prepareDisks.d.ts +22 -4
- package/dist/utils/disks/prepareDisks.js +75 -28
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +9 -2
- package/dist/utils/nodes.d.ts +1 -0
- package/dist/utils/nodes.js +20 -0
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -1
- package/package.json +3 -2
- package/dist/containers/Nodes/i18n/ru.json +0 -3
- package/dist/store/reducers/operationList.d.ts +0 -4
- package/dist/store/reducers/operationList.js +0 -19
- package/dist/store/reducers/operationList.js.map +0 -1
- package/dist/types/api/operationList.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDiskPopup.js","sourceRoot":"","sources":["../../../src/components/VDiskPopup/VDiskPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,kBA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,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,GAAG,GAAG,IAChF,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -3,6 +3,7 @@ import type { TTabletStateInfo } from '../../types/api/tablet';
|
|
3
3
|
import type { Column } from '../../utils/tableUtils/types';
|
4
4
|
import type { NodeHostData } from '../NodeHostWrapper/NodeHostWrapper';
|
5
5
|
import type { GetNodesColumnsParams } from './types';
|
6
|
+
import './NodesColumns.scss';
|
6
7
|
export declare function getNodeIdColumn<T extends {
|
7
8
|
NodeId?: string | number;
|
8
9
|
}>(): Column<T>;
|
@@ -27,12 +28,21 @@ export declare function getMemoryColumn<T extends {
|
|
27
28
|
MemoryUsed?: string;
|
28
29
|
MemoryLimit?: string;
|
29
30
|
}>(): Column<T>;
|
31
|
+
export declare function getRAMColumn<T extends {
|
32
|
+
MemoryUsed?: string;
|
33
|
+
MemoryLimit?: string;
|
34
|
+
}>(): Column<T>;
|
30
35
|
export declare function getSharedCacheUsageColumn<T extends {
|
31
36
|
SharedCacheUsed?: string | number;
|
32
37
|
SharedCacheLimit?: string | number;
|
33
38
|
}>(): Column<T>;
|
39
|
+
export declare function getPoolsColumn<T extends {
|
40
|
+
PoolStats?: TPoolStats[];
|
41
|
+
}>(): Column<T>;
|
34
42
|
export declare function getCpuColumn<T extends {
|
35
43
|
PoolStats?: TPoolStats[];
|
44
|
+
CoresUsed?: number;
|
45
|
+
CoresTotal?: number;
|
36
46
|
}>(): Column<T>;
|
37
47
|
export declare function getLoadAverageColumn<T extends {
|
38
48
|
LoadAveragePercents?: number[];
|
@@ -1,17 +1,24 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import DataTable from '@gravity-ui/react-data-table';
|
3
|
+
import { DefinitionList } from '@gravity-ui/uikit';
|
3
4
|
import { getLoadSeverityForNode } from '../../store/reducers/nodes/utils';
|
4
5
|
import { valueIsDefined } from '../../utils';
|
6
|
+
import { cn } from '../../utils/cn';
|
5
7
|
import { EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
|
6
|
-
import { formatStorageValuesToGb } from '../../utils/dataFormatters/dataFormatters';
|
8
|
+
import { formatStorageValues, formatStorageValuesToGb, } from '../../utils/dataFormatters/dataFormatters';
|
7
9
|
import { getSpaceUsageSeverity } from '../../utils/storage';
|
10
|
+
import { isNumeric } from '../../utils/utils';
|
8
11
|
import { CellWithPopover } from '../CellWithPopover/CellWithPopover';
|
9
12
|
import { NodeHostWrapper } from '../NodeHostWrapper/NodeHostWrapper';
|
10
13
|
import { PoolsGraph } from '../PoolsGraph/PoolsGraph';
|
11
14
|
import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
|
12
15
|
import { TabletsStatistic } from '../TabletsStatistic';
|
16
|
+
import { formatPool } from '../TooltipsContent';
|
13
17
|
import { UsageLabel } from '../UsageLabel/UsageLabel';
|
14
18
|
import { NODES_COLUMNS_IDS, NODES_COLUMNS_TITLES } from './constants';
|
19
|
+
import i18n from './i18n';
|
20
|
+
import './NodesColumns.scss';
|
21
|
+
const b = cn('ydb-nodes-columns');
|
15
22
|
export function getNodeIdColumn() {
|
16
23
|
return {
|
17
24
|
name: NODES_COLUMNS_IDS.NodeId,
|
@@ -92,6 +99,23 @@ export function getMemoryColumn() {
|
|
92
99
|
resizeMinWidth: 170,
|
93
100
|
};
|
94
101
|
}
|
102
|
+
export function getRAMColumn() {
|
103
|
+
return {
|
104
|
+
name: NODES_COLUMNS_IDS.RAM,
|
105
|
+
header: NODES_COLUMNS_TITLES.RAM,
|
106
|
+
sortAccessor: ({ MemoryUsed = 0 }) => Number(MemoryUsed),
|
107
|
+
defaultOrder: DataTable.DESCENDING,
|
108
|
+
render: ({ row }) => {
|
109
|
+
const [memoryUsed, memoryLimit] = isNumeric(row.MemoryUsed) && isNumeric(row.MemoryLimit)
|
110
|
+
? formatStorageValues(Number(row.MemoryUsed), Number(row.MemoryLimit), 'gb', undefined, true)
|
111
|
+
: [0, 0];
|
112
|
+
return (_jsx(CellWithPopover, { placement: ['top', 'auto'], fullWidth: true, content: _jsxs(DefinitionList, { responsive: true, children: [_jsx(DefinitionList.Item, { name: i18n('field_memory-used'), children: memoryUsed }), _jsx(DefinitionList.Item, { name: i18n('field_memory-limit'), children: memoryLimit })] }), children: _jsx(ProgressViewer, { value: row.MemoryUsed, capacity: row.MemoryLimit, formatValues: (value, total) => formatStorageValues(value, total, 'gb', undefined, true), className: b('column-ram'), colorizeProgress: true, hideCapacity: true }) }));
|
113
|
+
},
|
114
|
+
align: DataTable.LEFT,
|
115
|
+
width: 80,
|
116
|
+
resizeMinWidth: 40,
|
117
|
+
};
|
118
|
+
}
|
95
119
|
export function getSharedCacheUsageColumn() {
|
96
120
|
return {
|
97
121
|
name: NODES_COLUMNS_IDS.SharedCacheUsage,
|
@@ -102,16 +126,44 @@ export function getSharedCacheUsageColumn() {
|
|
102
126
|
resizeMinWidth: 170,
|
103
127
|
};
|
104
128
|
}
|
129
|
+
export function getPoolsColumn() {
|
130
|
+
return {
|
131
|
+
name: NODES_COLUMNS_IDS.Pools,
|
132
|
+
header: NODES_COLUMNS_TITLES.Pools,
|
133
|
+
sortAccessor: ({ PoolStats = [] }) => Math.max(...PoolStats.map(({ Usage }) => Number(Usage))),
|
134
|
+
defaultOrder: DataTable.DESCENDING,
|
135
|
+
render: ({ row }) => row.PoolStats ? _jsx(PoolsGraph, { pools: row.PoolStats }) : EMPTY_DATA_PLACEHOLDER,
|
136
|
+
align: DataTable.LEFT,
|
137
|
+
width: 80,
|
138
|
+
resizeMinWidth: 60,
|
139
|
+
};
|
140
|
+
}
|
105
141
|
export function getCpuColumn() {
|
106
142
|
return {
|
107
143
|
name: NODES_COLUMNS_IDS.CPU,
|
108
144
|
header: NODES_COLUMNS_TITLES.CPU,
|
109
145
|
sortAccessor: ({ PoolStats = [] }) => Math.max(...PoolStats.map(({ Usage }) => Number(Usage))),
|
110
146
|
defaultOrder: DataTable.DESCENDING,
|
111
|
-
render: ({ row }) =>
|
147
|
+
render: ({ row }) => {
|
148
|
+
if (!row.PoolStats) {
|
149
|
+
return EMPTY_DATA_PLACEHOLDER;
|
150
|
+
}
|
151
|
+
let totalPoolUsage = isNumeric(row.CoresUsed) && isNumeric(row.CoresTotal)
|
152
|
+
? row.CoresUsed / row.CoresTotal
|
153
|
+
: undefined;
|
154
|
+
if (totalPoolUsage === undefined) {
|
155
|
+
let totalThreadsCount = 0;
|
156
|
+
totalPoolUsage = row.PoolStats.reduce((acc, pool) => {
|
157
|
+
totalThreadsCount += Number(pool.Threads);
|
158
|
+
return acc + Number(pool.Usage) * Number(pool.Threads);
|
159
|
+
}, 0);
|
160
|
+
totalPoolUsage = totalPoolUsage / totalThreadsCount;
|
161
|
+
}
|
162
|
+
return (_jsx(CellWithPopover, { placement: ['top', 'auto'], fullWidth: true, content: _jsx(DefinitionList, { responsive: true, children: row.PoolStats.map((pool) => isNumeric(pool.Usage) ? (_jsx(DefinitionList.Item, { name: pool.Name, children: formatPool('Usage', pool.Usage).value }, pool.Name)) : null) }), children: _jsx(ProgressViewer, { className: b('column-cpu'), value: totalPoolUsage, capacity: 1, colorizeProgress: true, percents: true }) }));
|
163
|
+
},
|
112
164
|
align: DataTable.LEFT,
|
113
165
|
width: 80,
|
114
|
-
resizeMinWidth:
|
166
|
+
resizeMinWidth: 40,
|
115
167
|
};
|
116
168
|
}
|
117
169
|
export function getLoadAverageColumn() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../src/components/nodesColumns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../src/components/nodesColumns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,OAAO,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C/B,MAAM,EAAE,oBAAoB,CAAC,OAAO;QACpC,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO;QAC9B,KAAK,EAAE,SAAS,CAAC,MAAM;QACvB,YAAY,EAAE,SAAS,CAAC,UAAU;KACrC,CAAC;AACN,CAAC"}
|
@@ -3,14 +3,18 @@ import type { ValueOf } from '../../types/common';
|
|
3
3
|
export declare const NODES_COLUMNS_WIDTH_LS_KEY = "nodesTableColumnsWidth";
|
4
4
|
export declare const NODES_COLUMNS_IDS: {
|
5
5
|
readonly NodeId: "NodeId";
|
6
|
+
readonly SystemState: "SystemState";
|
6
7
|
readonly Host: "Host";
|
8
|
+
readonly Database: "Database";
|
7
9
|
readonly NodeName: "NodeName";
|
8
10
|
readonly DC: "DC";
|
9
11
|
readonly Rack: "Rack";
|
10
12
|
readonly Version: "Version";
|
11
13
|
readonly Uptime: "Uptime";
|
12
14
|
readonly Memory: "Memory";
|
15
|
+
readonly RAM: "RAM";
|
13
16
|
readonly CPU: "CPU";
|
17
|
+
readonly Pools: "Pools";
|
14
18
|
readonly LoadAverage: "LoadAverage";
|
15
19
|
readonly Load: "Load";
|
16
20
|
readonly DiskSpaceUsage: "DiskSpaceUsage";
|
@@ -23,13 +27,17 @@ export declare const NODES_COLUMNS_IDS: {
|
|
23
27
|
export type NodesColumnId = ValueOf<typeof NODES_COLUMNS_IDS>;
|
24
28
|
export declare const NODES_COLUMNS_TITLES: {
|
25
29
|
readonly NodeId: string;
|
30
|
+
readonly SystemState: string;
|
26
31
|
readonly Host: string;
|
32
|
+
readonly Database: string;
|
27
33
|
readonly NodeName: string;
|
28
34
|
readonly DC: string;
|
29
35
|
readonly Rack: string;
|
30
36
|
readonly Version: string;
|
31
37
|
readonly Uptime: string;
|
32
38
|
readonly Memory: string;
|
39
|
+
readonly RAM: string;
|
40
|
+
readonly Pools: string;
|
33
41
|
readonly CPU: string;
|
34
42
|
readonly LoadAverage: string;
|
35
43
|
readonly Load: string;
|
@@ -2,14 +2,18 @@ import i18n from './i18n';
|
|
2
2
|
export const NODES_COLUMNS_WIDTH_LS_KEY = 'nodesTableColumnsWidth';
|
3
3
|
export const NODES_COLUMNS_IDS = {
|
4
4
|
NodeId: 'NodeId',
|
5
|
+
SystemState: 'SystemState',
|
5
6
|
Host: 'Host',
|
7
|
+
Database: 'Database',
|
6
8
|
NodeName: 'NodeName',
|
7
9
|
DC: 'DC',
|
8
10
|
Rack: 'Rack',
|
9
11
|
Version: 'Version',
|
10
12
|
Uptime: 'Uptime',
|
11
13
|
Memory: 'Memory',
|
14
|
+
RAM: 'RAM',
|
12
15
|
CPU: 'CPU',
|
16
|
+
Pools: 'Pools',
|
13
17
|
LoadAverage: 'LoadAverage',
|
14
18
|
Load: 'Load',
|
15
19
|
DiskSpaceUsage: 'DiskSpaceUsage',
|
@@ -25,9 +29,15 @@ export const NODES_COLUMNS_TITLES = {
|
|
25
29
|
get NodeId() {
|
26
30
|
return i18n('node-id');
|
27
31
|
},
|
32
|
+
get SystemState() {
|
33
|
+
return i18n('system-state');
|
34
|
+
},
|
28
35
|
get Host() {
|
29
36
|
return i18n('host');
|
30
37
|
},
|
38
|
+
get Database() {
|
39
|
+
return i18n('database');
|
40
|
+
},
|
31
41
|
get NodeName() {
|
32
42
|
return i18n('node-name');
|
33
43
|
},
|
@@ -46,6 +56,12 @@ export const NODES_COLUMNS_TITLES = {
|
|
46
56
|
get Memory() {
|
47
57
|
return i18n('memory');
|
48
58
|
},
|
59
|
+
get RAM() {
|
60
|
+
return i18n('ram');
|
61
|
+
},
|
62
|
+
get Pools() {
|
63
|
+
return i18n('pools');
|
64
|
+
},
|
49
65
|
get CPU() {
|
50
66
|
return i18n('cpu');
|
51
67
|
},
|
@@ -78,13 +94,17 @@ export const NODES_COLUMNS_TITLES = {
|
|
78
94
|
// Also for some columns we may use more than one field
|
79
95
|
export const NODES_COLUMNS_TO_DATA_FIELDS = {
|
80
96
|
NodeId: ['NodeId'],
|
97
|
+
SystemState: ['SystemState'],
|
81
98
|
Host: ['Host', 'Rack', 'Database', 'SystemState'],
|
99
|
+
Database: ['Database'],
|
82
100
|
NodeName: ['NodeName'],
|
83
101
|
DC: ['DC'],
|
84
102
|
Rack: ['Rack'],
|
85
103
|
Version: ['Version'],
|
86
104
|
Uptime: ['Uptime'],
|
87
105
|
Memory: ['Memory'],
|
106
|
+
RAM: ['Memory'],
|
107
|
+
Pools: ['CPU'],
|
88
108
|
CPU: ['CPU'],
|
89
109
|
LoadAverage: ['LoadAverage'],
|
90
110
|
Load: ['LoadAverage'],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/nodesColumns/constants.ts"],"names":[],"mappings":"AAGA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,aAAa,EAAE,eAAe;IAC9B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX,0FAA0F;AAC1F,iGAAiG;AACjG,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC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aAAa,CAAC;IAC9B,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,OAAO,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IAChC,MAAM,EAAE,CAAC,QAAQ,CAAC;CACrB,CAAC"}
|
@@ -1,13 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"node-id": "Node ID",
|
3
|
+
"system-state": "System State",
|
3
4
|
"host": "Host",
|
5
|
+
"database": "Database",
|
4
6
|
"node-name": "Node Name",
|
5
7
|
"dc": "DC",
|
6
8
|
"rack": "Rack",
|
7
9
|
"version": "Version",
|
8
10
|
"uptime": "Uptime",
|
9
11
|
"memory": "Memory",
|
12
|
+
"ram": "RAM",
|
10
13
|
"cpu": "CPU",
|
14
|
+
"pools": "Pools",
|
11
15
|
"disk-usage": "Disk usage",
|
12
16
|
"tablets": "Tablets",
|
13
17
|
"load-average": "Load Average",
|
@@ -15,5 +19,7 @@
|
|
15
19
|
"caches": "Caches",
|
16
20
|
"sessions": "Sessions",
|
17
21
|
"missing": "Missing",
|
18
|
-
"pdisks": "PDisks"
|
22
|
+
"pdisks": "PDisks",
|
23
|
+
"field_memory-used": "Memory used",
|
24
|
+
"field_memory-limit": "Memory limit"
|
19
25
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "missing" | "version" | "host" | "tablets" | "cpu" | "memory" | "uptime" | "load" | "node-id" | "node-name" | "dc" | "rack" | "disk-usage" | "load-average" | "caches" | "sessions" | "pdisks", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "missing" | "version" | "host" | "tablets" | "cpu" | "memory" | "database" | "uptime" | "load" | "node-id" | "system-state" | "node-name" | "dc" | "rack" | "ram" | "pools" | "disk-usage" | "load-average" | "caches" | "sessions" | "pdisks" | "field_memory-used" | "field_memory-limit", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "controls_status-select-label" | "controls_service-select-label" | "controls_version-select-label" | "
|
1
|
+
declare const _default: (key: "controls_search-placeholder" | "controls_status-select-label" | "controls_service-select-label" | "controls_version-select-label" | "controls_select-placeholder" | "statistics_clusters" | "statistics_hosts" | "statistics_tenants" | "statistics_nodes" | "statistics_load" | "statistics_storage" | "tooltip_no-cluster-data" | "page_title", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -3,22 +3,15 @@ import React from 'react';
|
|
3
3
|
import { Breadcrumbs } from '@gravity-ui/uikit';
|
4
4
|
import { InternalLink } from '../../components/InternalLink';
|
5
5
|
import { LinkWithIcon } from '../../components/LinkWithIcon/LinkWithIcon';
|
6
|
-
import { backend, customBackend } from '../../store';
|
7
6
|
import { useClusterBaseInfo } from '../../store/reducers/cluster/cluster';
|
8
7
|
import { cn } from '../../utils/cn';
|
9
8
|
import { DEVELOPER_UI_TITLE } from '../../utils/constants';
|
9
|
+
import { createDeveloperUIInternalPageHref } from '../../utils/developerUI/developerUI';
|
10
10
|
import { useTypedSelector } from '../../utils/hooks';
|
11
11
|
import { getBreadcrumbs } from './breadcrumbs';
|
12
12
|
import './Header.scss';
|
13
13
|
const b = cn('header');
|
14
|
-
const getInternalLink = (singleClusterMode) => {
|
15
|
-
if (singleClusterMode && !customBackend) {
|
16
|
-
return `/internal`;
|
17
|
-
}
|
18
|
-
return backend + '/internal';
|
19
|
-
};
|
20
14
|
function Header({ mainPage }) {
|
21
|
-
const singleClusterMode = useTypedSelector((state) => state.singleClusterMode);
|
22
15
|
const { page, pageBreadcrumbsOptions } = useTypedSelector((state) => state.header);
|
23
16
|
const clusterInfo = useClusterBaseInfo();
|
24
17
|
const clusterName = clusterInfo.title || clusterInfo.name;
|
@@ -46,7 +39,7 @@ function Header({ mainPage }) {
|
|
46
39
|
active: isCurrent,
|
47
40
|
link: !isCurrent,
|
48
41
|
}), to: isCurrent ? undefined : link, children: [icon ? (_jsx("span", { className: b('breadcrumbs-icon'), children: icon })) : null, _jsx("span", { children: text })] }));
|
49
|
-
} }), _jsx(LinkWithIcon, { title: DEVELOPER_UI_TITLE, url:
|
42
|
+
} }), _jsx(LinkWithIcon, { title: DEVELOPER_UI_TITLE, url: createDeveloperUIInternalPageHref() })] }));
|
50
43
|
};
|
51
44
|
return renderHeader();
|
52
45
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/containers/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/containers/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAC,iCAAiC,EAAC,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;AAMvB,SAAS,MAAM,CAAC,EAAC,QAAQ,EAAc;IACnC,MAAM,EAAC,IAAI,EAAE,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AI,CAAC;wBAEhC,OAAO,CACH,MAAC,YAAY,IACT,SAAS,EAAE,CAAC,CAAC,kBAAkB,EAAE;gCAC7B,MAAM,EAAE,SAAS;gCACjB,IAAI,EAAE,CAAC,SAAS;6BACnB,CAAC,EACF,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,aAE/B,IAAI,CAAC,CAAC,CAAC,CACJ,eAAM,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YAAG,IAAI,GAAQ,CACxD,CAAC,CAAC,CAAC,IAAI,EACR,yBAAO,IAAI,GAAQ,IACR,CAClB,CAAC;oBACN,CAAC,GACH,EAEF,KAAC,YAAY,IACT,KAAK,EAAE,kBAAkB,EACzB,GAAG,EAAE,iCAAiC,EAAE,GAC1C,IACG,CACZ,CAAC;IACN,CAAC,CAAC;IACF,OAAO,YAAY,EAAE,CAAC;AAC1B,CAAC;AAED,eAAe,MAAM,CAAC"}
|
@@ -1,40 +1,28 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { ASCENDING } from '@gravity-ui/react-data-table/build/esm/lib/constants';
|
4
|
-
import { TableColumnSetup } from '@gravity-ui/uikit';
|
5
|
-
import { StringParam, useQueryParams } from 'use-query-params';
|
6
|
-
import { EntitiesCount } from '../../components/EntitiesCount';
|
7
4
|
import { AccessDenied } from '../../components/Errors/403';
|
8
5
|
import { isAccessError } from '../../components/Errors/PageError/PageError';
|
9
6
|
import { ResponseError } from '../../components/Errors/ResponseError';
|
10
7
|
import { Illustration } from '../../components/Illustration';
|
11
|
-
import { ProblemFilter } from '../../components/ProblemFilter';
|
12
8
|
import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
|
13
|
-
import { Search } from '../../components/Search';
|
14
9
|
import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
|
15
|
-
import { UptimeFilter } from '../../components/UptimeFIlter';
|
16
10
|
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../components/nodesColumns/constants';
|
17
11
|
import { nodesApi } from '../../store/reducers/nodes/nodes';
|
18
12
|
import { filterNodes } from '../../store/reducers/nodes/selectors';
|
19
|
-
import {
|
20
|
-
import { cn } from '../../utils/cn';
|
13
|
+
import { useProblemFilter } from '../../store/reducers/settings/hooks';
|
21
14
|
import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
|
22
|
-
import { useAutoRefreshInterval, useTableSort
|
23
|
-
import { NodesUptimeFilterValues
|
15
|
+
import { useAutoRefreshInterval, useTableSort } from '../../utils/hooks';
|
16
|
+
import { NodesUptimeFilterValues } from '../../utils/nodes';
|
17
|
+
import { NodesControls } from './NodesControls/NodesControls';
|
24
18
|
import { useNodesSelectedColumns } from './columns/hooks';
|
25
19
|
import i18n from './i18n';
|
20
|
+
import { getRowClassName } from './shared';
|
21
|
+
import { useNodesPageQueryParams } from './useNodesPageQueryParams';
|
26
22
|
import './Nodes.scss';
|
27
|
-
const b = cn('ydb-nodes');
|
28
23
|
export const Nodes = ({ path, database, additionalNodesProps = {} }) => {
|
29
|
-
|
30
|
-
const
|
31
|
-
uptimeFilter: StringParam,
|
32
|
-
search: StringParam,
|
33
|
-
});
|
34
|
-
const uptimeFilter = nodesUptimeFilterValuesSchema.parse(queryParams.uptimeFilter);
|
35
|
-
const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
|
36
|
-
const dispatch = useTypedDispatch();
|
37
|
-
const problemFilter = useTypedSelector(selectProblemFilter);
|
24
|
+
const { searchValue, uptimeFilter } = useNodesPageQueryParams();
|
25
|
+
const { problemFilter } = useProblemFilter();
|
38
26
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
39
27
|
const { columnsToShow, columnsToSelect, setColumns } = useNodesSelectedColumns({
|
40
28
|
getNodeRef: additionalNodesProps.getNodeRef,
|
@@ -48,30 +36,20 @@ export const Nodes = ({ path, database, additionalNodesProps = {} }) => {
|
|
48
36
|
const [sort, handleSort] = useTableSort(sortValue, (sortParams) => {
|
49
37
|
setSortValue(sortParams);
|
50
38
|
});
|
51
|
-
const handleSearchQueryChange = (value) => {
|
52
|
-
setQueryParams({ search: value || undefined }, 'replaceIn');
|
53
|
-
};
|
54
|
-
const handleProblemFilterChange = (value) => {
|
55
|
-
dispatch(changeFilter(value));
|
56
|
-
};
|
57
|
-
const handleUptimeFilterChange = (value) => {
|
58
|
-
setQueryParams({ uptimeFilter: value }, 'replaceIn');
|
59
|
-
};
|
60
39
|
const nodes = React.useMemo(() => {
|
61
40
|
return filterNodes(data === null || data === void 0 ? void 0 : data.Nodes, { searchValue, uptimeFilter, problemFilter });
|
62
41
|
}, [data, searchValue, uptimeFilter, problemFilter]);
|
63
42
|
const totalNodes = (data === null || data === void 0 ? void 0 : data.TotalNodes) || 0;
|
64
43
|
const renderControls = () => {
|
65
|
-
return (
|
44
|
+
return (_jsx(NodesControls, { columnsToSelect: columnsToSelect, handleSelectedColumnsUpdate: setColumns, entitiesCountCurrent: nodes.length, entitiesCountTotal: totalNodes, entitiesLoading: isLoading }));
|
66
45
|
};
|
67
46
|
const renderTable = () => {
|
68
47
|
if (nodes.length === 0) {
|
69
|
-
if (problemFilter !==
|
70
|
-
uptimeFilter !== NodesUptimeFilterValues.All) {
|
48
|
+
if (problemFilter !== 'All' || uptimeFilter !== NodesUptimeFilterValues.All) {
|
71
49
|
return _jsx(Illustration, { name: "thumbsUp", width: "200" });
|
72
50
|
}
|
73
51
|
}
|
74
|
-
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: NODES_COLUMNS_WIDTH_LS_KEY, data: nodes || [], columns: columnsToShow, settings: DEFAULT_TABLE_SETTINGS, sortOrder: sort, onSort: handleSort, emptyDataMessage: i18n('empty.default'), rowClassName:
|
52
|
+
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: NODES_COLUMNS_WIDTH_LS_KEY, data: nodes || [], columns: columnsToShow, settings: DEFAULT_TABLE_SETTINGS, sortOrder: sort, onSort: handleSort, emptyDataMessage: i18n('empty.default'), rowClassName: getRowClassName }));
|
75
53
|
};
|
76
54
|
if (isAccessError(error)) {
|
77
55
|
return _jsx(AccessDenied, {});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Nodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/Nodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,sDAAsD,CAAC;
|
1
|
+
{"version":3,"file":"Nodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/Nodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,sDAAsD,CAAC;AAE/E,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,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,0BAA0B,EAAC,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAC,WAAW,EAAC,MAAM,sCAAsC,CAAC;AAEjE,OAAO,EAAC,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,sBAAsB,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAC,aAAa,EAAC,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,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,YAC5C,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,GACA,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { TableColumnSetupItem } from '@gravity-ui/uikit';
|
2
|
+
interface NodesControlsProps {
|
3
|
+
withGroupBySelect?: boolean;
|
4
|
+
columnsToSelect: TableColumnSetupItem[];
|
5
|
+
handleSelectedColumnsUpdate: (updated: TableColumnSetupItem[]) => void;
|
6
|
+
entitiesCountCurrent: number;
|
7
|
+
entitiesCountTotal?: number;
|
8
|
+
entitiesLoading: boolean;
|
9
|
+
}
|
10
|
+
export declare function NodesControls({ withGroupBySelect, columnsToSelect, handleSelectedColumnsUpdate, entitiesCountCurrent, entitiesCountTotal, entitiesLoading, }: NodesControlsProps): import("react/jsx-runtime").JSX.Element;
|
11
|
+
export {};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
3
|
+
import { Select, TableColumnSetup, Text } from '@gravity-ui/uikit';
|
4
|
+
import { EntitiesCount } from '../../../components/EntitiesCount';
|
5
|
+
import { ProblemFilter } from '../../../components/ProblemFilter';
|
6
|
+
import { Search } from '../../../components/Search';
|
7
|
+
import { UptimeFilter } from '../../../components/UptimeFIlter';
|
8
|
+
import { useViewerNodesHandlerHasGroupingBySystemState } from '../../../store/reducers/capabilities/hooks';
|
9
|
+
import { useProblemFilter } from '../../../store/reducers/settings/hooks';
|
10
|
+
import { getNodesGroupByOptions } from '../columns/constants';
|
11
|
+
import i18n from '../i18n';
|
12
|
+
import { b } from '../shared';
|
13
|
+
import { useNodesPageQueryParams } from '../useNodesPageQueryParams';
|
14
|
+
export function NodesControls({ withGroupBySelect, columnsToSelect, handleSelectedColumnsUpdate, entitiesCountCurrent, entitiesCountTotal, entitiesLoading, }) {
|
15
|
+
const { searchValue, uptimeFilter, groupByParam, handleSearchQueryChange, handleUptimeFilterChange, handleGroupByParamChange, } = useNodesPageQueryParams();
|
16
|
+
const { problemFilter, handleProblemFilterChange } = useProblemFilter();
|
17
|
+
const systemStateGroupingAvailable = useViewerNodesHandlerHasGroupingBySystemState();
|
18
|
+
const groupByoptions = getNodesGroupByOptions(systemStateGroupingAvailable);
|
19
|
+
const handleGroupBySelectUpdate = (value) => {
|
20
|
+
handleGroupByParamChange(value[0]);
|
21
|
+
};
|
22
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Search, { onChange: handleSearchQueryChange, placeholder: i18n('controls_search-placeholder'), width: 238, value: searchValue }), systemStateGroupingAvailable && withGroupBySelect ? null : (_jsx(ProblemFilter, { value: problemFilter, onChange: handleProblemFilterChange })), withGroupBySelect ? null : (_jsx(UptimeFilter, { value: uptimeFilter, onChange: handleUptimeFilterChange })), _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: groupByParam ? [groupByParam] : undefined, onUpdate: handleGroupBySelectUpdate, options: groupByoptions, className: b('group-by-select'), popupClassName: b('group-by-popup') })] })) : null, _jsx(EntitiesCount, { current: entitiesCountCurrent, total: entitiesCountTotal, label: i18n('nodes'), loading: entitiesLoading })] }));
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=NodesControls.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NodesControls.js","s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GAC1B,IACW,CACpB,CAAC;AACN,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import type { AdditionalNodesProps } from '../../types/additionalProps';
|
3
3
|
import './Nodes.scss';
|
4
|
-
interface
|
4
|
+
interface PaginatedNodesProps {
|
5
5
|
path?: string;
|
6
6
|
database?: string;
|
7
7
|
parentRef: React.RefObject<HTMLElement>;
|
8
8
|
additionalNodesProps?: AdditionalNodesProps;
|
9
9
|
}
|
10
|
-
export declare
|
10
|
+
export declare function PaginatedNodes(props: PaginatedNodesProps): import("react/jsx-runtime").JSX.Element;
|
11
11
|
export {};
|