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
@@ -3,24 +3,23 @@ import React from 'react';
3
3
  import { CircleQuestion, Gear, Person } from '@gravity-ui/icons';
4
4
  import { AsideHeader, FooterItem } from '@gravity-ui/navigation';
5
5
  import { useHistory } from 'react-router-dom';
6
- import { selectUser } from '../../store/reducers/authentication/authentication';
7
6
  import { cn } from '../../utils/cn';
8
7
  import { ASIDE_HEADER_COMPACT_KEY } from '../../utils/constants';
9
- import { useSetting, useTypedSelector } from '../../utils/hooks';
8
+ import { useSetting } from '../../utils/hooks';
10
9
  import i18n from './i18n';
11
10
  import userSecret from '../../assets/icons/user-secret.svg';
12
11
  import ydbLogoIcon from '../../assets/icons/ydb.svg';
13
12
  import './AsideNavigation.scss';
14
13
  const b = cn('kv-navigation');
15
- function YdbUserDropdown({ isCompact, popupAnchor, ydbUser, children }) {
14
+ function UserDropdown({ isCompact, popupAnchor, user, children }) {
16
15
  const [isUserDropdownVisible, setIsUserDropdownVisible] = React.useState(false);
17
- const iconData = ydbUser.login ? Person : userSecret;
16
+ const iconData = user ? Person : userSecret;
18
17
  return (_jsx(FooterItem, { compact: isCompact, item: {
19
18
  id: 'user-popup',
20
- title: ydbUser.login ? ydbUser.login : i18n('navigation-item.account'),
19
+ title: (user === null || user === void 0 ? void 0 : user.login) ? user.login : i18n('navigation-item.account'),
21
20
  current: isUserDropdownVisible,
22
21
  icon: iconData,
23
- onItemClick: () => setIsUserDropdownVisible(true),
22
+ onItemClick: () => setIsUserDropdownVisible((v) => !v),
24
23
  }, enableTooltip: !isUserDropdownVisible, popupAnchor: popupAnchor, popupVisible: isUserDropdownVisible, onClosePopup: () => setIsUserDropdownVisible(false), renderPopupContent: () => _jsx("div", { className: b('ydb-user-wrapper'), children: children }) }));
25
24
  }
26
25
  var Panel;
@@ -30,7 +29,6 @@ var Panel;
30
29
  export function AsideNavigation(props) {
31
30
  const history = useHistory();
32
31
  const [visiblePanel, setVisiblePanel] = React.useState();
33
- const ydbUser = useTypedSelector(selectUser);
34
32
  const [compact, setIsCompact] = useSetting(ASIDE_HEADER_COMPACT_KEY);
35
33
  return (_jsx(React.Fragment, { children: _jsx(AsideHeader, { logo: {
36
34
  text: 'YDB',
@@ -53,9 +51,7 @@ export function AsideNavigation(props) {
53
51
  ? undefined
54
52
  : Panel.UserSettings);
55
53
  },
56
- }, compact: compact }), _jsx(YdbUserDropdown, { isCompact: compact, popupAnchor: asideRef, ydbUser: {
57
- login: ydbUser,
58
- }, children: props.ydbInternalUser })] })), panelItems: [
54
+ }, compact: compact }), _jsx(UserDropdown, { isCompact: compact, popupAnchor: asideRef, user: props.user, children: props.ydbInternalUser })] })), panelItems: [
59
55
  {
60
56
  id: 'user-settings',
61
57
  visible: visiblePanel === Panel.UserSettings,
@@ -1 +1 @@
1
- {"version":3,"file":"AsideNavigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/AsideNavigation.tsx"],"names":[],"mappings":";AAAA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E,EAAE,eAAe;4BACnB,KAAK,EAAE,IAAI,CAAC,+BAA+B,CAAC;4BAC5C,IAAI,EAAE,cAAc;4BACpB,WAAW,EAAE,GAAG,EAAE;gCACd,MAAM,CAAC,IAAI,CAAC,uBAAuB,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;4BACjE,CAAC;yBACJ,GACH,EAEF,KAAC,UAAU,IACP,IAAI,EAAE;4BACF,EAAE,EAAE,eAAe;4BACnB,KAAK,EAAE,IAAI,CAAC,0BAA0B,CAAC;4BACvC,IAAI,EAAE,IAAI;4BACV,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;4BAC5C,WAAW,EAAE,GAAG,EAAE;gCACd,eAAe,CACX,YAAY,KAAK,KAAK,CAAC,YAAY;oCAC/B,CAAC,CAAC,SAAS;oCACX,CAAC,CAAC,KAAK,CAAC,YAAY,CAC3B,CAAC;4BACN,CAAC;yBACJ,EACD,OAAO,EAAE,OAAO,GAClB,EAEF,KAAC,eAAe,IACZ,SAAS,EAAE,OAAO,EAClB,WAAW,EAAE,QAAQ,EACrB,OAAO,EAAE;4BACL,KAAK,EAAE,OAAO;yBACjB,YAEA,KAAK,CAAC,eAAe,GACR,IACL,CACpB,EACD,UAAU,EAAE;gBACR;oBACI,EAAE,EAAE,eAAe;oBACnB,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;oBAC5C,OAAO,EAAE,KAAK,CAAC,QAAQ;iBAC1B;aACJ,EACD,YAAY,EAAE,GAAG,EAAE;gBACf,eAAe,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC,GACH,GACW,CACpB,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"AsideNavigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/AsideNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE/D,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AY,CAAC,CAAC;4BACjE,CAAC;yBACJ,GACH,EAEF,KAAC,UAAU,IACP,IAAI,EAAE;4BACF,EAAE,EAAE,eAAe;4BACnB,KAAK,EAAE,IAAI,CAAC,0BAA0B,CAAC;4BACvC,IAAI,EAAE,IAAI;4BACV,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;4BAC5C,WAAW,EAAE,GAAG,EAAE;gCACd,eAAe,CACX,YAAY,KAAK,KAAK,CAAC,YAAY;oCAC/B,CAAC,CAAC,SAAS;oCACX,CAAC,CAAC,KAAK,CAAC,YAAY,CAC3B,CAAC;4BACN,CAAC;yBACJ,EACD,OAAO,EAAE,OAAO,GAClB,EAEF,KAAC,YAAY,IAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,YACpE,KAAK,CAAC,eAAe,GACX,IACF,CACpB,EACD,UAAU,EAAE;gBACR;oBACI,EAAE,EAAE,eAAe;oBACnB,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;oBAC5C,OAAO,EAAE,KAAK,CAAC,QAAQ;iBAC1B;aACJ,EACD,YAAY,EAAE,GAAG,EAAE;gBACf,eAAe,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC,GACH,GACW,CACpB,CAAC;AACN,CAAC"}
@@ -1,9 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useComponent } from '../../components/ComponentsProvider/ComponentsProvider';
3
+ import { selectUser } from '../../store/reducers/authentication/authentication';
4
+ import { useTypedSelector } from '../../utils/hooks';
3
5
  import { UserSettings } from '../UserSettings/UserSettings';
4
6
  import { YdbInternalUser } from './YdbInternalUser/YdbInternalUser';
5
7
  export function Navigation({ children, userSettings }) {
6
8
  const AsideNavigation = useComponent('AsideNavigation');
7
- return (_jsx(AsideNavigation, { settings: _jsx(UserSettings, { settings: userSettings }), ydbInternalUser: _jsx(YdbInternalUser, {}), content: children }));
9
+ const ydbUser = useTypedSelector(selectUser);
10
+ return (_jsx(AsideNavigation, { settings: _jsx(UserSettings, { settings: userSettings }), ydbInternalUser: _jsx(YdbInternalUser, { login: ydbUser }), user: ydbUser ? { login: ydbUser } : undefined, content: children }));
8
11
  }
9
12
  //# sourceMappingURL=Navigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/Navigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAMlE,MAAM,UAAU,UAAU,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAkB;IAChE,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAExD,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,KAAC,YAAY,IAAC,QAAQ,EAAE,YAAY,GAAI,EAClD,eAAe,EAAE,KAAC,eAAe,KAAG,EACpC,OAAO,EAAE,QAAQ,GACnB,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/Navigation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAC,UAAU,EAAC,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAC,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAMlE,MAAM,UAAU,UAAU,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAkB;IAChE,MAAM,eAAe,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAE7C,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,KAAC,YAAY,IAAC,QAAQ,EAAE,YAAY,GAAI,EAClD,eAAe,EAAE,KAAC,eAAe,IAAC,KAAK,EAAE,OAAO,GAAI,EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAC,KAAK,EAAE,OAAO,EAAC,CAAC,CAAC,CAAC,SAAS,EAC5C,OAAO,EAAE,QAAQ,GACnB,CACL,CAAC;AACN,CAAC"}
@@ -1,2 +1,4 @@
1
1
  import './YdbInternalUser.scss';
2
- export declare function YdbInternalUser(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function YdbInternalUser({ login }: {
3
+ login?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -5,12 +5,10 @@ import { useHistory } from 'react-router-dom';
5
5
  import routes, { createHref } from '../../../routes';
6
6
  import { authenticationApi } from '../../../store/reducers/authentication/authentication';
7
7
  import { cn } from '../../../utils/cn';
8
- import { useTypedSelector } from '../../../utils/hooks';
9
8
  import i18n from '../i18n';
10
9
  import './YdbInternalUser.scss';
11
10
  const b = cn('kv-ydb-internal-user');
12
- export function YdbInternalUser() {
13
- const { user: ydbUser } = useTypedSelector((state) => state.authentication);
11
+ export function YdbInternalUser({ login }) {
14
12
  const [logout] = authenticationApi.useLogoutMutation();
15
13
  const history = useHistory();
16
14
  const handleLoginClick = () => {
@@ -19,6 +17,6 @@ export function YdbInternalUser() {
19
17
  const handleLogout = () => {
20
18
  logout(undefined);
21
19
  };
22
- return (_jsxs("div", { className: b(), children: [_jsxs("div", { className: b('user-info-wrapper'), children: [_jsx("div", { className: b('ydb-internal-user-title'), children: i18n('account.user') }), ydbUser && _jsx("div", { className: b('username'), children: ydbUser })] }), ydbUser ? (_jsx(Button, { view: "flat-secondary", title: i18n('account.logout'), onClick: handleLogout, children: _jsx(Icon, { data: ArrowRightFromSquare }) })) : (_jsx(Button, { view: "flat-secondary", title: i18n('account.login'), onClick: handleLoginClick, children: _jsx(Icon, { data: ArrowRightToSquare }) }))] }));
20
+ return (_jsxs("div", { className: b(), children: [_jsxs("div", { className: b('user-info-wrapper'), children: [_jsx("div", { className: b('ydb-internal-user-title'), children: i18n('account.user') }), login && _jsx("div", { className: b('username'), children: login })] }), login ? (_jsx(Button, { view: "flat-secondary", title: i18n('account.logout'), onClick: handleLogout, children: _jsx(Icon, { data: ArrowRightFromSquare }) })) : (_jsx(Button, { view: "flat-secondary", title: i18n('account.login'), onClick: handleLoginClick, children: _jsx(Icon, { data: ArrowRightToSquare }) }))] }));
23
21
  }
24
22
  //# sourceMappingURL=YdbInternalUser.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"YdbInternalUser.js","sourceRoot":"","sources":["../../../../src/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,iBAAiB,EAAC,MAAM,uDAAuD,CAAC;AACxF,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,wBAAwB,CAAC;AAEhC,MAAM,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC,CAAC;AAErC,MAAM,UAAU,eAAe;IAC3B,MAAM,EAAC,IAAI,EAAE,OAAO,EAAC,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAE1E,MAAM,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;IAEvD,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,gBAAgB,GAAG,GAAG,EAAE;QAC1B,OAAO,CAAC,IAAI,CACR,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,EAAC,SAAS,EAAE,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAC,CAAC,CACrF,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,MAAM,CAAC,SAAS,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,eAAK,SAAS,EAAE,CAAC,CAAC,mBAAmB,CAAC,aAClC,cAAK,SAAS,EAAE,CAAC,CAAC,yBAAyB,CAAC,YAAG,IAAI,CAAC,cAAc,CAAC,GAAO,EACzE,OAAO,IAAI,cAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,YAAG,OAAO,GAAO,IACxD,EACL,OAAO,CAAC,CAAC,CAAC,CACP,KAAC,MAAM,IAAC,IAAI,EAAC,gBAAgB,EAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,YAAY,YAC9E,KAAC,IAAI,IAAC,IAAI,EAAE,oBAAoB,GAAI,GAC/B,CACZ,CAAC,CAAC,CAAC,CACA,KAAC,MAAM,IACH,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,EAC5B,OAAO,EAAE,gBAAgB,YAEzB,KAAC,IAAI,IAAC,IAAI,EAAE,kBAAkB,GAAI,GAC7B,CACZ,IACC,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"YdbInternalUser.js","sourceRoot":"","sources":["../../../../src/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,oBAAoB,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C,IAAI,EAAC,gBAAgB,EAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,YAAY,YAC9E,KAAC,IAAI,IAAC,IAAI,EAAE,oBAAoB,GAAI,GAC/B,CACZ,CAAC,CAAC,CAAC,CACA,KAAC,MAAM,IACH,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,EAC5B,OAAO,EAAE,gBAAgB,YAEzB,KAAC,IAAI,IAAC,IAAI,EAAE,kBAAkB,GAAI,GAC7B,CACZ,IACC,CACT,CAAC;AACN,CAAC"}
@@ -8,10 +8,9 @@ import { AutoRefreshControl } from '../../components/AutoRefreshControl/AutoRefr
8
8
  import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
9
9
  import { InternalLink } from '../../components/InternalLink';
10
10
  import routes, { getLocationObjectFromHref } from '../../routes';
11
- import { clusterApi, updateDefaultClusterTab } from '../../store/reducers/cluster/cluster';
11
+ import { clusterApi, selectClusterTitle, updateDefaultClusterTab, } from '../../store/reducers/cluster/cluster';
12
12
  import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
13
13
  import { cn } from '../../utils/cn';
14
- import { CLUSTER_DEFAULT_TITLE } from '../../utils/constants';
15
14
  import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
16
15
  import { parseVersionsToVersionToColorMap } from '../../utils/versions';
17
16
  import { NodesWrapper } from '../Nodes/NodesWrapper';
@@ -23,7 +22,6 @@ import { clusterTabs, clusterTabsIds, getClusterPath, isClusterTab } from './uti
23
22
  import './Cluster.scss';
24
23
  const b = cn('cluster');
25
24
  export function Cluster({ additionalClusterProps, additionalTenantsProps, additionalNodesProps, additionalVersionsProps, }) {
26
- var _a, _b;
27
25
  const container = React.useRef(null);
28
26
  const dispatch = useTypedDispatch();
29
27
  const activeTabId = useClusterTab();
@@ -31,12 +29,12 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
31
29
  clusterName: StringParam,
32
30
  backend: StringParam,
33
31
  });
32
+ const clusterTitle = useTypedSelector((state) => selectClusterTitle(state, clusterName !== null && clusterName !== void 0 ? clusterName : undefined));
34
33
  const { data: { clusterData: cluster = {}, groupsStats } = {}, isLoading: infoLoading, error, } = clusterApi.useGetClusterInfoQuery(clusterName !== null && clusterName !== void 0 ? clusterName : undefined);
35
34
  const clusterError = error && typeof error === 'object' ? error : undefined;
36
- const { Name } = cluster;
37
35
  React.useEffect(() => {
38
36
  dispatch(setHeaderBreadcrumbs('cluster', {}));
39
- }, [dispatch, Name]);
37
+ }, [dispatch]);
40
38
  const versionToColor = React.useMemo(() => {
41
39
  if (additionalVersionsProps === null || additionalVersionsProps === void 0 ? void 0 : additionalVersionsProps.getVersionToColorMap) {
42
40
  return additionalVersionsProps === null || additionalVersionsProps === void 0 ? void 0 : additionalVersionsProps.getVersionToColorMap();
@@ -44,24 +42,18 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
44
42
  return parseVersionsToVersionToColorMap(cluster === null || cluster === void 0 ? void 0 : cluster.Versions);
45
43
  }, [additionalVersionsProps, cluster]);
46
44
  const getClusterTitle = () => {
47
- var _a;
48
45
  if (infoLoading) {
49
46
  return _jsx(Skeleton, { className: b('title-skeleton') });
50
47
  }
51
- return (_jsx(EntityStatus, { size: "m", status: cluster === null || cluster === void 0 ? void 0 : cluster.Overall, name: (_a = cluster === null || cluster === void 0 ? void 0 : cluster.Name) !== null && _a !== void 0 ? _a : CLUSTER_DEFAULT_TITLE, className: b('title') }));
48
+ return (_jsx(EntityStatus, { size: "m", status: cluster === null || cluster === void 0 ? void 0 : cluster.Overall, name: clusterTitle, className: b('title') }));
52
49
  };
53
- const clusterTitle = (_b = (_a = cluster === null || cluster === void 0 ? void 0 : cluster.Name) !== null && _a !== void 0 ? _a : clusterName) !== null && _b !== void 0 ? _b : CLUSTER_DEFAULT_TITLE;
54
50
  const activeTab = React.useMemo(() => clusterTabs.find(({ id }) => id === activeTabId), [activeTabId]);
55
51
  return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }), _jsx("div", { className: b('tabs'), children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
56
52
  const path = getClusterPath(id, { clusterName, backend });
57
53
  return (_jsx(InternalLink, { to: path, onClick: () => {
58
54
  dispatch(updateDefaultClusterTab(id));
59
55
  }, children: node }, id));
60
- } }) }), _jsxs("div", { children: [_jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview))
61
- .pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants))
62
- .pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage))
63
- .pathname, children: _jsx(StorageWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions))
64
- .pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] })] }));
56
+ } }) }), _jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants)).pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage)).pathname, children: _jsx(StorageWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions)).pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] }));
65
57
  }
66
58
  function useClusterTab() {
67
59
  const dispatch = useTypedDispatch();
@@ -1 +1 @@
1
- {"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,4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CAAC"}
@@ -41,6 +41,7 @@
41
41
  position: sticky;
42
42
  z-index: 4;
43
43
  top: 56px;
44
+ left: 0;
44
45
  }
45
46
 
46
47
  &__auto-refresh-control {
@@ -1,12 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { Breadcrumbs } from '@gravity-ui/uikit';
4
- import { get } from 'lodash';
5
- import { StringParam, useQueryParams } from 'use-query-params';
6
4
  import { InternalLink } from '../../components/InternalLink';
7
5
  import { LinkWithIcon } from '../../components/LinkWithIcon/LinkWithIcon';
8
6
  import { backend, customBackend } from '../../store';
9
- import { clusterApi } from '../../store/reducers/cluster/cluster';
7
+ import { useClusterBaseInfo } from '../../store/reducers/cluster/cluster';
10
8
  import { cn } from '../../utils/cn';
11
9
  import { DEVELOPER_UI_TITLE } from '../../utils/constants';
12
10
  import { useTypedSelector } from '../../utils/hooks';
@@ -20,12 +18,10 @@ const getInternalLink = (singleClusterMode) => {
20
18
  return backend + '/internal';
21
19
  };
22
20
  function Header({ mainPage }) {
23
- var _a;
24
- const [queryParams] = useQueryParams({ clusterName: StringParam });
25
21
  const singleClusterMode = useTypedSelector((state) => state.singleClusterMode);
26
22
  const { page, pageBreadcrumbsOptions } = useTypedSelector((state) => state.header);
27
- const clusterInfo = clusterApi.useGetClusterInfoQuery((_a = queryParams.clusterName) !== null && _a !== void 0 ? _a : undefined);
28
- const clusterName = get(clusterInfo, ['currentData', 'clusterData', 'Name'], queryParams.clusterName);
23
+ const clusterInfo = useClusterBaseInfo();
24
+ const clusterName = clusterInfo.title || clusterInfo.name;
29
25
  const breadcrumbItems = React.useMemo(() => {
30
26
  const rawBreadcrumbs = [];
31
27
  let options = pageBreadcrumbsOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/containers/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,W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,EAAE,IAAI,EAAE,sBAAsB,CAAC,CAAC,CAAC;IAE1D,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,OAAO,CACH,kBAAQ,SAAS,EAAE,CAAC,EAAE,aAClB,KAAC,WAAW,IACR,KAAK,EAAE,eAAe,EACtB,uBAAuB,EAAE,CAAC,EAC1B,wBAAwB,EAAE,CAAC,EAC3B,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,EAC3B,UAAU,EAAE,CAAC,EAAC,IAAI,EAAE,SAAS,EAAC,EAAE,EAAE;wBAC9B,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC;wBAEhC,OAAO,CACH,MAAC,YAAY,IACT,SAAS,EAAE,CAAC,CAAC,kBAAkB,EAAE;gCAC7B,MAAM,EAAE,SAAS;gCACjB,IAAI,EAAE,CAAC,SAAS;6BACnB,CAAC,EACF,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,aAE/B,IAAI,CAAC,CAAC,CAAC,CACJ,eAAM,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YAAG,IAAI,GAAQ,CACxD,CAAC,CAAC,CAAC,IAAI,EACR,yBAAO,IAAI,GAAQ,IACR,CAClB,CAAC;oBACN,CAAC,GACH,EAEF,KAAC,YAAY,IAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,eAAe,CAAC,iBAAiB,CAAC,GAAI,IAC/E,CACZ,CAAC;IACN,CAAC,CAAC;IACF,OAAO,YAAY,EAAE,CAAC;AAC1B,CAAC;AAED,eAAe,MAAM,CAAC"}
@@ -15,8 +15,7 @@ import { cn } from '../../utils/cn';
15
15
  import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
16
16
  import { StorageWrapper } from '../Storage/StorageWrapper';
17
17
  import { Tablets } from '../Tablets';
18
- import { NODE_PAGES, OVERVIEW, STORAGE, STRUCTURE, TABLETS } from './NodePages';
19
- import NodeStructure from './NodeStructure/NodeStructure';
18
+ import { NODE_PAGES, OVERVIEW, STORAGE, TABLETS } from './NodePages';
20
19
  import './Node.scss';
21
20
  const b = cn('node');
22
21
  export const STORAGE_ROLE = 'Storage';
@@ -76,9 +75,6 @@ export function Node(props) {
76
75
  case OVERVIEW: {
77
76
  return _jsx(FullNodeViewer, { node: node, className: b('overview-wrapper') });
78
77
  }
79
- case STRUCTURE: {
80
- return _jsx(NodeStructure, { className: b('node-page-wrapper'), nodeId: nodeId });
81
- }
82
78
  default:
83
79
  return false;
84
80
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Node.js","sourceRoot":"","sources":["../../../src/containers/Node/Node.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,cAAc,EAAC,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,gCAAgC,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,cAAc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ure',
18
- },
15
+ // TODO: remove Node Structure component
16
+ // {
17
+ // id: STRUCTURE,
18
+ // name: 'Structure',
19
+ // },
19
20
  {
20
21
  id: TABLETS,
21
22
  name: 'Tablets',
@@ -1 +1 @@
1
- {"version":3,"file":"NodePages.js","sourceRoot":"","sources":["../../../src/containers/Node/NodePages.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AAIrC,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB;QACI,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,UAAU;KACnB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;IACD;QACI,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,WAAW;KACpB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAC9B,MAAuB,EACvB,QAAe,EAAE,EACjB,YAAqB,QAAQ;IAE7B,OAAO,UAAU,CACb,MAAM,CAAC,IAAI,EACX;QACI,EAAE,EAAE,MAAM;QACV,SAAS;KACZ,EACD,KAAK,CACR,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"NodePages.js","sourceRoot":"","sources":["../../../src/containers/Node/NodePages.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AAIrC,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB;QACI,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,UAAU;KACnB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;IACD,wCAAwC;IACxC,IAAI;IACJ,qBAAqB;IACrB,yBAAyB;IACzB,KAAK;IACL;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAC9B,MAAuB,EACvB,QAAe,EAAE,EACjB,YAAqB,QAAQ;IAE7B,OAAO,UAAU,CACb,MAAM,CAAC,IAAI,EACX;QACI,EAAE,EAAE,MAAM;QACV,SAAS;KACZ,EACD,KAAK,CACR,CAAC;AACN,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import url from 'url';
3
2
  import React from 'react';
4
3
  import isEmpty from 'lodash/isEmpty';
4
+ import { StringParam, useQueryParams } from 'use-query-params';
5
5
  import { Loader } from '../.././../components/Loader';
6
6
  import { ResponseError } from '../../../components/Errors/ResponseError';
7
7
  import { nodeApi } from '../../../store/reducers/node/node';
@@ -19,12 +19,18 @@ function NodeStructure({ nodeId, className }) {
19
19
  const [autoRefreshInterval] = useAutoRefreshInterval();
20
20
  const { currentData, isFetching, error } = nodeApi.useGetNodeStructureQuery({ nodeId }, { pollingInterval: autoRefreshInterval });
21
21
  const loadingStructure = isFetching && currentData === undefined;
22
- const { pdiskId: pdiskIdFromUrl, vdiskId: vdiskIdFromUrl } = url.parse(window.location.href, true).query;
22
+ const [{ pdiskId: pdiskIdFromUrl, vdiskId: vdiskIdFromUrl }] = useQueryParams({
23
+ pdiskId: StringParam,
24
+ vdiskId: StringParam,
25
+ });
23
26
  const scrollContainerRef = React.useRef(null);
24
27
  const scrolled = React.useRef(false);
25
28
  React.useEffect(() => {
26
29
  var _a;
27
- if (!isEmpty(nodeStructure) && !scrolled.current && scrollContainerRef.current) {
30
+ if (!isEmpty(nodeStructure) &&
31
+ !scrolled.current &&
32
+ scrollContainerRef.current &&
33
+ pdiskIdFromUrl) {
28
34
  const element = document.getElementById(generateId({ type: 'pdisk', id: pdiskIdFromUrl }));
29
35
  let scrollToVdisk = 0;
30
36
  if (vdiskIdFromUrl) {
@@ -1 +1 @@
1
- {"version":3,"file":"NodeStructure.js","sourceRoot":"","sources":["../../../../src/containers/Node/NodeStructure/NodeStructure.tsx"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAC,MAAM,EAAC,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,OAAO,EAAC,MAAM,mCAAmC,CAAC;AAC1D,OAAO,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAE9B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAElC,SAAS,UAAU,CAAC,EAAC,IAAI,EAAE,EAAE,EAAwC;IACjE,OAAO,GAAG,IAAI,IAAI,EAAE,EAAE,CAAC;AAC3B,CAAC;AAOD,SAAS,aAAa,CAAC,EAAC,MAAM,EAAE,SAAS,EAAqB;IAC1D,MAAM,aAAa,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CA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vB,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CACvB,KAAC,KAAK,IACF,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAE5B,EAAE,EAAE,UAAU,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAC,CAAC,EAC5C,QAAQ,EAAE,cAAc,KAAK,OAAO,EACpC,eAAe,EAAE,cAAwB,EACzC,MAAM,EAAE,MAAM,IAJT,OAAO,CAKd,CACL,CAAC;YACJ,CAAC,CAAC,UAAU,EAAE,CAAC;IACvB,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,gBAAgB,EAAE,CAAC;YACnB,OAAO,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,GAAG,CAAC;QAC/B,CAAC;QACD,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,eAAe,EAAE,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,kBAAkB,aACvC,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACtE,cAAK,SAAS,EAAE,SAAS,YAAG,aAAa,EAAE,GAAO,IAChD,CACT,CAAC;AACN,CAAC;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { EDecommitStatus } from '../../../types/api/pdisk';
2
+ import './DecommissionButton.scss';
3
+ interface DecommissionButtonProps {
4
+ decommission?: EDecommitStatus;
5
+ onConfirmAction: (newDecommissionStatus?: EDecommitStatus, isRetry?: boolean) => Promise<void>;
6
+ onConfirmActionSuccess: (() => Promise<void>) | VoidFunction;
7
+ buttonDisabled?: boolean;
8
+ popoverDisabled?: boolean;
9
+ }
10
+ export declare function DecommissionButton({ decommission, onConfirmAction, onConfirmActionSuccess, buttonDisabled, popoverDisabled, }: DecommissionButtonProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,91 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { ChevronDown } from '@gravity-ui/icons';
4
+ import { Button, DropdownMenu, Icon, Popover } from '@gravity-ui/uikit';
5
+ import { CriticalActionDialog } from '../../../components/CriticalActionDialog/CriticalActionDialog';
6
+ import { isErrorWithRetry } from '../../../components/CriticalActionDialog/utils';
7
+ import { wait } from '../../../utils';
8
+ import { cn } from '../../../utils/cn';
9
+ import { pDiskPageKeyset } from '../i18n';
10
+ import decommissionIcon from '../../../assets/icons/decommission.svg';
11
+ import './DecommissionButton.scss';
12
+ const b = cn('ydb-pdisk-decommission-button');
13
+ function getDecommissionWarningText(decommission) {
14
+ if (decommission === 'DECOMMIT_IMMINENT') {
15
+ return pDiskPageKeyset('decommission-dialog-imminent-warning');
16
+ }
17
+ if (decommission === 'DECOMMIT_PENDING') {
18
+ return pDiskPageKeyset('decommission-dialog-pending-warning');
19
+ }
20
+ if (decommission === 'DECOMMIT_REJECTED') {
21
+ return pDiskPageKeyset('decommission-dialog-rejected-warning');
22
+ }
23
+ if (decommission === 'DECOMMIT_NONE') {
24
+ return pDiskPageKeyset('decommission-dialog-none-warning');
25
+ }
26
+ return undefined;
27
+ }
28
+ function getDecommissionButtonItems(decommission, setNewDecommission) {
29
+ return [
30
+ {
31
+ text: pDiskPageKeyset('decommission-none'),
32
+ action: () => setNewDecommission('DECOMMIT_NONE'),
33
+ hidden: !decommission ||
34
+ decommission === 'DECOMMIT_NONE' ||
35
+ decommission === 'DECOMMIT_UNSET',
36
+ },
37
+ {
38
+ text: pDiskPageKeyset('decommission-pending'),
39
+ action: () => setNewDecommission('DECOMMIT_PENDING'),
40
+ hidden: decommission === 'DECOMMIT_PENDING',
41
+ },
42
+ {
43
+ text: pDiskPageKeyset('decommission-rejected'),
44
+ action: () => setNewDecommission('DECOMMIT_REJECTED'),
45
+ hidden: decommission === 'DECOMMIT_REJECTED',
46
+ },
47
+ {
48
+ text: pDiskPageKeyset('decommission-imminent'),
49
+ theme: 'danger',
50
+ action: () => setNewDecommission('DECOMMIT_IMMINENT'),
51
+ hidden: decommission === 'DECOMMIT_IMMINENT',
52
+ },
53
+ ];
54
+ }
55
+ export function DecommissionButton({ decommission, onConfirmAction, onConfirmActionSuccess, buttonDisabled, popoverDisabled, }) {
56
+ const [newDecommission, setNewDecommission] = React.useState();
57
+ const [buttonLoading, setButtonLoading] = React.useState(false);
58
+ const [withRetry, setWithRetry] = React.useState(false);
59
+ const handleConfirmAction = async (isRetry) => {
60
+ setButtonLoading(true);
61
+ await onConfirmAction(newDecommission, isRetry);
62
+ };
63
+ const handleConfirmActionSuccess = async () => {
64
+ setWithRetry(false);
65
+ // Decommission needs some time to change
66
+ // Wait for some time to send request for updated data
67
+ await wait(5000);
68
+ try {
69
+ await onConfirmActionSuccess();
70
+ }
71
+ finally {
72
+ setButtonLoading(false);
73
+ }
74
+ };
75
+ const handleConfirmActionError = (error) => {
76
+ setWithRetry(isErrorWithRetry(error));
77
+ setButtonLoading(false);
78
+ };
79
+ const handleClose = () => {
80
+ setNewDecommission(undefined);
81
+ };
82
+ const items = getDecommissionButtonItems(decommission, setNewDecommission);
83
+ const renderSwitcher = (props) => {
84
+ return (_jsx(DecommissionButtonSwitcher, { popoverDisabled: popoverDisabled, loading: buttonLoading, disabled: buttonDisabled, ...props }));
85
+ };
86
+ return (_jsxs(React.Fragment, { children: [_jsx(DropdownMenu, { renderSwitcher: renderSwitcher, items: items, popupProps: { className: b('popup') } }), _jsx(CriticalActionDialog, { visible: Boolean(newDecommission), header: pDiskPageKeyset('decommission-dialog-title'), text: getDecommissionWarningText(newDecommission), withRetry: withRetry, retryButtonText: pDiskPageKeyset('decommission-dialog-force-change'), onConfirm: handleConfirmAction, onConfirmActionSuccess: handleConfirmActionSuccess, onConfirmActionError: handleConfirmActionError, onClose: handleClose })] }));
87
+ }
88
+ function DecommissionButtonSwitcher({ popoverDisabled, ...restProps }) {
89
+ return (_jsx(Popover, { content: pDiskPageKeyset('decommission-change-not-allowed'), placement: 'right', disabled: popoverDisabled, children: _jsxs(Button, { view: 'normal', className: b('button'), ...restProps, children: [_jsx(Icon, { data: decommissionIcon }), pDiskPageKeyset('decommission-button'), _jsx(Icon, { data: ChevronDown })] }) }));
90
+ }
91
+ //# sourceMappingURL=DecommissionButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DecommissionButton.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/DecommissionButton/DecommissionButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAEtE,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AACnG,OAAO,EAAC,gBAAgB,EAAC,MAAM,gDAAgD,CAAC;AAEhF,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAExC,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AAEtE,OAAO,2BAA2B,CAAC;AAEnC,MAAM,CAAC,GAAG,EAAE,CAAC,+BAA+B,CAAC,CAAC;AAE9C,SAAS,0BAA0B,CAAC,YAA8B;IAC9D,IAAI,YAAY,KAAK,mBAAmB,EAAE,CAAC;QACvC,OAAO,eAAe,CAAC,sCAAsC,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,YAAY,KAAK,kBAAkB,EAAE,CAAC;QACt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,CAAC,QAAQ,eACX,KAAC,YAAY,IACT,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,EAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EAAC,GACrC,EACF,KAAC,oBAAoB,IACjB,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,EACjC,MAAM,EAAE,eAAe,CAAC,2BAA2B,CAAC,EACpD,IAAI,EAAE,0BAA0B,CAAC,eAAe,CAAC,EACjD,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,CAAC,kCAAkC,CAAC,EACpE,SAAS,EAAE,mBAAmB,EAC9B,sBAAsB,EAAE,0BAA0B,EAClD,oBAAoB,EAAE,wBAAwB,EAC9C,OAAO,EAAE,WAAW,GACtB,IACW,CACpB,CAAC;AACN,CAAC;AAED,SAAS,0BAA0B,CAAC,EAChC,eAAe,EACf,GAAG,SAAS,EAC4B;IACxC,OAAO,CACH,KAAC,OAAO,IACJ,OAAO,EAAE,eAAe,CAAC,iCAAiC,CAAC,EAC3D,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,eAAe,YAEzB,MAAC,MAAM,IAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAM,SAAS,aACzD,KAAC,IAAI,IAAC,IAAI,EAAE,gBAAgB,GAAI,EAC/B,eAAe,CAAC,qBAAqB,CAAC,EACvC,KAAC,IAAI,IAAC,IAAI,EAAE,WAAW,GAAI,IACtB,GACH,CACb,CAAC;AACN,CAAC"}
@@ -0,0 +1,6 @@
1
+ .ydb-pdisk-decommission-button {
2
+ &__button,
3
+ &__popup {
4
+ width: 160px;
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { EDecommitStatus } from '../../../types/api/pdisk';
2
+ interface DecommissionLabelProps {
3
+ decommission?: EDecommitStatus;
4
+ }
5
+ export declare function DecommissionLabel({ decommission }: DecommissionLabelProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Label } from '@gravity-ui/uikit';
3
+ import { pDiskPageKeyset } from '../i18n';
4
+ function getDecommissionLabelText(decommission) {
5
+ return pDiskPageKeyset('decommission-label', { decommission });
6
+ }
7
+ export function DecommissionLabel({ decommission }) {
8
+ if (decommission === 'DECOMMIT_IMMINENT') {
9
+ return (_jsx(Label, { theme: "danger", size: "m", children: getDecommissionLabelText(pDiskPageKeyset('decommission-imminent')) }));
10
+ }
11
+ if (decommission === 'DECOMMIT_PENDING') {
12
+ return (_jsx(Label, { theme: "warning", size: "m", children: getDecommissionLabelText(pDiskPageKeyset('decommission-pending')) }));
13
+ }
14
+ if (decommission === 'DECOMMIT_REJECTED') {
15
+ return (_jsx(Label, { theme: "normal", size: "m", children: getDecommissionLabelText(pDiskPageKeyset('decommission-rejected')) }));
16
+ }
17
+ // Don't display status for undefined, NONE or UNSET decommission
18
+ return null;
19
+ }
20
+ //# sourceMappingURL=DecommissionLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DecommissionLabel.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/DecommissionLabel/DecommissionLabel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAMxC,SAAS,wBAAwB,CAAC,YAAoB;IAClD,OAAO,eAAe,CAAC,oBAAoB,EAAE,EAAC,YAAY,EAAC,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,EAAC,YAAY,EAAyB;IACpE,IAAI,YAAY,KAAK,mBAAmB,EAAE,CAAC;QACvC,OAAO,CACH,KAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,GAAG,YACzB,wBAAwB,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC,GAC/D,CACX,CAAC;IACN,CAAC;IACD,IAAI,YAAY,KAAK,kBAAkB,EAAE,CAAC;QACtC,OAAO,CACH,KAAC,KAAK,IAAC,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,GAAG,YAC1B,wBAAwB,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC,GAC9D,CACX,CAAC;IACN,CAAC;IACD,IAAI,YAAY,KAAK,mBAAmB,EAAE,CAAC;QACvC,OAAO,CACH,KAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAC,GAAG,YACzB,wBAAwB,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC,GAC/D,CACX,CAAC;IACN,CAAC;IAED,iEAAiE;IACjE,OAAO,IAAI,CAAC;AAChB,CAAC"}