ydb-embedded-ui 5.2.1 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (453) hide show
  1. package/dist/components/BasicNodeViewer/BasicNodeViewer.js +1 -1
  2. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +13 -0
  3. package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +32 -0
  4. package/dist/components/CellWithPopover/CellWithPopover.js +1 -11
  5. package/dist/components/ClipboardButton/ClipboardButton.js +1 -11
  6. package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
  7. package/dist/components/ComponentsProvider/componentsRegistry.d.ts +1 -1
  8. package/dist/components/ComponentsProvider/registry.d.ts +3 -3
  9. package/dist/components/ContentWithPopup/ContentWithPopup.js +1 -11
  10. package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +6 -4
  11. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +32 -7
  12. package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +8 -19
  13. package/dist/components/CriticalActionDialog/i18n/en.json +7 -0
  14. package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -0
  15. package/dist/components/CriticalActionDialog/i18n/index.js +4 -0
  16. package/dist/components/EnableFullscreenButton/EnableFullscreenButton.js +2 -2
  17. package/dist/components/EntityStatus/EntityStatus.d.ts +20 -37
  18. package/dist/components/EntityStatus/EntityStatus.js +17 -66
  19. package/dist/components/EntityStatus/EntityStatus.scss +1 -57
  20. package/dist/components/Errors/403/AccessDenied.js +1 -11
  21. package/dist/components/FormattedBytes/FormattedBytes.d.ts +1 -1
  22. package/dist/components/FormattedBytes/FormattedBytes.js +1 -11
  23. package/dist/components/FormattedBytes/utils.d.ts +1 -1
  24. package/dist/components/Fullscreen/Fullscreen.js +11 -11
  25. package/dist/components/Illustration/Illustration.js +1 -11
  26. package/dist/components/InfoViewer/InfoViewer.d.ts +2 -2
  27. package/dist/components/InfoViewer/InfoViewer.js +1 -1
  28. package/dist/components/InfoViewer/formatters/cdcStream.d.ts +1 -1
  29. package/dist/components/InfoViewer/formatters/common.d.ts +1 -1
  30. package/dist/components/InfoViewer/formatters/pqGroup.d.ts +3 -3
  31. package/dist/components/InfoViewer/formatters/schema.d.ts +1 -1
  32. package/dist/components/InfoViewer/formatters/table.d.ts +4 -4
  33. package/dist/components/InfoViewer/utils.d.ts +3 -3
  34. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +7 -0
  35. package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +7 -0
  36. package/dist/{containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss → components/InfoViewerSkeleton/InfoViewerSkeleton.scss} +1 -9
  37. package/dist/components/InternalLink/InternalLink.js +1 -11
  38. package/dist/components/LinkToSchemaObject/LinkToSchemaObject.js +1 -11
  39. package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +8 -0
  40. package/dist/components/LinkWithIcon/LinkWithIcon.js +14 -0
  41. package/dist/components/{ExternalLinkWithIcon/ExternalLinkWithIcon.scss → LinkWithIcon/LinkWithIcon.scss} +1 -1
  42. package/dist/components/MetricChart/MetricChart.d.ts +2 -1
  43. package/dist/components/MetricChart/MetricChart.js +17 -7
  44. package/dist/components/MetricChart/colors.d.ts +2 -0
  45. package/dist/components/MetricChart/colors.js +21 -0
  46. package/dist/components/MetricChart/getChartData.d.ts +2 -1
  47. package/dist/components/MetricChart/getChartData.js +2 -2
  48. package/dist/components/MetricChart/getDefaultDataFormatter.d.ts +1 -1
  49. package/dist/components/MetricChart/getDefaultDataFormatter.js +9 -0
  50. package/dist/components/MetricChart/i18n/en.json +3 -0
  51. package/dist/components/MetricChart/i18n/index.d.ts +2 -0
  52. package/dist/components/MetricChart/i18n/index.js +4 -0
  53. package/dist/components/MetricChart/reducer.d.ts +1 -1
  54. package/dist/components/MetricChart/types.d.ts +10 -5
  55. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +1 -1
  56. package/dist/components/PDiskInfo/PDiskInfo.d.ts +11 -0
  57. package/dist/components/PDiskInfo/PDiskInfo.js +71 -0
  58. package/dist/components/PDiskInfo/PDiskInfo.scss +8 -0
  59. package/dist/components/PDiskInfo/i18n/en.json +14 -0
  60. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -0
  61. package/dist/components/PDiskInfo/i18n/index.js +4 -0
  62. package/dist/components/PageMeta/PageMeta.d.ts +8 -0
  63. package/dist/components/PageMeta/PageMeta.js +7 -0
  64. package/dist/components/PageMeta/PageMeta.scss +10 -0
  65. package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
  66. package/dist/components/QueryResultTable/Cell/Cell.js +2 -2
  67. package/dist/components/QueryResultTable/QueryResultTable.js +1 -11
  68. package/dist/components/ShortyString/ShortyString.d.ts +1 -1
  69. package/dist/components/StatusIcon/StatusIcon.d.ts +12 -0
  70. package/dist/components/StatusIcon/StatusIcon.js +23 -0
  71. package/dist/components/StatusIcon/StatusIcon.scss +69 -0
  72. package/dist/components/Tablet/Tablet.scss +1 -1
  73. package/dist/components/TabletsOverall/TabletsOverall.js +6 -6
  74. package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +1 -1
  75. package/dist/components/TabletsStatistic/TabletsStatistic.scss +1 -1
  76. package/dist/components/Tag/Tag.d.ts +1 -1
  77. package/dist/components/UsageLabel/UsageLabel.js +1 -11
  78. package/dist/components/VirtualTable/TableHead.js +2 -2
  79. package/dist/components/VirtualTable/reducer.d.ts +2 -2
  80. package/dist/components/VirtualTable/types.d.ts +13 -13
  81. package/dist/components/slots/types.d.ts +1 -1
  82. package/dist/containers/App/App.d.ts +1 -1
  83. package/dist/containers/App/Content.js +10 -4
  84. package/dist/containers/App/Providers.d.ts +1 -1
  85. package/dist/containers/App/appSlots.d.ts +6 -0
  86. package/dist/containers/App/appSlots.js +1 -0
  87. package/dist/containers/AppWithClusters/AppWithClusters.d.ts +1 -1
  88. package/dist/containers/AppWithClusters/AppWithClusters.js +1 -1
  89. package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -3
  90. package/dist/containers/Authentication/Authentication.js +2 -5
  91. package/dist/containers/Cluster/Cluster.js +4 -5
  92. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +4 -4
  93. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -0
  94. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -1
  95. package/dist/containers/Cluster/utils.d.ts +2 -2
  96. package/dist/containers/Clusters/Clusters.js +2 -4
  97. package/dist/containers/Clusters/Clusters.scss +1 -1
  98. package/dist/containers/Clusters/constants.d.ts +1 -1
  99. package/dist/containers/Clusters/useClustersList.js +2 -2
  100. package/dist/containers/Clusters/useSelectedColumns.d.ts +1 -1
  101. package/dist/containers/Header/Header.js +4 -5
  102. package/dist/containers/Header/breadcrumbs.js +28 -5
  103. package/dist/containers/Header/i18n/en.json +7 -0
  104. package/dist/containers/Header/i18n/index.d.ts +1 -0
  105. package/dist/containers/Header/i18n/index.js +4 -0
  106. package/dist/containers/Heatmap/Heatmap.js +3 -4
  107. package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +1 -1
  108. package/dist/containers/Node/Node.js +2 -3
  109. package/dist/containers/Node/NodeStructure/NodeStructure.d.ts +0 -1
  110. package/dist/containers/Node/NodeStructure/NodeStructure.js +2 -6
  111. package/dist/containers/Node/NodeStructure/Pdisk.js +9 -65
  112. package/dist/containers/Node/NodeStructure/Vdisk.d.ts +1 -1
  113. package/dist/containers/Node/NodeStructure/Vdisk.js +5 -3
  114. package/dist/containers/Nodes/Nodes.js +2 -3
  115. package/dist/containers/Nodes/NodesWrapper.js +1 -11
  116. package/dist/containers/Nodes/getNodes.js +1 -11
  117. package/dist/containers/Nodes/getNodesColumns.d.ts +1 -1
  118. package/dist/containers/PDisk/PDisk.d.ts +3 -0
  119. package/dist/containers/PDisk/PDisk.js +86 -0
  120. package/dist/containers/PDisk/PDisk.scss +42 -0
  121. package/dist/containers/PDisk/PDiskGroups.d.ts +10 -0
  122. package/dist/containers/PDisk/PDiskGroups.js +20 -0
  123. package/dist/containers/PDisk/i18n/en.json +8 -0
  124. package/dist/containers/PDisk/i18n/index.d.ts +1 -0
  125. package/dist/containers/PDisk/i18n/index.js +4 -0
  126. package/dist/containers/PDisk/shared.d.ts +10 -0
  127. package/dist/containers/PDisk/shared.js +2 -0
  128. package/dist/containers/ReduxTooltip/ReduxTooltip.d.ts +1 -1
  129. package/dist/containers/ReduxTooltip/ReduxTooltip.js +3 -2
  130. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.d.ts +1 -9
  131. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.js +2 -12
  132. package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -3
  133. package/dist/containers/Storage/PDisk/PDisk.js +6 -53
  134. package/dist/containers/Storage/PDiskPopup/PDiskPopup.d.ts +3 -3
  135. package/dist/containers/Storage/PDiskPopup/PDiskPopup.js +3 -14
  136. package/dist/containers/Storage/Storage.js +2 -3
  137. package/dist/containers/Storage/StorageGroups/getGroups.js +1 -11
  138. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -1
  139. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +22 -8
  140. package/dist/containers/Storage/StorageNodes/getNodes.js +1 -11
  141. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +1 -1
  142. package/dist/containers/Storage/StorageWrapper.js +1 -11
  143. package/dist/containers/Storage/UsageFilter/UsageFilter.js +1 -1
  144. package/dist/containers/Storage/VDisk/VDisk.d.ts +2 -3
  145. package/dist/containers/Storage/VDisk/VDisk.js +4 -64
  146. package/dist/containers/Storage/VDiskPopup/VDiskPopup.js +2 -12
  147. package/dist/containers/Storage/VirtualStorage.js +2 -3
  148. package/dist/containers/Storage/utils/index.d.ts +1 -3
  149. package/dist/containers/Storage/utils/index.js +0 -6
  150. package/dist/containers/Tablet/Tablet.js +4 -5
  151. package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +3 -2
  152. package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -49
  153. package/dist/containers/Tablet/TabletTable/TabletTable.js +1 -1
  154. package/dist/containers/Tablets/Tablets.js +2 -3
  155. package/dist/containers/TabletsFilters/TabletsFilters.d.ts +2 -2
  156. package/dist/containers/Tenant/Acl/Acl.js +2 -3
  157. package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -3
  158. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +3 -3
  159. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +6 -4
  160. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +2 -2
  161. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +2 -3
  162. package/dist/containers/Tenant/Diagnostics/Network/Network.d.ts +2 -2
  163. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.d.ts +1 -1
  164. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.js +7 -5
  165. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +1 -1
  166. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +9 -5
  167. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.d.ts +1 -1
  168. package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.d.ts +1 -1
  169. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +2 -3
  170. package/dist/containers/Tenant/Diagnostics/Partitions/columns/columns.js +1 -1
  171. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +1 -1
  172. package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.d.ts +5 -1
  173. package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.js +2 -2
  174. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +0 -1
  175. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -2
  176. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +3 -2
  177. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.d.ts +2 -2
  178. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +3 -12
  179. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.d.ts +2 -1
  180. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.js +1 -1
  181. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +1 -1
  182. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -3
  183. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +2 -3
  184. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -3
  185. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -3
  186. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/cpuDashboardConfig.js +11 -6
  187. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.d.ts +2 -1
  188. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +2 -2
  189. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +1 -1
  190. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -3
  191. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +6 -7
  192. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +1 -11
  193. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
  194. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -3
  195. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -3
  196. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +1 -1
  197. package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.d.ts +2 -2
  198. package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +3 -4
  199. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +2 -5
  200. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +2 -3
  201. package/dist/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +1 -1
  202. package/dist/containers/Tenant/Info/ExternalTable/ExternalTable.js +3 -3
  203. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +1 -0
  204. package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -2
  205. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +2 -3
  206. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +2 -3
  207. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +3 -3
  208. package/dist/containers/Tenant/Query/Issues/models.d.ts +1 -1
  209. package/dist/containers/Tenant/Query/Preview/Preview.js +2 -3
  210. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +2 -3
  211. package/dist/containers/Tenant/Query/Query.js +2 -3
  212. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +3 -8
  213. package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +4 -0
  214. package/dist/containers/Tenant/Query/QueryEditor/helpers.js +17 -0
  215. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +4 -4
  216. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +2 -2
  217. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +5 -3
  218. package/dist/containers/Tenant/Tenant.js +24 -8
  219. package/dist/containers/Tenant/utils/index.d.ts +1 -1
  220. package/dist/containers/Tenant/utils/schema.d.ts +12 -12
  221. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  222. package/dist/containers/Tenants/Tenants.js +3 -4
  223. package/dist/containers/UserSettings/Setting.d.ts +1 -1
  224. package/dist/containers/UserSettings/i18n/en.json +4 -0
  225. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  226. package/dist/containers/UserSettings/settings.d.ts +4 -1
  227. package/dist/containers/UserSettings/settings.js +21 -6
  228. package/dist/containers/Versions/NodesTable/NodesTable.js +1 -1
  229. package/dist/containers/Versions/Versions.js +2 -3
  230. package/dist/reportWebVitals.d.ts +1 -1
  231. package/dist/routes.d.ts +5 -2
  232. package/dist/routes.js +6 -1
  233. package/dist/services/api.d.ts +9 -7
  234. package/dist/services/api.js +16 -13
  235. package/dist/services/settings.d.ts +1 -1
  236. package/dist/services/settings.js +2 -1
  237. package/dist/store/configureStore.d.ts +310 -0
  238. package/dist/store/configureStore.js +56 -0
  239. package/dist/store/defaultStore.d.ts +168 -0
  240. package/dist/store/defaultStore.js +2 -0
  241. package/dist/store/getUrlData.d.ts +3 -3
  242. package/dist/store/getUrlData.js +4 -4
  243. package/dist/store/index.d.ts +3 -97
  244. package/dist/store/index.js +2 -49
  245. package/dist/store/reducers/authentication/authentication.d.ts +247 -4
  246. package/dist/store/reducers/authentication/types.d.ts +1 -1
  247. package/dist/store/reducers/cluster/cluster.d.ts +83 -2
  248. package/dist/store/reducers/cluster/types.d.ts +3 -3
  249. package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +83 -2
  250. package/dist/store/reducers/clusterNodes/types.d.ts +1 -1
  251. package/dist/store/reducers/clusters/clusters.d.ts +83 -2
  252. package/dist/store/reducers/clusters/selectors.d.ts +20 -6
  253. package/dist/store/reducers/clusters/selectors.js +1 -1
  254. package/dist/store/reducers/clusters/types.d.ts +1 -1
  255. package/dist/store/reducers/describe.d.ts +165 -3
  256. package/dist/store/reducers/describe.js +4 -3
  257. package/dist/store/reducers/executeQuery.d.ts +83 -2
  258. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +3 -3
  259. package/dist/store/reducers/executeTopQueries/types.d.ts +1 -1
  260. package/dist/store/reducers/explainQuery.d.ts +165 -3
  261. package/dist/store/reducers/header/header.d.ts +1 -1
  262. package/dist/store/reducers/header/types.d.ts +7 -4
  263. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +101 -0
  264. package/dist/store/reducers/{healthcheckInfo.js → healthcheckInfo/healthcheckInfo.js} +2 -2
  265. package/dist/store/reducers/healthcheckInfo/types.d.ts +19 -0
  266. package/dist/store/reducers/healthcheckInfo/utils.d.ts +3 -0
  267. package/dist/store/reducers/healthcheckInfo/utils.js +11 -0
  268. package/dist/store/reducers/heatmap.d.ts +83 -2
  269. package/dist/store/reducers/heatmap.js +2 -2
  270. package/dist/store/reducers/host.d.ts +83 -2
  271. package/dist/store/reducers/hotKeys/hotKeys.d.ts +1 -1
  272. package/dist/store/reducers/hotKeys/types.d.ts +1 -1
  273. package/dist/store/reducers/index.d.ts +95 -45
  274. package/dist/store/reducers/index.js +4 -2
  275. package/dist/store/reducers/network/network.d.ts +83 -2
  276. package/dist/store/reducers/network/types.d.ts +1 -1
  277. package/dist/store/reducers/node/node.d.ts +165 -3
  278. package/dist/store/reducers/node/selectors.d.ts +1 -1
  279. package/dist/store/reducers/node/selectors.js +5 -4
  280. package/dist/store/reducers/node/types.d.ts +6 -6
  281. package/dist/store/reducers/nodes/nodes.d.ts +165 -3
  282. package/dist/store/reducers/nodes/nodes.js +1 -11
  283. package/dist/store/reducers/nodes/selectors.d.ts +1 -1
  284. package/dist/store/reducers/nodes/selectors.js +1 -1
  285. package/dist/store/reducers/nodes/types.d.ts +4 -3
  286. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  287. package/dist/store/reducers/nodesList.d.ts +83 -2
  288. package/dist/store/reducers/olapStats.d.ts +83 -2
  289. package/dist/store/reducers/overview/overview.d.ts +166 -4
  290. package/dist/store/reducers/overview/overview.js +3 -3
  291. package/dist/store/reducers/overview/types.d.ts +6 -5
  292. package/dist/store/reducers/partitions/partitions.d.ts +83 -2
  293. package/dist/store/reducers/partitions/types.d.ts +1 -1
  294. package/dist/store/reducers/partitions/utils.d.ts +2 -2
  295. package/dist/store/reducers/pdisk/pdisk.d.ts +210 -0
  296. package/dist/store/reducers/pdisk/pdisk.js +64 -0
  297. package/dist/store/reducers/pdisk/types.d.ts +23 -0
  298. package/dist/store/reducers/pdisk/types.js +1 -0
  299. package/dist/store/reducers/pdisk/utils.d.ts +32 -0
  300. package/dist/store/reducers/pdisk/utils.js +32 -0
  301. package/dist/store/reducers/preview.d.ts +82 -1
  302. package/dist/store/reducers/saveQuery.d.ts +3 -3
  303. package/dist/store/reducers/schema/schema.d.ts +84 -4
  304. package/dist/store/reducers/schema/schema.js +4 -4
  305. package/dist/store/reducers/schema/types.d.ts +3 -3
  306. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +83 -2
  307. package/dist/store/reducers/schemaAcl/types.d.ts +1 -1
  308. package/dist/store/reducers/settings/settings.d.ts +2 -2
  309. package/dist/store/reducers/settings/types.d.ts +3 -3
  310. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +83 -2
  311. package/dist/store/reducers/shardsWorkload/types.d.ts +1 -1
  312. package/dist/store/reducers/storage/selectors.d.ts +1 -1
  313. package/dist/store/reducers/storage/selectors.js +1 -1
  314. package/dist/store/reducers/storage/storage.d.ts +165 -3
  315. package/dist/store/reducers/storage/storage.js +1 -11
  316. package/dist/store/reducers/storage/types.d.ts +10 -10
  317. package/dist/store/reducers/storage/utils.d.ts +4 -2
  318. package/dist/store/reducers/storage/utils.js +21 -15
  319. package/dist/store/reducers/tablet.d.ts +165 -3
  320. package/dist/store/reducers/tablet.js +1 -1
  321. package/dist/store/reducers/tablets.d.ts +83 -2
  322. package/dist/store/reducers/tabletsFilters.d.ts +101 -2
  323. package/dist/store/reducers/tabletsFilters.js +1 -1
  324. package/dist/store/reducers/tenant/tenant.d.ts +83 -2
  325. package/dist/store/reducers/tenant/types.d.ts +6 -6
  326. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +83 -2
  327. package/dist/store/reducers/tenantOverview/executeTopTables/types.d.ts +1 -1
  328. package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.d.ts +83 -2
  329. package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.js +1 -11
  330. package/dist/store/reducers/tenantOverview/topNodesByCpu/types.d.ts +2 -2
  331. package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.d.ts +83 -2
  332. package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.js +1 -11
  333. package/dist/store/reducers/tenantOverview/topNodesByLoad/types.d.ts +2 -2
  334. package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.d.ts +83 -2
  335. package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.js +1 -11
  336. package/dist/store/reducers/tenantOverview/topNodesByMemory/types.d.ts +2 -2
  337. package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +83 -2
  338. package/dist/store/reducers/tenantOverview/topQueries/types.d.ts +1 -1
  339. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +83 -2
  340. package/dist/store/reducers/tenantOverview/topShards/types.d.ts +1 -1
  341. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +83 -2
  342. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +1 -11
  343. package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +2 -2
  344. package/dist/store/reducers/tenants/selectors.d.ts +2 -2
  345. package/dist/store/reducers/tenants/selectors.js +1 -1
  346. package/dist/store/reducers/tenants/tenants.d.ts +83 -2
  347. package/dist/store/reducers/tenants/types.d.ts +2 -2
  348. package/dist/store/reducers/tenants/utils.d.ts +6 -6
  349. package/dist/store/reducers/tooltip.d.ts +4 -3
  350. package/dist/store/reducers/tooltip.js +2 -4
  351. package/dist/store/reducers/topic.d.ts +83 -3
  352. package/dist/store/reducers/topic.js +1 -1
  353. package/dist/store/state-url-mapping.d.ts +5 -3
  354. package/dist/store/state-url-mapping.js +9 -18
  355. package/dist/store/utils.d.ts +4 -4
  356. package/dist/types/additionalProps.d.ts +2 -2
  357. package/dist/types/api/enums.d.ts +1 -0
  358. package/dist/types/api/enums.js +1 -0
  359. package/dist/types/api/error.d.ts +1 -1
  360. package/dist/types/api/nodes.d.ts +1 -1
  361. package/dist/types/api/nodesList.d.ts +1 -1
  362. package/dist/types/api/query.d.ts +19 -19
  363. package/dist/types/api/render.d.ts +6 -3
  364. package/dist/types/api/storage.d.ts +1 -1
  365. package/dist/types/api/tablet.d.ts +1 -1
  366. package/dist/types/common.d.ts +1 -1
  367. package/dist/types/index.d.ts +1 -1
  368. package/dist/types/store/describe.d.ts +3 -3
  369. package/dist/types/store/executeQuery.d.ts +2 -2
  370. package/dist/types/store/explainQuery.d.ts +3 -3
  371. package/dist/types/store/heatmap.d.ts +3 -3
  372. package/dist/types/store/host.d.ts +1 -1
  373. package/dist/types/store/nodesList.d.ts +2 -2
  374. package/dist/types/store/olapStats.d.ts +1 -1
  375. package/dist/types/store/query.d.ts +5 -5
  376. package/dist/types/store/tablet.d.ts +3 -3
  377. package/dist/types/store/tablets.d.ts +2 -2
  378. package/dist/types/store/tooltip.d.ts +3 -5
  379. package/dist/types/store/topic.d.ts +1 -1
  380. package/dist/types/versions.d.ts +2 -2
  381. package/dist/utils/additionalProps.d.ts +1 -1
  382. package/dist/utils/additionalProps.js +1 -1
  383. package/dist/utils/bytesParsers/formatBytes.d.ts +2 -2
  384. package/dist/utils/bytesParsers/formatBytes.js +1 -11
  385. package/dist/utils/clusterVersionColors.d.ts +1 -1
  386. package/dist/utils/clusterVersionColors.js +2 -2
  387. package/dist/utils/constants.d.ts +2 -1
  388. package/dist/utils/constants.js +5 -4
  389. package/dist/utils/dataFormatters/dataFormatters.d.ts +12 -11
  390. package/dist/utils/developerUI/developerUI.d.ts +1 -1
  391. package/dist/utils/diagnostics.d.ts +2 -2
  392. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.d.ts +1 -0
  393. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +36 -0
  394. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.d.ts +1 -0
  395. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +142 -0
  396. package/dist/utils/disks/calculatePDiskSeverity.d.ts +2 -0
  397. package/dist/utils/disks/calculatePDiskSeverity.js +18 -0
  398. package/dist/utils/disks/calculateVDiskSeverity.d.ts +2 -0
  399. package/dist/utils/disks/calculateVDiskSeverity.js +36 -0
  400. package/dist/utils/disks/constants.d.ts +25 -0
  401. package/dist/utils/disks/constants.js +38 -0
  402. package/dist/utils/disks/getPDiskType.d.ts +7 -0
  403. package/dist/utils/{pdisk.js → disks/getPDiskType.js} +13 -15
  404. package/dist/utils/disks/helpers.d.ts +3 -0
  405. package/dist/utils/disks/helpers.js +10 -0
  406. package/dist/utils/disks/prepareDisks.d.ts +5 -0
  407. package/dist/utils/disks/prepareDisks.js +40 -0
  408. package/dist/utils/disks/types.d.ts +15 -0
  409. package/dist/utils/disks/types.js +1 -0
  410. package/dist/utils/hooks/index.d.ts +1 -0
  411. package/dist/utils/hooks/index.js +1 -0
  412. package/dist/utils/hooks/useSetting.js +2 -2
  413. package/dist/utils/hooks/useTableResize.d.ts +3 -3
  414. package/dist/utils/hooks/useTableSort.d.ts +1 -1
  415. package/dist/utils/hooks/useTypedDispatch.d.ts +2 -0
  416. package/dist/utils/hooks/useTypedDispatch.js +2 -0
  417. package/dist/utils/hooks/useTypedSelector.d.ts +1 -1
  418. package/dist/utils/index.d.ts +1 -0
  419. package/dist/utils/index.js +3 -0
  420. package/dist/utils/monaco.d.ts +1 -0
  421. package/dist/utils/monaco.js +14 -0
  422. package/dist/utils/monitoring.d.ts +3 -3
  423. package/dist/utils/nodes.d.ts +2 -2
  424. package/dist/utils/prepareBackend.d.ts +2 -2
  425. package/dist/utils/query.d.ts +2 -2
  426. package/dist/utils/query.js +1 -11
  427. package/dist/utils/storage.d.ts +1 -3
  428. package/dist/utils/storage.js +0 -1
  429. package/dist/utils/tablet.d.ts +1 -1
  430. package/dist/utils/timeframes.d.ts +1 -1
  431. package/dist/utils/typecheckers.d.ts +1 -0
  432. package/dist/utils/versions/getVersionsColors.d.ts +1 -1
  433. package/dist/utils/versions/getVersionsColors.js +2 -2
  434. package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
  435. package/dist/utils/yqlSuggestions/constants.d.ts +7 -0
  436. package/dist/utils/yqlSuggestions/constants.js +696 -0
  437. package/dist/utils/yqlSuggestions/generateSuggestions.d.ts +27 -0
  438. package/dist/utils/yqlSuggestions/generateSuggestions.js +252 -0
  439. package/dist/utils/yqlSuggestions/yqlSuggestions.d.ts +4 -0
  440. package/dist/utils/yqlSuggestions/yqlSuggestions.js +76 -0
  441. package/package.json +16 -11
  442. package/dist/assets/icons/flask.svg +0 -3
  443. package/dist/assets/icons/star.svg +0 -1
  444. package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.d.ts +0 -7
  445. package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.js +0 -9
  446. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.d.ts +0 -7
  447. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.js +0 -7
  448. package/dist/containers/Storage/utils/constants.d.ts +0 -2
  449. package/dist/containers/Storage/utils/constants.js +0 -2
  450. package/dist/store/reducers/healthcheckInfo.d.ts +0 -21
  451. package/dist/types/store/healthcheck.d.ts +0 -20
  452. package/dist/utils/pdisk.d.ts +0 -17
  453. /package/dist/{types/store/healthcheck.js → store/reducers/healthcheckInfo/types.js} +0 -0
@@ -1,17 +1,16 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from 'react';
3
- import { useDispatch } from 'react-redux';
4
3
  import { STORAGE_TYPES, VISIBLE_ENTITIES } from '../../store/reducers/storage/constants';
5
4
  import { NodesUptimeFilterValues } from '../../utils/nodes';
6
5
  import { AccessDenied } from '../../components/Errors/403/AccessDenied';
7
6
  import { ResponseError } from '../../components/Errors/ResponseError/ResponseError';
8
7
  import { getNodesList, selectNodesMap } from '../../store/reducers/nodesList';
9
- import { useTypedSelector } from '../../utils/hooks';
8
+ import { useTypedSelector, useTypedDispatch } from '../../utils/hooks';
10
9
  import { StorageControls } from './StorageControls/StorageControls';
11
10
  import { VirtualStorageGroups } from './StorageGroups/VirtualStorageGroups';
12
11
  import { VirtualStorageNodes } from './StorageNodes/VirtualStorageNodes';
13
12
  export const VirtualStorage = ({ tenant, nodeId, parentContainer, additionalNodesProps, }) => {
14
- const dispatch = useDispatch();
13
+ const dispatch = useTypedDispatch();
15
14
  const [searchValue, setSearchValue] = useState('');
16
15
  const [storageType, setStorageType] = useState(STORAGE_TYPES.groups);
17
16
  const [visibleEntities, setVisibleEntities] = useState(VISIBLE_ENTITIES.all);
@@ -1,7 +1,5 @@
1
1
  import type { PreparedStorageGroup } from '../../../store/reducers/storage/types';
2
2
  import { EFlag } from '../../../types/api/enums';
3
- export * from './constants';
4
3
  export declare const getDegradedSeverity: (group: PreparedStorageGroup) => "success" | "warning" | "danger" | undefined;
5
4
  export declare const getUsageSeverityForStorageGroup: (value: number) => "success" | "warning" | "danger" | undefined;
6
- export declare const getUsageSeverityForEntityStatus: (value: number) => "Green" | "Yellow" | "Red" | undefined;
7
- export declare const getUsageSeverityForPDisk: (value: number) => EFlag.Green | EFlag.Yellow | EFlag.Red | undefined;
5
+ export declare const getUsageSeverityForEntityStatus: (value: number) => EFlag.Green | EFlag.Yellow | EFlag.Red | undefined;
@@ -1,6 +1,5 @@
1
1
  import { EFlag } from '../../../types/api/enums';
2
2
  import { generateEvaluator } from '../../../utils/generateEvaluator';
3
- export * from './constants';
4
3
  const defaultDegradationEvaluator = generateEvaluator(1, 2, ['success', 'warning', 'danger']);
5
4
  const degradationEvaluators = {
6
5
  'block-4-2': generateEvaluator(1, 2, ['success', 'warning', 'danger']),
@@ -19,11 +18,6 @@ export const getUsageSeverityForStorageGroup = generateEvaluator(80, 85, [
19
18
  'danger',
20
19
  ]);
21
20
  export const getUsageSeverityForEntityStatus = generateEvaluator(80, 85, [
22
- 'Green',
23
- 'Yellow',
24
- 'Red',
25
- ]);
26
- export const getUsageSeverityForPDisk = generateEvaluator(85, 95, [
27
21
  EFlag.Green,
28
22
  EFlag.Yellow,
29
23
  EFlag.Red,
@@ -1,17 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useRef } from 'react';
3
3
  import { useLocation, useParams } from 'react-router';
4
- import { useDispatch } from 'react-redux';
5
4
  import cn from 'bem-cn-lite';
6
5
  import { Link as ExternalLink } from '@gravity-ui/uikit';
7
6
  import { Helmet } from 'react-helmet-async';
8
7
  import { backend } from '../../store';
9
8
  import { getTablet, getTabletDescribe, clearTabletData } from '../../store/reducers/tablet';
10
9
  import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
11
- import { useAutofetcher, useTypedSelector } from '../../utils/hooks';
10
+ import { useAutofetcher, useTypedSelector, useTypedDispatch } from '../../utils/hooks';
12
11
  import { CLUSTER_DEFAULT_TITLE, DEVELOPER_UI_TITLE } from '../../utils/constants';
13
12
  import { parseQuery } from '../../routes';
14
- import EntityStatus from '../../components/EntityStatus/EntityStatus';
13
+ import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
15
14
  import { ResponseError } from '../../components/Errors/ResponseError';
16
15
  import { Tag } from '../../components/Tag';
17
16
  import { Icon } from '../../components/Icon';
@@ -26,7 +25,7 @@ export const b = cn('tablet-page');
26
25
  export const Tablet = () => {
27
26
  var _a;
28
27
  const isFirstDataFetchRef = useRef(true);
29
- const dispatch = useDispatch();
28
+ const dispatch = useTypedDispatch();
30
29
  const location = useLocation();
31
30
  const params = useParams();
32
31
  const { id } = params;
@@ -48,7 +47,7 @@ export const Tablet = () => {
48
47
  }
49
48
  }, [dispatch, tablet]);
50
49
  const fetchData = useCallback(() => {
51
- dispatch(getTablet(id));
50
+ return dispatch(getTablet(id));
52
51
  }, [dispatch, id]);
53
52
  useAutofetcher(fetchData, [fetchData], true);
54
53
  useEffect(() => {
@@ -1,7 +1,8 @@
1
- import { TTabletStateInfo } from '../../../types/api/tablet';
1
+ import { type TTabletStateInfo } from '../../../types/api/tablet';
2
+ import type { ITabletHandledResponse } from '../../../types/store/tablet';
2
3
  interface TabletControlsProps {
3
4
  tablet: TTabletStateInfo;
4
- fetchData: VoidFunction;
5
+ fetchData: () => Promise<ITabletHandledResponse | undefined>;
5
6
  }
6
7
  export declare const TabletControls: ({ tablet, fetchData }: TabletControlsProps) => JSX.Element;
7
8
  export {};
@@ -1,46 +1,17 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useEffect, useState } from 'react';
3
- import { Button } from '@gravity-ui/uikit';
4
2
  import { ETabletState } from '../../../types/api/tablet';
5
- import { CriticalActionDialog } from '../../../components/CriticalActionDialog';
3
+ import { ButtonWithConfirmDialog } from '../../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
6
4
  import i18n from '../i18n';
7
5
  import { b } from '../Tablet';
8
- var EVisibleDialogType;
9
- (function (EVisibleDialogType) {
10
- EVisibleDialogType["kill"] = "kill";
11
- EVisibleDialogType["stop"] = "stop";
12
- EVisibleDialogType["resume"] = "resume";
13
- })(EVisibleDialogType || (EVisibleDialogType = {}));
14
6
  export const TabletControls = ({ tablet, fetchData }) => {
15
7
  const { TabletId, HiveId } = tablet;
16
- const [isDialogVisible, setIsDialogVisible] = useState(false);
17
- const [visibleDialogType, setVisibleDialogType] = useState(null);
18
- const [isTabletActionLoading, setIsTabletActionLoading] = useState(false);
19
- // Enable controls after data update
20
- useEffect(() => {
21
- setIsTabletActionLoading(false);
22
- }, [tablet]);
23
- const makeShowDialog = (type) => () => {
24
- setIsDialogVisible(true);
25
- setVisibleDialogType(type);
26
- };
27
- const showKillDialog = makeShowDialog(EVisibleDialogType.kill);
28
- const showStopDialog = makeShowDialog(EVisibleDialogType.stop);
29
- const showResumeDialog = makeShowDialog(EVisibleDialogType.resume);
30
- const hideDialog = () => {
31
- setIsDialogVisible(false);
32
- setVisibleDialogType(null);
33
- };
34
8
  const _onKillClick = () => {
35
- setIsTabletActionLoading(true);
36
9
  return window.api.killTablet(TabletId);
37
10
  };
38
11
  const _onStopClick = () => {
39
- setIsTabletActionLoading(true);
40
12
  return window.api.stopTablet(TabletId, HiveId);
41
13
  };
42
14
  const _onResumeClick = () => {
43
- setIsTabletActionLoading(true);
44
15
  return window.api.resumeTablet(TabletId, HiveId);
45
16
  };
46
17
  const hasHiveId = () => {
@@ -48,23 +19,5 @@ export const TabletControls = ({ tablet, fetchData }) => {
48
19
  };
49
20
  const isDisabledResume = tablet.State !== ETabletState.Stopped && tablet.State !== ETabletState.Dead;
50
21
  const isDisabledStop = tablet.State === ETabletState.Stopped || tablet.State === ETabletState.Deleted;
51
- const renderDialog = () => {
52
- if (!isDialogVisible) {
53
- return null;
54
- }
55
- switch (visibleDialogType) {
56
- case EVisibleDialogType.kill: {
57
- return (_jsx(CriticalActionDialog, { visible: isDialogVisible, text: i18n('dialog.kill'), onClose: hideDialog, onConfirm: _onKillClick, onConfirmActionFinish: fetchData }));
58
- }
59
- case EVisibleDialogType.stop: {
60
- return (_jsx(CriticalActionDialog, { visible: isDialogVisible, text: i18n('dialog.stop'), onClose: hideDialog, onConfirm: _onStopClick, onConfirmActionFinish: fetchData }));
61
- }
62
- case EVisibleDialogType.resume: {
63
- return (_jsx(CriticalActionDialog, { visible: isDialogVisible, text: i18n('dialog.resume'), onClose: hideDialog, onConfirm: _onResumeClick, onConfirmActionFinish: fetchData }));
64
- }
65
- default:
66
- return null;
67
- }
68
- };
69
- return (_jsxs("div", Object.assign({ className: b('controls') }, { children: [_jsx(Button, Object.assign({ onClick: showKillDialog, view: "action", loading: isTabletActionLoading, className: b('control') }, { children: i18n('controls.kill') })), hasHiveId() ? (_jsxs(_Fragment, { children: [_jsx(Button, Object.assign({ onClick: showStopDialog, view: "action", disabled: isDisabledStop, loading: !isDisabledStop && isTabletActionLoading, className: b('control') }, { children: i18n('controls.stop') })), _jsx(Button, Object.assign({ onClick: showResumeDialog, view: "action", disabled: isDisabledResume, loading: !isDisabledResume && isTabletActionLoading, className: b('control') }, { children: i18n('controls.resume') }))] })) : null, renderDialog()] })));
22
+ return (_jsxs("div", Object.assign({ className: b('controls') }, { children: [_jsx(ButtonWithConfirmDialog, Object.assign({ dialogContent: i18n('dialog.kill'), onConfirmAction: _onKillClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control') }, { children: i18n('controls.kill') })), hasHiveId() ? (_jsxs(_Fragment, { children: [_jsx(ButtonWithConfirmDialog, Object.assign({ dialogContent: i18n('dialog.stop'), onConfirmAction: _onStopClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control'), buttonDisabled: isDisabledStop }, { children: i18n('controls.stop') })), _jsx(ButtonWithConfirmDialog, Object.assign({ dialogContent: i18n('dialog.resume'), onConfirmAction: _onResumeClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control'), buttonDisabled: isDisabledResume }, { children: i18n('controls.resume') }))] })) : null] })));
70
23
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import DataTable from '@gravity-ui/react-data-table';
3
- import EntityStatus from '../../../components/EntityStatus/EntityStatus';
3
+ import { EntityStatus } from '../../../components/EntityStatus/EntityStatus';
4
4
  import { InternalLink } from '../../../components/InternalLink/InternalLink';
5
5
  import { calcUptime } from '../../../utils/dataFormatters/dataFormatters';
6
6
  import { getDefaultNodePath } from '../../Node/NodePages';
@@ -1,19 +1,18 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useMemo, useState } from 'react';
3
- import { useDispatch } from 'react-redux';
4
3
  import cn from 'bem-cn-lite';
5
4
  import ReactList from 'react-list';
6
5
  import { Select } from '@gravity-ui/uikit';
7
6
  import { Tablet } from '../../components/Tablet';
8
7
  import TabletsOverall from '../../components/TabletsOverall/TabletsOverall';
9
8
  import { Loader } from '../../components/Loader';
10
- import { useAutofetcher, useTypedSelector } from '../../utils/hooks';
9
+ import { useAutofetcher, useTypedSelector, useTypedDispatch } from '../../utils/hooks';
11
10
  import { getTabletsInfo, clearWasLoadingFlag, setStateFilter, setTypeFilter, } from '../../store/reducers/tablets';
12
11
  import './Tablets.scss';
13
12
  import i18n from './i18n';
14
13
  const b = cn('tablets');
15
14
  export const Tablets = ({ path, nodeId, className }) => {
16
- const dispatch = useDispatch();
15
+ const dispatch = useTypedDispatch();
17
16
  const { data, wasLoaded, loading, error, stateFilter, typeFilter } = useTypedSelector((state) => state.tablets);
18
17
  const { autorefresh } = useTypedSelector((state) => state.schema);
19
18
  const tablets = useMemo(() => (data === null || data === void 0 ? void 0 : data.TabletStateInfo) || [], [data]);
@@ -42,7 +42,7 @@ export class TabletsFilters extends React.Component<any, any, any> {
42
42
  renderView: () => JSX.Element;
43
43
  render(): JSX.Element;
44
44
  }
45
- declare var _default: import("react-redux").ConnectedComponent<typeof TabletsFilters, import("react-redux").Omit<PropTypes.InferProps<{
45
+ declare const _default: import("react-redux").ConnectedComponent<typeof TabletsFilters, import("react-redux").Omit<PropTypes.InferProps<{
46
46
  wasLoaded: PropTypes.Requireable<boolean>;
47
47
  loading: PropTypes.Requireable<boolean>;
48
48
  getTabletsInfo: PropTypes.Requireable<(...args: any[]) => any>;
@@ -58,7 +58,7 @@ declare var _default: import("react-redux").ConnectedComponent<typeof TabletsFil
58
58
  typeFilter: PropTypes.Requireable<any[]>;
59
59
  error: PropTypes.Requireable<PropTypes.Requireable<string> | PropTypes.Requireable<object>>;
60
60
  setHeader: PropTypes.Requireable<(...args: any[]) => any>;
61
- }>, "nodes" | "tablets" | "error" | "loading" | "wasLoaded" | "stateFilter" | "typeFilter" | "setStateFilter" | "setTypeFilter" | "clearWasLoadingFlag" | "getTabletsInfo" | "filteredTablets" | "timeoutForRequest">>;
61
+ }>, "nodes" | "tablets" | "loading" | "wasLoaded" | "error" | "stateFilter" | "typeFilter" | "setStateFilter" | "setTypeFilter" | "clearWasLoadingFlag" | "getTabletsInfo" | "filteredTablets" | "timeoutForRequest">>;
62
62
  export default _default;
63
63
  import React from "react";
64
64
  import PropTypes from "prop-types";
@@ -1,10 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useDispatch } from 'react-redux';
3
2
  import { useEffect } from 'react';
4
3
  import cn from 'bem-cn-lite';
5
4
  import DataTable from '@gravity-ui/react-data-table';
6
5
  import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
7
- import { useTypedSelector } from '../../../utils/hooks';
6
+ import { useTypedSelector, useTypedDispatch } from '../../../utils/hooks';
8
7
  import { getSchemaAcl, setAclWasNotLoaded } from '../../../store/reducers/schemaAcl/schemaAcl';
9
8
  import { ResponseError } from '../../../components/Errors/ResponseError';
10
9
  import { Loader } from '../../../components/Loader';
@@ -58,7 +57,7 @@ const columns = [
58
57
  },
59
58
  ];
60
59
  export const Acl = () => {
61
- const dispatch = useDispatch();
60
+ const dispatch = useTypedDispatch();
62
61
  const { currentSchemaPath } = useTypedSelector((state) => state.schema);
63
62
  const { loading, error, acl, owner, wasLoaded } = useTypedSelector((state) => state.schemaAcl);
64
63
  useEffect(() => {
@@ -1,13 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useMemo, useState } from 'react';
3
- import { useDispatch } from 'react-redux';
4
3
  import block from 'bem-cn-lite';
5
4
  import { escapeRegExp } from 'lodash/fp';
6
5
  import DataTable from '@gravity-ui/react-data-table';
7
6
  import { Loader } from '../../../../components/Loader';
8
7
  import { Search } from '../../../../components/Search';
9
8
  import { ResponseError } from '../../../../components/Errors/ResponseError';
10
- import { useAutofetcher, useTypedSelector } from '../../../../utils/hooks';
9
+ import { useAutofetcher, useTypedSelector, useTypedDispatch } from '../../../../utils/hooks';
11
10
  import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
12
11
  import { selectPreparedConsumersData, selectPreparedTopicStats, getTopic, setDataWasNotLoaded, } from '../../../../store/reducers/topic';
13
12
  import { isCdcStreamEntityType } from '../../utils/schema';
@@ -18,7 +17,7 @@ import './Consumers.scss';
18
17
  const b = block('ydb-diagnostics-consumers');
19
18
  export const Consumers = ({ path, type }) => {
20
19
  const isCdcStream = isCdcStreamEntityType(type);
21
- const dispatch = useDispatch();
20
+ const dispatch = useTypedDispatch();
22
21
  const [searchValue, setSearchValue] = useState('');
23
22
  const { autorefresh } = useTypedSelector((state) => state.schema);
24
23
  const { loading, wasLoaded, error } = useTypedSelector((state) => state.topic);
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useState } from 'react';
3
- import { shallowEqual, useDispatch } from 'react-redux';
3
+ import { shallowEqual } from 'react-redux';
4
4
  import cn from 'bem-cn-lite';
5
5
  import JSONTree from 'react-json-inspector';
6
6
  import 'react-json-inspector/json-inspector.css';
7
7
  import { Loader } from '../../../../components/Loader';
8
8
  import { ResponseError } from '../../../../components/Errors/ResponseError';
9
- import { useAutofetcher, useTypedSelector } from '../../../../utils/hooks';
9
+ import { useAutofetcher, useTypedSelector, useTypedDispatch } from '../../../../utils/hooks';
10
10
  import { getDescribe, setDataWasNotLoaded, setCurrentDescribePath, getDescribeBatched, } from '../../../../store/reducers/describe';
11
11
  import { selectSchemaMergedChildrenPaths } from '../../../../store/reducers/schema/schema';
12
12
  import { isEntityWithMergedImplementation } from '../../utils/schema';
@@ -14,7 +14,7 @@ import './Describe.scss';
14
14
  const b = cn('kv-describe');
15
15
  const expandMap = new Map();
16
16
  const Describe = ({ tenant, type }) => {
17
- const dispatch = useDispatch();
17
+ const dispatch = useTypedDispatch();
18
18
  const { currentDescribe, error, loading, wasLoaded } = useTypedSelector((state) => state.describe);
19
19
  const [preparedDescribeData, setPreparedDescribeData] = useState();
20
20
  useEffect(() => {
@@ -3,11 +3,10 @@ import { useMemo, useRef } from 'react';
3
3
  import qs from 'qs';
4
4
  import cn from 'bem-cn-lite';
5
5
  import { Link } from 'react-router-dom';
6
- import { useDispatch, useSelector } from 'react-redux';
7
6
  import { useLocation } from 'react-router';
8
7
  import { Helmet } from 'react-helmet-async';
9
8
  import { Switch, Tabs } from '@gravity-ui/uikit';
10
- import { useTypedSelector } from '../../../utils/hooks';
9
+ import { useTypedSelector, useTypedDispatch } from '../../../utils/hooks';
11
10
  import routes, { createHref } from '../../../routes';
12
11
  import { enableAutorefresh, disableAutorefresh } from '../../../store/reducers/schema/schema';
13
12
  import { setDiagnosticsTab } from '../../../store/reducers/tenant/tenant';
@@ -32,8 +31,8 @@ import './Diagnostics.scss';
32
31
  const b = cn('kv-tenant-diagnostics');
33
32
  function Diagnostics(props) {
34
33
  const container = useRef(null);
35
- const dispatch = useDispatch();
36
- const { currentSchemaPath, autorefresh, wasLoaded } = useSelector((state) => state.schema);
34
+ const dispatch = useTypedDispatch();
35
+ const { currentSchemaPath, autorefresh, wasLoaded } = useTypedSelector((state) => state.schema);
37
36
  const { diagnosticsTab = TENANT_DIAGNOSTICS_TABS_IDS.overview } = useTypedSelector((state) => state.tenant);
38
37
  const location = useLocation();
39
38
  const queryParams = qs.parse(location.search, {
@@ -101,12 +100,15 @@ function Diagnostics(props) {
101
100
  return _jsx(Describe, { tenant: tenantNameString, type: type });
102
101
  }
103
102
  case TENANT_DIAGNOSTICS_TABS_IDS.hotKeys: {
103
+ // @ts-expect-error
104
104
  return _jsx(HotKeys, { path: currentSchemaPath });
105
105
  }
106
106
  case TENANT_DIAGNOSTICS_TABS_IDS.graph: {
107
+ // @ts-expect-error
107
108
  return _jsx(Heatmap, { path: currentSchemaPath });
108
109
  }
109
110
  case TENANT_DIAGNOSTICS_TABS_IDS.consumers: {
111
+ // @ts-expect-error
110
112
  return _jsx(Consumers, { path: currentSchemaPath, type: type });
111
113
  }
112
114
  case TENANT_DIAGNOSTICS_TABS_IDS.partitions: {
@@ -1,6 +1,6 @@
1
1
  import type { TenantDiagnosticsTab } from '../../../store/reducers/tenant/types';
2
2
  import { EPathType } from '../../../types/api/schema';
3
- declare type Page = {
3
+ type Page = {
4
4
  id: TenantDiagnosticsTab;
5
5
  title: string;
6
6
  };
@@ -129,5 +129,5 @@ export declare const EXTERNAL_TABLE_PAGES: ({
129
129
  id: "describe";
130
130
  title: string;
131
131
  })[];
132
- export declare const getPagesByType: (type?: EPathType | undefined) => Page[];
132
+ export declare const getPagesByType: (type?: EPathType) => Page[];
133
133
  export {};
@@ -1,10 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useRef } from 'react';
3
- import { useDispatch } from 'react-redux';
4
3
  import DataTable from '@gravity-ui/react-data-table';
5
4
  import { Icon } from '../../../../components/Icon';
6
5
  import { ResponseError } from '../../../../components/Errors/ResponseError';
7
- import { useTypedSelector } from '../../../../utils/hooks';
6
+ import { useTypedSelector, useTypedDispatch } from '../../../../utils/hooks';
8
7
  import { cn } from '../../../../utils/cn';
9
8
  import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
10
9
  import { setHotKeysData, setHotKeysDataWasNotLoaded, setHotKeysError, setHotKeysLoading, } from '../../../../store/reducers/hotKeys/hotKeys';
@@ -36,7 +35,7 @@ const getHotKeysColumns = (keyColumnsIds = []) => {
36
35
  };
37
36
  export function HotKeys({ path }) {
38
37
  var _a, _b, _c;
39
- const dispatch = useDispatch();
38
+ const dispatch = useTypedDispatch();
40
39
  const collectSamplesTimerRef = useRef();
41
40
  const { loading, wasLoaded, data, error } = useTypedSelector((state) => state.hotKeys);
42
41
  const { loading: schemaLoading, data: schemaData } = useTypedSelector((state) => state.schema);
@@ -1,4 +1,4 @@
1
- declare var _default: import("react-redux").ConnectedComponent<typeof Network, import("react-redux").Omit<Pick<PropTypes.InferProps<{
1
+ declare const _default: import("react-redux").ConnectedComponent<typeof Network, import("react-redux").Omit<Pick<PropTypes.InferProps<{
2
2
  getNetworkInfo: PropTypes.Requireable<(...args: any[]) => any>;
3
3
  setDataWasNotLoaded: PropTypes.Requireable<(...args: any[]) => any>;
4
4
  netWorkInfo: PropTypes.Requireable<object>;
@@ -11,7 +11,7 @@ declare var _default: import("react-redux").ConnectedComponent<typeof Network, i
11
11
  path: PropTypes.Requireable<string>;
12
12
  filter: PropTypes.Requireable<string>;
13
13
  changeFilter: PropTypes.Requireable<(...args: any[]) => any>;
14
- }>, "filter" | "error" | "path" | "loading" | "wasLoaded" | "autorefresh" | "showTooltip" | "hideTooltip" | "getNetworkInfo" | "setDataWasNotLoaded" | "changeFilter" | "netWorkInfo"> & Partial<Pick<PropTypes.InferProps<{
14
+ }>, "filter" | "loading" | "wasLoaded" | "error" | "path" | "autorefresh" | "showTooltip" | "hideTooltip" | "getNetworkInfo" | "setDataWasNotLoaded" | "changeFilter" | "netWorkInfo"> & Partial<Pick<PropTypes.InferProps<{
15
15
  getNetworkInfo: PropTypes.Requireable<(...args: any[]) => any>;
16
16
  setDataWasNotLoaded: PropTypes.Requireable<(...args: any[]) => any>;
17
17
  netWorkInfo: PropTypes.Requireable<object>;
@@ -2,7 +2,7 @@ export class NodeNetwork extends React.Component<any, any, any> {
2
2
  static propTypes: {
3
3
  onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
4
4
  onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
5
- nodeId: PropTypes.Requireable<string | number>;
5
+ nodeId: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
6
6
  connected: PropTypes.Requireable<number>;
7
7
  capacity: PropTypes.Requireable<number>;
8
8
  rack: PropTypes.Requireable<string>;
@@ -2,21 +2,22 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import cn from 'bem-cn-lite';
4
4
  import PropTypes from 'prop-types';
5
+ import { EFlag } from '../../../../../types/api/enums';
5
6
  import './NodeNetwork.scss';
6
7
  const b = cn('node-network');
7
8
  const getNodeModifier = (connected, capacity) => {
8
9
  const percents = Math.floor((connected / capacity) * 100);
9
10
  if (percents === 100) {
10
- return 'green';
11
+ return EFlag.Green;
11
12
  }
12
13
  else if (percents >= 70) {
13
- return 'yellow';
14
+ return EFlag.Yellow;
14
15
  }
15
16
  else if (percents >= 1) {
16
- return 'red';
17
+ return EFlag.Red;
17
18
  }
18
19
  else {
19
- return 'gray';
20
+ return EFlag.Grey;
20
21
  }
21
22
  };
22
23
  export class NodeNetwork extends React.Component {
@@ -34,8 +35,9 @@ export class NodeNetwork extends React.Component {
34
35
  }
35
36
  render() {
36
37
  const { nodeId, connected, capacity, status, onClick, showID, isBlurred } = this.props;
38
+ const color = status || getNodeModifier(connected, capacity);
37
39
  return (_jsx("div", Object.assign({ ref: this.node, className: b({
38
- [(status === null || status === void 0 ? void 0 : status.toLowerCase()) || getNodeModifier(connected, capacity)]: true,
40
+ [color.toLowerCase()]: true,
39
41
  id: showID,
40
42
  blur: isBlurred,
41
43
  }), onMouseEnter: this._onNodeHover, onMouseLeave: this._onNodeLeave, onClick: () => onClick(nodeId) }, { children: showID && nodeId })));
@@ -27,7 +27,7 @@
27
27
  opacity: 0.25;
28
28
  }
29
29
 
30
- &_gray {
30
+ &_grey {
31
31
  background: var(--ydb-color-status-grey);
32
32
  }
33
33
 
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useCallback } from 'react';
3
- import { shallowEqual, useDispatch } from 'react-redux';
3
+ import { shallowEqual } from 'react-redux';
4
4
  import { Loader } from '../../../../components/Loader';
5
5
  import { TableIndexInfo } from '../../../../components/InfoViewer/schemaInfo';
6
6
  import { ResponseError } from '../../../../components/Errors/ResponseError';
7
7
  import { EPathType } from '../../../../types/api/schema';
8
- import { useAutofetcher, useTypedSelector } from '../../../../utils/hooks';
8
+ import { useAutofetcher, useTypedSelector, useTypedDispatch } from '../../../../utils/hooks';
9
9
  import { selectSchemaMergedChildrenPaths } from '../../../../store/reducers/schema/schema';
10
10
  import { getTopic } from '../../../../store/reducers/topic';
11
11
  import { getOlapStats, resetLoadingState as resetOlapLoadingState, } from '../../../../store/reducers/olapStats';
@@ -17,9 +17,9 @@ import { TopicInfo } from './TopicInfo';
17
17
  import { ChangefeedInfo } from './ChangefeedInfo';
18
18
  import { TableInfo } from './TableInfo';
19
19
  function Overview({ type, tenantName }) {
20
- const dispatch = useDispatch();
20
+ const dispatch = useTypedDispatch();
21
21
  const { autorefresh, currentSchemaPath } = useTypedSelector((state) => state.schema);
22
- const { data, additionalData, loading: overviewLoading, wasLoaded: overviewWasLoaded, error: overviewError, } = useTypedSelector((state) => state.overview);
22
+ const { data: rawData, additionalData, loading: overviewLoading, wasLoaded: overviewWasLoaded, error: overviewError, } = useTypedSelector((state) => state.overview);
23
23
  const { data: { result: olapStats } = { result: undefined }, loading: olapStatsLoading, wasLoaded: olapStatsWasLoaded, } = useTypedSelector((state) => state.olapStats);
24
24
  const isEntityWithMergedImpl = isEntityWithMergedImplementation(type);
25
25
  // shalloEqual prevents rerenders when new schema data is loaded
@@ -61,6 +61,7 @@ function Overview({ type, tenantName }) {
61
61
  useAutofetcher(fetchData, [fetchData], autorefresh);
62
62
  const renderContent = () => {
63
63
  var _a;
64
+ const data = rawData !== null && rawData !== void 0 ? rawData : undefined;
64
65
  // verbose mapping to guarantee a correct render for new path types
65
66
  // TS will error when a new type is added but not mapped here
66
67
  const pathTypeToComponent = {
@@ -72,7 +73,10 @@ function Overview({ type, tenantName }) {
72
73
  [EPathType.EPathTypeExtSubDomain]: undefined,
73
74
  [EPathType.EPathTypeColumnStore]: undefined,
74
75
  [EPathType.EPathTypeColumnTable]: undefined,
75
- [EPathType.EPathTypeCdcStream]: () => (_jsx(ChangefeedInfo, { data: data, topic: additionalData === null || additionalData === void 0 ? void 0 : additionalData[0] })),
76
+ [EPathType.EPathTypeCdcStream]: () => {
77
+ var _a;
78
+ return (_jsx(ChangefeedInfo, { data: data, topic: (_a = additionalData === null || additionalData === void 0 ? void 0 : additionalData[0]) !== null && _a !== void 0 ? _a : undefined }));
79
+ },
76
80
  [EPathType.EPathTypePersQueueGroup]: () => _jsx(TopicInfo, { data: data }),
77
81
  [EPathType.EPathTypeExternalTable]: () => _jsx(ExternalTableInfo, { data: data }),
78
82
  [EPathType.EPathTypeExternalDataSource]: () => _jsx(ExternalDataSourceInfo, { data: data }),
@@ -3,7 +3,7 @@ import type { KeyValueRow } from '../../../../../types/api/query';
3
3
  import { EPathType } from '../../../../../types/api/schema';
4
4
  import { InfoViewerItem } from '../../../../../components/InfoViewer';
5
5
  /** Prepares data for Table, ColumnTable and ColumnStore */
6
- export declare const prepareTableInfo: (data?: TEvDescribeSchemeResult | undefined, type?: EPathType | undefined, olapStats?: KeyValueRow<import("../../../../../types/api/query").CellValue>[] | undefined) => {
6
+ export declare const prepareTableInfo: (data?: TEvDescribeSchemeResult, type?: EPathType, olapStats?: KeyValueRow[]) => {
7
7
  generalInfo?: undefined;
8
8
  tableStatsInfo?: undefined;
9
9
  tabletMetricsInfo?: undefined;
@@ -1,3 +1,3 @@
1
1
  import type { TEvDescribeSchemeResult } from '../../../../../types/api/schema';
2
2
  import { InfoViewerItem } from '../../../../../components/InfoViewer';
3
- export declare const prepareTopicSchemaInfo: (data?: TEvDescribeSchemeResult | undefined) => Array<InfoViewerItem>;
3
+ export declare const prepareTopicSchemaInfo: (data?: TEvDescribeSchemeResult) => Array<InfoViewerItem>;
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import block from 'bem-cn-lite';
3
3
  import { useCallback, useEffect, useMemo, useState } from 'react';
4
- import { useDispatch } from 'react-redux';
5
4
  import DataTable from '@gravity-ui/react-data-table';
6
- import { useAutofetcher, useTypedSelector, useSetting } from '../../../../utils/hooks';
5
+ import { useAutofetcher, useTypedSelector, useTypedDispatch, useSetting, } from '../../../../utils/hooks';
7
6
  import { DEFAULT_TABLE_SETTINGS, PARTITIONS_HIDDEN_COLUMNS_KEY } from '../../../../utils/constants';
8
7
  import { getNodesList, selectNodesMap } from '../../../../store/reducers/nodesList';
9
8
  import { cleanTopicData, getTopic, selectConsumersNames, setDataWasNotLoaded as setTopicDataWasNotLoaded, } from '../../../../store/reducers/topic';
@@ -17,7 +16,7 @@ import i18n from './i18n';
17
16
  import './Partitions.scss';
18
17
  export const b = block('ydb-diagnostics-partitions');
19
18
  export const Partitions = ({ path }) => {
20
- const dispatch = useDispatch();
19
+ const dispatch = useTypedDispatch();
21
20
  // Manual path control to ensure that topic state will be reset before data fetch
22
21
  // so no request with wrong params will be sent
23
22
  const [componentCurrentPath, setComponentCurrentPath] = useState(path);
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import DataTable from '@gravity-ui/react-data-table';
3
3
  import block from 'bem-cn-lite';
4
4
  import { SpeedMultiMeter } from '../../../../../components/SpeedMultiMeter';
5
- import EntityStatus from '../../../../../components/EntityStatus/EntityStatus';
5
+ import { EntityStatus } from '../../../../../components/EntityStatus/EntityStatus';
6
6
  import { getDefaultNodePath } from '../../../../Node/NodePages';
7
7
  import { formatBytes, formatMsToUptime } from '../../../../../utils/dataFormatters/dataFormatters';
8
8
  import { isNumeric } from '../../../../../utils/utils';
@@ -1,4 +1,4 @@
1
1
  import type { PreparedPartitionData } from '../../../../../store/reducers/partitions/types';
2
2
  import type { NodesMap } from '../../../../../types/store/nodesList';
3
3
  import type { PreparedPartitionDataWithHosts } from './types';
4
- export declare const addHostToPartitions: (partitions?: PreparedPartitionData[], nodesMap?: NodesMap | undefined) => PreparedPartitionDataWithHosts[];
4
+ export declare const addHostToPartitions: (partitions?: PreparedPartitionData[], nodesMap?: NodesMap) => PreparedPartitionDataWithHosts[];
@@ -1 +1,5 @@
1
- export declare const DefaultOverviewContent: () => JSX.Element;
1
+ interface DefaultOverviewContentProps {
2
+ database: string;
3
+ }
4
+ export declare const DefaultOverviewContent: ({ database }: DefaultOverviewContentProps) => JSX.Element;
5
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { TenantDashboard } from '../TenantDashboard/TenantDashboard';
3
3
  import { defaultDashboardConfig } from './defaultDashboardConfig';
4
- export const DefaultOverviewContent = () => {
5
- return _jsx(TenantDashboard, { charts: defaultDashboardConfig });
4
+ export const DefaultOverviewContent = ({ database }) => {
5
+ return _jsx(TenantDashboard, { database: database, charts: defaultDashboardConfig });
6
6
  };
@@ -94,7 +94,6 @@
94
94
  background-color: var(--g-color-base-danger-light);
95
95
  }
96
96
  &_unspecified,
97
- &_gray,
98
97
  &_grey {
99
98
  color: var(--g-color-text-misc);
100
99
  background-color: var(--g-color-base-misc-light);
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import type { IResponseError } from '../../../../../types/api/error';
3
- import type { IIssuesTree } from '../../../../../types/store/healthcheck';
3
+ import type { IssuesTree } from '../../../../../store/reducers/healthcheckInfo/types';
4
4
  import './Healthcheck.scss';
5
5
  interface HealthcheckDetailsProps {
6
- issueTrees?: IIssuesTree[];
6
+ issueTrees?: IssuesTree[];
7
7
  loading?: boolean;
8
8
  wasLoaded?: boolean;
9
9
  error?: IResponseError;
@@ -2,8 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import cn from 'bem-cn-lite';
3
3
  import { Button, Icon } from '@gravity-ui/uikit';
4
4
  import updateArrow from '../../../../../assets/icons/update-arrow.svg';
5
+ import { hcStatusToColorFlag } from '../../../../../store/reducers/healthcheckInfo/utils';
5
6
  import { DiagnosticCard } from '../../../../../components/DiagnosticCard/DiagnosticCard';
6
- import EntityStatus from '../../../../../components/EntityStatus/EntityStatus';
7
+ import { EntityStatus } from '../../../../../components/EntityStatus/EntityStatus';
7
8
  import { ResponseError } from '../../../../../components/Errors/ResponseError';
8
9
  import { Loader } from '../../../../../components/Loader';
9
10
  import i18n from './i18n';
@@ -25,7 +26,7 @@ export function HealthcheckPreview(props) {
25
26
  if (loading && !wasLoaded) {
26
27
  return _jsx(Loader, { size: "m" });
27
28
  }
28
- return (_jsx("div", Object.assign({ className: b('preview-content') }, { children: !issuesStatistics || !issuesStatistics.length ? (i18n('status_message.ok')) : (_jsxs(_Fragment, { children: [_jsx("div", { children: i18n('label.issues') }), _jsx("div", Object.assign({ className: b('issues-statistics') }, { children: issuesStatistics.map(([status, count]) => (_jsx(EntityStatus, { mode: "icons", status: status, label: count.toString(), size: "l" }, status))) }))] })) })));
29
+ return (_jsx("div", Object.assign({ className: b('preview-content') }, { children: !issuesStatistics || !issuesStatistics.length ? (i18n('status_message.ok')) : (_jsxs(_Fragment, { children: [_jsx("div", { children: i18n('label.issues') }), _jsx("div", Object.assign({ className: b('issues-statistics') }, { children: issuesStatistics.map(([status, count]) => (_jsx(EntityStatus, { mode: "icons", status: hcStatusToColorFlag[status], label: count.toString(), size: "l" }, status))) }))] })) })));
29
30
  };
30
31
  return (_jsxs(DiagnosticCard, Object.assign({ className: b('preview'), active: active }, { children: [renderHeader(), renderContent()] })));
31
32
  }