ydb-embedded-ui 6.23.1 → 6.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. package/dist/components/CellWithPopover/CellWithPopover.js +2 -1
  2. package/dist/components/CellWithPopover/CellWithPopover.js.map +1 -1
  3. package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +6 -2
  4. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  5. package/dist/components/PDiskPopup/PDiskPopup.js +8 -1
  6. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  7. package/dist/components/PaginatedTable/PaginatedTable.d.ts +3 -2
  8. package/dist/components/PaginatedTable/PaginatedTable.js +15 -21
  9. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  10. package/dist/components/PaginatedTable/TableChunk.d.ts +1 -2
  11. package/dist/components/PaginatedTable/TableChunk.js +5 -19
  12. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  13. package/dist/components/PaginatedTable/useScrollBasedChunks.d.ts +9 -0
  14. package/dist/components/PaginatedTable/useScrollBasedChunks.js +35 -0
  15. package/dist/components/PaginatedTable/useScrollBasedChunks.js.map +1 -0
  16. package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
  17. package/dist/components/TabletsStatistic/TabletsStatistic.js +2 -2
  18. package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
  19. package/dist/components/VDisk/VDisk.js +12 -26
  20. package/dist/components/VDisk/VDisk.js.map +1 -1
  21. package/dist/components/VDisk/VDisk.scss +2 -0
  22. package/dist/components/VDisk/VDiskWithDonorsStack.js +2 -2
  23. package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
  24. package/dist/components/VDisk/utils.d.ts +2 -0
  25. package/dist/components/VDisk/utils.js +23 -0
  26. package/dist/components/VDisk/utils.js.map +1 -0
  27. package/dist/components/VDiskInfo/VDiskInfo.js +2 -2
  28. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  29. package/dist/components/VDiskPopup/VDiskPopup.d.ts +2 -3
  30. package/dist/components/VDiskPopup/VDiskPopup.js +29 -3
  31. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  32. package/dist/components/nodesColumns/columns.d.ts +55 -0
  33. package/dist/components/nodesColumns/columns.js +187 -0
  34. package/dist/components/nodesColumns/columns.js.map +1 -0
  35. package/dist/components/nodesColumns/constants.d.ts +39 -0
  36. package/dist/components/nodesColumns/constants.js +73 -0
  37. package/dist/components/nodesColumns/constants.js.map +1 -0
  38. package/dist/{containers/Nodes/columns → components/nodesColumns}/i18n/en.json +4 -3
  39. package/dist/components/nodesColumns/i18n/index.d.ts +2 -0
  40. package/dist/{containers/Nodes/columns → components/nodesColumns}/i18n/index.js +1 -1
  41. package/dist/components/nodesColumns/i18n/index.js.map +1 -0
  42. package/dist/components/nodesColumns/types.d.ts +8 -0
  43. package/dist/components/nodesColumns/types.js.map +1 -0
  44. package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +8 -4
  45. package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
  46. package/dist/containers/Authentication/Authentication.js +12 -10
  47. package/dist/containers/Authentication/Authentication.js.map +1 -1
  48. package/dist/containers/Cluster/Cluster.js +3 -1
  49. package/dist/containers/Cluster/Cluster.js.map +1 -1
  50. package/dist/containers/Cluster/utils.d.ts +4 -0
  51. package/dist/containers/Cluster/utils.js +6 -1
  52. package/dist/containers/Cluster/utils.js.map +1 -1
  53. package/dist/containers/Node/Node.js +1 -1
  54. package/dist/containers/Node/Node.js.map +1 -1
  55. package/dist/containers/Nodes/Nodes.js +1 -1
  56. package/dist/containers/Nodes/Nodes.js.map +1 -1
  57. package/dist/containers/Nodes/NodesWrapper.d.ts +2 -2
  58. package/dist/containers/Nodes/NodesWrapper.js +2 -2
  59. package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
  60. package/dist/containers/Nodes/PaginatedNodes.d.ts +3 -2
  61. package/dist/containers/Nodes/PaginatedNodes.js +3 -3
  62. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  63. package/dist/containers/Nodes/columns/columns.d.ts +2 -7
  64. package/dist/containers/Nodes/columns/columns.js +13 -187
  65. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  66. package/dist/containers/Nodes/columns/constants.d.ts +1 -38
  67. package/dist/containers/Nodes/columns/constants.js +0 -68
  68. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  69. package/dist/containers/Nodes/columns/hooks.d.ts +3 -3
  70. package/dist/containers/Nodes/columns/hooks.js +2 -1
  71. package/dist/containers/Nodes/columns/hooks.js.map +1 -1
  72. package/dist/containers/PDiskPage/PDiskPage.js +2 -2
  73. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  74. package/dist/containers/Storage/Disks/Disks.d.ts +2 -2
  75. package/dist/containers/Storage/Disks/Disks.js +5 -6
  76. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  77. package/dist/containers/Storage/PDisk/PDisk.d.ts +2 -2
  78. package/dist/containers/Storage/PDisk/PDisk.js +13 -11
  79. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  80. package/dist/containers/Storage/PaginatedStorage.d.ts +4 -1
  81. package/dist/containers/Storage/PaginatedStorage.js +3 -2
  82. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  83. package/dist/containers/Storage/PaginatedStorageGroups.js +7 -6
  84. package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -1
  85. package/dist/containers/Storage/PaginatedStorageNodes.js +9 -8
  86. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
  87. package/dist/containers/Storage/Storage.d.ts +3 -1
  88. package/dist/containers/Storage/Storage.js +3 -3
  89. package/dist/containers/Storage/Storage.js.map +1 -1
  90. package/dist/containers/Storage/StorageControls/StorageControls.js +2 -2
  91. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +3 -2
  92. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js +2 -2
  93. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -1
  94. package/dist/containers/Storage/StorageGroups/columns/StorageGroupsColumns.scss +10 -1
  95. package/dist/containers/Storage/StorageGroups/columns/columns.js +21 -16
  96. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
  97. package/dist/containers/Storage/StorageGroups/columns/constants.js +1 -1
  98. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  99. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -2
  100. package/dist/containers/Storage/StorageGroups/columns/hooks.js +5 -5
  101. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  102. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +1 -1
  103. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +1 -1
  104. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +3 -2
  105. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +3 -2
  106. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js +2 -2
  107. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -1
  108. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +2 -38
  109. package/dist/containers/Storage/StorageNodes/columns/columns.js +34 -71
  110. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  111. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +20 -4
  112. package/dist/containers/Storage/StorageNodes/columns/constants.js +4 -32
  113. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  114. package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +2 -39
  115. package/dist/containers/Storage/StorageNodes/columns/hooks.js +4 -4
  116. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -1
  117. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +0 -8
  118. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +1 -1
  119. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +5 -5
  120. package/dist/containers/Storage/StorageWrapper.d.ts +6 -3
  121. package/dist/containers/Storage/StorageWrapper.js +10 -3
  122. package/dist/containers/Storage/StorageWrapper.js.map +1 -1
  123. package/dist/containers/Storage/types.d.ts +6 -0
  124. package/dist/containers/Storage/types.js +2 -0
  125. package/dist/containers/Storage/types.js.map +1 -0
  126. package/dist/containers/Storage/utils/index.d.ts +4 -6
  127. package/dist/containers/Storage/utils/index.js +35 -9
  128. package/dist/containers/Storage/utils/index.js.map +1 -1
  129. package/dist/containers/StorageGroupPage/StorageGroupPage.js +2 -2
  130. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
  131. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +2 -9
  132. package/dist/containers/Tablets/Tablets.js +2 -123
  133. package/dist/containers/Tablets/Tablets.js.map +1 -1
  134. package/dist/containers/Tablets/TabletsTable.d.ts +10 -0
  135. package/dist/containers/Tablets/TabletsTable.js +129 -0
  136. package/dist/containers/Tablets/TabletsTable.js.map +1 -0
  137. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -4
  138. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  139. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +4 -0
  140. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +18 -3
  141. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  142. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +22 -3
  143. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  144. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -1
  145. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
  146. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -1
  147. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js.map +1 -1
  148. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +23 -2
  149. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  150. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -6
  151. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  152. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -1
  153. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js.map +1 -1
  154. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +2 -1
  155. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  156. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +4 -2
  157. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -1
  158. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +2 -1
  159. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -1
  160. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +2 -1
  161. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
  162. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +5 -7
  163. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  164. package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.scss +1 -1
  165. package/dist/containers/Tenant/Query/Preview/Preview.js +3 -2
  166. package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
  167. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +1 -4
  168. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  169. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +4 -4
  170. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +1 -1
  171. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  172. package/dist/containers/Tenants/Tenants.js +10 -2
  173. package/dist/containers/Tenants/Tenants.js.map +1 -1
  174. package/dist/containers/UserSettings/i18n/en.json +0 -2
  175. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  176. package/dist/containers/UserSettings/settings.d.ts +0 -1
  177. package/dist/containers/UserSettings/settings.js +2 -7
  178. package/dist/containers/UserSettings/settings.js.map +1 -1
  179. package/dist/containers/VDiskPage/VDiskPage.js +3 -4
  180. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  181. package/dist/services/api.d.ts +3 -4
  182. package/dist/services/api.js +1 -3
  183. package/dist/services/api.js.map +1 -1
  184. package/dist/services/settings.d.ts +1 -2
  185. package/dist/services/settings.js +1 -2
  186. package/dist/services/settings.js.map +1 -1
  187. package/dist/store/reducers/cluster/__test__/parseGroupsStatsQueryResponse.test.js +62 -40
  188. package/dist/store/reducers/cluster/__test__/parseGroupsStatsQueryResponse.test.js.map +1 -1
  189. package/dist/store/reducers/cluster/cluster.js +0 -1
  190. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  191. package/dist/store/reducers/cluster/utils.d.ts +1 -1
  192. package/dist/store/reducers/cluster/utils.js +2 -1
  193. package/dist/store/reducers/cluster/utils.js.map +1 -1
  194. package/dist/store/reducers/executeQuery.d.ts +0 -2
  195. package/dist/store/reducers/executeQuery.js +1 -2
  196. package/dist/store/reducers/executeQuery.js.map +1 -1
  197. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +1 -1
  198. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +4 -4
  199. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  200. package/dist/store/reducers/nodes/types.d.ts +2 -7
  201. package/dist/store/reducers/nodes/utils.js +0 -6
  202. package/dist/store/reducers/nodes/utils.js.map +1 -1
  203. package/dist/store/reducers/preview.js +1 -1
  204. package/dist/store/reducers/preview.js.map +1 -1
  205. package/dist/store/reducers/shardsWorkload/shardsWorkload.js +0 -1
  206. package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
  207. package/dist/store/reducers/storage/types.d.ts +6 -7
  208. package/dist/store/reducers/storage/utils.js +23 -9
  209. package/dist/store/reducers/storage/utils.js.map +1 -1
  210. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +0 -1
  211. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js.map +1 -1
  212. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +0 -1
  213. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
  214. package/dist/store/reducers/tenants/types.d.ts +1 -0
  215. package/dist/store/reducers/tenants/utils.js +4 -2
  216. package/dist/store/reducers/tenants/utils.js.map +1 -1
  217. package/dist/store/reducers/viewSchema/viewSchema.js +2 -2
  218. package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
  219. package/dist/types/additionalProps.d.ts +1 -1
  220. package/dist/types/api/cluster.d.ts +2 -0
  221. package/dist/types/api/cluster.js +3 -1
  222. package/dist/types/api/cluster.js.map +1 -1
  223. package/dist/types/api/nodes.d.ts +3 -0
  224. package/dist/types/api/nodes.js.map +1 -1
  225. package/dist/types/api/query.d.ts +16 -30
  226. package/dist/types/api/storage.d.ts +2 -2
  227. package/dist/types/store/query.d.ts +0 -1
  228. package/dist/utils/constants.d.ts +0 -1
  229. package/dist/utils/constants.js +0 -2
  230. package/dist/utils/constants.js.map +1 -1
  231. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +1 -2
  232. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
  233. package/dist/utils/disks/calculateVDiskSeverity.js +2 -3
  234. package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
  235. package/dist/utils/disks/prepareDisks.js +3 -0
  236. package/dist/utils/disks/prepareDisks.js.map +1 -1
  237. package/dist/utils/disks/types.d.ts +1 -0
  238. package/dist/utils/nodes.d.ts +4 -2
  239. package/dist/utils/nodes.js +10 -1
  240. package/dist/utils/nodes.js.map +1 -1
  241. package/dist/utils/query.d.ts +5 -5
  242. package/dist/utils/query.js +7 -22
  243. package/dist/utils/query.js.map +1 -1
  244. package/dist/utils/query.test.js +221 -56
  245. package/dist/utils/query.test.js.map +1 -1
  246. package/dist/utils/storage.d.ts +1 -0
  247. package/dist/utils/storage.js +3 -0
  248. package/dist/utils/storage.js.map +1 -1
  249. package/package.json +1 -1
  250. package/dist/components/PaginatedTable/useIntersectionObserver.d.ts +0 -9
  251. package/dist/components/PaginatedTable/useIntersectionObserver.js +0 -28
  252. package/dist/components/PaginatedTable/useIntersectionObserver.js.map +0 -1
  253. package/dist/containers/Nodes/columns/i18n/index.d.ts +0 -2
  254. package/dist/containers/Nodes/columns/i18n/index.js.map +0 -1
  255. package/dist/containers/Nodes/columns/types.d.ts +0 -9
  256. package/dist/containers/Nodes/columns/types.js.map +0 -1
  257. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +0 -2
  258. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +0 -7
  259. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +0 -1
  260. /package/dist/{containers/Nodes/columns → components/nodesColumns}/types.js +0 -0
@@ -1,23 +1,18 @@
1
1
  import { z } from 'zod';
2
+ import { NODES_COLUMNS_IDS as BASE_NODES_COLUMNS_IDS, NODES_COLUMNS_TITLES as BASE_NODES_COLUMNS_TITLES, } from '../../../../components/nodesColumns/constants';
2
3
  import i18n from './i18n';
3
4
  export const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = 'storageNodesColumnsWidth';
4
5
  export const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = 'storageNodesSelectedColumns';
5
6
  export const STORAGE_NODES_COLUMNS_IDS = {
6
- NodeId: 'NodeId',
7
- Host: 'Host',
8
- DC: 'DC',
9
- Rack: 'Rack',
10
- Version: 'Version',
11
- Uptime: 'Uptime',
7
+ ...BASE_NODES_COLUMNS_IDS,
12
8
  PDisks: 'PDisks',
13
- Missing: 'Missing',
14
- DiskSpaceUsage: 'DiskSpaceUsage',
15
9
  };
16
10
  export const DEFAULT_STORAGE_NODES_COLUMNS = [
17
11
  'NodeId',
18
12
  'Host',
19
13
  'DC',
20
14
  'Rack',
15
+ 'CPU',
21
16
  'Uptime',
22
17
  'PDisks',
23
18
  ];
@@ -25,33 +20,10 @@ export const REQUIRED_STORAGE_NODES_COLUMNS = ['NodeId'];
25
20
  // This code is running when module is initialized and correct language may not be set yet
26
21
  // get functions guarantee that i18n fields will be inited on render with current render language
27
22
  export const STORAGE_NODES_COLUMNS_TITLES = {
28
- get NodeId() {
29
- return i18n('nodes-id');
30
- },
31
- get Host() {
32
- return i18n('host');
33
- },
34
- get DC() {
35
- return i18n('dc');
36
- },
37
- get Rack() {
38
- return i18n('rack');
39
- },
40
- get Version() {
41
- return i18n('version');
42
- },
43
- get Uptime() {
44
- return i18n('uptime');
45
- },
23
+ ...BASE_NODES_COLUMNS_TITLES,
46
24
  get PDisks() {
47
25
  return i18n('pdisks');
48
26
  },
49
- get Missing() {
50
- return i18n('missing');
51
- },
52
- get DiskSpaceUsage() {
53
- return i18n('disk-space-usage');
54
- },
55
27
  };
56
28
  const STORAGE_NODES_GROUP_BY_PARAMS = [
57
29
  'Host',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,M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E1D,MAAM,6BAA6B,GAAG;IAClC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,SAAS;IACT,gBAAgB;CACoB,CAAC;AAEzC,MAAM,CAAC,MAAM,8BAA8B,GAAmB,6BAA6B,CAAC,GAAG,CAC3F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,4BAA4B,CAAC,KAAK,CAAC;KAC/C,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC1C,MAAM,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/F,KAAK,CAAC,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EACH,iBAAiB,IAAI,sBAAsB,EAC3C,oBAAoB,IAAI,yBAAyB,GACpD,MAAM,+CAA+C,CAAC;AAIvD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,GAAG,sBAAsB;IACzB,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX,MAAM,CAAC,MAAM,6BAA6B,GAA2B;IACjE,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,KAAK;IACL,QAAQ;IACR,QAAQ;CACX,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAA2B,CAAC,QAAQ,CAAC,CAAC;AAEjF,0FAA0F;AAC1F,iGAAiG;AACjG,MAAM,CAAC,MAAM,4BAA4B,GAAG;IACxC,GAAG,yBAAyB;IAC5B,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;CACoD,CAAC;AAE1D,MAAM,6BAA6B,GAAG;IAClC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,SAAS;IACT,gBAAgB;CACoB,CAAC;AAEzC,MAAM,CAAC,MAAM,8BAA8B,GAAmB,6BAA6B,CAAC,GAAG,CAC3F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,4BAA4B,CAAC,KAAK,CAAC;KAC/C,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC1C,MAAM,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/F,KAAK,CAAC,SAAS,CAAC,CAAC"}
@@ -1,43 +1,6 @@
1
- import React from 'react';
2
1
  import type { GetStorageNodesColumnsParams } from './types';
3
- export declare function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, groupId, }: GetStorageNodesColumnsParams): {
4
- columnsToShow: {
5
- sortable: boolean;
6
- name: string;
7
- header?: React.ReactNode;
8
- className?: string;
9
- resizeable?: boolean;
10
- render: ((props: {
11
- row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
12
- index: number;
13
- }) => React.ReactNode) & ((props: {
14
- value?: unknown;
15
- row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
16
- index: number;
17
- footer?: boolean;
18
- headerData?: boolean;
19
- }) => React.ReactNode);
20
- width?: number;
21
- resizeMaxWidth?: number;
22
- resizeMinWidth?: number;
23
- align: "center" | "left" | "right";
24
- headerTitle?: string;
25
- accessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
26
- title?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => string) | undefined;
27
- customStyle?: ((props: import("@gravity-ui/react-data-table").CustomStyleParams<import("../../../../store/reducers/storage/types").PreparedStorageNode>) => React.CSSProperties) | undefined;
28
- onClick?: ((data: {
29
- row: import("../../../../store/reducers/storage/types").PreparedStorageNode;
30
- index: number;
31
- footer?: boolean;
32
- headerData?: boolean;
33
- }, column: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>, event: React.MouseEvent<HTMLTableCellElement>) => void) | undefined;
34
- defaultOrder?: import("@gravity-ui/react-data-table").OrderType;
35
- sortAccessor?: string | ((row: import("../../../../store/reducers/storage/types").PreparedStorageNode) => any) | undefined;
36
- sortAscending?: import("@gravity-ui/react-data-table").Comparator<import("../../../../store/reducers/storage/types").PreparedStorageNode> | undefined;
37
- sub?: import("@gravity-ui/react-data-table").Column<import("../../../../store/reducers/storage/types").PreparedStorageNode>[] | undefined;
38
- group?: boolean;
39
- autogroup?: boolean;
40
- }[];
2
+ export declare function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, viewContext, }: GetStorageNodesColumnsParams): {
3
+ columnsToShow: import("./types").StorageNodesColumn[];
41
4
  columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
42
5
  setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
43
6
  };
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
3
3
  import { useSelectedColumns } from '../../../../utils/hooks/useSelectedColumns';
4
- import { getPreparedStorageNodesColumns } from './columns';
4
+ import { getStorageNodesColumns } from './columns';
5
5
  import { DEFAULT_STORAGE_NODES_COLUMNS, REQUIRED_STORAGE_NODES_COLUMNS, STORAGE_NODES_COLUMNS_IDS, STORAGE_NODES_COLUMNS_TITLES, STORAGE_NODES_SELECTED_COLUMNS_LS_KEY, } from './constants';
6
- export function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, groupId, }) {
6
+ export function useStorageNodesSelectedColumns({ visibleEntities, database, additionalNodesProps, viewContext, }) {
7
7
  const columns = React.useMemo(() => {
8
- return getPreparedStorageNodesColumns({ database, additionalNodesProps, groupId });
9
- }, [database, additionalNodesProps, groupId]);
8
+ return getStorageNodesColumns({ database, additionalNodesProps, viewContext });
9
+ }, [database, additionalNodesProps, viewContext]);
10
10
  const requiredColumns = React.useMemo(() => {
11
11
  if (visibleEntities === VISIBLE_ENTITIES.missing) {
12
12
  return [...REQUIRED_STORAGE_NODES_COLUMNS, STORAGE_NODES_COLUMNS_IDS.Missing];
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,8BAA8B,EAAC,MAAM,WAAW,CAAC;AACzD,OAAO,EACH,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EACzB,4BAA4B,EAC5B,qCAAqC,GACxC,MAAM,aAAa,CAAC;AAGrB,MAAM,UAAU,8BAA8B,CAAC,EAC3C,eAAe,EACf,QAAQ,EACR,oBAAoB,EACpB,OAAO,GACoB;IAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,8BAA8B,CAAC,EAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,EAAC,CAAC,CAAC;IACrF,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC;IAE9C,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC/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eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,kBAAkB,CACrB,OAAO,EACP,qCAAqC,EACrC,4BAA4B,EAC5B,6BAA6B,EAC7B,eAAe,CAClB,CAAC;AACN,CAAC"}
@@ -1,11 +1,3 @@
1
1
  {
2
- "nodes-id": "Node ID",
3
- "host": "Host",
4
- "dc": "DC",
5
- "rack": "Rack",
6
- "version": "Version",
7
- "uptime": "Uptime",
8
- "missing": "Missing",
9
- "disk-space-usage": "Disk space usage",
10
2
  "pdisks": "PDisks"
11
3
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "missing" | "version" | "host" | "uptime" | "dc" | "rack" | "disk-space-usage" | "nodes-id" | "pdisks", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "pdisks", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -1,11 +1,11 @@
1
- import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
2
- import type { Column as PaginatedTableColumn } from '../../../../components/PaginatedTable';
1
+ import type { Column } from '../../../../components/nodesColumns/types';
3
2
  import type { PreparedStorageNode, VisibleEntities } from '../../../../store/reducers/storage/types';
4
3
  import type { AdditionalNodesProps } from '../../../../types/additionalProps';
5
- export type StorageNodesColumn = PaginatedTableColumn<PreparedStorageNode> & DataTableColumn<PreparedStorageNode>;
4
+ import type { StorageViewContext } from '../../types';
5
+ export type StorageNodesColumn = Column<PreparedStorageNode>;
6
6
  export interface GetStorageNodesColumnsParams {
7
- additionalNodesProps: AdditionalNodesProps | undefined;
7
+ additionalNodesProps?: AdditionalNodesProps | undefined;
8
8
  visibleEntities?: VisibleEntities;
9
9
  database?: string;
10
- groupId?: string;
10
+ viewContext: StorageViewContext;
11
11
  }
@@ -1,7 +1,10 @@
1
1
  interface StorageWrapperProps {
2
2
  database?: string;
3
- nodeId?: string;
4
- parentContainer?: Element | null;
3
+ nodeId?: string | number;
4
+ pDiskId?: string | number;
5
+ groupId?: string | number;
6
+ vDiskSlotId?: string | number;
7
+ parentRef?: React.RefObject<HTMLElement>;
5
8
  }
6
- export declare const StorageWrapper: ({ parentContainer, ...props }: StorageWrapperProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const StorageWrapper: ({ parentRef, ...props }: StorageWrapperProps) => import("react/jsx-runtime").JSX.Element;
7
10
  export {};
@@ -3,11 +3,18 @@ import { USE_PAGINATED_TABLES_KEY } from '../../utils/constants';
3
3
  import { useSetting } from '../../utils/hooks';
4
4
  import { PaginatedStorage } from './PaginatedStorage';
5
5
  import { Storage } from './Storage';
6
- export const StorageWrapper = ({ parentContainer, ...props }) => {
6
+ export const StorageWrapper = ({ parentRef, ...props }) => {
7
+ var _a, _b, _c, _d;
7
8
  const [usePaginatedTables] = useSetting(USE_PAGINATED_TABLES_KEY);
9
+ const viewContext = {
10
+ nodeId: (_a = props.nodeId) === null || _a === void 0 ? void 0 : _a.toString(),
11
+ pDiskId: (_b = props.pDiskId) === null || _b === void 0 ? void 0 : _b.toString(),
12
+ groupId: (_c = props.groupId) === null || _c === void 0 ? void 0 : _c.toString(),
13
+ vDiskSlotId: (_d = props.vDiskSlotId) === null || _d === void 0 ? void 0 : _d.toString(),
14
+ };
8
15
  if (usePaginatedTables) {
9
- return _jsx(PaginatedStorage, { parentContainer: parentContainer, ...props });
16
+ return _jsx(PaginatedStorage, { parentRef: parentRef, viewContext: viewContext, ...props });
10
17
  }
11
- return _jsx(Storage, { ...props });
18
+ return _jsx(Storage, { viewContext: viewContext, ...props });
12
19
  };
13
20
  //# sourceMappingURL=StorageWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StorageWrapper.js","sourceRoot":"","sources":["../../../src/containers/Storage/StorageWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO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AW,EAAE,WAAW,KAAM,KAAK,GAAI,CAAC;IAC3F,CAAC;IAED,OAAO,KAAC,OAAO,IAAC,WAAW,EAAE,WAAW,KAAM,KAAK,GAAI,CAAC;AAC5D,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type StorageViewContext = {
2
+ groupId?: string;
3
+ nodeId?: string;
4
+ pDiskId?: string;
5
+ vDiskSlotId?: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/containers/Storage/types.ts"],"names":[],"mappings":""}
@@ -1,12 +1,10 @@
1
1
  import type { NodesSortParams } from '../../../store/reducers/nodes/types';
2
2
  import type { PreparedStorageGroup, StorageSortParams, VisibleEntities } from '../../../store/reducers/storage/types';
3
3
  import type { PreparedVDisk } from '../../../utils/disks/types';
4
+ import type { StorageViewContext } from '../types';
4
5
  export declare const getDegradedSeverity: (group: PreparedStorageGroup) => "success" | "danger" | "warning" | undefined;
5
- export declare const getUsageSeverityForStorageGroup: (value: number) => "success" | "danger" | "warning" | undefined;
6
6
  export declare const defaultSortNode: NodesSortParams;
7
7
  export declare function getDefaultSortGroup(visibleEntities: VisibleEntities): StorageSortParams;
8
- export type VDiskViewContext = {
9
- groupId?: string;
10
- nodeId?: string;
11
- };
12
- export declare function isVdiskActive(vDisk: PreparedVDisk, viewContext?: VDiskViewContext): boolean;
8
+ export declare function isVdiskActive(vDisk: PreparedVDisk, viewContext?: StorageViewContext): boolean;
9
+ export declare function getStorageNodesInitialEntitiesCount({ nodeId, pDiskId, vDiskSlotId, }: StorageViewContext): number | undefined;
10
+ export declare function getStorageGroupsInitialEntitiesCount({ vDiskSlotId, groupId, }: StorageViewContext): number | undefined;
@@ -1,8 +1,8 @@
1
1
  import { ASCENDING, DESCENDING } from '@gravity-ui/react-data-table/build/esm/lib/constants';
2
+ import { NODES_COLUMNS_IDS } from '../../../components/nodesColumns/constants';
2
3
  import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
3
4
  import { valueIsDefined } from '../../../utils';
4
5
  import { generateEvaluator } from '../../../utils/generateEvaluator';
5
- import { NODES_COLUMNS_IDS } from '../../Nodes/columns/constants';
6
6
  import { STORAGE_GROUPS_COLUMNS_IDS } from '../StorageGroups/columns/constants';
7
7
  const defaultDegradationEvaluator = generateEvaluator(1, 2, ['success', 'warning', 'danger']);
8
8
  const degradationEvaluators = {
@@ -16,11 +16,6 @@ export const getDegradedSeverity = (group) => {
16
16
  : defaultDegradationEvaluator;
17
17
  return evaluate(group.Degraded);
18
18
  };
19
- export const getUsageSeverityForStorageGroup = generateEvaluator(80, 85, [
20
- 'success',
21
- 'warning',
22
- 'danger',
23
- ]);
24
19
  export const defaultSortNode = {
25
20
  sortValue: NODES_COLUMNS_IDS.NodeId,
26
21
  sortOrder: ASCENDING,
@@ -48,12 +43,43 @@ export function getDefaultSortGroup(visibleEntities) {
48
43
  }
49
44
  export function isVdiskActive(vDisk, viewContext) {
50
45
  var _a;
46
+ let isActive = true;
51
47
  if (valueIsDefined((_a = vDisk.VDiskId) === null || _a === void 0 ? void 0 : _a.GroupID) && (viewContext === null || viewContext === void 0 ? void 0 : viewContext.groupId)) {
52
- return String(vDisk.VDiskId.GroupID) === viewContext.groupId;
48
+ isActive && (isActive = String(vDisk.VDiskId.GroupID) === viewContext.groupId);
53
49
  }
54
50
  if (valueIsDefined(vDisk.NodeId) && (viewContext === null || viewContext === void 0 ? void 0 : viewContext.nodeId)) {
55
- return String(vDisk.NodeId) === viewContext.nodeId;
51
+ isActive && (isActive = String(vDisk.NodeId) === viewContext.nodeId);
56
52
  }
57
- return true;
53
+ if (valueIsDefined(vDisk.PDiskId) && (viewContext === null || viewContext === void 0 ? void 0 : viewContext.pDiskId)) {
54
+ isActive && (isActive = String(vDisk.PDiskId) === viewContext.pDiskId);
55
+ }
56
+ if (valueIsDefined(vDisk.VDiskSlotId) && (viewContext === null || viewContext === void 0 ? void 0 : viewContext.vDiskSlotId)) {
57
+ isActive && (isActive = String(vDisk.VDiskSlotId) === viewContext.vDiskSlotId);
58
+ }
59
+ return isActive;
60
+ }
61
+ const DEFAULT_ENTITIES_COUNT = 10;
62
+ // NodePage - 1 node
63
+ // GroupPage - DEFAULT_ENTITIES_COUNT nodes
64
+ // PDiskPage - 1 node
65
+ // VDiskPage - 1 node
66
+ export function getStorageNodesInitialEntitiesCount({ nodeId, pDiskId, vDiskSlotId, }) {
67
+ if (valueIsDefined(nodeId) || valueIsDefined(pDiskId) || valueIsDefined(vDiskSlotId)) {
68
+ return 1;
69
+ }
70
+ return DEFAULT_ENTITIES_COUNT;
71
+ }
72
+ // NodePage - DEFAULT_ENTITIES_COUNT groups
73
+ // GroupPage - 1 group
74
+ // PDiskPage - DEFAULT_ENTITIES_COUNT groups
75
+ // VDiskPage - 1 group
76
+ export function getStorageGroupsInitialEntitiesCount({ vDiskSlotId, groupId, }) {
77
+ if (valueIsDefined(groupId)) {
78
+ return 1;
79
+ }
80
+ if (valueIsDefined(vDiskSlotId)) {
81
+ return 1;
82
+ }
83
+ return DEFAULT_ENTITIES_COUNT;
58
84
  }
59
85
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAG3F,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAM3E,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAC,iBAAiB,EAAC,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAC,0BAA0B,EAAC,MAAM,oCAAoC,CAAC;AAE9E,MAAM,2BAA2B,GAAG,iBAAiB,CAAC,CAAC,EAAE,CAAC,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AAC,WAAW,CAAC,KAAK,WAAW,CAAC,WAAW,EAAC;IACvE,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAElC,qBAAqB;AACrB,2CAA2C;AAC3C,qBAAqB;AACrB,qBAAqB;AACrB,MAAM,UAAU,mCAAmC,CAAC,EAChD,MAAM,EACN,OAAO,EACP,WAAW,GACM;IACjB,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,cAAc,CAAC,WAAW,CAAC,EAAE,CAAC;QACnF,OAAO,CAAC,CAAC;IACb,CAAC;IAED,OAAO,sBAAsB,CAAC;AAClC,CAAC;AAED,2CAA2C;AAC3C,sBAAsB;AACtB,4CAA4C;AAC5C,sBAAsB;AACtB,MAAM,UAAU,oCAAoC,CAAC,EACjD,WAAW,EACX,OAAO,GACU;IACjB,IAAI,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1B,OAAO,CAAC,CAAC;IACb,CAAC;IACD,IAAI,cAAc,CAAC,WAAW,CAAC,EAAE,CAAC;QAC9B,OAAO,CAAC,CAAC;IACb,CAAC;IAED,OAAO,sBAAsB,CAAC;AAClC,CAAC"}
@@ -15,7 +15,7 @@ import { EFlag } from '../../types/api/enums';
15
15
  import { valueIsDefined } from '../../utils';
16
16
  import { cn } from '../../utils/cn';
17
17
  import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
18
- import { Storage } from '../Storage/Storage';
18
+ import { StorageWrapper } from '../Storage/StorageWrapper';
19
19
  import { storageGroupPageKeyset } from './i18n';
20
20
  import './StorageGroupPage.scss';
21
21
  const storageGroupPageCn = cn('ydb-storage-group-page');
@@ -61,7 +61,7 @@ export function StorageGroupPage() {
61
61
  if (!groupId) {
62
62
  return null;
63
63
  }
64
- return (_jsxs(React.Fragment, { children: [_jsx("div", { className: storageGroupPageCn('storage-title'), children: storageGroupPageKeyset('storage') }), _jsx(Storage, { groupId: groupId })] }));
64
+ return (_jsxs(React.Fragment, { children: [_jsx("div", { className: storageGroupPageCn('storage-title'), children: storageGroupPageKeyset('storage') }), _jsx(StorageWrapper, { groupId: groupId })] }));
65
65
  };
66
66
  const renderError = () => {
67
67
  if (!groupQuery.error) {
@@ -1 +1 @@
1
- {"version":3,"file":"StorageGroupPage.js","sourceRoot":"","sources":["../../../src/containers/StorageGroupPage/StorageGroupPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,oDAAoD,CAAC;AACpF,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,QAAQ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AAC;YACX,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACX,cAAK,SAAS,EAAE,kBAAkB,CAAC,eAAe,CAAC,YAC9C,sBAAsB,CAAC,SAAS,CAAC,GAChC,EACN,KAAC,OAAO,IAAC,OAAO,EAAE,OAAO,GAAI,IAChB,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,UAAU,CAAC,KAAK,GAAI,CAAC;IACtD,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,aACnC,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,WAAW,EAAE,EACb,UAAU,EAAE,EACZ,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"StorageGroupPage.js","sourceRoot":"","sources":["../../../src/containers/StorageGroupPage/StorageGroupPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,oDAAoD,CAAC;AACpF,OAAO,E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
56
- padding: 0;
57
- @include text-body-2();
58
- }
59
- &__table-cell {
60
- &_align_right {
61
- text-align: right;
62
- }
54
+ :is(&__table-cell_align_right) {
55
+ text-align: right;
63
56
  }
64
57
  &__metrics-cell {
65
58
  padding: var(--g-spacing-1) var(--g-spacing-2);
@@ -1,133 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ArrowsRotateRight } from '@gravity-ui/icons';
3
- import { Icon, Text } from '@gravity-ui/uikit';
4
2
  import { skipToken } from '@reduxjs/toolkit/query';
5
- import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
6
- import { DeveloperUILinkButton } from '../../components/DeveloperUILinkButton/DeveloperUILinkButton';
7
- import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
8
3
  import { ResponseError } from '../../components/Errors/ResponseError';
9
- import { InternalLink } from '../../components/InternalLink';
10
- import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
11
4
  import { TableSkeleton } from '../../components/TableSkeleton/TableSkeleton';
12
- import { TabletState } from '../../components/TabletState/TabletState';
13
- import { getTabletPagePath } from '../../routes';
14
- import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
15
- import { tabletApi } from '../../store/reducers/tablet';
16
5
  import { selectTabletsWithFqdn, tabletsApi } from '../../store/reducers/tablets';
17
- import { ETabletState } from '../../types/api/tablet';
18
6
  import { cn } from '../../utils/cn';
19
- import { DEFAULT_TABLE_SETTINGS, EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
20
- import { calcUptime } from '../../utils/dataFormatters/dataFormatters';
21
- import { createTabletDeveloperUIHref } from '../../utils/developerUI/developerUI';
22
7
  import { useAutoRefreshInterval, useTypedSelector } from '../../utils/hooks';
23
- import { getDefaultNodePath } from '../Node/NodePages';
24
- import i18n from './i18n';
8
+ import { TabletsTable } from './TabletsTable';
25
9
  const b = cn('tablets');
26
- function getColumns({ database }) {
27
- const columns = [
28
- {
29
- name: 'Type',
30
- get header() {
31
- return i18n('Type');
32
- },
33
- render: ({ row }) => {
34
- const isFollower = row.Leader === false;
35
- return (_jsxs("span", { children: [row.Type, " ", isFollower ? _jsx(Text, { color: "secondary", children: "follower" }) : ''] }));
36
- },
37
- },
38
- {
39
- name: 'TabletId',
40
- width: 220,
41
- get header() {
42
- return i18n('Tablet');
43
- },
44
- render: ({ row }) => {
45
- var _a;
46
- if (!row.TabletId) {
47
- return EMPTY_DATA_PLACEHOLDER;
48
- }
49
- const tabletPath = getTabletPagePath(row.TabletId, {
50
- nodeId: row.NodeId,
51
- type: row.Type,
52
- tenantName: database,
53
- });
54
- return (_jsx(EntityStatus, { name: (_a = row.TabletId) === null || _a === void 0 ? void 0 : _a.toString(), path: tabletPath, hasClipboardButton: true, showStatus: false, additionalControls: _jsx(DeveloperUILinkButton, { href: createTabletDeveloperUIHref(row.TabletId) }) }));
55
- },
56
- },
57
- {
58
- name: 'State',
59
- get header() {
60
- return i18n('State');
61
- },
62
- render: ({ row }) => {
63
- return _jsx(TabletState, { state: row.State });
64
- },
65
- },
66
- {
67
- name: 'NodeId',
68
- get header() {
69
- return i18n('Node ID');
70
- },
71
- render: ({ row }) => {
72
- const nodePath = row.NodeId === undefined ? undefined : getDefaultNodePath(row.NodeId);
73
- return _jsx(InternalLink, { to: nodePath, children: row.NodeId });
74
- },
75
- align: 'right',
76
- },
77
- {
78
- name: 'fqdn',
79
- get header() {
80
- return i18n('Node FQDN');
81
- },
82
- render: ({ row }) => {
83
- if (!row.fqdn) {
84
- return _jsx("span", { children: "\u2014" });
85
- }
86
- return _jsx(EntityStatus, { name: row.fqdn, showStatus: false, hasClipboardButton: true });
87
- },
88
- },
89
- {
90
- name: 'Generation',
91
- get header() {
92
- return i18n('Generation');
93
- },
94
- align: 'right',
95
- },
96
- {
97
- name: 'Uptime',
98
- get header() {
99
- return i18n('Uptime');
100
- },
101
- render: ({ row }) => {
102
- return calcUptime(row.ChangeTime);
103
- },
104
- sortAccessor: (row) => -Number(row.ChangeTime),
105
- align: 'right',
106
- },
107
- {
108
- name: 'Actions',
109
- sortable: false,
110
- resizeable: false,
111
- header: '',
112
- render: ({ row }) => {
113
- return _jsx(TabletActions, { ...row });
114
- },
115
- },
116
- ];
117
- return columns;
118
- }
119
- function TabletActions(tablet) {
120
- const isDisabledRestart = tablet.State === ETabletState.Stopped;
121
- const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
122
- const [killTablet] = tabletApi.useKillTabletMutation();
123
- const id = tablet.TabletId;
124
- if (!id) {
125
- return null;
126
- }
127
- return (_jsx(ButtonWithConfirmDialog, { buttonView: "outlined", dialogHeader: i18n('dialog.kill-header'), dialogText: i18n('dialog.kill-text'), onConfirmAction: () => {
128
- return killTablet({ id }).unwrap();
129
- }, buttonDisabled: isDisabledRestart || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.kill-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: _jsx(Icon, { data: ArrowsRotateRight }) }));
130
- }
131
10
  export function Tablets({ nodeId, path, database, className }) {
132
11
  const [autoRefreshInterval] = useAutoRefreshInterval();
133
12
  let params = {};
@@ -146,6 +25,6 @@ export function Tablets({ nodeId, path, database, className }) {
146
25
  if (loading) {
147
26
  return _jsx(TableSkeleton, {});
148
27
  }
149
- return (_jsxs("div", { className: b(null, className), children: [error ? _jsx(ResponseError, { error: error }) : null, currentData ? (_jsx(ResizeableDataTable, { columns: getColumns({ database }), data: tablets, settings: DEFAULT_TABLE_SETTINGS, emptyDataMessage: i18n('noTabletsData') })) : null] }));
28
+ return (_jsxs("div", { className: b(null, className), children: [error ? _jsx(ResponseError, { error: error }) : null, currentData ? _jsx(TabletsTable, { tablets: tablets, database: database }) : null] }));
150
29
  }
151
30
  //# sourceMappingURL=Tablets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tablets.js","sourceRoot":"","sources":["../../../src/containers/Tablets/Tablets.tsx"],"names":[],"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KAAK,SAAS,EAAE,CAAC;QACrB,MAAM,GAAG,EAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAC,CAAC;IACtC,CAAC;SAAM,IAAI,IAAI,EAAE,CAAC;QACd,MAAM,GAAG,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC;IAC9B,CAAC;IACD,MAAM,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,EAAC,GAAG,UAAU,CAAC,sBAAsB,CACtE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EACrD;QACI,eAAe,EAAE,mBAAmB;KACvC,CACJ,CAAC;IAEF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IACxD,MAAM,OAAO,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAElF,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,aAC7B,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9C,WAAW,CAAC,CAAC,CAAC,KAAC,YAAY,IAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,IAC1E,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { TTabletStateInfo } from '../../types/api/tablet';
2
+ interface TabletsTableProps {
3
+ database?: string;
4
+ tablets: (TTabletStateInfo & {
5
+ fqdn?: string;
6
+ })[];
7
+ className?: string;
8
+ }
9
+ export declare function TabletsTable({ database, tablets, className }: TabletsTableProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};