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.
Files changed (126) 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/NodeHostWrapper/NodeHostWrapper.js +9 -5
  6. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  7. package/dist/components/PDiskPopup/PDiskPopup.js +9 -9
  8. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  9. package/dist/components/PaginatedTable/types.d.ts +1 -1
  10. package/dist/components/Search/Search.d.ts +3 -1
  11. package/dist/components/Search/Search.js +2 -2
  12. package/dist/components/Search/Search.js.map +1 -1
  13. package/dist/components/TabletNameWrapper/TabletNameWrapper.js +1 -1
  14. package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -1
  15. package/dist/components/TenantNameWrapper/TenantNameWrapper.js +1 -1
  16. package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
  17. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +10 -10
  18. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
  19. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  20. package/dist/components/VDiskPopup/VDiskPopup.js +1 -9
  21. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  22. package/dist/components/nodesColumns/constants.d.ts +4 -0
  23. package/dist/components/nodesColumns/constants.js +10 -0
  24. package/dist/components/nodesColumns/constants.js.map +1 -1
  25. package/dist/components/nodesColumns/i18n/en.json +2 -0
  26. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  27. package/dist/containers/Clusters/i18n/index.d.ts +1 -1
  28. package/dist/containers/Header/Header.js +2 -9
  29. package/dist/containers/Header/Header.js.map +1 -1
  30. package/dist/containers/Nodes/Nodes.js +11 -33
  31. package/dist/containers/Nodes/Nodes.js.map +1 -1
  32. package/dist/containers/Nodes/Nodes.scss +4 -0
  33. package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +11 -0
  34. package/dist/containers/Nodes/NodesControls/NodesControls.js +24 -0
  35. package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -0
  36. package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -2
  37. package/dist/containers/Nodes/PaginatedNodes.js +78 -54
  38. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  39. package/dist/containers/Nodes/PaginatedNodesTable.d.ts +22 -0
  40. package/dist/containers/Nodes/PaginatedNodesTable.js +30 -0
  41. package/dist/containers/Nodes/PaginatedNodesTable.js.map +1 -0
  42. package/dist/containers/Nodes/columns/constants.d.ts +4 -0
  43. package/dist/containers/Nodes/columns/constants.js +30 -0
  44. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  45. package/dist/containers/Nodes/getNodes.js +4 -5
  46. package/dist/containers/Nodes/getNodes.js.map +1 -1
  47. package/dist/containers/Nodes/i18n/en.json +5 -1
  48. package/dist/containers/Nodes/i18n/index.d.ts +1 -1
  49. package/dist/containers/Nodes/i18n/index.js +1 -2
  50. package/dist/containers/Nodes/i18n/index.js.map +1 -1
  51. package/dist/containers/Nodes/shared.d.ts +5 -0
  52. package/dist/containers/Nodes/shared.js +16 -0
  53. package/dist/containers/Nodes/shared.js.map +1 -0
  54. package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +9 -0
  55. package/dist/containers/Nodes/useNodesPageQueryParams.js +34 -0
  56. package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -0
  57. package/dist/containers/Storage/Disks/Disks.js +1 -2
  58. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  59. package/dist/containers/Storage/PaginatedStorageNodes.js +1 -2
  60. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
  61. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  62. package/dist/containers/Storage/utils/index.d.ts +1 -1
  63. package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +2 -2
  64. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -1
  65. package/dist/containers/Tenant/i18n/en.json +1 -0
  66. package/dist/containers/Tenant/i18n/index.d.ts +1 -1
  67. package/dist/containers/Tenant/utils/schemaActions.js +5 -1
  68. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  69. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +5 -1
  70. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  71. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  72. package/dist/store/reducers/capabilities/hooks.js +3 -0
  73. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  74. package/dist/store/reducers/node/selectors.js +5 -5
  75. package/dist/store/reducers/node/selectors.js.map +1 -1
  76. package/dist/store/reducers/node/types.d.ts +3 -4
  77. package/dist/store/reducers/nodes/types.d.ts +3 -1
  78. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  79. package/dist/store/reducers/nodes/utils.js +9 -4
  80. package/dist/store/reducers/nodes/utils.js.map +1 -1
  81. package/dist/store/reducers/pdisk/utils.js +6 -3
  82. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  83. package/dist/store/reducers/settings/hooks.d.ts +5 -0
  84. package/dist/store/reducers/settings/hooks.js +14 -0
  85. package/dist/store/reducers/settings/hooks.js.map +1 -0
  86. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +1 -0
  87. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +354 -0
  88. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +1 -0
  89. package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +37 -0
  90. package/dist/store/reducers/storage/prepareGroupsDisks.js +72 -0
  91. package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -0
  92. package/dist/store/reducers/storage/utils.js +7 -28
  93. package/dist/store/reducers/storage/utils.js.map +1 -1
  94. package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
  95. package/dist/store/reducers/vdisk/utils.js +3 -3
  96. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  97. package/dist/types/api/nodes.d.ts +1 -1
  98. package/dist/types/api/pdisk.d.ts +1 -1
  99. package/dist/types/api/storage.d.ts +2 -2
  100. package/dist/utils/developerUI/__test__/developerUI.test.js +21 -1
  101. package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
  102. package/dist/utils/developerUI/developerUI.d.ts +1 -0
  103. package/dist/utils/developerUI/developerUI.js +3 -0
  104. package/dist/utils/developerUI/developerUI.js.map +1 -1
  105. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +10 -7
  106. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js.map +1 -1
  107. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +8 -23
  108. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
  109. package/dist/utils/disks/__test__/prepareDisks.test.d.ts +1 -0
  110. package/dist/utils/disks/__test__/prepareDisks.test.js +200 -0
  111. package/dist/utils/disks/__test__/prepareDisks.test.js.map +1 -0
  112. package/dist/utils/disks/calculatePDiskSeverity.d.ts +5 -2
  113. package/dist/utils/disks/calculatePDiskSeverity.js +2 -2
  114. package/dist/utils/disks/calculatePDiskSeverity.js.map +1 -1
  115. package/dist/utils/disks/calculateVDiskSeverity.d.ts +8 -2
  116. package/dist/utils/disks/calculateVDiskSeverity.js +0 -4
  117. package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
  118. package/dist/utils/disks/helpers.d.ts +2 -1
  119. package/dist/utils/disks/helpers.js.map +1 -1
  120. package/dist/utils/disks/prepareDisks.d.ts +22 -4
  121. package/dist/utils/disks/prepareDisks.js +75 -28
  122. package/dist/utils/disks/prepareDisks.js.map +1 -1
  123. package/dist/utils/disks/types.d.ts +9 -2
  124. package/dist/utils/storage.d.ts +1 -1
  125. package/package.json +3 -2
  126. 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
- 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,MA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BAAsB,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 {
@@ -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.31.0",
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}": [
@@ -1,3 +0,0 @@
1
- {
2
- "empty.default": "Нет узлов"
3
- }