ydb-embedded-ui 6.21.0 → 6.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (459) hide show
  1. package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
  2. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
  3. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
  4. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
  5. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
  6. package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
  7. package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
  8. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  9. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  10. package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
  11. package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
  12. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  13. package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
  14. package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
  15. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  16. package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
  17. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  18. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  19. package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
  20. package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
  21. package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
  22. package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
  23. package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
  24. package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
  25. package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
  26. package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
  27. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
  28. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
  29. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
  30. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
  31. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
  32. package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
  33. package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
  34. package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
  35. package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
  36. package/dist/components/VDisk/VDisk.d.ts +2 -3
  37. package/dist/components/VDisk/VDisk.js +2 -2
  38. package/dist/components/VDisk/VDisk.js.map +1 -1
  39. package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
  40. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  41. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  42. package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
  43. package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
  44. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  45. package/dist/containers/App/App.scss +1 -1
  46. package/dist/containers/Cluster/Cluster.js +1 -1
  47. package/dist/containers/Cluster/Cluster.js.map +1 -1
  48. package/dist/containers/Cluster/Cluster.scss +2 -3
  49. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  50. package/dist/containers/Clusters/Clusters.js +3 -3
  51. package/dist/containers/Clusters/Clusters.js.map +1 -1
  52. package/dist/containers/Clusters/columns.js +2 -2
  53. package/dist/containers/Clusters/columns.js.map +1 -1
  54. package/dist/containers/Clusters/constants.d.ts +4 -4
  55. package/dist/containers/Clusters/constants.js +3 -3
  56. package/dist/containers/Clusters/constants.js.map +1 -1
  57. package/dist/containers/Header/breadcrumbs.js +2 -3
  58. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  59. package/dist/containers/Node/Node.js +14 -4
  60. package/dist/containers/Node/Node.js.map +1 -1
  61. package/dist/containers/Node/NodePages.js +4 -5
  62. package/dist/containers/Node/NodePages.js.map +1 -1
  63. package/dist/containers/Nodes/Nodes.js +10 -11
  64. package/dist/containers/Nodes/Nodes.js.map +1 -1
  65. package/dist/containers/Nodes/PaginatedNodes.js +10 -11
  66. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  67. package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
  68. package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +37 -39
  69. package/dist/containers/Nodes/columns/columns.js.map +1 -0
  70. package/dist/containers/Nodes/columns/constants.d.ts +41 -0
  71. package/dist/containers/Nodes/columns/constants.js +83 -0
  72. package/dist/containers/Nodes/columns/constants.js.map +1 -0
  73. package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
  74. package/dist/containers/Nodes/columns/hooks.js +11 -0
  75. package/dist/containers/Nodes/columns/hooks.js.map +1 -0
  76. package/dist/containers/Nodes/columns/i18n/en.json +17 -0
  77. package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
  78. package/dist/containers/Nodes/columns/i18n/index.js +5 -0
  79. package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
  80. package/dist/containers/Nodes/columns/types.d.ts +9 -0
  81. package/dist/containers/Nodes/columns/types.js +2 -0
  82. package/dist/containers/Nodes/columns/types.js.map +1 -0
  83. package/dist/containers/Nodes/getNodes.d.ts +3 -2
  84. package/dist/containers/Nodes/getNodes.js +6 -3
  85. package/dist/containers/Nodes/getNodes.js.map +1 -1
  86. package/dist/containers/PDiskPage/PDiskPage.js +12 -10
  87. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  88. package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
  89. package/dist/containers/PDiskPage/i18n/en.json +1 -1
  90. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  91. package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
  92. package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
  93. package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
  94. package/dist/containers/Storage/Disks/Disks.js +6 -7
  95. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  96. package/dist/containers/Storage/PDisk/PDisk.d.ts +5 -4
  97. package/dist/containers/Storage/PDisk/PDisk.js +3 -2
  98. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  99. package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
  100. package/dist/containers/Storage/PaginatedStorage.d.ts +5 -6
  101. package/dist/containers/Storage/PaginatedStorage.js +9 -54
  102. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  103. package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
  104. package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
  105. package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
  106. package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
  107. package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
  108. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
  109. package/dist/containers/Storage/Storage.d.ts +4 -4
  110. package/dist/containers/Storage/Storage.js +46 -67
  111. package/dist/containers/Storage/Storage.js.map +1 -1
  112. package/dist/containers/Storage/Storage.scss +4 -0
  113. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +6 -16
  114. package/dist/containers/Storage/StorageControls/StorageControls.js +18 -9
  115. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  116. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
  117. package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +24 -8
  118. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
  119. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +14 -0
  120. package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +5 -6
  121. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
  122. package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
  123. package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +66 -89
  124. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
  125. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +54 -0
  126. package/dist/containers/Storage/StorageGroups/columns/constants.js +120 -0
  127. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
  128. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +7 -3
  129. package/dist/containers/Storage/StorageGroups/columns/hooks.js +21 -16
  130. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  131. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +21 -0
  132. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
  133. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
  134. package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
  135. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +5 -7
  136. package/dist/containers/Storage/StorageGroups/getGroups.js +10 -6
  137. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  138. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
  139. package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +24 -9
  140. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
  141. package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
  142. package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +16 -0
  143. package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +9 -9
  144. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
  145. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +24 -0
  146. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
  147. package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +20 -31
  148. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
  149. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +34 -0
  150. package/dist/containers/Storage/StorageNodes/columns/constants.js +74 -0
  151. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
  152. package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
  153. package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
  154. package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
  155. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +11 -0
  156. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
  157. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
  158. package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
  159. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
  160. package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
  161. package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
  162. package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
  163. package/dist/containers/Storage/StorageNodes/getNodes.js +13 -9
  164. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  165. package/dist/containers/Storage/StorageNodes/shared.js +1 -1
  166. package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
  167. package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
  168. package/dist/containers/Storage/StorageWrapper.js.map +1 -1
  169. package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
  170. package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
  171. package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
  172. package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
  173. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
  174. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
  175. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
  176. package/dist/containers/Storage/i18n/en.json +4 -1
  177. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  178. package/dist/containers/Storage/i18n/index.js +1 -2
  179. package/dist/containers/Storage/i18n/index.js.map +1 -1
  180. package/dist/containers/Storage/shared.d.ts +2 -0
  181. package/dist/containers/Storage/shared.js +9 -0
  182. package/dist/containers/Storage/shared.js.map +1 -1
  183. package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
  184. package/dist/containers/Storage/useStorageQueryParams.js +64 -0
  185. package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
  186. package/dist/containers/Storage/utils/index.d.ts +6 -2
  187. package/dist/containers/Storage/utils/index.js +17 -11
  188. package/dist/containers/Storage/utils/index.js.map +1 -1
  189. package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
  190. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
  191. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
  192. package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
  193. package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
  194. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  195. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
  196. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  197. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
  198. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  199. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -3
  200. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +4 -4
  201. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  202. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
  203. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
  204. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
  205. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
  206. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
  207. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  208. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
  209. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
  210. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
  211. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
  212. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  213. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
  214. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
  215. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
  216. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  217. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
  218. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
  219. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
  220. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
  221. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  222. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
  223. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
  224. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
  225. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
  226. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
  227. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  228. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
  229. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
  230. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
  231. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
  232. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
  233. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
  234. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
  235. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
  236. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
  237. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
  238. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +71 -62
  239. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  240. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
  241. package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
  242. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
  243. package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
  244. package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
  245. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
  246. package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
  247. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
  248. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
  249. package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
  250. package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
  251. package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
  252. package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
  253. package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
  254. package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
  255. package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
  256. package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
  257. package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
  258. package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
  259. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +14 -12
  260. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  261. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
  262. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +3 -1
  263. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  264. package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
  265. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
  266. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
  267. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
  268. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
  269. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
  270. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
  271. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
  272. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  273. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
  274. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
  275. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
  276. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
  277. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
  278. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
  279. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
  280. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
  281. package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
  282. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
  283. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
  284. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
  285. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
  286. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
  287. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
  288. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
  289. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
  290. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  291. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
  292. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
  293. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
  294. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
  295. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
  296. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
  297. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
  298. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
  299. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  300. package/dist/containers/Tenant/Tenant.js +7 -3
  301. package/dist/containers/Tenant/Tenant.js.map +1 -1
  302. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
  303. package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
  304. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
  305. package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
  306. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
  307. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
  308. package/dist/containers/Tenant/utils/schema.js +1 -0
  309. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  310. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  311. package/dist/containers/Tenant/utils/schemaActions.js +8 -6
  312. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  313. package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
  314. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
  315. package/dist/containers/UserSettings/i18n/en.json +0 -2
  316. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  317. package/dist/containers/UserSettings/settings.d.ts +0 -1
  318. package/dist/containers/UserSettings/settings.js +2 -7
  319. package/dist/containers/UserSettings/settings.js.map +1 -1
  320. package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
  321. package/dist/containers/VDiskPage/VDiskPage.js +9 -33
  322. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  323. package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
  324. package/dist/containers/VDiskPage/i18n/en.json +1 -1
  325. package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
  326. package/dist/services/api.d.ts +16 -5
  327. package/dist/services/api.js +53 -14
  328. package/dist/services/api.js.map +1 -1
  329. package/dist/services/settings.d.ts +2 -2
  330. package/dist/services/settings.js +2 -3
  331. package/dist/services/settings.js.map +1 -1
  332. package/dist/store/configureStore.d.ts +2 -2
  333. package/dist/store/defaultStore.d.ts +1 -1
  334. package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
  335. package/dist/store/reducers/capabilities/capabilities.js +6 -1
  336. package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
  337. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  338. package/dist/store/reducers/capabilities/hooks.js +6 -0
  339. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  340. package/dist/store/reducers/executeQuery.js +3 -0
  341. package/dist/store/reducers/executeQuery.js.map +1 -1
  342. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
  343. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
  344. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  345. package/dist/store/reducers/index.d.ts +2 -2
  346. package/dist/store/reducers/nodes/nodes.d.ts +2 -2
  347. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  348. package/dist/store/reducers/nodes/types.d.ts +3 -24
  349. package/dist/store/reducers/nodesList.d.ts +5 -5
  350. package/dist/store/reducers/nodesList.js +2 -2
  351. package/dist/store/reducers/nodesList.js.map +1 -1
  352. package/dist/store/reducers/overview/overview.js +5 -1
  353. package/dist/store/reducers/overview/overview.js.map +1 -1
  354. package/dist/store/reducers/pdisk/pdisk.js +29 -2
  355. package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
  356. package/dist/store/reducers/pdisk/utils.js +1 -1
  357. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  358. package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
  359. package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
  360. package/dist/store/reducers/storage/selectors.d.ts +2 -3
  361. package/dist/store/reducers/storage/selectors.js +1 -27
  362. package/dist/store/reducers/storage/selectors.js.map +1 -1
  363. package/dist/store/reducers/storage/storage.d.ts +4 -4
  364. package/dist/store/reducers/storage/storage.js.map +1 -1
  365. package/dist/store/reducers/storage/types.d.ts +19 -10
  366. package/dist/store/reducers/storage/utils.js +27 -3
  367. package/dist/store/reducers/storage/utils.js.map +1 -1
  368. package/dist/store/reducers/tablet.js +5 -3
  369. package/dist/store/reducers/tablet.js.map +1 -1
  370. package/dist/store/reducers/tablets.d.ts +3 -3
  371. package/dist/store/reducers/tablets.js +4 -4
  372. package/dist/store/reducers/tablets.js.map +1 -1
  373. package/dist/store/reducers/tooltip.d.ts +1 -1
  374. package/dist/styles/mixins.scss +3 -3
  375. package/dist/types/api/capabilities.d.ts +1 -1
  376. package/dist/types/api/common.d.ts +1 -0
  377. package/dist/types/api/nodes.d.ts +34 -0
  378. package/dist/types/api/nodes.js.map +1 -1
  379. package/dist/types/api/query.d.ts +1 -0
  380. package/dist/types/api/storage.d.ts +29 -8
  381. package/dist/types/store/nodesList.d.ts +1 -1
  382. package/dist/types/store/query.d.ts +5 -8
  383. package/dist/utils/constants.d.ts +0 -8
  384. package/dist/utils/constants.js +0 -9
  385. package/dist/utils/constants.js.map +1 -1
  386. package/dist/utils/filters.d.ts +2 -1
  387. package/dist/utils/filters.js +1 -4
  388. package/dist/utils/filters.js.map +1 -1
  389. package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
  390. package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
  391. package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
  392. package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
  393. package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
  394. package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
  395. package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
  396. package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
  397. package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
  398. package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
  399. package/dist/utils/hooks/useSelectedColumns.js +40 -0
  400. package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
  401. package/dist/utils/nodes.d.ts +5 -24
  402. package/dist/utils/nodes.js +20 -23
  403. package/dist/utils/nodes.js.map +1 -1
  404. package/dist/utils/query.d.ts +129 -0
  405. package/dist/utils/query.js +33 -1
  406. package/dist/utils/query.js.map +1 -1
  407. package/dist/utils/storage.d.ts +1 -1
  408. package/dist/utils/storage.js +2 -0
  409. package/dist/utils/storage.js.map +1 -1
  410. package/dist/utils/utils.js +2 -1
  411. package/dist/utils/utils.js.map +1 -1
  412. package/package.json +2 -1
  413. package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
  414. package/dist/containers/Clusters/useSelectedColumns.js +0 -26
  415. package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
  416. package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
  417. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
  418. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
  419. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
  420. package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
  421. package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
  422. package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
  423. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -14
  424. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
  425. package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +0 -13
  426. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
  427. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
  428. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
  429. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
  430. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
  431. package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +0 -19
  432. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
  433. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
  434. package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
  435. package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
  436. package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
  437. package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
  438. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
  439. package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
  440. package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
  441. package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
  442. package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
  443. package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
  444. package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
  445. package/dist/containers/Storage/UsageFilter/index.js +0 -2
  446. package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
  447. package/dist/containers/Storage/i18n/ru.json +0 -6
  448. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
  449. package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
  450. package/dist/containers/VDiskPage/utils.d.ts +0 -2
  451. package/dist/containers/VDiskPage/utils.js +0 -7
  452. package/dist/containers/VDiskPage/utils.js.map +0 -1
  453. package/dist/store/reducers/describe.d.ts +0 -7
  454. package/dist/store/reducers/describe.js +0 -25
  455. package/dist/store/reducers/describe.js.map +0 -1
  456. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
  457. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
  458. package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
  459. /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { HelpPopover } from '@gravity-ui/components';
4
- import { Tabs } from '@gravity-ui/uikit';
4
+ import { Flex, Tabs } from '@gravity-ui/uikit';
5
5
  import qs from 'qs';
6
6
  import { Link, useLocation } from 'react-router-dom';
7
7
  import { StringParam, useQueryParam } from 'use-query-params';
@@ -10,29 +10,28 @@ import { ClipboardButton } from '../../../components/ClipboardButton';
10
10
  import { toFormattedSize } from '../../../components/FormattedBytes/utils';
11
11
  import { InfoViewer } from '../../../components/InfoViewer/InfoViewer';
12
12
  import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
13
- import { Loader } from '../../../components/Loader';
14
13
  import SplitPane from '../../../components/SplitPane';
15
14
  import routes, { createExternalUILink, createHref } from '../../../routes';
16
- import { useGetSchemaQuery } from '../../../store/reducers/schema/schema';
15
+ import { overviewApi } from '../../../store/reducers/overview/overview';
17
16
  import { TENANT_SUMMARY_TABS_IDS } from '../../../store/reducers/tenant/constants';
18
17
  import { setSummaryTab } from '../../../store/reducers/tenant/tenant';
19
18
  import { EPathSubType, EPathType } from '../../../types/api/schema';
20
- import { cn } from '../../../utils/cn';
21
19
  import { DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED, DEFAULT_SIZE_TENANT_SUMMARY_KEY, } from '../../../utils/constants';
22
20
  import { formatDateTime, formatNumber, formatSecondsToHours, } from '../../../utils/dataFormatters/dataFormatters';
23
- import { useTypedDispatch, useTypedSelector } from '../../../utils/hooks';
21
+ import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../../utils/hooks';
24
22
  import { Acl } from '../Acl/Acl';
25
23
  import { EntityTitle } from '../EntityTitle/EntityTitle';
26
- import { SchemaTree } from '../Schema/SchemaTree/SchemaTree';
27
24
  import { SchemaViewer } from '../Schema/SchemaViewer/SchemaViewer';
28
25
  import { TENANT_INFO_TABS, TENANT_SCHEMA_TAB, TenantTabsGroups } from '../TenantPages';
29
- import i18n from '../i18n';
30
26
  import { getSummaryControls } from '../utils/controls';
31
27
  import { PaneVisibilityActionTypes, PaneVisibilityToggleButtons, paneVisibilityToggleReducerCreator, } from '../utils/paneVisibilityToggleHelpers';
32
28
  import { isIndexTableType, isTableType } from '../utils/schema';
33
- import { transformPath } from './transformPath';
29
+ import { ObjectTree } from './ObjectTree';
30
+ import { SchemaActions } from './SchemaActions';
31
+ import i18n from './i18n';
32
+ import { b } from './shared';
33
+ import { isDomain, transformPath } from './transformPath';
34
34
  import './ObjectSummary.scss';
35
- const b = cn('object-summary');
36
35
  const getTenantCommonInfoState = () => {
37
36
  const collapsed = Boolean(localStorage.getItem(DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED));
38
37
  return {
@@ -43,6 +42,7 @@ const getTenantCommonInfoState = () => {
43
42
  };
44
43
  export function ObjectSummary({ type, subType, tenantName, path, onCollapseSummary, onExpandSummary, isCollapsed, }) {
45
44
  var _a;
45
+ const [autoRefreshInterval] = useAutoRefreshInterval();
46
46
  const dispatch = useTypedDispatch();
47
47
  const [, setCurrentPath] = useQueryParam('schema', StringParam);
48
48
  const [commonInfoVisibilityState, dispatchCommonInfoVisibilityState] = React.useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED), undefined, getTenantCommonInfoState);
@@ -51,7 +51,13 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
51
51
  const queryParams = qs.parse(location.search, {
52
52
  ignoreQueryPrefix: true,
53
53
  });
54
- const { data: currentObjectData } = useGetSchemaQuery({ path, database: tenantName });
54
+ const { currentData } = overviewApi.useGetOverviewQuery({
55
+ paths: [path],
56
+ database: tenantName,
57
+ }, {
58
+ pollingInterval: autoRefreshInterval,
59
+ });
60
+ const { data: currentObjectData } = currentData !== null && currentData !== void 0 ? currentData : {};
55
61
  const currentSchemaData = (_a = currentObjectData === null || currentObjectData === void 0 ? void 0 : currentObjectData.PathDescription) === null || _a === void 0 ? void 0 : _a.Self;
56
62
  React.useEffect(() => {
57
63
  const isTable = isTableType(type);
@@ -62,14 +68,14 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
62
68
  const renderTabs = () => {
63
69
  const isTable = isTableType(type);
64
70
  const tabsItems = isTable ? [...TENANT_INFO_TABS, ...TENANT_SCHEMA_TAB] : TENANT_INFO_TABS;
65
- return (_jsx("div", { className: b('tabs'), children: _jsx(Tabs, { size: "l", items: tabsItems, activeTab: summaryTab, wrapTo: ({ id }, node) => {
66
- const path = createHref(routes.tenant, undefined, {
67
- ...queryParams,
68
- name: tenantName,
69
- [TenantTabsGroups.summaryTab]: id,
70
- });
71
- return (_jsx(Link, { to: path, className: b('tab'), children: node }, id));
72
- }, allowNotSelected: true }) }));
71
+ return (_jsx("div", { className: b('tabs'), children: _jsxs(Flex, { className: b('tabs-inner'), justifyContent: "space-between", alignItems: "center", children: [_jsx(Tabs, { size: "l", items: tabsItems, activeTab: summaryTab, wrapTo: ({ id }, node) => {
72
+ const path = createHref(routes.tenant, undefined, {
73
+ ...queryParams,
74
+ name: tenantName,
75
+ [TenantTabsGroups.summaryTab]: id,
76
+ });
77
+ return (_jsx(Link, { to: path, className: b('tab'), children: node }, id));
78
+ }, allowNotSelected: true }), summaryTab === TENANT_SUMMARY_TABS_IDS.schema && _jsx(SchemaActions, {})] }) }));
73
79
  };
74
80
  const renderObjectOverview = () => {
75
81
  var _a;
@@ -78,41 +84,53 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
78
84
  }
79
85
  const { CreateStep, PathType, PathSubType, PathId, PathVersion } = currentSchemaData;
80
86
  const overview = [];
81
- overview.push({ label: i18n('summary.type'), value: PathType === null || PathType === void 0 ? void 0 : PathType.replace(/^EPathType/, '') });
87
+ const normalizedType = isDomain(path, PathType)
88
+ ? 'Domain'
89
+ : PathType === null || PathType === void 0 ? void 0 : PathType.replace(/^EPathType/, '');
90
+ overview.push({ label: i18n('field_type'), value: normalizedType });
82
91
  if (PathSubType !== EPathSubType.EPathSubTypeEmpty) {
83
92
  overview.push({
84
- label: i18n('summary.subtype'),
93
+ label: i18n('field_subtype'),
85
94
  value: PathSubType === null || PathSubType === void 0 ? void 0 : PathSubType.replace(/^EPathSubType/, ''),
86
95
  });
87
96
  }
88
- overview.push({ label: i18n('summary.id'), value: PathId });
89
- overview.push({ label: i18n('summary.version'), value: PathVersion });
97
+ overview.push({ label: i18n('field_id'), value: PathId });
98
+ overview.push({ label: i18n('field_version'), value: PathVersion });
90
99
  overview.push({
91
- label: i18n('summary.created'),
100
+ label: i18n('field_created'),
92
101
  value: formatDateTime(CreateStep),
93
102
  });
94
103
  const { PathDescription } = currentObjectData;
95
104
  if (PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.TableStats) {
96
105
  const { DataSize, RowCount } = PathDescription.TableStats;
97
106
  overview.push({
98
- label: i18n('summary.data-size'),
107
+ label: i18n('field_data-size'),
99
108
  value: toFormattedSize(DataSize),
100
109
  }, {
101
- label: i18n('summary.row-count'),
110
+ label: i18n('field_row-count'),
102
111
  value: formatNumber(RowCount),
103
112
  });
104
113
  }
105
114
  const title = _jsx(EntityTitle, { data: PathDescription });
106
115
  const getDatabaseOverview = () => {
107
- var _a, _b;
116
+ var _a;
117
+ const { PathsInside, ShardsInside, PathsLimit, ShardsLimit } = (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.DomainDescription) !== null && _a !== void 0 ? _a : {};
118
+ let paths = formatNumber(PathsInside);
119
+ let shards = formatNumber(ShardsInside);
120
+ if (paths && PathsLimit) {
121
+ paths = `${paths} / ${formatNumber(PathsLimit)}`;
122
+ }
123
+ if (shards && ShardsLimit) {
124
+ shards = `${shards} / ${formatNumber(ShardsLimit)}`;
125
+ }
108
126
  return [
109
127
  {
110
- label: i18n('summary.paths'),
111
- value: (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.DomainDescription) === null || _a === void 0 ? void 0 : _a.PathsInside,
128
+ label: i18n('field_paths'),
129
+ value: paths,
112
130
  },
113
131
  {
114
- label: i18n('summary.shards'),
115
- value: (_b = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.DomainDescription) === null || _b === void 0 ? void 0 : _b.ShardsInside,
132
+ label: i18n('field_shards'),
133
+ value: shards,
116
134
  },
117
135
  ];
118
136
  };
@@ -123,7 +141,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
123
141
  var _a;
124
142
  return [
125
143
  {
126
- label: i18n('summary.partitions'),
144
+ label: i18n('field_partitions'),
127
145
  value: (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.TablePartitions) === null || _a === void 0 ? void 0 : _a.length,
128
146
  },
129
147
  ];
@@ -135,7 +153,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
135
153
  var _a, _b;
136
154
  return [
137
155
  {
138
- label: i18n('summary.partitions'),
156
+ label: i18n('field_partitions'),
139
157
  value: (_b = (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.ColumnStoreDescription) === null || _a === void 0 ? void 0 : _a.ColumnShards) === null || _b === void 0 ? void 0 : _b.length,
140
158
  },
141
159
  ];
@@ -144,7 +162,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
144
162
  var _a, _b, _c;
145
163
  return [
146
164
  {
147
- label: i18n('summary.partitions'),
165
+ label: i18n('field_partitions'),
148
166
  value: (_c = (_b = (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.ColumnTableDescription) === null || _a === void 0 ? void 0 : _a.Sharding) === null || _b === void 0 ? void 0 : _b.ColumnShards) === null || _c === void 0 ? void 0 : _c.length,
149
167
  },
150
168
  ];
@@ -153,11 +171,11 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
153
171
  const { Mode, Format } = (PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.CdcStreamDescription) || {};
154
172
  return [
155
173
  {
156
- label: i18n('summary.mode'),
174
+ label: i18n('field_mode'),
157
175
  value: Mode === null || Mode === void 0 ? void 0 : Mode.replace(/^ECdcStreamMode/, ''),
158
176
  },
159
177
  {
160
- label: i18n('summary.format'),
178
+ label: i18n('field_format'),
161
179
  value: Format === null || Format === void 0 ? void 0 : Format.replace(/^ECdcStreamFormat/, ''),
162
180
  },
163
181
  ];
@@ -168,11 +186,11 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
168
186
  const value = (_b = (_a = pqGroup === null || pqGroup === void 0 ? void 0 : pqGroup.PQTabletConfig) === null || _a === void 0 ? void 0 : _a.PartitionConfig) === null || _b === void 0 ? void 0 : _b.LifetimeSeconds;
169
187
  return [
170
188
  {
171
- label: i18n('summary.partitions'),
189
+ label: i18n('field_partitions'),
172
190
  value: (_c = pqGroup === null || pqGroup === void 0 ? void 0 : pqGroup.Partitions) === null || _c === void 0 ? void 0 : _c.length,
173
191
  },
174
192
  {
175
- label: i18n('summary.retention'),
193
+ label: i18n('field_retention'),
176
194
  value: value && formatSecondsToHours(value),
177
195
  },
178
196
  ];
@@ -186,9 +204,9 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
186
204
  const { SourceType, DataSourcePath } = (PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.ExternalTableDescription) || {};
187
205
  const dataSourceName = ((_b = DataSourcePath === null || DataSourcePath === void 0 ? void 0 : DataSourcePath.match(/([^/]*)\/*$/)) === null || _b === void 0 ? void 0 : _b[1]) || '';
188
206
  return [
189
- { label: i18n('summary.source-type'), value: SourceType },
207
+ { label: i18n('field_source-type'), value: SourceType },
190
208
  {
191
- label: i18n('summary.data-source'),
209
+ label: i18n('field_data-source'),
192
210
  value: DataSourcePath && (_jsx("span", { title: DataSourcePath, children: _jsx(LinkWithIcon, { title: dataSourceName || '', url: pathToDataSource }) })),
193
211
  },
194
212
  ];
@@ -197,7 +215,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
197
215
  var _a;
198
216
  return [
199
217
  {
200
- label: i18n('summary.source-type'),
218
+ label: i18n('field_source-type'),
201
219
  value: (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.ExternalDataSourceDescription) === null || _a === void 0 ? void 0 : _a.SourceType,
202
220
  },
203
221
  ];
@@ -211,7 +229,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
211
229
  }
212
230
  return [
213
231
  {
214
- label: i18n('summary.state'),
232
+ label: i18n('field_state'),
215
233
  value: _jsx(AsyncReplicationState, { state: state }),
216
234
  },
217
235
  ];
@@ -245,39 +263,30 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
245
263
  const onSplitStartDragAdditional = () => {
246
264
  dispatchCommonInfoVisibilityState(PaneVisibilityActionTypes.clear);
247
265
  };
266
+ const relativePath = transformPath(path, tenantName);
248
267
  const renderCommonInfoControls = () => {
249
268
  const showPreview = isTableType(type) && !isIndexTableType(subType);
250
269
  return (_jsxs(React.Fragment, { children: [showPreview &&
251
- getSummaryControls(dispatch, { setActivePath: setCurrentPath }, 'm')(path, 'preview'), _jsx(ClipboardButton, { text: path, view: "flat-secondary", title: i18n('summary.copySchemaPath') }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseInfoHandler, onExpand: onExpandInfoHandler, isCollapsed: commonInfoVisibilityState.collapsed, initialDirection: "bottom" })] }));
270
+ getSummaryControls(dispatch, { setActivePath: setCurrentPath }, 'm')(path, 'preview'), _jsx(ClipboardButton, { text: relativePath, view: "flat-secondary", title: i18n('action_copySchemaPath') }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseInfoHandler, onExpand: onExpandInfoHandler, isCollapsed: commonInfoVisibilityState.collapsed, initialDirection: "bottom" })] }));
252
271
  };
253
272
  const renderEntityTypeBadge = () => {
254
273
  const { Status, Reason } = currentObjectData !== null && currentObjectData !== void 0 ? currentObjectData : {};
274
+ if (type) {
275
+ let label = type.replace('EPathType', '');
276
+ if (isDomain(path, type)) {
277
+ label = 'domain';
278
+ }
279
+ return _jsx("div", { className: b('entity-type'), children: label });
280
+ }
255
281
  let message;
256
- if (!type && Status && Reason) {
282
+ if (Status && Reason) {
257
283
  message = `${Status}: ${Reason}`;
258
284
  }
259
- return type ? (_jsx("div", { className: b('entity-type'), children: type.replace('EPathType', '') })) : (_jsx("div", { className: b('entity-type', { error: true }), children: _jsx(HelpPopover, { content: message, offset: { left: 0 } }) }));
285
+ return (_jsx("div", { className: b('entity-type', { error: true }), children: _jsx(HelpPopover, { content: message, offset: { left: 0 } }) }));
260
286
  };
261
287
  const renderContent = () => {
262
- return (_jsxs("div", { className: b(), children: [_jsx("div", { className: b({ hidden: isCollapsed }), children: _jsxs(SplitPane, { direction: "vertical", defaultSizePaneKey: DEFAULT_SIZE_TENANT_SUMMARY_KEY, onSplitStartDragAdditional: onSplitStartDragAdditional, triggerCollapse: commonInfoVisibilityState.triggerCollapse, triggerExpand: commonInfoVisibilityState.triggerExpand, minSize: [200, 52], collapsedSizes: [100, 0], children: [_jsx(ObjectTree, { tenantName: tenantName, path: path }), _jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('sticky-top'), children: [_jsxs("div", { className: b('info-header'), children: [_jsxs("div", { className: b('info-title'), children: [renderEntityTypeBadge(), _jsx("div", { className: b('path-name'), children: transformPath(path, tenantName) })] }), _jsx("div", { className: b('info-controls'), children: renderCommonInfoControls() })] }), renderTabs()] }), _jsx("div", { className: b('overview-wrapper'), children: renderTabContent() })] })] }) }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseSummary, onExpand: onExpandSummary, isCollapsed: isCollapsed, initialDirection: "left", className: b('action-button') })] }));
288
+ return (_jsxs("div", { className: b(), children: [_jsx("div", { className: b({ hidden: isCollapsed }), children: _jsxs(SplitPane, { direction: "vertical", defaultSizePaneKey: DEFAULT_SIZE_TENANT_SUMMARY_KEY, onSplitStartDragAdditional: onSplitStartDragAdditional, triggerCollapse: commonInfoVisibilityState.triggerCollapse, triggerExpand: commonInfoVisibilityState.triggerExpand, minSize: [200, 52], collapsedSizes: [100, 0], children: [_jsx(ObjectTree, { tenantName: tenantName, path: path }), _jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('sticky-top'), children: [_jsxs("div", { className: b('info-header'), children: [_jsxs("div", { className: b('info-title'), children: [renderEntityTypeBadge(), _jsx("div", { className: b('path-name'), children: relativePath })] }), _jsx("div", { className: b('info-controls'), children: renderCommonInfoControls() })] }), renderTabs()] }), _jsx("div", { className: b('overview-wrapper'), children: renderTabContent() })] })] }) }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseSummary, onExpand: onExpandSummary, isCollapsed: isCollapsed, initialDirection: "left", className: b('action-button') })] }));
263
289
  };
264
290
  return renderContent();
265
291
  }
266
- function ObjectTree({ tenantName, path }) {
267
- var _a;
268
- const { data: tenantData = {}, isLoading } = useGetSchemaQuery({
269
- path: tenantName,
270
- database: tenantName,
271
- });
272
- const pathData = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.PathDescription) === null || _a === void 0 ? void 0 : _a.Self;
273
- const [, setCurrentPath] = useQueryParam('schema', StringParam);
274
- if (!pathData && isLoading) {
275
- // If Loader isn't wrapped with div, SplitPane doesn't calculate panes height correctly
276
- return (_jsx("div", { children: _jsx(Loader, {}) }));
277
- }
278
- return (_jsxs("div", { className: b('tree-wrapper'), children: [_jsx("div", { className: b('tree-header'), children: i18n('summary.navigation') }), _jsx("div", { className: b('tree'), children: pathData ? (_jsx(SchemaTree, { rootPath: tenantName,
279
- // for the root pathData.Name contains the same string as tenantName,
280
- // but without the leading slash
281
- rootName: pathData.Name || tenantName, rootType: pathData.PathType, currentPath: path, onActivePathUpdate: setCurrentPath })) : null })] }));
282
- }
283
292
  //# sourceMappingURL=ObjectSummary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectSummary.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/ObjectSummary.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAC,eAAe,EAAC,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AAErE,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,OAAO,SAAS,MAAM,+BAA+B,CAAC;AACtD,OAAO,MAAM,EAAE,EAAC,oBAAoB,EAAE,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAC,uBAAuB,EAAC,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EACH,uCAAuC,EACvC,+BAA+B,GAClC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,cAAc,E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E,+BAA+B,EACnD,0BAA0B,EAAE,0BAA0B,EACtD,eAAe,EAAE,yBAAyB,CAAC,eAAe,EAC1D,aAAa,EAAE,yBAAyB,CAAC,aAAa,EACtD,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAClB,cAAc,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,aAExB,KAAC,UAAU,IAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,GAAI,EAClD,eAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aACrB,eAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,aAC3B,eAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,aAC5B,eAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,aAC1B,qBAAqB,EAAE,EACxB,cAAK,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,YAAG,YAAY,GAAO,IAClD,EACN,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAC7B,wBAAwB,EAAE,GACzB,IACJ,EACL,UAAU,EAAE,IACX,EACN,cAAK,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YAAG,gBAAgB,EAAE,GAAO,IAC/D,IACE,GACV,EACN,KAAC,2BAA2B,IACxB,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,EACzB,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAC,MAAM,EACvB,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,GAC/B,IACA,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,aAAa,EAAE,CAAC;AAC3B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  @import '../../../styles/mixins.scss';
2
2
 
3
- .object-summary {
3
+ .ydb-object-summary {
4
4
  position: relative;
5
5
 
6
6
  display: flex;
@@ -64,14 +64,13 @@
64
64
  padding: 8px 12px 16px;
65
65
  }
66
66
 
67
- &__tab {
68
- margin-right: 40px;
67
+ &__tabs-inner {
68
+ --g-tabs-border-width: 0;
69
+ box-shadow: inset 0 -1px 0 0 var(--g-color-line-generic);
70
+ }
69
71
 
72
+ &__tab {
70
73
  text-decoration: none;
71
-
72
- &:first-letter {
73
- text-transform: uppercase;
74
- }
75
74
  }
76
75
 
77
76
  &__info {
@@ -0,0 +1,6 @@
1
+ interface ObjectTreeProps {
2
+ tenantName: string;
3
+ path?: string;
4
+ }
5
+ export declare function ObjectTree({ tenantName, path }: ObjectTreeProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { StringParam, useQueryParam } from 'use-query-params';
3
+ import { Loader } from '../../../components/Loader';
4
+ import { useGetSchemaQuery } from '../../../store/reducers/schema/schema';
5
+ import { SchemaTree } from '../Schema/SchemaTree/SchemaTree';
6
+ import i18n from './i18n';
7
+ import { b } from './shared';
8
+ export function ObjectTree({ tenantName, path }) {
9
+ var _a;
10
+ const { data: tenantData = {}, isLoading } = useGetSchemaQuery({
11
+ path: tenantName,
12
+ database: tenantName,
13
+ });
14
+ const pathData = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.PathDescription) === null || _a === void 0 ? void 0 : _a.Self;
15
+ const [, setCurrentPath] = useQueryParam('schema', StringParam);
16
+ if (!pathData && isLoading) {
17
+ // If Loader isn't wrapped with div, SplitPane doesn't calculate panes height correctly
18
+ return (_jsx("div", { children: _jsx(Loader, {}) }));
19
+ }
20
+ return (_jsxs("div", { className: b('tree-wrapper'), children: [_jsx("div", { className: b('tree-header'), children: i18n('title_navigation') }), _jsx("div", { className: b('tree'), children: pathData ? (_jsx(SchemaTree, { rootPath: tenantName,
21
+ // for the root pathData.Name contains the same string as tenantName,
22
+ // but without the leading slash
23
+ rootName: pathData.Name || tenantName, rootType: pathData.PathType, currentPath: path, onActivePathUpdate: setCurrentPath })) : null })] }));
24
+ }
25
+ //# sourceMappingURL=ObjectTree.js.map
@@ -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E,gCAAgC;oBAChC,QAAQ,EAAE,QAAQ,CAAC,IAAI,IAAI,UAAU,EACrC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,WAAW,EAAE,IAAI,EACjB,kBAAkB,EAAE,cAAc,GACpC,CACL,CAAC,CAAC,CAAC,IAAI,GACN,IACJ,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function SchemaActions(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button, Icon } from '@gravity-ui/uikit';
3
+ import { TENANT_DIAGNOSTICS_TABS_IDS, TENANT_PAGES_IDS, } from '../../../store/reducers/tenant/constants';
4
+ import { setDiagnosticsTab, setTenantPage } from '../../../store/reducers/tenant/tenant';
5
+ import { useTypedDispatch, useTypedSelector } from '../../../utils/hooks';
6
+ import i18n from './i18n';
7
+ import ArrowRightFromSquareIcon from '@gravity-ui/icons/svgs/arrow-right-from-square.svg';
8
+ export function SchemaActions() {
9
+ const dispatch = useTypedDispatch();
10
+ const { diagnosticsTab, tenantPage } = useTypedSelector((state) => state.tenant);
11
+ const diagnosticsSchemaActive = tenantPage === TENANT_PAGES_IDS.diagnostics &&
12
+ diagnosticsTab === TENANT_DIAGNOSTICS_TABS_IDS.schema;
13
+ return (_jsx("div", { children: !diagnosticsSchemaActive && (_jsx(Button, { title: i18n('action_openInDiagnostics'), onClick: () => {
14
+ dispatch(setTenantPage(TENANT_PAGES_IDS.diagnostics));
15
+ dispatch(setDiagnosticsTab(TENANT_DIAGNOSTICS_TABS_IDS.schema));
16
+ }, size: "s", children: _jsx(Icon, { data: ArrowRightFromSquareIcon, size: 14 }) })) }));
17
+ }
18
+ //# sourceMappingURL=SchemaActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/SchemaActions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACH,2BAA2B,EAC3B,gBAAgB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAC,iBAAiB,EAAE,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAExE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,wBAAwB,MAAM,oDAAoD,CAAC;AAE1F,MAAM,UAAU,aAAa;IACzB,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IACpC,MAAM,EAAC,cAAc,EAAE,UAAU,EAAC,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/E,MAAM,uBAAuB,GACzB,UAAU,KAAK,gBAAgB,CAAC,WAAW;QAC3C,cAAc,KAAK,2BAA2B,CAAC,MAAM,CAAC;IAE1D,OAAO,CACH,wBACK,CAAC,uBAAuB,IAAI,CACzB,KAAC,MAAM,IACH,KAAK,EAAE,IAAI,CAAC,0BAA0B,CAAC,EACvC,OAAO,EAAE,GAAG,EAAE;gBACV,QAAQ,CAAC,aAAa,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;gBACtD,QAAQ,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC;YACpE,CAAC,EACD,IAAI,EAAC,GAAG,YAER,KAAC,IAAI,IAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,EAAE,GAAI,GAC7C,CACZ,GACC,CACT,CAAC;AACN,CAAC"}
@@ -1,4 +1,5 @@
1
- import { transformPath } from '../transformPath';
1
+ import { EPathType } from '../../../../types/api/schema';
2
+ import { isDomain, transformPath } from '../transformPath';
2
3
  describe('transformPath', () => {
3
4
  test.each([
4
5
  // Tests with various combinations of path and dbName
@@ -8,8 +9,8 @@ describe('transformPath', () => {
8
9
  ['/prod/v1/sth', 'prod/v1', 'sth'],
9
10
  ['/dev/v1/sth', '/dev', 'v1/sth'],
10
11
  ['/dev/v1/sth', 'dev', 'v1/sth'],
11
- ['/dev', '/dev', '/'],
12
- ['/dev', 'dev', '/'],
12
+ ['/dev', '/dev', '/dev'],
13
+ ['/dev', 'dev', '/dev'],
13
14
  ['/', '/dev', '/'],
14
15
  ['/', 'dev', '/'],
15
16
  ['', '/dev', '/'],
@@ -38,4 +39,27 @@ describe('transformPath', () => {
38
39
  expect(transformPath('///dev/v1/sth', '/dev')).toBe('v1/sth');
39
40
  });
40
41
  });
42
+ describe('isDomain', () => {
43
+ it('should return true for valid domain paths', () => {
44
+ expect(isDomain('/domain', EPathType.EPathTypeDir)).toBe(true);
45
+ expect(isDomain('/another-domain', EPathType.EPathTypeDir)).toBe(true);
46
+ });
47
+ it('should return false for non-directory paths', () => {
48
+ expect(isDomain('/domain', EPathType.EPathTypeColumnStore)).toBe(false);
49
+ expect(isDomain('/domain', undefined)).toBe(false);
50
+ });
51
+ it('should return false for paths without slash', () => {
52
+ expect(isDomain('domain', EPathType.EPathTypeDir)).toBe(false);
53
+ });
54
+ it('should return false for paths with multiple slashes', () => {
55
+ expect(isDomain('/domain/subdomain', EPathType.EPathTypeDir)).toBe(false);
56
+ expect(isDomain('/domain/', EPathType.EPathTypeDir)).toBe(false);
57
+ });
58
+ it('should return false for empty paths', () => {
59
+ expect(isDomain('', EPathType.EPathTypeDir)).toBe(false);
60
+ });
61
+ it('should return true for root path', () => {
62
+ expect(isDomain('/', EPathType.EPathTypeDir)).toBe(true);
63
+ });
64
+ });
41
65
  //# sourceMappingURL=transformPath.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transformPath.test.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/ObjectSummary/__test__/transformPath.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE/C,QAAQ,C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CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxE,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACnD,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC3D,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1E,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,21 @@
1
+ {
2
+ "title_navigation": "Navigation",
3
+ "field_source-type": "Source Type",
4
+ "field_data-source": "Data Source",
5
+ "action_copySchemaPath": "Copy schema path",
6
+ "action_openInDiagnostics": "Open in Diagnostics",
7
+ "field_type": "Type",
8
+ "field_subtype": "SubType",
9
+ "field_id": "Id",
10
+ "field_version": "Version",
11
+ "field_created": "Created",
12
+ "field_data-size": "Data size",
13
+ "field_row-count": "Row count",
14
+ "field_partitions": "Partitions count",
15
+ "field_paths": "Paths",
16
+ "field_shards": "Shards",
17
+ "field_state": "State",
18
+ "field_mode": "Mode",
19
+ "field_format": "Format",
20
+ "field_retention": "Retention"
21
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "field_state" | "title_navigation" | "field_source-type" | "field_data-source" | "action_copySchemaPath" | "action_openInDiagnostics" | "field_type" | "field_subtype" | "field_id" | "field_version" | "field_created" | "field_data-size" | "field_row-count" | "field_partitions" | "field_paths" | "field_shards" | "field_mode" | "field_format" | "field_retention", params?: import("@gravity-ui/i18n").Params) => string;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { registerKeysets } from '../../../../utils/i18n';
2
+ import en from './en.json';
3
+ const COMPONENT = 'ydb-object-summary';
4
+ export default registerKeysets(COMPONENT, { en });
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/ObjectSummary/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const b: import("@bem-react/classname").ClassNameFormatter;
@@ -0,0 +1,3 @@
1
+ import { cn } from '../../../utils/cn';
2
+ export const b = cn('ydb-object-summary');
3
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAErC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC"}
@@ -1 +1,3 @@
1
+ import { EPathType } from '../../../types/api/schema';
1
2
  export declare function transformPath(path: string, dbName: string): string;
3
+ export declare function isDomain(path: string, type?: EPathType): boolean;
@@ -1,3 +1,4 @@
1
+ import { EPathType } from '../../../types/api/schema';
1
2
  export function transformPath(path, dbName) {
2
3
  // Normalize the path and dbName by removing leading/trailing slashes
3
4
  const normalizedPath = path.replace(/^\/+|\/+$/g, '');
@@ -5,9 +6,18 @@ export function transformPath(path, dbName) {
5
6
  if (!normalizedPath.startsWith(normalizedDbName)) {
6
7
  return normalizedPath || '/';
7
8
  }
9
+ if (normalizedPath === normalizedDbName) {
10
+ return `/${normalizedPath}`;
11
+ }
8
12
  let result = normalizedPath.slice(normalizedDbName.length);
9
13
  // Remove leading slash if present, unless the result would be empty
10
14
  result = result.replace(/^\/+/, '') || '/';
11
15
  return result;
12
16
  }
17
+ export function isDomain(path, type) {
18
+ if (type !== EPathType.EPathTypeDir) {
19
+ return false;
20
+ }
21
+ return path.split('/').length === 2 && path.startsWith('/');
22
+ }
13
23
  //# sourceMappingURL=transformPath.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transformPath.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/transformPath.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,MAAc;IACtD,qEAAqE;IACrE,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACtD,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAE1D,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC/C,OAAO,cAAc,IAAI,GAAG,CAAC;IACjC,CAAC;IAED,IAAI,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,gBAAgB,CAA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