ydb-embedded-ui 6.17.2 → 6.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (377) hide show
  1. package/dist/assets/icons/decommission.svg +6 -0
  2. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +3 -2
  3. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +10 -16
  4. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js.map +1 -1
  5. package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
  6. package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +4 -2
  7. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +7 -4
  8. package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
  9. package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +23 -1
  10. package/dist/components/CriticalActionDialog/utils.d.ts +5 -0
  11. package/dist/components/CriticalActionDialog/utils.js +4 -0
  12. package/dist/components/CriticalActionDialog/utils.js.map +1 -0
  13. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +5 -3
  14. package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +1 -2
  15. package/dist/components/EntityPageTitle/EntityPageTitle.js +2 -2
  16. package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -1
  17. package/dist/components/GroupInfo/GroupInfo.js +3 -3
  18. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +1 -1
  19. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
  20. package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +2 -1
  21. package/dist/components/LinkWithIcon/LinkWithIcon.js +3 -3
  22. package/dist/components/LinkWithIcon/LinkWithIcon.js.map +1 -1
  23. package/dist/components/Loader/Loader.js +1 -1
  24. package/dist/components/Loader/Loader.js.map +1 -1
  25. package/dist/components/MetricChart/reducer.d.ts +2 -2
  26. package/dist/components/PDiskInfo/PDiskInfo.js +1 -7
  27. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  28. package/dist/components/PDiskInfo/i18n/en.json +0 -1
  29. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  30. package/dist/components/PDiskPopup/PDiskPopup.js +3 -5
  31. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  32. package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
  33. package/dist/components/PaginatedTable/PaginatedTable.js +2 -2
  34. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  35. package/dist/components/PaginatedTable/PaginatedTable.scss +16 -14
  36. package/dist/components/PaginatedTable/ResizeablePaginatedTable.js +2 -1
  37. package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
  38. package/dist/components/PaginatedTable/TableChunk.js +12 -4
  39. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  40. package/dist/components/PaginatedTable/TableHead.js +14 -10
  41. package/dist/components/PaginatedTable/TableHead.js.map +1 -1
  42. package/dist/components/PaginatedTable/TableRow.js +14 -6
  43. package/dist/components/PaginatedTable/TableRow.js.map +1 -1
  44. package/dist/components/PaginatedTable/types.d.ts +1 -1
  45. package/dist/components/Skeleton/Skeleton.js +1 -1
  46. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  47. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +5 -0
  48. package/dist/components/VDisk/VDisk.d.ts +6 -3
  49. package/dist/components/VDisk/VDisk.js +6 -4
  50. package/dist/components/VDisk/VDisk.js.map +1 -1
  51. package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +3 -5
  52. package/dist/components/VDisk/VDiskWithDonorsStack.js +4 -4
  53. package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
  54. package/dist/components/VDiskPopup/VDiskPopup.js +1 -1
  55. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  56. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
  57. package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
  58. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
  59. package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
  60. package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
  61. package/dist/containers/AppWithClusters/useClusterData.js +8 -8
  62. package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
  63. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
  64. package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
  65. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  66. package/dist/containers/AsideNavigation/Navigation.js +4 -1
  67. package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
  68. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
  69. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
  70. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
  71. package/dist/containers/Cluster/Cluster.js +5 -13
  72. package/dist/containers/Cluster/Cluster.js.map +1 -1
  73. package/dist/containers/Cluster/Cluster.scss +1 -0
  74. package/dist/containers/Header/Header.js +3 -7
  75. package/dist/containers/Header/Header.js.map +1 -1
  76. package/dist/containers/Node/Node.js +1 -5
  77. package/dist/containers/Node/Node.js.map +1 -1
  78. package/dist/containers/Node/NodePages.js +5 -4
  79. package/dist/containers/Node/NodePages.js.map +1 -1
  80. package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
  81. package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
  82. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.d.ts +11 -0
  83. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +91 -0
  84. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -0
  85. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.scss +6 -0
  86. package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.d.ts +6 -0
  87. package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.js +20 -0
  88. package/dist/containers/PDiskPage/DecommissionLabel/DecommissionLabel.js.map +1 -0
  89. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +19 -14
  90. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
  91. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
  92. package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
  93. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
  94. package/dist/containers/PDiskPage/PDiskPage.js +33 -15
  95. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  96. package/dist/containers/PDiskPage/PDiskPage.scss +7 -0
  97. package/dist/containers/PDiskPage/i18n/en.json +16 -2
  98. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  99. package/dist/containers/Storage/Disks/Disks.d.ts +9 -0
  100. package/dist/containers/Storage/Disks/Disks.js +37 -0
  101. package/dist/containers/Storage/Disks/Disks.js.map +1 -0
  102. package/dist/containers/Storage/Disks/Disks.scss +46 -0
  103. package/dist/containers/Storage/PDisk/PDisk.d.ts +6 -2
  104. package/dist/containers/Storage/PDisk/PDisk.js +14 -7
  105. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  106. package/dist/containers/Storage/PDisk/PDisk.scss +4 -2
  107. package/dist/containers/Storage/PaginatedStorage.js +1 -4
  108. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  109. package/dist/containers/Storage/Storage.js +11 -13
  110. package/dist/containers/Storage/Storage.js.map +1 -1
  111. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +1 -3
  112. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +11 -7
  113. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
  114. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +1 -4
  115. package/dist/containers/Storage/StorageGroups/StorageGroups.js +4 -7
  116. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
  117. package/dist/containers/Storage/StorageGroups/{StorageGroups.scss → columns/StorageGroupsColumns.scss} +3 -2
  118. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +21 -0
  119. package/dist/containers/Storage/StorageGroups/{getStorageGroupsColumns.js → columns/getStorageGroupsColumns.js} +47 -40
  120. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -0
  121. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -0
  122. package/dist/containers/Storage/StorageGroups/columns/hooks.js +19 -0
  123. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -0
  124. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +14 -0
  125. package/dist/containers/Storage/StorageGroups/columns/types.js.map +1 -0
  126. package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
  127. package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
  128. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  129. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
  130. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +1 -1
  131. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +1 -1
  132. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +1 -1
  133. package/dist/containers/Storage/utils/index.js +3 -4
  134. package/dist/containers/Storage/utils/index.js.map +1 -1
  135. package/dist/containers/Tablet/Tablet.js +13 -11
  136. package/dist/containers/Tablet/Tablet.js.map +1 -1
  137. package/dist/containers/Tablet/components/TabletControls/TabletControls.js +1 -1
  138. package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -1
  139. package/dist/containers/Tablet/i18n/en.json +6 -3
  140. package/dist/containers/Tablet/i18n/index.d.ts +1 -1
  141. package/dist/containers/Tablets/Tablets.js +1 -1
  142. package/dist/containers/Tablets/Tablets.js.map +1 -1
  143. package/dist/containers/Tablets/i18n/en.json +2 -1
  144. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  145. package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
  146. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
  147. package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
  148. package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
  149. package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
  150. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
  151. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
  152. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
  153. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
  154. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  155. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
  156. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
  157. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  158. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
  159. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +22 -5
  160. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  161. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
  162. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
  163. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
  164. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +1 -1
  165. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
  166. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
  167. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
  168. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
  169. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
  170. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
  171. package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
  172. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
  173. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +8 -6
  174. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  175. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -6
  176. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +5 -0
  177. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +28 -0
  178. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -0
  179. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -2
  180. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  181. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
  182. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
  183. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
  184. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
  185. package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
  186. package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
  187. package/dist/containers/Tenant/Query/Query.js +14 -2
  188. package/dist/containers/Tenant/Query/Query.js.map +1 -1
  189. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
  190. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
  191. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  192. package/dist/containers/Tenant/Query/i18n/en.json +1 -0
  193. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  194. package/dist/containers/Tenant/Query/utils/__test__/replaceParams.test.d.ts +1 -0
  195. package/dist/containers/Tenant/Query/utils/__test__/replaceParams.test.js +50 -0
  196. package/dist/containers/Tenant/Query/utils/__test__/replaceParams.test.js.map +1 -0
  197. package/dist/containers/Tenant/Query/utils/replaceParams.d.ts +1 -0
  198. package/dist/containers/Tenant/Query/utils/replaceParams.js +6 -0
  199. package/dist/containers/Tenant/Query/utils/replaceParams.js.map +1 -0
  200. package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
  201. package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
  202. package/dist/containers/UserSettings/i18n/en.json +2 -0
  203. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  204. package/dist/containers/UserSettings/settings.d.ts +1 -0
  205. package/dist/containers/UserSettings/settings.js +12 -2
  206. package/dist/containers/UserSettings/settings.js.map +1 -1
  207. package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
  208. package/dist/containers/VDiskPage/VDiskPage.js +37 -17
  209. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  210. package/dist/containers/VDiskPage/i18n/en.json +2 -1
  211. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  212. package/dist/containers/VDiskPage/utils.d.ts +2 -0
  213. package/dist/containers/VDiskPage/utils.js +7 -0
  214. package/dist/containers/VDiskPage/utils.js.map +1 -0
  215. package/dist/lib.d.ts +1 -0
  216. package/dist/lib.js +1 -0
  217. package/dist/lib.js.map +1 -1
  218. package/dist/services/api.d.ts +27 -11
  219. package/dist/services/api.js +110 -21
  220. package/dist/services/api.js.map +1 -1
  221. package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
  222. package/dist/services/parsers/parseMetaCluster.js +20 -1
  223. package/dist/services/parsers/parseMetaCluster.js.map +1 -1
  224. package/dist/services/settings.d.ts +1 -0
  225. package/dist/services/settings.js +2 -1
  226. package/dist/services/settings.js.map +1 -1
  227. package/dist/store/configureStore.d.ts +4 -4
  228. package/dist/store/defaultStore.d.ts +2 -2
  229. package/dist/store/getUrlData.js +9 -6
  230. package/dist/store/getUrlData.js.map +1 -1
  231. package/dist/store/reducers/api.d.ts +1 -1
  232. package/dist/store/reducers/api.js +1 -1
  233. package/dist/store/reducers/api.js.map +1 -1
  234. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  235. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  236. package/dist/store/reducers/cancelQuery.js.map +1 -1
  237. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
  238. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  239. package/dist/store/reducers/capabilities/hooks.js +8 -1
  240. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  241. package/dist/store/reducers/cluster/cluster.d.ts +230 -2
  242. package/dist/store/reducers/cluster/cluster.js +36 -3
  243. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  244. package/dist/store/reducers/cluster/utils.d.ts +1 -0
  245. package/dist/store/reducers/cluster/utils.js +7 -0
  246. package/dist/store/reducers/cluster/utils.js.map +1 -1
  247. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  248. package/dist/store/reducers/describe.d.ts +2 -2
  249. package/dist/store/reducers/executeQuery.d.ts +8 -4
  250. package/dist/store/reducers/executeQuery.js +36 -1
  251. package/dist/store/reducers/executeQuery.js.map +1 -1
  252. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  253. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
  254. package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
  255. package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
  256. package/dist/store/reducers/explainQuery/types.d.ts +1 -0
  257. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  258. package/dist/store/reducers/heatmap.d.ts +2 -2
  259. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  260. package/dist/store/reducers/index.d.ts +3 -3
  261. package/dist/store/reducers/network/network.d.ts +2 -2
  262. package/dist/store/reducers/node/node.d.ts +3 -3
  263. package/dist/store/reducers/node/selectors.d.ts +1 -1
  264. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  265. package/dist/store/reducers/nodes/nodes.js +1 -2
  266. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  267. package/dist/store/reducers/nodesList.d.ts +3 -3
  268. package/dist/store/reducers/overview/overview.d.ts +2 -2
  269. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  270. package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
  271. package/dist/store/reducers/pdisk/pdisk.js +1 -21
  272. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  273. package/dist/store/reducers/pdisk/utils.d.ts +0 -3
  274. package/dist/store/reducers/pdisk/utils.js +0 -22
  275. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  276. package/dist/store/reducers/preview.d.ts +2 -2
  277. package/dist/store/reducers/schema/schema.d.ts +3 -3
  278. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
  279. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  280. package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
  281. package/dist/store/reducers/storage/requestStorageData.js +12 -0
  282. package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
  283. package/dist/store/reducers/storage/selectors.js +1 -1
  284. package/dist/store/reducers/storage/storage.d.ts +6 -4
  285. package/dist/store/reducers/storage/storage.js +6 -6
  286. package/dist/store/reducers/storage/storage.js.map +1 -1
  287. package/dist/store/reducers/storage/types.d.ts +11 -23
  288. package/dist/store/reducers/storage/utils.d.ts +3 -2
  289. package/dist/store/reducers/storage/utils.js +52 -26
  290. package/dist/store/reducers/storage/utils.js.map +1 -1
  291. package/dist/store/reducers/tableData.d.ts +1 -1
  292. package/dist/store/reducers/tablet.d.ts +7 -7
  293. package/dist/store/reducers/tablets.d.ts +13 -13
  294. package/dist/store/reducers/tenant/constants.d.ts +1 -0
  295. package/dist/store/reducers/tenant/constants.js +1 -0
  296. package/dist/store/reducers/tenant/constants.js.map +1 -1
  297. package/dist/store/reducers/tenant/tenant.d.ts +5 -2
  298. package/dist/store/reducers/tenant/tenant.js +12 -0
  299. package/dist/store/reducers/tenant/tenant.js.map +1 -1
  300. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  301. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  302. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  303. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  304. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  305. package/dist/store/reducers/topic.d.ts +44 -44
  306. package/dist/store/reducers/trace.d.ts +7 -0
  307. package/dist/store/reducers/trace.js +18 -0
  308. package/dist/store/reducers/trace.js.map +1 -0
  309. package/dist/store/reducers/vdisk/utils.d.ts +0 -2
  310. package/dist/store/reducers/vdisk/utils.js +0 -10
  311. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  312. package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
  313. package/dist/store/reducers/vdisk/vdisk.js +17 -32
  314. package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
  315. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  316. package/dist/types/api/capabilities.d.ts +1 -1
  317. package/dist/types/api/cluster.d.ts +3 -0
  318. package/dist/types/api/compute.d.ts +1 -4
  319. package/dist/types/api/compute.js +1 -5
  320. package/dist/types/api/compute.js.map +1 -1
  321. package/dist/types/api/featureFlags.d.ts +13 -0
  322. package/dist/types/api/featureFlags.js +2 -0
  323. package/dist/types/api/featureFlags.js.map +1 -0
  324. package/dist/types/api/meta.d.ts +5 -1
  325. package/dist/types/api/modifyDisk.d.ts +1 -0
  326. package/dist/types/api/pdisk.d.ts +2 -2
  327. package/dist/types/api/query.d.ts +7 -1
  328. package/dist/types/api/storage.d.ts +132 -6
  329. package/dist/types/api/storage.js +1 -5
  330. package/dist/types/api/storage.js.map +1 -1
  331. package/dist/types/api/trace.d.ts +17 -0
  332. package/dist/types/api/trace.js +8 -0
  333. package/dist/types/api/trace.js.map +1 -0
  334. package/dist/types/api/vdisk.d.ts +1 -1
  335. package/dist/types/store/executeQuery.d.ts +25 -3
  336. package/dist/types/store/executeQuery.js +5 -1
  337. package/dist/types/store/executeQuery.js.map +1 -1
  338. package/dist/types/store/query.d.ts +1 -0
  339. package/dist/utils/constants.d.ts +1 -0
  340. package/dist/utils/constants.js +1 -0
  341. package/dist/utils/constants.js.map +1 -1
  342. package/dist/utils/disks/helpers.d.ts +5 -2
  343. package/dist/utils/disks/helpers.js +12 -2
  344. package/dist/utils/disks/helpers.js.map +1 -1
  345. package/dist/utils/disks/prepareDisks.js +10 -5
  346. package/dist/utils/disks/prepareDisks.js.map +1 -1
  347. package/dist/utils/hooks/useDelayed.d.ts +1 -1
  348. package/dist/utils/hooks/useDelayed.js +6 -1
  349. package/dist/utils/hooks/useDelayed.js.map +1 -1
  350. package/dist/utils/index.d.ts +1 -0
  351. package/dist/utils/index.js +5 -0
  352. package/dist/utils/index.js.map +1 -1
  353. package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
  354. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  355. package/dist/utils/query.js.map +1 -1
  356. package/dist/utils/storage.d.ts +2 -21
  357. package/dist/utils/storage.js +14 -19
  358. package/dist/utils/storage.js.map +1 -1
  359. package/package.json +1 -6
  360. package/dist/components/CriticalActionDialog/index.d.ts +0 -1
  361. package/dist/components/CriticalActionDialog/index.js +0 -2
  362. package/dist/components/CriticalActionDialog/index.js.map +0 -1
  363. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
  364. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
  365. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
  366. package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
  367. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +0 -62
  368. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js.map +0 -1
  369. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
  370. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
  371. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
  372. package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
  373. package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
  374. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
  375. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
  376. package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
  377. /package/dist/{store/reducers/tenantOverview/topStorageGroups → containers/Storage/StorageGroups/columns}/types.js +0 -0
@@ -2,24 +2,29 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
4
4
  import { TableSkeleton } from '../../../components/TableSkeleton/TableSkeleton';
5
- import { selectNodesMap } from '../../../store/reducers/nodesList';
6
- import { pDiskApi } from '../../../store/reducers/pdisk/pdisk';
5
+ import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../../store/reducers/capabilities/hooks';
6
+ import { storageApi } from '../../../store/reducers/storage/storage';
7
7
  import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
8
- import { useAutoRefreshInterval, useTypedSelector } from '../../../utils/hooks';
9
- import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, getDiskPageStorageColumns, } from '../../Storage/StorageGroups/getStorageGroupsColumns';
8
+ import { useAutoRefreshInterval } from '../../../utils/hooks';
9
+ import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from '../../Storage/StorageGroups/columns/getStorageGroupsColumns';
10
+ import { useGetDiskStorageColumns } from '../../Storage/StorageGroups/columns/hooks';
11
+ import { preparePDiskStorageResponse } from './utils';
10
12
  export function PDiskGroups({ pDiskId, nodeId }) {
11
- var _a;
12
- const nodesMap = useTypedSelector(selectNodesMap);
13
+ const capabilitiesLoaded = useCapabilitiesLoaded();
14
+ const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
13
15
  const [autoRefreshInterval] = useAutoRefreshInterval();
14
- const pDiskStorageQuery = pDiskApi.useGetStorageInfoQuery({ pDiskId, nodeId }, { pollingInterval: autoRefreshInterval });
15
- const loading = pDiskStorageQuery.isFetching && pDiskStorageQuery.currentData === undefined;
16
- const data = (_a = pDiskStorageQuery.currentData) !== null && _a !== void 0 ? _a : [];
17
- const pDiskStorageColumns = React.useMemo(() => {
18
- return getDiskPageStorageColumns(nodesMap);
19
- }, [nodesMap]);
20
- if (loading) {
16
+ const { currentData, isFetching } = storageApi.useGetStorageGroupsInfoQuery({ pDiskId, nodeId, shouldUseGroupsHandler: groupsHandlerAvailable }, {
17
+ pollingInterval: autoRefreshInterval,
18
+ skip: !capabilitiesLoaded,
19
+ });
20
+ const loading = isFetching && currentData === undefined;
21
+ const preparedGroups = React.useMemo(() => {
22
+ return preparePDiskStorageResponse(currentData, pDiskId, nodeId) || [];
23
+ }, [currentData, pDiskId, nodeId]);
24
+ const pDiskStorageColumns = useGetDiskStorageColumns();
25
+ if (loading || !capabilitiesLoaded) {
21
26
  return _jsx(TableSkeleton, {});
22
27
  }
23
- return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: data, columns: pDiskStorageColumns, settings: DEFAULT_TABLE_SETTINGS }));
28
+ return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: preparedGroups, columns: pDiskStorageColumns, settings: DEFAULT_TABLE_SETTINGS }));
24
29
  }
25
30
  //# sourceMappingURL=PDiskGroups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PDiskGroups.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/PDiskGroups/PDiskGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAC,QAAQ,EAAC,MAAM,qCAAqC,CAAC;AAC7D,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EACH,mCAAmC,EACnC,yBAAyB,GAC5B,MAAM,qDAAqD,CAAC;AAO7D,MAAM,UAAU,WAAW,CAAC,EAAC,OAAO,EAAE,MAAM,EAAmB;;IAC3D,MAAM,QAAQ,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAClD,MAAM,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,EAAE,CAAC;IAEvD,MAAM,iBAAiB,GAAG,QAAQ,CAAC,sBAAsB,CACrD,EAAC,OAAO,EAAE,MAAM,EAAC,EACjB,EAAC,eAAe,EAAE,mBAAmB,EAAC,CACzC,CAAC;IACF,MAAM,OAAO,GAAG,iBAAiB,CAAC,UAAU,IAAI,iBAAiB,CAAC,WAAW,KAAK,SAAS,CAAC;IAC5F,MAAM,IAAI,GAAG,MAAA,iBAAiB,CAAC,WAAW,mCAAI,EAAE,CAAC;IAEjD,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC3C,OAAO,yBAAyB,CAAC,QAAQ,C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AAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB,EAAC,EACjE;QACI,eAAe,EAAE,mBAAmB;QACpC,IAAI,EAAE,CAAC,kBAAkB;KAC5B,CACJ,CAAC;IACF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IAExD,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACtC,OAAO,2BAA2B,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;IAC3E,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IAEnC,MAAM,mBAAmB,GAAG,wBAAwB,EAAE,CAAC;IAEvD,IAAI,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACjC,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,mCAAmC,EACtD,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,EAAE,sBAAsB,GAClC,CACL,CAAC;AACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { PreparedStorageResponse } from '../../../store/reducers/storage/types';
2
+ export declare function preparePDiskStorageResponse(data?: PreparedStorageResponse, pDiskId?: number | string, nodeId?: number | string): import("../../../store/reducers/storage/types").PreparedStorageGroup[] | undefined;
@@ -0,0 +1,14 @@
1
+ export function preparePDiskStorageResponse(data, pDiskId, nodeId) {
2
+ var _a;
3
+ return (_a = data === null || data === void 0 ? void 0 : data.groups) === null || _a === void 0 ? void 0 : _a.filter((group) => {
4
+ var _a;
5
+ return (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.some((vdisk) => {
6
+ var _a, _b, _c, _d;
7
+ // If VDisk has PDisk inside, PDiskId and NodeId fields could be only inside PDisk and vice versa
8
+ const groupPDiskId = (_a = vdisk.PDiskId) !== null && _a !== void 0 ? _a : (_b = vdisk.PDisk) === null || _b === void 0 ? void 0 : _b.PDiskId;
9
+ const groupNodeId = (_c = vdisk.NodeId) !== null && _c !== void 0 ? _c : (_d = vdisk.PDisk) === null || _d === void 0 ? void 0 : _d.NodeId;
10
+ return (Number(groupPDiskId) === Number(pDiskId) && Number(groupNodeId) === Number(nodeId));
11
+ });
12
+ });
13
+ }
14
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/PDiskGroups/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,2BAA2B,CACvC,IAA8B,EAC9B,OAAyB,EACzB,MAAwB;;IAExB,OAAO,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;;QAClC,OAAO,MAAA,KAAK,CAAC,MAAM,0CAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;;YAChC,iGAAiG;YACjG,MAAM,YAAY,GAAG,MAAA,KAAK,CAAC,OAAO,mCAAI,MAAA,KAAK,CAAC,KAAK,0CAAE,OAAO,CAAC;YAC3D,MAAM,WAAW,GAAG,MAAA,KAAK,CAAC,MAAM,mCAAI,MAAA,KAAK,CAAC,KAAK,0CAAE,MAAM,CAAC;YAExD,OAAO,CACH,MAAM,CAAC,YAAY,CAAC,KAAK,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CACrF,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -19,13 +19,16 @@ import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentic
19
19
  import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
20
20
  import { pDiskApi } from '../../store/reducers/pdisk/pdisk';
21
21
  import { valueIsDefined } from '../../utils';
22
+ import { cn } from '../../utils/cn';
22
23
  import { getPDiskId, getSeverityColor } from '../../utils/disks/helpers';
23
24
  import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../utils/hooks';
25
+ import { DecommissionButton } from './DecommissionButton/DecommissionButton';
26
+ import { DecommissionLabel } from './DecommissionLabel/DecommissionLabel';
24
27
  import { PDiskGroups } from './PDiskGroups/PDiskGroups';
25
28
  import { PDiskSpaceDistribution } from './PDiskSpaceDistribution/PDiskSpaceDistribution';
26
29
  import { pDiskPageKeyset } from './i18n';
27
- import { pdiskPageCn } from './shared';
28
30
  import './PDiskPage.scss';
31
+ const pdiskPageCn = cn('ydb-pdisk-page');
29
32
  const PDISK_TABS_IDS = {
30
33
  diskDistribution: 'diskDistribution',
31
34
  groups: 'groups',
@@ -65,24 +68,39 @@ export function PDiskPage() {
65
68
  });
66
69
  const pDiskLoading = pdiskDataQuery.isFetching && pdiskDataQuery.currentData === undefined;
67
70
  const pDiskData = pdiskDataQuery.currentData;
68
- const { NodeHost, NodeId, NodeType, NodeDC, Severity } = pDiskData || {};
71
+ const { NodeHost, NodeId, NodeType, NodeDC, Severity, DecommitStatus } = pDiskData || {};
69
72
  const handleRestart = async (isRetry) => {
70
73
  if (pDiskParamsDefined) {
71
- return window.api.restartPDisk({ nodeId, pDiskId, force: isRetry }).then((response) => {
72
- if ((response === null || response === void 0 ? void 0 : response.result) === false) {
73
- const err = {
74
- statusText: response.error,
75
- retryPossible: response.forceRetryPossible,
76
- };
77
- throw err;
78
- }
74
+ const response = await window.api.restartPDisk({ nodeId, pDiskId, force: isRetry });
75
+ if ((response === null || response === void 0 ? void 0 : response.result) === false) {
76
+ const err = {
77
+ statusText: response.error,
78
+ retryPossible: response.forceRetryPossible,
79
+ };
80
+ throw err;
81
+ }
82
+ }
83
+ };
84
+ const handleDecommissionChange = async (newDecommissionStatus, isRetry) => {
85
+ if (pDiskParamsDefined) {
86
+ const response = await window.api.changePDiskStatus({
87
+ nodeId,
88
+ pDiskId,
89
+ force: isRetry,
90
+ decommissionStatus: newDecommissionStatus,
79
91
  });
92
+ if ((response === null || response === void 0 ? void 0 : response.result) === false) {
93
+ const err = {
94
+ statusText: response.error,
95
+ retryPossible: response.forceRetryPossible,
96
+ };
97
+ throw err;
98
+ }
80
99
  }
81
- return undefined;
82
100
  };
83
- const handleAfterRestart = () => {
101
+ const handleAfterAction = () => {
84
102
  if (pDiskParamsDefined) {
85
- dispatch(api.util.invalidateTags([{ type: 'PDiskData', id: getPDiskId(nodeId, pDiskId) }]));
103
+ dispatch(api.util.invalidateTags([{ type: 'PDiskData', id: getPDiskId(nodeId, pDiskId) }]), 'StorageData');
86
104
  }
87
105
  };
88
106
  const renderHelmet = () => {
@@ -98,10 +116,10 @@ export function PDiskPage() {
98
116
  return (_jsx(PageMetaWithAutorefresh, { loading: pDiskLoading, items: [hostItem, nodeIdItem, NodeType, NodeDC], className: pdiskPageCn('meta') }));
99
117
  };
100
118
  const renderPageTitle = () => {
101
- return (_jsx(EntityPageTitle, { entityName: pDiskPageKeyset('pdisk'), status: getSeverityColor(Severity), id: pDiskParamsDefined ? getPDiskId(nodeId, pDiskId) : null, className: pdiskPageCn('title') }));
119
+ return (_jsxs("div", { className: pdiskPageCn('title'), children: [_jsx(EntityPageTitle, { entityName: pDiskPageKeyset('pdisk'), status: getSeverityColor(Severity), id: getPDiskId(nodeId, pDiskId) }), _jsx(DecommissionLabel, { decommission: DecommitStatus })] }));
102
120
  };
103
121
  const renderControls = () => {
104
- return (_jsx("div", { className: pdiskPageCn('controls'), children: _jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleRestart, onConfirmActionSuccess: handleAfterRestart, buttonDisabled: !nodeId || !pDiskId || !isUserAllowedToMakeChanges, buttonView: "normal", dialogContent: pDiskPageKeyset('restart-pdisk-dialog'), retryButtonText: pDiskPageKeyset('force-restart-pdisk-button'), withPopover: true, popoverContent: pDiskPageKeyset('restart-pdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowRotateLeft }), pDiskPageKeyset('restart-pdisk-button')] }) }));
122
+ return (_jsxs("div", { className: pdiskPageCn('controls'), children: [_jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleRestart, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, buttonView: "normal", dialogHeader: pDiskPageKeyset('restart-pdisk-dialog-header'), dialogText: pDiskPageKeyset('restart-pdisk-dialog-text'), retryButtonText: pDiskPageKeyset('force-restart-pdisk-button'), withPopover: true, popoverContent: pDiskPageKeyset('restart-pdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowRotateLeft }), pDiskPageKeyset('restart-pdisk-button')] }), _jsx(DecommissionButton, { decommission: DecommitStatus, onConfirmAction: handleDecommissionChange, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, popoverDisabled: isUserAllowedToMakeChanges })] }));
105
123
  };
106
124
  const renderInfo = () => {
107
125
  if (pDiskLoading) {
@@ -1 +1 @@
1
- {"version":3,"file":"PDiskPage.js","sourceRoot":"","sources":["../../../src/containers/PDiskPage/PDiskPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC7C,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;AAC7D,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO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,GAAG,EAAE;QAC3B,QAAQ,QAAQ,EAAE,CAAC;YACf,KAAK,kBAAkB,CAAC,CAAC,CAAC;gBACtB,OAAO,SAAS,CAAC,CAAC,CAAC,KAAC,sBAAsB,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YAC1E,CAAC;YACD,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACZ,OAAO,kBAAkB,CAAC,CAAC,CAAC,CACxB,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,CACpD,CAAC,CAAC,CAAC,IAAI,CAAC;YACb,CAAC;YACD;gBACI,OAAO,IAAI,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,cAAc,CAAC,KAAK,GAAI,CAAC;IAC1D,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,aAC5B,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,cAAc,EAAE,EAChB,WAAW,EAAE,EACb,UAAU,EAAE,EACZ,UAAU,EAAE,EACZ,iBAAiB,EAAE,IAClB,CACT,CAAC;AACN,CAAC"}
@@ -20,6 +20,13 @@
20
20
  left: 0;
21
21
  }
22
22
 
23
+ &__title {
24
+ display: flex;
25
+ flex-direction: row;
26
+ align-items: center;
27
+ gap: var(--g-spacing-2);
28
+ }
29
+
23
30
  &__controls {
24
31
  display: flex;
25
32
  align-items: center;
@@ -12,6 +12,20 @@
12
12
  "no-slots-data": "No slots data",
13
13
  "restart-pdisk-button": "Restart PDisk",
14
14
  "force-restart-pdisk-button": "Restart anyway",
15
- "restart-pdisk-dialog": "PDisk will be restarted. Do you want to proceed?",
16
- "restart-pdisk-not-allowed": "You don't have enough rights to restart PDisk"
15
+ "restart-pdisk-not-allowed": "You don't have enough rights to restart PDisk",
16
+ "restart-pdisk-dialog-header": "Restart PDisk",
17
+ "restart-pdisk-dialog-text": "PDisk will be restarted. Do you want to proceed?",
18
+ "decommission-none": "None",
19
+ "decommission-imminent": "Imminent",
20
+ "decommission-pending": "Pending",
21
+ "decommission-rejected": "Rejected",
22
+ "decommission-label": "{{decommission}} decommission",
23
+ "decommission-button": "Decommission",
24
+ "decommission-change-not-allowed": "You don't have enough rights to change PDisk decommission",
25
+ "decommission-dialog-title": "Change decommission status",
26
+ "decommission-dialog-force-change": "Change anyway",
27
+ "decommission-dialog-imminent-warning": "This will start imminent decommission. Existing slots will be moved from the disk",
28
+ "decommission-dialog-pending-warning": "This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it",
29
+ "decommission-dialog-rejected-warning": "This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission",
30
+ "decommission-dialog-none-warning": "This will reset decommission mode, allowing the disk to be used by the storage"
17
31
  }
@@ -1 +1 @@
1
- export declare const pDiskPageKeyset: (key: "node" | "groups" | "log" | "fqdn" | "pdisk" | "disk-distribution" | "empty-slot" | "label.log-size" | "label.system-size" | "label.slot-size" | "no-slots-data" | "restart-pdisk-button" | "force-restart-pdisk-button" | "restart-pdisk-dialog" | "restart-pdisk-not-allowed", params?: import("@gravity-ui/i18n").Params) => string;
1
+ export declare const pDiskPageKeyset: (key: "node" | "groups" | "log" | "fqdn" | "pdisk" | "disk-distribution" | "empty-slot" | "label.log-size" | "label.system-size" | "label.slot-size" | "no-slots-data" | "restart-pdisk-button" | "force-restart-pdisk-button" | "restart-pdisk-not-allowed" | "restart-pdisk-dialog-header" | "restart-pdisk-dialog-text" | "decommission-none" | "decommission-imminent" | "decommission-pending" | "decommission-rejected" | "decommission-label" | "decommission-button" | "decommission-change-not-allowed" | "decommission-dialog-title" | "decommission-dialog-force-change" | "decommission-dialog-imminent-warning" | "decommission-dialog-pending-warning" | "decommission-dialog-rejected-warning" | "decommission-dialog-none-warning", params?: import("@gravity-ui/i18n").Params) => string;
@@ -0,0 +1,9 @@
1
+ import type { NodesMap } from '../../../types/store/nodesList';
2
+ import type { PreparedVDisk } from '../../../utils/disks/types';
3
+ import './Disks.scss';
4
+ interface DisksProps {
5
+ vDisks?: PreparedVDisk[];
6
+ nodes?: NodesMap;
7
+ }
8
+ export declare function Disks({ vDisks, nodes }: DisksProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export {};
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { VDiskWithDonorsStack } from '../../../components/VDisk/VDiskWithDonorsStack';
4
+ import { cn } from '../../../utils/cn';
5
+ import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
6
+ import { getPDiskId } from '../../../utils/disks/helpers';
7
+ import { PDisk } from '../PDisk';
8
+ import './Disks.scss';
9
+ const b = cn('ydb-storage-disks');
10
+ export function Disks({ vDisks = [], nodes }) {
11
+ const [highlightedVDisk, setHighlightedVDisk] = React.useState();
12
+ if (!vDisks.length) {
13
+ return null;
14
+ }
15
+ return (_jsxs("div", { className: b(null), children: [_jsx("div", { className: b('vdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
16
+ return (_jsx(VDiskItem, { vDisk: vDisk, nodes: nodes, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, stringifyVdiskId(vDisk.VDiskId)));
17
+ }) }), _jsx("div", { className: b('pdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
18
+ var _a;
19
+ return (_jsx(PDiskItem, { vDisk: vDisk, nodes: nodes, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, getPDiskId(vDisk.NodeId, (_a = vDisk === null || vDisk === void 0 ? void 0 : vDisk.PDisk) === null || _a === void 0 ? void 0 : _a.PDiskId)));
20
+ }) })] }));
21
+ }
22
+ function VDiskItem({ nodes, vDisk, highlightedVDisk, setHighlightedVDisk }) {
23
+ // Do not show PDisk popup for VDisk
24
+ const vDiskToShow = { ...vDisk, PDisk: undefined };
25
+ const vDiskId = stringifyVdiskId(vDisk.VDiskId);
26
+ return (_jsx("div", { style: {
27
+ flexGrow: Number(vDisk.AllocatedSize) || 1,
28
+ }, className: b('vdisk-item'), children: _jsx(VDiskWithDonorsStack, { data: vDiskToShow, nodes: nodes, compact: true, showPopup: highlightedVDisk === vDiskId, onShowPopup: () => setHighlightedVDisk(vDiskId), onHidePopup: () => setHighlightedVDisk(undefined), progressBarClassName: b('vdisk-progress-bar') }) }));
29
+ }
30
+ function PDiskItem({ vDisk, highlightedVDisk, setHighlightedVDisk }) {
31
+ const vDiskId = stringifyVdiskId(vDisk.VDiskId);
32
+ if (!vDisk.PDisk) {
33
+ return null;
34
+ }
35
+ return (_jsx(PDisk, { className: b('pdisk-item'), progressBarClassName: b('pdisk-progress-bar'), data: vDisk.PDisk, showPopup: highlightedVDisk === vDiskId, onShowPopup: () => setHighlightedVDisk(vDiskId), onHidePopup: () => setHighlightedVDisk(undefined) }));
36
+ }
37
+ //# sourceMappingURL=Disks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Disks.js","sourceRoot":"","sources":["../../../../src/containers/Storage/Disks/Disks.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AAE/B,OAAO,c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}
@@ -0,0 +1,46 @@
1
+ .ydb-storage-disks {
2
+ display: flex;
3
+ flex-direction: row;
4
+ align-items: center;
5
+ gap: 20px;
6
+
7
+ width: max-content;
8
+
9
+ &__vdisks-wrapper {
10
+ display: flex;
11
+ flex-grow: 1;
12
+ flex-direction: row;
13
+ gap: 4px;
14
+
15
+ width: 300px;
16
+ }
17
+
18
+ &__pdisks-wrapper {
19
+ display: flex;
20
+ flex-direction: row;
21
+ justify-content: left;
22
+ gap: 6px;
23
+
24
+ width: max-content;
25
+ }
26
+
27
+ &__vdisk-item {
28
+ flex-basis: 8px;
29
+ flex-shrink: 0;
30
+ }
31
+ &__vdisk-progress-bar {
32
+ --progress-bar-compact-height: 18px;
33
+
34
+ border-radius: 4px;
35
+ }
36
+
37
+ &__pdisk-item {
38
+ width: 80px;
39
+ }
40
+ &__pdisk-progress-bar {
41
+ --progress-bar-full-height: 20px;
42
+ padding-left: var(--g-spacing-2);
43
+
44
+ text-align: left;
45
+ }
46
+ }
@@ -2,9 +2,13 @@ import type { TVDiskStateInfo } from '../../../types/api/vdisk';
2
2
  import type { PreparedPDisk } from '../../../utils/disks/types';
3
3
  import './PDisk.scss';
4
4
  interface PDiskProps {
5
- nodeId: number;
6
5
  data?: PreparedPDisk;
7
6
  vDisks?: TVDiskStateInfo[];
7
+ showPopup?: boolean;
8
+ onShowPopup?: VoidFunction;
9
+ onHidePopup?: VoidFunction;
10
+ className?: string;
11
+ progressBarClassName?: string;
8
12
  }
9
- export declare const PDisk: ({ nodeId, data, vDisks }: PDiskProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const PDisk: ({ data, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, }: PDiskProps) => import("react/jsx-runtime").JSX.Element;
10
14
  export {};
@@ -12,15 +12,19 @@ import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
12
12
  import { STRUCTURE } from '../../Node/NodePages';
13
13
  import './PDisk.scss';
14
14
  const b = cn('pdisk-storage');
15
- export const PDisk = ({ nodeId, data = {}, vDisks }) => {
15
+ export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, }) => {
16
16
  const [isPopupVisible, setIsPopupVisible] = React.useState(false);
17
17
  const diskPagesAvailable = useDiskPagesAvailable();
18
18
  const anchor = React.useRef(null);
19
- const showPopup = () => {
19
+ const { NodeId, PDiskId } = data;
20
+ const pDiskIdsDefined = valueIsDefined(NodeId) && valueIsDefined(PDiskId);
21
+ const handleShowPopup = () => {
20
22
  setIsPopupVisible(true);
23
+ onShowPopup === null || onShowPopup === void 0 ? void 0 : onShowPopup();
21
24
  };
22
- const hidePopup = () => {
25
+ const handleHidePopup = () => {
23
26
  setIsPopupVisible(false);
27
+ onHidePopup === null || onHidePopup === void 0 ? void 0 : onHidePopup();
24
28
  };
25
29
  const renderVDisks = () => {
26
30
  if (!(vDisks === null || vDisks === void 0 ? void 0 : vDisks.length)) {
@@ -34,10 +38,13 @@ export const PDisk = ({ nodeId, data = {}, vDisks }) => {
34
38
  }, children: _jsx(VDiskWithDonorsStack, { data: vdisk, compact: true, stackClassName: b('donors-stack') }) }, stringifyVdiskId(vdisk.VDiskId)));
35
39
  }) }));
36
40
  };
37
- let pDiskPath = createHref(routes.node, { id: nodeId, activeTab: STRUCTURE }, { pdiskId: data.PDiskId || '' });
38
- if (diskPagesAvailable && valueIsDefined(data.PDiskId)) {
39
- pDiskPath = getPDiskPagePath(data.PDiskId, nodeId);
41
+ let pDiskPath;
42
+ if (pDiskIdsDefined) {
43
+ pDiskPath = createHref(routes.node, { id: NodeId, activeTab: STRUCTURE }, { pdiskId: PDiskId });
40
44
  }
41
- return (_jsxs(React.Fragment, { children: [_jsx(PDiskPopup, { data: data, anchorRef: anchor, open: isPopupVisible }), _jsxs("div", { className: b(), ref: anchor, children: [renderVDisks(), _jsxs(InternalLink, { to: pDiskPath, className: b('content'), onMouseEnter: showPopup, onMouseLeave: hidePopup, children: [_jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity }), _jsx("div", { className: b('media-type'), children: data.Type })] })] })] }));
45
+ if (pDiskIdsDefined && diskPagesAvailable) {
46
+ pDiskPath = getPDiskPagePath(PDiskId, NodeId);
47
+ }
48
+ return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: b(null, className), ref: anchor, children: [renderVDisks(), _jsxs(InternalLink, { to: pDiskPath, className: b('content'), onMouseEnter: handleShowPopup, onMouseLeave: handleHidePopup, children: [_jsx(DiskStateProgressBar, { diskAllocatedPercent: data.AllocatedPercent, severity: data.Severity, className: progressBarClassName }), _jsx("div", { className: b('media-type'), children: data.Type })] })] }), _jsx(PDiskPopup, { data: data, anchorRef: anchor, open: isPopupVisible || showPopup })] }));
42
49
  };
43
50
  //# sourceMappingURL=PDisk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PDisk.js","sourceRoot":"","sources":["../../../../src/containers/Storage/PDisk/PDisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,4CAA4C,CAAC;AAEjF,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAE9E,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAE/C,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,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AS,CAAC,EACvB,YAAY,EAAE,eAAe,EAC7B,YAAY,EAAE,eAAe,aAE7B,KAAC,oBAAoB,IACjB,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,EAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,oBAAoB,GACjC,EACF,cAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAG,IAAI,CAAC,IAAI,GAAO,IACvC,IACb,EACN,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,IAAI,SAAS,GAAI,IACnE,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -40,12 +40,14 @@
40
40
 
41
41
  &__media-type {
42
42
  position: absolute;
43
- top: 0;
43
+ top: 50%;
44
44
  right: 4px;
45
45
 
46
46
  font-size: var(--g-text-body-1-font-size);
47
- line-height: var(--g-text-body-3-line-height);
47
+ line-height: var(--g-text-body-1-line-height);
48
48
 
49
49
  color: var(--g-color-text-secondary);
50
+
51
+ transform: translateY(-50%);
50
52
  }
51
53
  }
@@ -2,10 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { StringParam, useQueryParams } from 'use-query-params';
3
3
  import { AccessDenied } from '../../components/Errors/403/AccessDenied';
4
4
  import { ResponseError } from '../../components/Errors/ResponseError/ResponseError';
5
- import { selectNodesMap } from '../../store/reducers/nodesList';
6
5
  import { STORAGE_TYPES, VISIBLE_ENTITIES } from '../../store/reducers/storage/constants';
7
6
  import { storageTypeSchema, visibleEntitiesSchema } from '../../store/reducers/storage/types';
8
- import { useTypedSelector } from '../../utils/hooks';
9
7
  import { NodesUptimeFilterValues, nodesUptimeFilterValuesSchema } from '../../utils/nodes';
10
8
  import { StorageControls } from './StorageControls/StorageControls';
11
9
  import { PaginatedStorageGroups } from './StorageGroups/PaginatedStorageGroups';
@@ -34,7 +32,6 @@ export const PaginatedStorage = ({ database, nodeId, parentContainer, additional
34
32
  const handleUptimeFilterChange = (value) => {
35
33
  setQueryParams({ uptimeFilter: value }, 'replaceIn');
36
34
  };
37
- const nodesMap = useTypedSelector(selectNodesMap);
38
35
  const handleShowAllGroups = () => {
39
36
  handleGroupVisibilityChange(VISIBLE_ENTITIES.all);
40
37
  };
@@ -56,6 +53,6 @@ export const PaginatedStorage = ({ database, nodeId, parentContainer, additional
56
53
  if (storageType === STORAGE_TYPES.nodes) {
57
54
  return (_jsx(PaginatedStorageNodes, { searchValue: searchValue, visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, database: database, additionalNodesProps: additionalNodesProps, onShowAll: handleShowAllNodes, parentContainer: parentContainer, renderControls: renderControls, renderErrorMessage: renderErrorMessage }));
58
55
  }
59
- return (_jsx(PaginatedStorageGroups, { searchValue: searchValue, visibleEntities: visibleEntities, database: database, nodeId: nodeId, nodesMap: nodesMap, onShowAll: handleShowAllGroups, parentContainer: parentContainer, renderControls: renderControls, renderErrorMessage: renderErrorMessage }));
56
+ return (_jsx(PaginatedStorageGroups, { searchValue: searchValue, visibleEntities: visibleEntities, database: database, nodeId: nodeId, onShowAll: handleShowAllGroups, parentContainer: parentContainer, renderControls: renderControls, renderErrorMessage: renderErrorMessage }));
60
57
  };
61
58
  //# sourceMappingURL=PaginatedStorage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedStorage.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,YAAY,EAAC,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,qDAAqD,CAAC;AAElF,OAAO,EAAC,cAAc,EAAC,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAC,iBAAiB,EAAE,qBAAqB,E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AAE,CAAC;QACtC,OAAO,CACH,KAAC,qBAAqB,IAClB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,QAAQ,EAClB,oBAAoB,EAAE,oBAAoB,EAC1C,SAAS,EAAE,kBAAkB,EAC7B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,GACxC,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,sBAAsB,IACnB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,mBAAmB,EAC9B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,GACxC,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -5,13 +5,13 @@ import { AccessDenied } from '../../components/Errors/403';
5
5
  import { isAccessError } from '../../components/Errors/PageError/PageError';
6
6
  import { ResponseError } from '../../components/Errors/ResponseError';
7
7
  import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
8
- import { selectNodesMap } from '../../store/reducers/nodesList';
8
+ import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../store/reducers/capabilities/hooks';
9
9
  import { STORAGE_TYPES, VISIBLE_ENTITIES } from '../../store/reducers/storage/constants';
10
10
  import { filterGroups, filterNodes, getUsageFilterOptions, } from '../../store/reducers/storage/selectors';
11
11
  import { storageApi } from '../../store/reducers/storage/storage';
12
12
  import { storageTypeSchema, visibleEntitiesSchema } from '../../store/reducers/storage/types';
13
13
  import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
14
- import { useAutoRefreshInterval, useTableSort, useTypedSelector } from '../../utils/hooks';
14
+ import { useAutoRefreshInterval, useTableSort } from '../../utils/hooks';
15
15
  import { NodesUptimeFilterValues, nodesUptimeFilterValuesSchema } from '../../utils/nodes';
16
16
  import { StorageControls } from './StorageControls/StorageControls';
17
17
  import { StorageGroups } from './StorageGroups/StorageGroups';
@@ -33,6 +33,8 @@ const UsageFilterParam = withDefault({
33
33
  }, []);
34
34
  export const Storage = ({ additionalNodesProps, database, nodeId }) => {
35
35
  var _a;
36
+ const capabilitiesLoaded = useCapabilitiesLoaded();
37
+ const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
36
38
  const [autoRefreshInterval] = useAutoRefreshInterval();
37
39
  const [queryParams, setQueryParams] = useQueryParams({
38
40
  type: StringParam,
@@ -41,12 +43,11 @@ export const Storage = ({ additionalNodesProps, database, nodeId }) => {
41
43
  uptimeFilter: StringParam,
42
44
  usageFilter: UsageFilterParam,
43
45
  });
44
- const type = storageTypeSchema.parse(queryParams.type);
46
+ const storageType = storageTypeSchema.parse(queryParams.type);
45
47
  const visibleEntities = visibleEntitiesSchema.parse(queryParams.visible);
46
48
  const filter = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
47
49
  const uptimeFilter = nodesUptimeFilterValuesSchema.parse(queryParams.uptimeFilter);
48
50
  const usageFilter = queryParams.usageFilter;
49
- const nodesMap = useTypedSelector(selectNodesMap);
50
51
  const [nodeSort, setNodeSort] = React.useState({
51
52
  sortOrder: undefined,
52
53
  sortValue: undefined,
@@ -57,15 +58,12 @@ export const Storage = ({ additionalNodesProps, database, nodeId }) => {
57
58
  sortValue: undefined,
58
59
  });
59
60
  const groupsSortParams = groupSort.sortOrder ? groupSort : getDefaultSortGroup(visibleEntities);
60
- // Do not display Nodes table for Node page (NodeId present)
61
- const isNodePage = nodeId !== undefined;
62
- const storageType = isNodePage ? STORAGE_TYPES.groups : type;
63
- const nodesQuery = storageApi.useGetStorageNodesInfoQuery({ database, visibleEntities }, {
61
+ const nodesQuery = storageApi.useGetStorageNodesInfoQuery({ database, visibleEntities, node_id: nodeId }, {
64
62
  skip: storageType !== STORAGE_TYPES.nodes,
65
63
  pollingInterval: autoRefreshInterval,
66
64
  });
67
- const groupsQuery = storageApi.useGetStorageGroupsInfoQuery({ database, visibleEntities, nodeId }, {
68
- skip: storageType !== STORAGE_TYPES.groups,
65
+ const groupsQuery = storageApi.useGetStorageGroupsInfoQuery({ database, with: visibleEntities, nodeId, shouldUseGroupsHandler: groupsHandlerAvailable }, {
66
+ skip: storageType !== STORAGE_TYPES.groups || !capabilitiesLoaded,
69
67
  pollingInterval: autoRefreshInterval,
70
68
  });
71
69
  const { currentData, isFetching, error } = storageType === STORAGE_TYPES.nodes ? nodesQuery : groupsQuery;
@@ -98,16 +96,16 @@ export const Storage = ({ additionalNodesProps, database, nodeId }) => {
98
96
  handleUptimeFilterChange(NodesUptimeFilterValues.All);
99
97
  };
100
98
  const renderDataTable = () => {
101
- return (_jsxs(React.Fragment, { children: [storageType === STORAGE_TYPES.groups && (_jsx(StorageGroups, { visibleEntities: visibleEntities, data: storageGroups, tableSettings: DEFAULT_TABLE_SETTINGS, nodes: nodesMap, onShowAll: () => handleGroupVisibilityChange(VISIBLE_ENTITIES.all), sort: groupsSort, handleSort: handleGroupsSort }, "groups")), storageType === STORAGE_TYPES.nodes && (_jsx(StorageNodes, { visibleEntities: visibleEntities, nodesUptimeFilter: uptimeFilter, data: storageNodes, tableSettings: DEFAULT_TABLE_SETTINGS, onShowAll: handleShowAllNodes, additionalNodesProps: additionalNodesProps, sort: nodesSort, handleSort: handleNodesSort, database: database }, "nodes"))] }));
99
+ return (_jsxs(React.Fragment, { children: [storageType === STORAGE_TYPES.groups && (_jsx(StorageGroups, { visibleEntities: visibleEntities, data: storageGroups, tableSettings: DEFAULT_TABLE_SETTINGS, onShowAll: () => handleGroupVisibilityChange(VISIBLE_ENTITIES.all), sort: groupsSort, handleSort: handleGroupsSort }, "groups")), storageType === STORAGE_TYPES.nodes && (_jsx(StorageNodes, { visibleEntities: visibleEntities, nodesUptimeFilter: uptimeFilter, data: storageNodes, tableSettings: DEFAULT_TABLE_SETTINGS, onShowAll: handleShowAllNodes, additionalNodesProps: additionalNodesProps, sort: nodesSort, handleSort: handleNodesSort, database: database }, "nodes"))] }));
102
100
  };
103
101
  const renderControls = () => {
104
- return (_jsx(StorageControls, { searchValue: filter, handleSearchValueChange: handleTextFilterChange, withTypeSelector: !isNodePage, storageType: storageType, handleStorageTypeChange: handleStorageTypeChange, visibleEntities: visibleEntities, handleVisibleEntitiesChange: handleGroupVisibilityChange, nodesUptimeFilter: uptimeFilter, handleNodesUptimeFilterChange: handleUptimeFilterChange, groupsUsageFilter: usageFilter, groupsUsageFilterOptions: usageFilterOptions, handleGroupsUsageFilterChange: handleUsageFilterChange, entitiesCountCurrent: storageType === STORAGE_TYPES.groups
102
+ return (_jsx(StorageControls, { searchValue: filter, handleSearchValueChange: handleTextFilterChange, withTypeSelector: true, storageType: storageType, handleStorageTypeChange: handleStorageTypeChange, visibleEntities: visibleEntities, handleVisibleEntitiesChange: handleGroupVisibilityChange, nodesUptimeFilter: uptimeFilter, handleNodesUptimeFilterChange: handleUptimeFilterChange, groupsUsageFilter: usageFilter, groupsUsageFilterOptions: usageFilterOptions, handleGroupsUsageFilterChange: handleUsageFilterChange, entitiesCountCurrent: storageType === STORAGE_TYPES.groups
105
103
  ? storageGroups.length
106
104
  : storageNodes.length, entitiesCountTotal: entitiesCount.total, entitiesLoading: isLoading }));
107
105
  };
108
106
  if (isAccessError(error)) {
109
107
  return _jsx(AccessDenied, { position: "left" });
110
108
  }
111
- return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), error ? _jsx(ResponseError, { error: error }) : null, _jsx(TableWithControlsLayout.Table, { loading: isLoading, className: b('table'), children: currentData ? renderDataTable() : null })] }));
109
+ return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), error ? _jsx(ResponseError, { error: error }) : null, _jsx(TableWithControlsLayout.Table, { loading: isLoading || !capabilitiesLoaded, className: b('table'), children: currentData ? renderDataTable() : null })] }));
112
110
  };
113
111
  //# sourceMappingURL=Storage.js.map