ydb-embedded-ui 6.33.0 → 6.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +21 -0
  2. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +31 -0
  3. package/dist/components/ConfirmationDialog/ConfirmationDialog.js.map +1 -0
  4. package/dist/components/ConfirmationDialog/ConfirmationDialog.scss +6 -0
  5. package/dist/components/ConfirmationDialog/i18n/en.json +3 -0
  6. package/dist/components/ConfirmationDialog/i18n/index.d.ts +1 -0
  7. package/dist/components/ConfirmationDialog/i18n/index.js +5 -0
  8. package/dist/components/ConfirmationDialog/i18n/index.js.map +1 -0
  9. package/dist/components/EntityStatus/EntityStatus.js +1 -1
  10. package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
  11. package/dist/components/MemoryViewer/MemoryViewer.d.ts +14 -0
  12. package/dist/components/MemoryViewer/MemoryViewer.js +84 -0
  13. package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -0
  14. package/dist/components/MemoryViewer/MemoryViewer.scss +104 -0
  15. package/dist/components/MemoryViewer/i18n/en.json +11 -0
  16. package/dist/components/MemoryViewer/i18n/index.d.ts +2 -0
  17. package/dist/components/MemoryViewer/i18n/index.js +5 -0
  18. package/dist/components/MemoryViewer/i18n/index.js.map +1 -0
  19. package/dist/components/MemoryViewer/utils.d.ts +10 -0
  20. package/dist/components/MemoryViewer/utils.js +71 -0
  21. package/dist/components/MemoryViewer/utils.js.map +1 -0
  22. package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +5 -3
  23. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -2
  24. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  25. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  26. package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
  27. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  28. package/dist/components/nodesColumns/__test__/utils.test.d.ts +1 -0
  29. package/dist/components/nodesColumns/__test__/utils.test.js +28 -0
  30. package/dist/components/nodesColumns/__test__/utils.test.js.map +1 -0
  31. package/dist/components/nodesColumns/columns.d.ts +32 -9
  32. package/dist/components/nodesColumns/columns.js +91 -21
  33. package/dist/components/nodesColumns/columns.js.map +1 -1
  34. package/dist/components/nodesColumns/constants.d.ts +16 -5
  35. package/dist/components/nodesColumns/constants.js +114 -11
  36. package/dist/components/nodesColumns/constants.js.map +1 -1
  37. package/dist/components/nodesColumns/i18n/en.json +18 -5
  38. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  39. package/dist/components/nodesColumns/utils.d.ts +2 -0
  40. package/dist/components/nodesColumns/utils.js +11 -0
  41. package/dist/components/nodesColumns/utils.js.map +1 -0
  42. package/dist/containers/App/App.d.ts +1 -1
  43. package/dist/containers/App/Providers.js +2 -1
  44. package/dist/containers/App/Providers.js.map +1 -1
  45. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +2 -0
  46. package/dist/containers/AsideNavigation/AsideNavigation.js +2 -1
  47. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  48. package/dist/containers/Clusters/constants.d.ts +1 -1
  49. package/dist/containers/Nodes/Nodes.js +2 -2
  50. package/dist/containers/Nodes/Nodes.js.map +1 -1
  51. package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +3 -1
  52. package/dist/containers/Nodes/NodesControls/NodesControls.js +3 -3
  53. package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
  54. package/dist/containers/Nodes/PaginatedNodes.d.ts +11 -3
  55. package/dist/containers/Nodes/PaginatedNodes.js +16 -19
  56. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  57. package/dist/containers/Nodes/columns/columns.js +2 -2
  58. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  59. package/dist/containers/Nodes/columns/constants.d.ts +3 -2
  60. package/dist/containers/Nodes/columns/constants.js +10 -10
  61. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  62. package/dist/containers/Nodes/getNodes.js +4 -5
  63. package/dist/containers/Nodes/getNodes.js.map +1 -1
  64. package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +3 -2
  65. package/dist/containers/Nodes/useNodesPageQueryParams.js +2 -2
  66. package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -1
  67. package/dist/containers/Storage/StorageGroups/columns/columns.js +3 -3
  68. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
  69. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +3 -7
  70. package/dist/containers/Storage/StorageGroups/columns/constants.js +54 -10
  71. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  72. package/dist/containers/Storage/StorageGroups/getGroups.js +3 -5
  73. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  74. package/dist/containers/Storage/StorageNodes/columns/columns.js +2 -3
  75. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  76. package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -2
  77. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  78. package/dist/containers/Storage/StorageNodes/getNodes.js +4 -5
  79. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  80. package/dist/containers/Storage/utils/index.d.ts +1 -1
  81. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  82. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  83. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  84. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.d.ts +4 -0
  85. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js +23 -0
  86. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/columns.js.map +1 -0
  87. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.d.ts +5 -0
  88. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js +23 -0
  89. package/dist/containers/Tenant/Diagnostics/Network/NetworkTable/constants.js.map +1 -0
  90. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.d.ts +6 -0
  91. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +26 -0
  92. package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -0
  93. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +1 -1
  94. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  95. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.d.ts +2 -2
  96. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js +3 -2
  97. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.js.map +1 -1
  98. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +3 -1
  99. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
  100. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -7
  101. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  102. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  103. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +3 -1
  104. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  105. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +5 -1
  106. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
  107. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +5 -2
  108. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  109. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.d.ts +7 -0
  110. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js +40 -0
  111. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js.map +1 -0
  112. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +1 -1
  113. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
  114. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +4 -1
  115. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  116. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +8 -7
  117. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
  118. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -2
  119. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +1 -1
  120. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +3 -1
  121. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
  122. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -27
  123. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +47 -52
  124. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  125. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +1 -1
  126. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  127. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +18 -3
  128. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +41 -15
  129. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
  130. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +8 -3
  131. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js.map +1 -1
  132. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +1 -2
  133. package/dist/containers/Tenant/utils/newSQLQueryActions.js +2 -4
  134. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
  135. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -0
  136. package/dist/containers/Tenant/utils/schemaActions.js +61 -41
  137. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  138. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +87 -54
  139. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  140. package/dist/containers/UserSettings/i18n/en.json +3 -0
  141. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  142. package/dist/containers/UserSettings/settings.d.ts +2 -0
  143. package/dist/containers/UserSettings/settings.js +11 -2
  144. package/dist/containers/UserSettings/settings.js.map +1 -1
  145. package/dist/services/api.d.ts +4 -0
  146. package/dist/services/api.js +11 -0
  147. package/dist/services/api.js.map +1 -1
  148. package/dist/services/settings.d.ts +2 -0
  149. package/dist/services/settings.js +3 -1
  150. package/dist/services/settings.js.map +1 -1
  151. package/dist/store/configureStore.d.ts +37 -15
  152. package/dist/store/defaultStore.d.ts +18 -7
  153. package/dist/store/reducers/capabilities/capabilities.d.ts +72 -16
  154. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  155. package/dist/store/reducers/capabilities/hooks.js +3 -0
  156. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  157. package/dist/store/reducers/cluster/cluster.d.ts +54 -12
  158. package/dist/store/reducers/executeQuery.d.ts +41 -51
  159. package/dist/store/reducers/executeQuery.js +64 -160
  160. package/dist/store/reducers/executeQuery.js.map +1 -1
  161. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +180 -40
  162. package/dist/store/reducers/index.d.ts +28 -13
  163. package/dist/store/reducers/node/selectors.d.ts +9 -2
  164. package/dist/store/reducers/nodes/types.d.ts +13 -0
  165. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  166. package/dist/store/reducers/nodes/utils.js +3 -3
  167. package/dist/store/reducers/nodes/utils.js.map +1 -1
  168. package/dist/store/reducers/nodesList.d.ts +9 -2
  169. package/dist/store/reducers/partitions/partitions.d.ts +4 -3
  170. package/dist/store/reducers/partitions/partitions.js +1 -3
  171. package/dist/store/reducers/partitions/partitions.js.map +1 -1
  172. package/dist/store/reducers/partitions/types.d.ts +0 -3
  173. package/dist/store/reducers/planToSvg.d.ts +8 -0
  174. package/dist/store/reducers/planToSvg.js +21 -0
  175. package/dist/store/reducers/planToSvg.js.map +1 -0
  176. package/dist/store/reducers/queryActions/queryActions.d.ts +0 -27
  177. package/dist/store/reducers/queryActions/queryActions.js +1 -1
  178. package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
  179. package/dist/store/reducers/queryActions/types.d.ts +1 -1
  180. package/dist/store/reducers/schema/schema.d.ts +22 -7
  181. package/dist/store/reducers/schema/schema.js +16 -20
  182. package/dist/store/reducers/schema/schema.js.map +1 -1
  183. package/dist/store/reducers/tablets.d.ts +45 -10
  184. package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
  185. package/dist/store/reducers/tenants/selectors.d.ts +81 -18
  186. package/dist/store/reducers/tooltip.d.ts +1 -1
  187. package/dist/store/reducers/topic.d.ts +135 -30
  188. package/dist/store/reducers/trace.d.ts +1 -1
  189. package/dist/store/reducers/trace.js +1 -1
  190. package/dist/store/reducers/trace.js.map +1 -1
  191. package/dist/types/api/nodes.d.ts +74 -4
  192. package/dist/types/api/nodes.js.map +1 -1
  193. package/dist/types/store/executeQuery.d.ts +3 -6
  194. package/dist/types/store/executeQuery.js.map +1 -1
  195. package/dist/utils/constants.d.ts +2 -0
  196. package/dist/utils/constants.js +2 -0
  197. package/dist/utils/constants.js.map +1 -1
  198. package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -1
  199. package/dist/utils/dataFormatters/dataFormatters.js +12 -6
  200. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  201. package/dist/utils/hooks/withConfirmation/i18n/en.json +4 -0
  202. package/dist/utils/hooks/withConfirmation/i18n/index.d.ts +2 -0
  203. package/dist/utils/hooks/withConfirmation/i18n/index.js +5 -0
  204. package/dist/utils/hooks/withConfirmation/i18n/index.js.map +1 -0
  205. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.d.ts +3 -0
  206. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +57 -0
  207. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -0
  208. package/dist/utils/monaco/insertSnippet.d.ts +1 -0
  209. package/dist/utils/monaco/insertSnippet.js +8 -0
  210. package/dist/utils/monaco/insertSnippet.js.map +1 -0
  211. package/dist/utils/nodes.d.ts +1 -4
  212. package/dist/utils/nodes.js +0 -36
  213. package/dist/utils/nodes.js.map +1 -1
  214. package/dist/utils/query.d.ts +1 -1
  215. package/dist/utils/storage.d.ts +1 -3
  216. package/dist/utils/storage.js +0 -17
  217. package/dist/utils/storage.js.map +1 -1
  218. package/dist/utils/timeParsers/parsers.d.ts +1 -1
  219. package/dist/utils/timeParsers/parsers.js +3 -2
  220. package/dist/utils/timeParsers/parsers.js.map +1 -1
  221. package/package.json +2 -1
@@ -5,10 +5,11 @@ import { getLoadSeverityForNode } from '../../store/reducers/nodes/utils';
5
5
  import { valueIsDefined } from '../../utils';
6
6
  import { cn } from '../../utils/cn';
7
7
  import { EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
8
- import { formatStorageValues, formatStorageValuesToGb, } from '../../utils/dataFormatters/dataFormatters';
8
+ import { formatPercent, formatStorageValues, formatStorageValuesToGb, } from '../../utils/dataFormatters/dataFormatters';
9
9
  import { getSpaceUsageSeverity } from '../../utils/storage';
10
- import { isNumeric } from '../../utils/utils';
10
+ import { bytesToSpeed, isNumeric } from '../../utils/utils';
11
11
  import { CellWithPopover } from '../CellWithPopover/CellWithPopover';
12
+ import { MemoryViewer } from '../MemoryViewer/MemoryViewer';
12
13
  import { NodeHostWrapper } from '../NodeHostWrapper/NodeHostWrapper';
13
14
  import { PoolsGraph } from '../PoolsGraph/PoolsGraph';
14
15
  import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
@@ -17,6 +18,7 @@ import { formatPool } from '../TooltipsContent';
17
18
  import { UsageLabel } from '../UsageLabel/UsageLabel';
18
19
  import { NODES_COLUMNS_IDS, NODES_COLUMNS_TITLES } from './constants';
19
20
  import i18n from './i18n';
21
+ import { prepareClockSkewValue, preparePingTimeValue } from './utils';
20
22
  import './NodesColumns.scss';
21
23
  const b = cn('ydb-nodes-columns');
22
24
  export function getNodeIdColumn() {
@@ -28,12 +30,12 @@ export function getNodeIdColumn() {
28
30
  align: DataTable.RIGHT,
29
31
  };
30
32
  }
31
- export function getHostColumn({ getNodeRef, database, }) {
33
+ export function getHostColumn({ getNodeRef, database }, { statusForIcon = 'SystemState' } = {}) {
32
34
  return {
33
35
  name: NODES_COLUMNS_IDS.Host,
34
36
  header: NODES_COLUMNS_TITLES.Host,
35
37
  render: ({ row }) => {
36
- return _jsx(NodeHostWrapper, { node: row, getNodeRef: getNodeRef, database: database });
38
+ return (_jsx(NodeHostWrapper, { node: row, getNodeRef: getNodeRef, database: database, statusForIcon: statusForIcon }));
37
39
  },
38
40
  width: 350,
39
41
  align: DataTable.LEFT,
@@ -87,18 +89,6 @@ export function getUptimeColumn() {
87
89
  width: 110,
88
90
  };
89
91
  }
90
- export function getMemoryColumn() {
91
- return {
92
- name: NODES_COLUMNS_IDS.Memory,
93
- header: NODES_COLUMNS_TITLES.Memory,
94
- sortAccessor: ({ MemoryUsed = 0 }) => Number(MemoryUsed),
95
- defaultOrder: DataTable.DESCENDING,
96
- render: ({ row }) => (_jsx(ProgressViewer, { value: row.MemoryUsed, capacity: row.MemoryLimit, formatValues: formatStorageValuesToGb, colorizeProgress: true })),
97
- align: DataTable.LEFT,
98
- width: 170,
99
- resizeMinWidth: 170,
100
- };
101
- }
102
92
  export function getRAMColumn() {
103
93
  return {
104
94
  name: NODES_COLUMNS_IDS.RAM,
@@ -116,13 +106,16 @@ export function getRAMColumn() {
116
106
  resizeMinWidth: 40,
117
107
  };
118
108
  }
119
- export function getSharedCacheUsageColumn() {
109
+ export function getMemoryColumn() {
120
110
  return {
121
- name: NODES_COLUMNS_IDS.SharedCacheUsage,
122
- header: NODES_COLUMNS_TITLES.SharedCacheUsage,
123
- render: ({ row }) => (_jsx(ProgressViewer, { value: row.SharedCacheUsed, capacity: row.SharedCacheLimit, formatValues: formatStorageValuesToGb, colorizeProgress: true })),
111
+ name: NODES_COLUMNS_IDS.Memory,
112
+ header: NODES_COLUMNS_TITLES.Memory,
113
+ defaultOrder: DataTable.DESCENDING,
114
+ render: ({ row }) => {
115
+ return row.MemoryStats ? (_jsx(MemoryViewer, { capacity: row.MemoryLimit, value: row.MemoryStats.AnonRss, formatValues: formatStorageValuesToGb, stats: row.MemoryStats })) : (_jsx(ProgressViewer, { value: row.MemoryUsed, capacity: row.MemoryLimit, formatValues: formatStorageValuesToGb, colorizeProgress: true }));
116
+ },
124
117
  align: DataTable.LEFT,
125
- width: 170,
118
+ width: 300,
126
119
  resizeMinWidth: 170,
127
120
  };
128
121
  }
@@ -236,4 +229,81 @@ export function getMissingDisksColumn() {
236
229
  defaultOrder: DataTable.DESCENDING,
237
230
  };
238
231
  }
232
+ // Network diagnostics columns
233
+ export function getConnectionsColumn() {
234
+ return {
235
+ name: NODES_COLUMNS_IDS.Connections,
236
+ header: NODES_COLUMNS_TITLES.Connections,
237
+ render: ({ row }) => (isNumeric(row.Connections) ? row.Connections : EMPTY_DATA_PLACEHOLDER),
238
+ align: DataTable.RIGHT,
239
+ width: 130,
240
+ };
241
+ }
242
+ export function getNetworkUtilizationColumn() {
243
+ return {
244
+ name: NODES_COLUMNS_IDS.NetworkUtilization,
245
+ header: NODES_COLUMNS_TITLES.NetworkUtilization,
246
+ render: ({ row }) => {
247
+ const { NetworkUtilization, NetworkUtilizationMin = 0, NetworkUtilizationMax = 0 } = row;
248
+ if (!isNumeric(NetworkUtilization)) {
249
+ return EMPTY_DATA_PLACEHOLDER;
250
+ }
251
+ return (_jsx(CellWithPopover, { placement: ['top', 'auto'], fullWidth: true, content: _jsxs(DefinitionList, { responsive: true, children: [_jsx(DefinitionList.Item, { name: i18n('sum'), children: formatPercent(NetworkUtilization) }, 'NetworkUtilization'), _jsx(DefinitionList.Item, { name: i18n('min'), children: formatPercent(NetworkUtilizationMin) }, 'NetworkUtilizationMin'), _jsx(DefinitionList.Item, { name: i18n('max'), children: formatPercent(NetworkUtilizationMax) }, 'NetworkUtilizationMax')] }), children: formatPercent(NetworkUtilization) }));
252
+ },
253
+ align: DataTable.RIGHT,
254
+ width: 110,
255
+ };
256
+ }
257
+ export function getSendThroughputColumn() {
258
+ return {
259
+ name: NODES_COLUMNS_IDS.SendThroughput,
260
+ header: NODES_COLUMNS_TITLES.SendThroughput,
261
+ render: ({ row }) => isNumeric(row.SendThroughput)
262
+ ? bytesToSpeed(row.SendThroughput)
263
+ : EMPTY_DATA_PLACEHOLDER,
264
+ align: DataTable.RIGHT,
265
+ width: 110,
266
+ };
267
+ }
268
+ export function getReceiveThroughputColumn() {
269
+ return {
270
+ name: NODES_COLUMNS_IDS.ReceiveThroughput,
271
+ header: NODES_COLUMNS_TITLES.ReceiveThroughput,
272
+ render: ({ row }) => isNumeric(row.ReceiveThroughput)
273
+ ? bytesToSpeed(row.ReceiveThroughput)
274
+ : EMPTY_DATA_PLACEHOLDER,
275
+ align: DataTable.RIGHT,
276
+ width: 110,
277
+ };
278
+ }
279
+ export function getPingTimeColumn() {
280
+ return {
281
+ name: NODES_COLUMNS_IDS.PingTime,
282
+ header: NODES_COLUMNS_TITLES.PingTime,
283
+ render: ({ row }) => {
284
+ const { PingTimeUs, PingTimeMinUs = 0, PingTimeMaxUs = 0 } = row;
285
+ if (!isNumeric(PingTimeUs)) {
286
+ return EMPTY_DATA_PLACEHOLDER;
287
+ }
288
+ return (_jsx(CellWithPopover, { placement: ['top', 'auto'], fullWidth: true, content: _jsxs(DefinitionList, { responsive: true, children: [_jsx(DefinitionList.Item, { name: i18n('avg'), children: preparePingTimeValue(PingTimeUs) }, 'PingTimeUs'), _jsx(DefinitionList.Item, { name: i18n('min'), children: preparePingTimeValue(PingTimeMinUs) }, 'PingTimeMinUs'), _jsx(DefinitionList.Item, { name: i18n('max'), children: preparePingTimeValue(PingTimeMaxUs) }, 'PingTimeMaxUs')] }), children: preparePingTimeValue(PingTimeUs) }));
289
+ },
290
+ align: DataTable.RIGHT,
291
+ width: 110,
292
+ };
293
+ }
294
+ export function getClockSkewColumn() {
295
+ return {
296
+ name: NODES_COLUMNS_IDS.ClockSkew,
297
+ header: NODES_COLUMNS_TITLES.ClockSkew,
298
+ render: ({ row }) => {
299
+ const { ClockSkewUs, ClockSkewMinUs = 0, ClockSkewMaxUs = 0 } = row;
300
+ if (!isNumeric(ClockSkewUs)) {
301
+ return EMPTY_DATA_PLACEHOLDER;
302
+ }
303
+ return (_jsx(CellWithPopover, { placement: ['top', 'auto'], fullWidth: true, content: _jsxs(DefinitionList, { responsive: true, children: [_jsx(DefinitionList.Item, { name: i18n('avg'), children: prepareClockSkewValue(ClockSkewUs) }, 'ClockSkewUs'), _jsx(DefinitionList.Item, { name: i18n('min'), children: prepareClockSkewValue(ClockSkewMinUs) }, 'ClockSkewMinUs'), _jsx(DefinitionList.Item, { name: i18n('max'), children: prepareClockSkewValue(ClockSkewMaxUs) }, 'ClockSkewMaxUs')] }), children: prepareClockSkewValue(ClockSkewUs) }));
304
+ },
305
+ align: DataTable.RIGHT,
306
+ width: 110,
307
+ };
308
+ }
239
309
  //# sourceMappingURL=columns.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../src/components/nodesColumns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAC,sBAAsB,EAAC,MAAM,kCAAkC,CAAC;AAGxE,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EACH,mBAAmB,EACn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cAAc,GAAG,CAAC,EAAE,cAAc,GAAG,CAAC,EAAC,GAAG,GAAG,CAAC;YAElE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC1B,OAAO,sBAAsB,CAAC;YAClC,CAAC;YAED,OAAO,CACH,KAAC,eAAe,IACZ,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,EAC1B,SAAS,QACT,OAAO,EACH,MAAC,cAAc,IAAC,UAAU,mBACtB,KAAC,cAAc,CAAC,IAAI,IAAqB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,YACrD,qBAAqB,CAAC,WAAW,CAAC,IADb,aAAa,CAEjB,EACtB,KAAC,cAAc,CAAC,IAAI,IAAwB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,YACxD,qBAAqB,CAAC,cAAc,CAAC,IADhB,gBAAgB,CAEpB,EACtB,KAAC,cAAc,CAAC,IAAI,IAAwB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,YACxD,qBAAqB,CAAC,cAAc,CAAC,IADhB,gBAAgB,CAEpB,IACT,YAGpB,qBAAqB,CAAC,WAAW,CAAC,GACrB,CACrB,CAAC;QACN,CAAC;QACD,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,KAAK,EAAE,GAAG;KACb,CAAC;AACN,CAAC"}
@@ -1,9 +1,8 @@
1
- import type { NodesRequiredField } from '../../types/api/nodes';
1
+ import type { NodesGroupByField, NodesRequiredField, NodesSortValue } from '../../types/api/nodes';
2
2
  import type { ValueOf } from '../../types/common';
3
3
  export declare const NODES_COLUMNS_WIDTH_LS_KEY = "nodesTableColumnsWidth";
4
4
  export declare const NODES_COLUMNS_IDS: {
5
5
  readonly NodeId: "NodeId";
6
- readonly SystemState: "SystemState";
7
6
  readonly Host: "Host";
8
7
  readonly Database: "Database";
9
8
  readonly NodeName: "NodeName";
@@ -18,8 +17,13 @@ export declare const NODES_COLUMNS_IDS: {
18
17
  readonly LoadAverage: "LoadAverage";
19
18
  readonly Load: "Load";
20
19
  readonly DiskSpaceUsage: "DiskSpaceUsage";
21
- readonly SharedCacheUsage: "SharedCacheUsage";
22
20
  readonly TotalSessions: "TotalSessions";
21
+ readonly Connections: "Connections";
22
+ readonly NetworkUtilization: "NetworkUtilization";
23
+ readonly SendThroughput: "SendThroughput";
24
+ readonly ReceiveThroughput: "ReceiveThroughput";
25
+ readonly PingTime: "PingTime";
26
+ readonly ClockSkew: "ClockSkew";
23
27
  readonly Missing: "Missing";
24
28
  readonly Tablets: "Tablets";
25
29
  readonly PDisks: "PDisks";
@@ -27,7 +31,6 @@ export declare const NODES_COLUMNS_IDS: {
27
31
  export type NodesColumnId = ValueOf<typeof NODES_COLUMNS_IDS>;
28
32
  export declare const NODES_COLUMNS_TITLES: {
29
33
  readonly NodeId: string;
30
- readonly SystemState: string;
31
34
  readonly Host: string;
32
35
  readonly Database: string;
33
36
  readonly NodeName: string;
@@ -42,10 +45,18 @@ export declare const NODES_COLUMNS_TITLES: {
42
45
  readonly LoadAverage: string;
43
46
  readonly Load: string;
44
47
  readonly DiskSpaceUsage: string;
45
- readonly SharedCacheUsage: string;
46
48
  readonly TotalSessions: string;
49
+ readonly Connections: string;
50
+ readonly NetworkUtilization: string;
51
+ readonly SendThroughput: string;
52
+ readonly ReceiveThroughput: string;
53
+ readonly PingTime: string;
54
+ readonly ClockSkew: string;
47
55
  readonly Missing: string;
48
56
  readonly Tablets: string;
49
57
  readonly PDisks: string;
50
58
  };
59
+ export declare function getNodesGroupByFieldTitle(groupByField: NodesGroupByField): string;
51
60
  export declare const NODES_COLUMNS_TO_DATA_FIELDS: Record<NodesColumnId, NodesRequiredField[]>;
61
+ export declare function getNodesColumnSortField(columnId?: string): NodesSortValue | undefined;
62
+ export declare function isSortableNodesColumn(columnId: string): boolean;
@@ -2,7 +2,6 @@ import i18n from './i18n';
2
2
  export const NODES_COLUMNS_WIDTH_LS_KEY = 'nodesTableColumnsWidth';
3
3
  export const NODES_COLUMNS_IDS = {
4
4
  NodeId: 'NodeId',
5
- SystemState: 'SystemState',
6
5
  Host: 'Host',
7
6
  Database: 'Database',
8
7
  NodeName: 'NodeName',
@@ -17,8 +16,13 @@ export const NODES_COLUMNS_IDS = {
17
16
  LoadAverage: 'LoadAverage',
18
17
  Load: 'Load',
19
18
  DiskSpaceUsage: 'DiskSpaceUsage',
20
- SharedCacheUsage: 'SharedCacheUsage',
21
19
  TotalSessions: 'TotalSessions',
20
+ Connections: 'Connections',
21
+ NetworkUtilization: 'NetworkUtilization',
22
+ SendThroughput: 'SendThroughput',
23
+ ReceiveThroughput: 'ReceiveThroughput',
24
+ PingTime: 'PingTime',
25
+ ClockSkew: 'ClockSkew',
22
26
  Missing: 'Missing',
23
27
  Tablets: 'Tablets',
24
28
  PDisks: 'PDisks',
@@ -29,9 +33,6 @@ export const NODES_COLUMNS_TITLES = {
29
33
  get NodeId() {
30
34
  return i18n('node-id');
31
35
  },
32
- get SystemState() {
33
- return i18n('system-state');
34
- },
35
36
  get Host() {
36
37
  return i18n('host');
37
38
  },
@@ -74,12 +75,27 @@ export const NODES_COLUMNS_TITLES = {
74
75
  get DiskSpaceUsage() {
75
76
  return i18n('disk-usage');
76
77
  },
77
- get SharedCacheUsage() {
78
- return i18n('caches');
79
- },
80
78
  get TotalSessions() {
81
79
  return i18n('sessions');
82
80
  },
81
+ get Connections() {
82
+ return i18n('connections');
83
+ },
84
+ get NetworkUtilization() {
85
+ return i18n('utilization');
86
+ },
87
+ get SendThroughput() {
88
+ return i18n('send');
89
+ },
90
+ get ReceiveThroughput() {
91
+ return i18n('receive');
92
+ },
93
+ get PingTime() {
94
+ return i18n('ping');
95
+ },
96
+ get ClockSkew() {
97
+ return i18n('skew');
98
+ },
83
99
  get Missing() {
84
100
  return i18n('missing');
85
101
  },
@@ -90,11 +106,60 @@ export const NODES_COLUMNS_TITLES = {
90
106
  return i18n('pdisks');
91
107
  },
92
108
  };
109
+ const NODES_COLUMNS_GROUP_BY_TITLES = {
110
+ get NodeId() {
111
+ return i18n('node-id');
112
+ },
113
+ get Host() {
114
+ return i18n('host');
115
+ },
116
+ get NodeName() {
117
+ return i18n('node-name');
118
+ },
119
+ get Database() {
120
+ return i18n('database');
121
+ },
122
+ get DiskSpaceUsage() {
123
+ return i18n('disk-usage');
124
+ },
125
+ get DC() {
126
+ return i18n('dc');
127
+ },
128
+ get Rack() {
129
+ return i18n('rack');
130
+ },
131
+ get Missing() {
132
+ return i18n('missing');
133
+ },
134
+ get Uptime() {
135
+ return i18n('uptime');
136
+ },
137
+ get Version() {
138
+ return i18n('version');
139
+ },
140
+ get SystemState() {
141
+ return i18n('system-state');
142
+ },
143
+ get ConnectStatus() {
144
+ return i18n('connect-status');
145
+ },
146
+ get NetworkUtilization() {
147
+ return i18n('network-utilization');
148
+ },
149
+ get ClockSkew() {
150
+ return i18n('clock-skew');
151
+ },
152
+ get PingTime() {
153
+ return i18n('ping-time');
154
+ },
155
+ };
156
+ export function getNodesGroupByFieldTitle(groupByField) {
157
+ return NODES_COLUMNS_GROUP_BY_TITLES[groupByField];
158
+ }
93
159
  // Although columns ids mostly similar to backend fields, there might be some difference
94
160
  // Also for some columns we may use more than one field
95
161
  export const NODES_COLUMNS_TO_DATA_FIELDS = {
96
162
  NodeId: ['NodeId'],
97
- SystemState: ['SystemState'],
98
163
  Host: ['Host', 'Rack', 'Database', 'SystemState'],
99
164
  Database: ['Database'],
100
165
  NodeName: ['NodeName'],
@@ -102,17 +167,55 @@ export const NODES_COLUMNS_TO_DATA_FIELDS = {
102
167
  Rack: ['Rack'],
103
168
  Version: ['Version'],
104
169
  Uptime: ['Uptime'],
105
- Memory: ['Memory'],
170
+ Memory: ['Memory', 'MemoryDetailed'],
106
171
  RAM: ['Memory'],
107
172
  Pools: ['CPU'],
108
173
  CPU: ['CPU'],
109
174
  LoadAverage: ['LoadAverage'],
110
175
  Load: ['LoadAverage'],
111
176
  DiskSpaceUsage: ['DiskSpaceUsage'],
112
- SharedCacheUsage: ['SystemState'],
113
177
  TotalSessions: ['SystemState'],
178
+ Connections: ['Connections'],
179
+ NetworkUtilization: ['NetworkUtilization'],
180
+ SendThroughput: ['SendThroughput'],
181
+ ReceiveThroughput: ['ReceiveThroughput'],
182
+ PingTime: ['PingTime'],
183
+ ClockSkew: ['ClockSkew'],
114
184
  Missing: ['Missing'],
115
185
  Tablets: ['Tablets', 'Database'],
116
186
  PDisks: ['PDisks'],
117
187
  };
188
+ const NODES_COLUMNS_TO_SORT_FIELDS = {
189
+ NodeId: 'NodeId',
190
+ Host: 'Host',
191
+ Database: 'Database',
192
+ NodeName: 'NodeName',
193
+ DC: 'DC',
194
+ Rack: 'Rack',
195
+ Version: 'Version',
196
+ Uptime: 'Uptime',
197
+ Memory: 'Memory',
198
+ RAM: 'Memory',
199
+ CPU: 'CPU',
200
+ Pools: 'CPU',
201
+ LoadAverage: 'LoadAverage',
202
+ Load: 'LoadAverage',
203
+ DiskSpaceUsage: 'DiskSpaceUsage',
204
+ TotalSessions: undefined,
205
+ Connections: 'Connections',
206
+ NetworkUtilization: 'NetworkUtilization',
207
+ SendThroughput: 'SendThroughput',
208
+ ReceiveThroughput: 'ReceiveThroughput',
209
+ PingTime: 'PingTime',
210
+ ClockSkew: 'ClockSkew',
211
+ Missing: 'Missing',
212
+ Tablets: undefined,
213
+ PDisks: undefined,
214
+ };
215
+ export function getNodesColumnSortField(columnId) {
216
+ return NODES_COLUMNS_TO_SORT_FIELDS[columnId];
217
+ }
218
+ export function isSortableNodesColumn(columnId) {
219
+ return Boolean(getNodesColumnSortField(columnId));
220
+ }
118
221
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/nodesColumns/constants.ts"],"names":[],"mappings":"AAGA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,MAAM,EAAE,QAAQ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pB,CAAC;AAEF,MAAM,UAAU,uBAAuB,CAAC,QAAiB;IACrD,OAAO,4BAA4B,CAAC,QAAyB,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,QAAgB;IAClD,OAAO,OAAO,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "node-id": "Node ID",
3
- "system-state": "System State",
4
3
  "host": "Host",
5
4
  "database": "Database",
6
5
  "node-name": "Node Name",
@@ -8,18 +7,32 @@
8
7
  "rack": "Rack",
9
8
  "version": "Version",
10
9
  "uptime": "Uptime",
11
- "memory": "Memory",
10
+ "memory": "Detailed Memory",
12
11
  "ram": "RAM",
13
12
  "cpu": "CPU",
14
13
  "pools": "Pools",
15
- "disk-usage": "Disk usage",
14
+ "disk-usage": "Disk Usage",
16
15
  "tablets": "Tablets",
17
16
  "load-average": "Load Average",
18
17
  "load": "Load",
19
- "caches": "Caches",
20
18
  "sessions": "Sessions",
21
19
  "missing": "Missing",
22
20
  "pdisks": "PDisks",
23
21
  "field_memory-used": "Memory used",
24
- "field_memory-limit": "Memory limit"
22
+ "field_memory-limit": "Memory limit",
23
+ "system-state": "System State",
24
+ "connect-status": "Connect Status",
25
+ "utilization": "Utilization",
26
+ "network-utilization": "Network Utilization",
27
+ "connections": "Connections",
28
+ "clock-skew": "Clock Skew",
29
+ "skew": "Skew",
30
+ "ping-time": "Ping Time",
31
+ "ping": "Ping",
32
+ "send": "Send",
33
+ "receive": "Receive",
34
+ "max": "Max",
35
+ "min": "Min",
36
+ "avg": "Avg",
37
+ "sum": "Sum"
25
38
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "missing" | "version" | "host" | "tablets" | "cpu" | "memory" | "database" | "uptime" | "load" | "node-id" | "system-state" | "node-name" | "dc" | "rack" | "ram" | "pools" | "disk-usage" | "load-average" | "caches" | "sessions" | "pdisks" | "field_memory-used" | "field_memory-limit", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "database" | "missing" | "version" | "host" | "tablets" | "cpu" | "memory" | "uptime" | "load" | "min" | "ping" | "max" | "node-id" | "node-name" | "dc" | "rack" | "ram" | "pools" | "disk-usage" | "load-average" | "sessions" | "pdisks" | "field_memory-used" | "field_memory-limit" | "system-state" | "connect-status" | "utilization" | "network-utilization" | "connections" | "clock-skew" | "skew" | "ping-time" | "send" | "receive" | "avg" | "sum", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -0,0 +1,2 @@
1
+ export declare function preparePingTimeValue(value: string | number): string;
2
+ export declare function prepareClockSkewValue(value: string | number): string;
@@ -0,0 +1,11 @@
1
+ import { formatToMs, parseUsToMs } from '../../utils/timeParsers';
2
+ export function preparePingTimeValue(value) {
3
+ return formatToMs(parseUsToMs(value, 1));
4
+ }
5
+ export function prepareClockSkewValue(value) {
6
+ const valueMs = parseUsToMs(value, 1);
7
+ // Add + sign to positive values, do not add + to values that displayed as 0
8
+ const sign = Number(valueMs) <= 0 ? '' : '+';
9
+ return sign + formatToMs(valueMs);
10
+ }
11
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/nodesColumns/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAEhE,MAAM,UAAU,oBAAoB,CAAC,KAAsB;IACvD,OAAO,UAAU,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAAsB;IACxD,MAAM,OAAO,GAAG,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IACtC,4EAA4E;IAC5E,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAE7C,OAAO,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC"}
@@ -13,9 +13,9 @@ export interface AppProps {
13
13
  declare function App({ store, history, singleClusterMode, children, userSettings, }: AppProps): import("react/jsx-runtime").JSX.Element;
14
14
  declare const _default: import("react-redux").ConnectedComponent<typeof App, {
15
15
  history: History;
16
+ children?: React.ReactNode;
16
17
  userSettings?: YDBEmbeddedUISettings;
17
18
  store: Store;
18
- children?: React.ReactNode;
19
19
  context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null>;
20
20
  }>;
21
21
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as NiceModal from '@ebay/nice-modal-react';
2
3
  import { ThemeProvider } from '@gravity-ui/uikit';
3
4
  import { HelmetProvider } from 'react-helmet-async';
4
5
  import { Provider } from 'react-redux';
@@ -10,7 +11,7 @@ import { componentsRegistry as defaultComponentsRegistry } from '../../component
10
11
  import { THEME_KEY } from '../../utils/constants';
11
12
  import { useSetting } from '../../utils/hooks';
12
13
  export function Providers({ store, history, componentsRegistry = defaultComponentsRegistry, children, }) {
13
- return (_jsx(HelmetProvider, { children: _jsx(Provider, { store: store, children: _jsx(Router, { history: history, children: _jsx(QueryParamProvider, { adapter: ReactRouter5Adapter, children: _jsx(Theme, { children: _jsx(ComponentsProvider, { registry: componentsRegistry, children: children }) }) }) }) }) }));
14
+ return (_jsx(HelmetProvider, { children: _jsx(Provider, { store: store, children: _jsx(Router, { history: history, children: _jsx(QueryParamProvider, { adapter: ReactRouter5Adapter, children: _jsx(Theme, { children: _jsx(NiceModal.Provider, { children: _jsx(ComponentsProvider, { registry: componentsRegistry, children: children }) }) }) }) }) }) }));
14
15
  }
15
16
  function Theme({ children }) {
16
17
  const [theme] = useSetting(THEME_KEY);
@@ -1 +1 @@
1
- {"version":3,"file":"Providers.js","sourceRoot":"","sources":["../../../src/containers/App/Providers.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAE7E,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,kBAAkB,IAAI,yBAAyB,EAAC,MAAM,wDAAwD,CAAC;AAEvH,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAS7C,MAAM,UAAU,SAAS,CAAC,EACtB,KAAK,EACL,OAAO,EACP,kBAAkB,GAAG,yBAAyB,EAC9C,QAAQ,GACK;IACb,OAAO,CACH,KAAC,cAAc,cACX,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAClB,KAAC,MAAM,IAAC,OAAO,EAAE,OAAO,YACpB,KAAC,kBAAkB,IAAC,OAAO,EAAE,mBAAmB,YAC5C,KAAC,KAAK,cACF,KAAC,kBAAkB,IAAC,QAAQ,EAAE,kBAAkB,YAC3C,QAAQ,GACQ,GACjB,GACS,GAChB,GACF,GACE,CACpB,CAAC;AACN,CAAC;AAED,SAAS,KAAK,CAAC,EAAC,QAAQ,EAA8B;IAClD,MAAM,CAAC,KAAK,CAAC,GAAG,UAAU,CAAqB,SAAS,CAAC,CAAC;IAE1D,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAiB,CAAC;AACnE,CAAC"}
1
+ {"version":3,"file":"Providers.js","sourceRoot":"","sources":["../../../src/containers/App/Providers.tsx"],"names":[],"mappings":";AAEA,OAAO,KA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
2
  import type { MenuItem } from '@gravity-ui/navigation';
3
+ import type { IconData } from '@gravity-ui/uikit';
3
4
  import './AsideNavigation.scss';
4
5
  export interface AsideNavigationProps {
5
6
  settings: JSX.Element;
@@ -8,6 +9,7 @@ export interface AsideNavigationProps {
8
9
  content: React.ReactNode;
9
10
  user?: {
10
11
  login: string;
12
+ icon?: IconData;
11
13
  };
12
14
  }
13
15
  export declare function AsideNavigation(props: AsideNavigationProps): import("react/jsx-runtime").JSX.Element;
@@ -12,8 +12,9 @@ import ydbLogoIcon from '../../assets/icons/ydb.svg';
12
12
  import './AsideNavigation.scss';
13
13
  const b = cn('kv-navigation');
14
14
  function UserDropdown({ isCompact, popupAnchor, user, children }) {
15
+ var _a;
15
16
  const [isUserDropdownVisible, setIsUserDropdownVisible] = React.useState(false);
16
- const iconData = user ? Person : userSecret;
17
+ const iconData = user ? (_a = user.icon) !== null && _a !== void 0 ? _a : Person : userSecret;
17
18
  return (_jsx(FooterItem, { compact: isCompact, item: {
18
19
  id: 'user-popup',
19
20
  title: (user === null || user === void 0 ? void 0 : user.login) ? user.login : i18n('navigation-item.account'),
@@ -1 +1 @@
1
- {"version":3,"file":"AsideNavigation.js","sourceRoot":"","sources":["../../../src/containers/AsideNavigation/AsideNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAA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W,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,YACpE,KAAK,CAAC,eAAe,GACX,IACF,CACpB,EACD,UAAU,EAAE;gBACR;oBACI,EAAE,EAAE,eAAe;oBACnB,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;oBAC5C,OAAO,EAAE,KAAK,CAAC,QAAQ;iBAC1B;aACJ,EACD,YAAY,EAAE,GAAG,EAAE;gBACf,eAAe,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC,GACH,GACW,CACpB,CAAC;AACN,CAAC"}
@@ -14,7 +14,7 @@ export declare const COLUMNS_NAMES: {
14
14
  readonly DESCRIPTION: "description";
15
15
  readonly BALANCER: "balancer";
16
16
  };
17
- export declare const DEFAULT_COLUMNS: ("status" | "hosts" | "versions" | "balancer" | "nodes" | "storage" | "tenants" | "service" | "load" | "owner" | "title")[];
17
+ export declare const DEFAULT_COLUMNS: ("status" | "storage" | "hosts" | "versions" | "balancer" | "nodes" | "tenants" | "service" | "load" | "owner" | "title")[];
18
18
  export declare const COLUMNS_TITLES: {
19
19
  readonly title: "Cluster";
20
20
  readonly versions: "Versions";