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.
Files changed (191) hide show
  1. package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
  2. package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
  3. package/dist/components/BasicNodeViewer/BasicNodeViewer.js +9 -5
  4. package/dist/components/BasicNodeViewer/BasicNodeViewer.js.map +1 -1
  5. package/dist/components/CellWithPopover/CellWithPopover.d.ts +2 -1
  6. package/dist/components/CellWithPopover/CellWithPopover.js +2 -2
  7. package/dist/components/CellWithPopover/CellWithPopover.js.map +1 -1
  8. package/dist/components/CellWithPopover/CellWithPopover.scss +4 -0
  9. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +4 -0
  10. package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
  11. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +9 -5
  12. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  13. package/dist/components/PDiskPopup/PDiskPopup.js +9 -9
  14. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  15. package/dist/components/PaginatedTable/types.d.ts +1 -1
  16. package/dist/components/ProgressViewer/ProgressViewer.d.ts +2 -1
  17. package/dist/components/ProgressViewer/ProgressViewer.js +2 -2
  18. package/dist/components/ProgressViewer/ProgressViewer.js.map +1 -1
  19. package/dist/components/Search/Search.d.ts +3 -1
  20. package/dist/components/Search/Search.js +2 -2
  21. package/dist/components/Search/Search.js.map +1 -1
  22. package/dist/components/TabletNameWrapper/TabletNameWrapper.js +1 -1
  23. package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -1
  24. package/dist/components/TenantNameWrapper/TenantNameWrapper.js +1 -1
  25. package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
  26. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +23 -8
  27. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
  28. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/en.json +3 -1
  29. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.d.ts +1 -1
  30. package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.d.ts +4 -0
  31. package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.js +1 -1
  32. package/dist/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.js.map +1 -1
  33. package/dist/components/VDiskInfo/VDiskInfo.js +1 -2
  34. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  35. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  36. package/dist/components/VDiskPopup/VDiskPopup.js +1 -9
  37. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  38. package/dist/components/nodesColumns/NodesColumns.scss +6 -0
  39. package/dist/components/nodesColumns/columns.d.ts +10 -0
  40. package/dist/components/nodesColumns/columns.js +56 -4
  41. package/dist/components/nodesColumns/columns.js.map +1 -1
  42. package/dist/components/nodesColumns/constants.d.ts +8 -0
  43. package/dist/components/nodesColumns/constants.js +20 -0
  44. package/dist/components/nodesColumns/constants.js.map +1 -1
  45. package/dist/components/nodesColumns/i18n/en.json +7 -1
  46. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  47. package/dist/containers/Clusters/i18n/index.d.ts +1 -1
  48. package/dist/containers/Header/Header.js +2 -9
  49. package/dist/containers/Header/Header.js.map +1 -1
  50. package/dist/containers/Nodes/Nodes.js +11 -33
  51. package/dist/containers/Nodes/Nodes.js.map +1 -1
  52. package/dist/containers/Nodes/Nodes.scss +4 -0
  53. package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +11 -0
  54. package/dist/containers/Nodes/NodesControls/NodesControls.js +24 -0
  55. package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -0
  56. package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -2
  57. package/dist/containers/Nodes/PaginatedNodes.js +78 -54
  58. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  59. package/dist/containers/Nodes/PaginatedNodesTable.d.ts +22 -0
  60. package/dist/containers/Nodes/PaginatedNodesTable.js +30 -0
  61. package/dist/containers/Nodes/PaginatedNodesTable.js.map +1 -0
  62. package/dist/containers/Nodes/columns/columns.js +3 -1
  63. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  64. package/dist/containers/Nodes/columns/constants.d.ts +4 -0
  65. package/dist/containers/Nodes/columns/constants.js +29 -1
  66. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  67. package/dist/containers/Nodes/getNodes.js +6 -7
  68. package/dist/containers/Nodes/getNodes.js.map +1 -1
  69. package/dist/containers/Nodes/i18n/en.json +5 -1
  70. package/dist/containers/Nodes/i18n/index.d.ts +1 -1
  71. package/dist/containers/Nodes/i18n/index.js +1 -2
  72. package/dist/containers/Nodes/i18n/index.js.map +1 -1
  73. package/dist/containers/Nodes/shared.d.ts +5 -0
  74. package/dist/containers/Nodes/shared.js +16 -0
  75. package/dist/containers/Nodes/shared.js.map +1 -0
  76. package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +9 -0
  77. package/dist/containers/Nodes/useNodesPageQueryParams.js +34 -0
  78. package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -0
  79. package/dist/containers/Operations/Operations.js +3 -3
  80. package/dist/containers/Operations/Operations.js.map +1 -1
  81. package/dist/containers/Operations/OperationsControls.d.ts +1 -1
  82. package/dist/containers/Operations/columns.d.ts +6 -2
  83. package/dist/containers/Operations/columns.js +45 -4
  84. package/dist/containers/Operations/columns.js.map +1 -1
  85. package/dist/containers/Operations/constants.d.ts +1 -1
  86. package/dist/containers/Operations/i18n/en.json +7 -1
  87. package/dist/containers/Operations/i18n/index.d.ts +1 -1
  88. package/dist/containers/Operations/useOperationsQueryParams.d.ts +1 -1
  89. package/dist/containers/Storage/Disks/Disks.js +1 -2
  90. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  91. package/dist/containers/Storage/PaginatedStorageNodes.js +1 -2
  92. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
  93. package/dist/containers/Storage/StorageControls/StorageControls.js +2 -2
  94. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  95. package/dist/containers/Storage/StorageNodes/columns/columns.js +3 -1
  96. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  97. package/dist/containers/Storage/StorageNodes/columns/constants.js +1 -1
  98. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  99. package/dist/containers/Storage/StorageNodes/getNodes.js +2 -2
  100. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  101. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  102. package/dist/containers/Storage/utils/index.d.ts +1 -1
  103. package/dist/containers/Tablets/TabletsTable.js +3 -1
  104. package/dist/containers/Tablets/TabletsTable.js.map +1 -1
  105. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -2
  106. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  107. package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +2 -2
  108. package/dist/containers/Tenant/Query/Issues/Issues.d.ts +4 -2
  109. package/dist/containers/Tenant/Query/Issues/Issues.js +7 -7
  110. package/dist/containers/Tenant/Query/Issues/Issues.js.map +1 -1
  111. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -1
  112. package/dist/containers/Tenant/i18n/en.json +1 -0
  113. package/dist/containers/Tenant/i18n/index.d.ts +1 -1
  114. package/dist/containers/Tenant/utils/schemaActions.js +5 -1
  115. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  116. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +5 -1
  117. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  118. package/dist/services/api.d.ts +3 -1
  119. package/dist/services/api.js +12 -0
  120. package/dist/services/api.js.map +1 -1
  121. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  122. package/dist/store/reducers/capabilities/hooks.js +3 -0
  123. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  124. package/dist/store/reducers/node/selectors.js +5 -5
  125. package/dist/store/reducers/node/selectors.js.map +1 -1
  126. package/dist/store/reducers/node/types.d.ts +3 -4
  127. package/dist/store/reducers/nodes/types.d.ts +3 -1
  128. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  129. package/dist/store/reducers/nodes/utils.js +9 -4
  130. package/dist/store/reducers/nodes/utils.js.map +1 -1
  131. package/dist/store/reducers/operations.d.ts +6 -0
  132. package/dist/store/reducers/operations.js +41 -0
  133. package/dist/store/reducers/operations.js.map +1 -0
  134. package/dist/store/reducers/pdisk/utils.js +6 -3
  135. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  136. package/dist/store/reducers/settings/hooks.d.ts +5 -0
  137. package/dist/store/reducers/settings/hooks.js +14 -0
  138. package/dist/store/reducers/settings/hooks.js.map +1 -0
  139. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +1 -0
  140. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +354 -0
  141. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +1 -0
  142. package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +37 -0
  143. package/dist/store/reducers/storage/prepareGroupsDisks.js +72 -0
  144. package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -0
  145. package/dist/store/reducers/storage/utils.js +7 -28
  146. package/dist/store/reducers/storage/utils.js.map +1 -1
  147. package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
  148. package/dist/store/reducers/vdisk/utils.js +3 -3
  149. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  150. package/dist/types/api/error.d.ts +4 -1
  151. package/dist/types/api/nodes.d.ts +4 -2
  152. package/dist/types/api/nodes.js.map +1 -1
  153. package/dist/types/api/{operationList.d.ts → operations.d.ts} +8 -0
  154. package/dist/types/api/{operationList.js → operations.js} +1 -1
  155. package/dist/types/api/operations.js.map +1 -0
  156. package/dist/types/api/pdisk.d.ts +1 -1
  157. package/dist/types/api/storage.d.ts +2 -2
  158. package/dist/utils/developerUI/__test__/developerUI.test.js +21 -1
  159. package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
  160. package/dist/utils/developerUI/developerUI.d.ts +1 -0
  161. package/dist/utils/developerUI/developerUI.js +3 -0
  162. package/dist/utils/developerUI/developerUI.js.map +1 -1
  163. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +10 -7
  164. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js.map +1 -1
  165. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +8 -23
  166. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
  167. package/dist/utils/disks/__test__/prepareDisks.test.d.ts +1 -0
  168. package/dist/utils/disks/__test__/prepareDisks.test.js +200 -0
  169. package/dist/utils/disks/__test__/prepareDisks.test.js.map +1 -0
  170. package/dist/utils/disks/calculatePDiskSeverity.d.ts +5 -2
  171. package/dist/utils/disks/calculatePDiskSeverity.js +2 -2
  172. package/dist/utils/disks/calculatePDiskSeverity.js.map +1 -1
  173. package/dist/utils/disks/calculateVDiskSeverity.d.ts +8 -2
  174. package/dist/utils/disks/calculateVDiskSeverity.js +0 -4
  175. package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
  176. package/dist/utils/disks/helpers.d.ts +2 -1
  177. package/dist/utils/disks/helpers.js.map +1 -1
  178. package/dist/utils/disks/prepareDisks.d.ts +22 -4
  179. package/dist/utils/disks/prepareDisks.js +75 -28
  180. package/dist/utils/disks/prepareDisks.js.map +1 -1
  181. package/dist/utils/disks/types.d.ts +9 -2
  182. package/dist/utils/nodes.d.ts +1 -0
  183. package/dist/utils/nodes.js +20 -0
  184. package/dist/utils/nodes.js.map +1 -1
  185. package/dist/utils/storage.d.ts +1 -1
  186. package/package.json +3 -2
  187. package/dist/containers/Nodes/i18n/ru.json +0 -3
  188. package/dist/store/reducers/operationList.d.ts +0 -4
  189. package/dist/store/reducers/operationList.js +0 -19
  190. package/dist/store/reducers/operationList.js.map +0 -1
  191. package/dist/types/api/operationList.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  import type { EFlag } from '../../types/api/enums';
2
2
  import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
3
- export declare function isFullVDiskData(disk: TVDiskStateInfo | TVSlotId): disk is TVDiskStateInfo;
3
+ import type { PreparedVDisk } from './types';
4
+ export declare function isFullVDiskData(disk: PreparedVDisk | TVDiskStateInfo | TVSlotId): disk is PreparedVDisk | TVDiskStateInfo;
4
5
  export declare function getSeverityColor(severity: number | undefined): EFlag;
5
6
  export declare function getColorSeverity(color?: EFlag): number;
6
7
  export declare function getPDiskId(nodeId?: string | number | null, pDiskId?: string | number | null): string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/utils/disks/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,IAAI,CAAC;AAIlC,OAAO,EACH,oCAAoC,EACpC,oCAAoC,EACpC,4BAA4B,GAC/B,MAAM,aAAa,CAAC;AAErB,MAAM,UAAU,eAAe,CAAC,IAAgC;IAC5D,OAAO,SAAS,IAAI,IAAI,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,QAA4B;IACzD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,4BAA4B,CAAC;IACxC,CAAC;IAED,OAAO,oCAAoC,CAAC,QAAQ,CAAC,IAAI,4BAA4B,CAAC;AAC1F,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC1C,OAAO,KAAK,CAAC,CAAC,CAAC,oCAAoC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACnE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AAS,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAC/B,MAAuB,EACvB,OAAwB,EACxB,WAA4B;IAE5B,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpD,CAAC"}
@@ -1,5 +1,23 @@
1
- import type { TPDiskInfo, TPDiskStateInfo } from '../../types/api/pdisk';
2
- import type { TVDiskStateInfo } from '../../types/api/vdisk';
1
+ import type { TPDiskStateInfo } from '../../types/api/pdisk';
2
+ import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
3
3
  import type { PreparedPDisk, PreparedVDisk } from './types';
4
- export declare function prepareVDiskData(vdiskState?: TVDiskStateInfo): PreparedVDisk;
5
- export declare function preparePDiskData(pdiskState?: TPDiskStateInfo, bscPDiskInfo?: TPDiskInfo): PreparedPDisk;
4
+ export declare function prepareWhiteboardVDiskData(vDiskState?: TVDiskStateInfo | TVSlotId): PreparedVDisk;
5
+ export declare function prepareWhiteboardPDiskData(pdiskState?: TPDiskStateInfo): PreparedPDisk;
6
+ export declare function prepareVDiskSizeFields({ AvailableSize, AllocatedSize, }: {
7
+ AvailableSize: string | number | undefined;
8
+ AllocatedSize: string | number | undefined;
9
+ }): {
10
+ AvailableSize: number;
11
+ AllocatedSize: number;
12
+ TotalSize: number;
13
+ AllocatedPercent: number;
14
+ };
15
+ export declare function preparePDiskSizeFields({ AvailableSize, TotalSize, }: {
16
+ AvailableSize: string | number | undefined;
17
+ TotalSize: string | number | undefined;
18
+ }): {
19
+ AvailableSize: number;
20
+ TotalSize: number;
21
+ AllocatedSize: number;
22
+ AllocatedPercent: number;
23
+ };
@@ -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
- export function prepareVDiskData(vdiskState = {}) {
6
- var _a, _b, _c, _d;
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 PDisk = vdiskState.PDisk
9
- ? preparePDiskData({
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 PDiskId = (_b = vdiskState.PDiskId) !== null && _b !== void 0 ? _b : PDisk === null || PDisk === void 0 ? void 0 : PDisk.PDiskId;
15
- const available = Number((_c = vdiskState.AvailableSize) !== null && _c !== void 0 ? _c : PDisk === null || PDisk === void 0 ? void 0 : PDisk.AvailableSize);
16
- const allocated = Number(vdiskState.AllocatedSize);
17
- const total = allocated + available;
18
- const allocatedPercent = Math.round((allocated * 100) / total);
19
- const Donors = (_d = vdiskState.Donors) === null || _d === void 0 ? void 0 : _d.map((donor) => {
20
- return prepareVDiskData({ ...donor, DonorMode: true });
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
- ...vdiskState,
26
- PDisk,
27
- PDiskId,
28
- Donors,
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 preparePDiskData(pdiskState = {}, bscPDiskInfo = {}) {
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
- ...bscPDiskInfo,
45
- ...pdiskState,
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;AAG5C,MAAM,UAAU,gBAAgB,CAAC,aAA8B,EAAE;;IAC7D,sCAAsC;IACtC,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK;QAC1B,CAAC,CAAC,gBAAgB,CAAC;YACb,GAAG,UAAU,CAAC,KAAK;YACnB,MAAM,EAAE,MAAA,UAAU,CAAC,KAAK,CAAC,MAAM,mCAAI,UAAU,CAAC,MAAM;SACvD,CAAC;QACJ,CAAC,CAAC,SAAS,CAAC;IAEhB,MAAM,OAAO,GAAG,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E/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 {
@@ -28,4 +28,5 @@ export declare const prepareNodeSystemState: (systemState?: TSystemStateInfo) =>
28
28
  export declare const getProblemParamValue: (problemFilter: ProblemFilterValue | undefined) => problemFilter is "With problems";
29
29
  export declare const getUptimeParamValue: (nodesUptimeFilter: NodesUptimeFilterValues | undefined) => number | undefined;
30
30
  export declare const NODES_SORT_VALUES: NodesSortValue[];
31
+ export declare const NODES_SORT_VALUE_TO_FIELD: Record<NodesSortValue, NodesSortValue>;
31
32
  export declare const isSortableNodesProperty: (value: unknown) => value is NodesSortValue;
@@ -78,6 +78,26 @@ export const NODES_SORT_VALUES = [
78
78
  `Missing`,
79
79
  `DiskSpaceUsage`,
80
80
  `Database`,
81
+ 'Pools',
82
+ 'RAM',
81
83
  ];
84
+ // Maps column names to actual fields on backend for sorting.
85
+ export const NODES_SORT_VALUE_TO_FIELD = {
86
+ NodeId: 'NodeId',
87
+ Host: 'Host',
88
+ NodeName: 'NodeName',
89
+ DC: 'DC',
90
+ Rack: 'Rack',
91
+ Version: 'Version',
92
+ Uptime: 'Uptime',
93
+ CPU: 'CPU',
94
+ LoadAverage: 'LoadAverage',
95
+ Memory: 'Memory',
96
+ Missing: 'Missing',
97
+ DiskSpaceUsage: 'DiskSpaceUsage',
98
+ Database: 'Database',
99
+ Pools: 'CPU',
100
+ RAM: 'Memory',
101
+ };
82
102
  export const isSortableNodesProperty = (value) => NODES_SORT_VALUES.includes(value);
83
103
  //# sourceMappingURL=nodes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,cAAc,EAAC,MAAM,GAAG,CAAC;AAEjC,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,sCAAa,CAAA;IACb,sDAA6B,CAAA;AACjC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MA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2C;IAC7E,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,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,KAAK;IACZ,GAAG,EAAE,QAAQ;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAc,EAA2B,EAAE,CAC/E,iBAAiB,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAC"}
@@ -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) => "danger" | "warning" | "success" | undefined;
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.30.0",
3
+ "version": "6.32.0-hotfix.1",
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}": [
@@ -1,3 +0,0 @@
1
- {
2
- "empty.default": "Нет узлов"
3
- }
@@ -1,4 +0,0 @@
1
- import type { OperationListRequestParams } from '../../types/api/operationList';
2
- export declare const operationListApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
3
- getOperationList: import("@reduxjs/toolkit/query").QueryDefinition<OperationListRequestParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../types/api/operationList").TOperationList | undefined, "api">;
4
- }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,19 +0,0 @@
1
- import { api } from './api';
2
- export const operationListApi = api.injectEndpoints({
3
- endpoints: (build) => ({
4
- getOperationList: build.query({
5
- queryFn: async (params, { signal }) => {
6
- try {
7
- const data = await window.api.getOperationList(params, { signal });
8
- return { data };
9
- }
10
- catch (error) {
11
- return { error };
12
- }
13
- },
14
- providesTags: ['All'],
15
- }),
16
- }),
17
- overrideExisting: 'throw',
18
- });
19
- //# sourceMappingURL=operationList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationList.js","sourceRoot":"","sources":["../../../src/store/reducers/operationList.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC,eAAe,CAAC;IAChD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,gBAAgB,EAAE,KAAK,CAAC,KAAK,CAAC;YAC1B,OAAO,EAAE,KAAK,EAAE,MAAkC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAC5D,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;oBACjE,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationList.js","sourceRoot":"","sources":["../../../src/types/api/operationList.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAN,IAAY,WAsBX;AAtBD,WAAY,WAAW;IACnB,kEAAmD,CAAA;IACnD,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,4CAA6B,CAAA;IAC7B,gDAAiC,CAAA;IACjC,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB,4CAA6B,CAAA;IAC7B,8CAA+B,CAAA;IAC/B,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,0DAA2C,CAAA;IAC3C,gDAAiC,CAAA;IACjC,sCAAuB,CAAA;IACvB,kDAAmC,CAAA;IACnC,sCAAuB,CAAA;IACvB,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;IAC3B,4CAA6B,CAAA;IAC7B,gDAAiC,CAAA;AACrC,CAAC,EAtBW,WAAW,KAAX,WAAW,QAsBtB;AAiDD,MAAM,CAAN,IAAY,eAUX;AAVD,WAAY,eAAe;IACvB,0DAAuC,CAAA;IACvC,sDAAmC,CAAA;IACnC,oEAAiD,CAAA;IACjD,oDAAiC,CAAA;IACjC,4CAAyB,CAAA;IACzB,4DAAyC,CAAA;IACzC,sDAAmC,CAAA;IACnC,sDAAmC,CAAA;IACnC,oDAAiC,CAAA;AACrC,CAAC,EAVW,eAAe,KAAf,eAAe,QAU1B"}