ydb-embedded-ui 6.31.0 → 6.32.0
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/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/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 +10 -10
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.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/constants.d.ts +4 -0
- package/dist/components/nodesColumns/constants.js +10 -0
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/components/nodesColumns/i18n/en.json +2 -0
- 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/constants.d.ts +4 -0
- package/dist/containers/Nodes/columns/constants.js +30 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/getNodes.js +4 -5
- 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/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/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +2 -2
- 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/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/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/nodes.d.ts +1 -1
- 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/storage.d.ts +1 -1
- package/package.json +3 -2
- package/dist/containers/Nodes/i18n/ru.json +0 -3
@@ -2,49 +2,96 @@ import { stringifyVdiskId } from '../dataFormatters/dataFormatters';
|
|
2
2
|
import { calculatePDiskSeverity } from './calculatePDiskSeverity';
|
3
3
|
import { calculateVDiskSeverity } from './calculateVDiskSeverity';
|
4
4
|
import { getPDiskType } from './getPDiskType';
|
5
|
-
|
6
|
-
|
5
|
+
import { getPDiskId, isFullVDiskData } from './helpers';
|
6
|
+
export function prepareWhiteboardVDiskData(vDiskState = {}) {
|
7
|
+
var _a;
|
8
|
+
if (!isFullVDiskData(vDiskState)) {
|
9
|
+
const { NodeId, PDiskId, VSlotId } = vDiskState;
|
10
|
+
const StringifiedId = stringifyVdiskId({
|
11
|
+
NodeId,
|
12
|
+
PDiskId,
|
13
|
+
VSlotId,
|
14
|
+
});
|
15
|
+
return {
|
16
|
+
StringifiedId,
|
17
|
+
NodeId,
|
18
|
+
PDiskId,
|
19
|
+
// Replace VSlotId with VDiskSlotId to match with PreparedVDisk type
|
20
|
+
VDiskSlotId: VSlotId,
|
21
|
+
};
|
22
|
+
}
|
23
|
+
const { PDisk, PDiskId, VDiskId, NodeId, Donors, AvailableSize, AllocatedSize, ...restVDiskFields } = vDiskState;
|
7
24
|
// Prepare PDisk only if it is present
|
8
|
-
const
|
9
|
-
?
|
10
|
-
...vdiskState.PDisk,
|
11
|
-
NodeId: (_a = vdiskState.PDisk.NodeId) !== null && _a !== void 0 ? _a : vdiskState.NodeId,
|
12
|
-
})
|
25
|
+
const preparedPDisk = PDisk
|
26
|
+
? prepareWhiteboardPDiskData({ ...PDisk, NodeId: (_a = PDisk === null || PDisk === void 0 ? void 0 : PDisk.NodeId) !== null && _a !== void 0 ? _a : NodeId })
|
13
27
|
: undefined;
|
14
|
-
const
|
15
|
-
const
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
const
|
20
|
-
|
28
|
+
const actualPDiskId = PDiskId !== null && PDiskId !== void 0 ? PDiskId : preparedPDisk === null || preparedPDisk === void 0 ? void 0 : preparedPDisk.PDiskId;
|
29
|
+
const vDiskSizeFields = prepareVDiskSizeFields({
|
30
|
+
AvailableSize: AvailableSize !== null && AvailableSize !== void 0 ? AvailableSize : PDisk === null || PDisk === void 0 ? void 0 : PDisk.AvailableSize,
|
31
|
+
AllocatedSize: AllocatedSize,
|
32
|
+
});
|
33
|
+
const Severity = calculateVDiskSeverity(vDiskState);
|
34
|
+
const StringifiedId = stringifyVdiskId(VDiskId);
|
35
|
+
const preparedDonors = Donors === null || Donors === void 0 ? void 0 : Donors.map((donor) => {
|
36
|
+
return prepareWhiteboardVDiskData({ ...donor, DonorMode: true });
|
21
37
|
});
|
22
|
-
const Severity = calculateVDiskSeverity(vdiskState);
|
23
|
-
const StringifiedId = stringifyVdiskId(vdiskState.VDiskId);
|
24
38
|
return {
|
25
|
-
...
|
26
|
-
|
27
|
-
|
28
|
-
|
39
|
+
...restVDiskFields,
|
40
|
+
...vDiskSizeFields,
|
41
|
+
VDiskId,
|
42
|
+
NodeId,
|
43
|
+
PDiskId: actualPDiskId,
|
44
|
+
PDisk: preparedPDisk,
|
45
|
+
Donors: preparedDonors,
|
29
46
|
Severity,
|
30
47
|
StringifiedId,
|
48
|
+
};
|
49
|
+
}
|
50
|
+
export function prepareWhiteboardPDiskData(pdiskState = {}) {
|
51
|
+
const { AvailableSize, TotalSize, Category, State, PDiskId, NodeId, EnforcedDynamicSlotSize, ...restPDiskFields } = pdiskState;
|
52
|
+
const StringifiedId = getPDiskId(PDiskId, NodeId);
|
53
|
+
const Type = getPDiskType(Category);
|
54
|
+
const pdiskPreparedSizeFields = preparePDiskSizeFields({
|
55
|
+
AvailableSize,
|
56
|
+
TotalSize,
|
57
|
+
});
|
58
|
+
const Severity = calculatePDiskSeverity({
|
59
|
+
State,
|
60
|
+
AllocatedPercent: pdiskPreparedSizeFields.AllocatedPercent,
|
61
|
+
});
|
62
|
+
return {
|
63
|
+
...restPDiskFields,
|
64
|
+
...pdiskPreparedSizeFields,
|
65
|
+
PDiskId,
|
66
|
+
NodeId,
|
67
|
+
StringifiedId,
|
68
|
+
Type,
|
69
|
+
Category,
|
70
|
+
State,
|
71
|
+
Severity,
|
72
|
+
SlotSize: EnforcedDynamicSlotSize,
|
73
|
+
};
|
74
|
+
}
|
75
|
+
export function prepareVDiskSizeFields({ AvailableSize, AllocatedSize, }) {
|
76
|
+
const available = Number(AvailableSize);
|
77
|
+
const allocated = Number(AllocatedSize);
|
78
|
+
const total = allocated + available;
|
79
|
+
const allocatedPercent = Math.round((allocated * 100) / total);
|
80
|
+
return {
|
81
|
+
AvailableSize: available,
|
82
|
+
AllocatedSize: allocated,
|
31
83
|
TotalSize: total,
|
32
84
|
AllocatedPercent: allocatedPercent,
|
33
85
|
};
|
34
86
|
}
|
35
|
-
export function
|
36
|
-
const { AvailableSize, TotalSize, Category } = pdiskState;
|
37
|
-
const Type = getPDiskType(Category);
|
87
|
+
export function preparePDiskSizeFields({ AvailableSize, TotalSize, }) {
|
38
88
|
const available = Number(AvailableSize);
|
39
89
|
const total = Number(TotalSize);
|
40
90
|
const allocated = total - available;
|
41
91
|
const allocatedPercent = Math.round((allocated * 100) / total);
|
42
|
-
const Severity = calculatePDiskSeverity(pdiskState, allocatedPercent);
|
43
92
|
return {
|
44
|
-
|
45
|
-
|
46
|
-
Type,
|
47
|
-
Severity,
|
93
|
+
AvailableSize: available,
|
94
|
+
TotalSize: total,
|
48
95
|
AllocatedSize: allocated,
|
49
96
|
AllocatedPercent: allocatedPercent,
|
50
97
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepareDisks.js","sourceRoot":"","sources":["../../../src/utils/disks/prepareDisks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"prepareDisks.js","sourceRoot":"","sources":["../../../src/utils/disks/prepareDisks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAA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xC,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IACxC,MAAM,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC;IACpC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAE/D,OAAO;QACH,aAAa,EAAE,SAAS;QACxB,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,KAAK;QAChB,gBAAgB,EAAE,gBAAgB;KACrC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,EACnC,aAAa,EACb,SAAS,GAIZ;IACG,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;IACxC,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IAChC,MAAM,SAAS,GAAG,KAAK,GAAG,SAAS,CAAC;IACpC,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAE/D,OAAO;QACH,aAAa,EAAE,SAAS;QACxB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,SAAS;QACxB,gBAAgB,EAAE,gBAAgB;KACrC,CAAC;AACN,CAAC"}
|
@@ -2,18 +2,25 @@ import type { TPDiskInfo, TPDiskStateInfo } from '../../types/api/pdisk';
|
|
2
2
|
import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
|
3
3
|
import type { ValueOf } from '../../types/common';
|
4
4
|
import type { PDISK_TYPES } from './getPDiskType';
|
5
|
-
export type PreparedPDisk = TPDiskStateInfo & Omit<Partial<TPDiskInfo>, 'Type'> & {
|
5
|
+
export type PreparedPDisk = Omit<TPDiskStateInfo, 'AvailableSize' | 'TotalSize' | 'EnforcedDynamicSlotSize'> & Omit<Partial<TPDiskInfo>, 'Type' | 'AvailableSize' | 'TotalSize'> & {
|
6
6
|
Type?: PDiskType;
|
7
7
|
Severity?: number;
|
8
|
+
StringifiedId?: string;
|
9
|
+
AvailableSize?: number;
|
10
|
+
TotalSize?: number;
|
8
11
|
AllocatedSize?: number;
|
9
12
|
AllocatedPercent?: number;
|
13
|
+
SlotSize?: string;
|
10
14
|
};
|
11
|
-
export interface PreparedVDisk extends TVDiskStateInfo {
|
15
|
+
export interface PreparedVDisk extends Omit<TVDiskStateInfo, 'PDisk' | 'AvailableSize' | 'AllocatedSize' | 'Donors'> {
|
12
16
|
PDisk?: PreparedPDisk;
|
13
17
|
Severity?: number;
|
14
18
|
StringifiedId?: string;
|
19
|
+
AvailableSize?: number;
|
15
20
|
TotalSize?: number;
|
21
|
+
AllocatedSize?: number;
|
16
22
|
AllocatedPercent?: number;
|
23
|
+
Donors?: PreparedVDisk[];
|
17
24
|
}
|
18
25
|
export type PDiskType = ValueOf<typeof PDISK_TYPES>;
|
19
26
|
export interface UnavailableDonor extends TVSlotId {
|
package/dist/utils/storage.d.ts
CHANGED
@@ -4,6 +4,6 @@ interface EntityWithUsage {
|
|
4
4
|
Limit: number;
|
5
5
|
}
|
6
6
|
export declare const getUsage: <T extends EntityWithUsage>(data: T, step?: number) => number;
|
7
|
-
export declare const getSpaceUsageSeverity: (value: number) => "
|
7
|
+
export declare const getSpaceUsageSeverity: (value: number) => "success" | "warning" | "danger" | undefined;
|
8
8
|
export declare const isSortableStorageProperty: (value: unknown) => value is StorageV2SortValue;
|
9
9
|
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.32.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -76,7 +76,8 @@
|
|
76
76
|
"typecheck": "tsc --noEmit",
|
77
77
|
"prepare": "husky",
|
78
78
|
"test:e2e:install": "npx playwright install --with-deps",
|
79
|
-
"test:e2e": "npx playwright test --config=playwright.config.ts"
|
79
|
+
"test:e2e": "npx playwright test --config=playwright.config.ts",
|
80
|
+
"test:e2e:local": "PLAYWRIGHT_BASE_URL=http://localhost:3000/ npm run test:e2e"
|
80
81
|
},
|
81
82
|
"lint-staged": {
|
82
83
|
"*.{scss, css}": [
|