ydb-embedded-ui 6.33.0 → 6.34.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) 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/PDiskInfo/i18n/index.d.ts +1 -1
  23. package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
  24. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  25. package/dist/components/nodesColumns/columns.d.ts +4 -7
  26. package/dist/components/nodesColumns/columns.js +9 -17
  27. package/dist/components/nodesColumns/columns.js.map +1 -1
  28. package/dist/components/nodesColumns/constants.d.ts +4 -5
  29. package/dist/components/nodesColumns/constants.js +78 -11
  30. package/dist/components/nodesColumns/constants.js.map +1 -1
  31. package/dist/components/nodesColumns/i18n/en.json +8 -5
  32. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  33. package/dist/containers/App/App.d.ts +1 -1
  34. package/dist/containers/App/Providers.js +2 -1
  35. package/dist/containers/App/Providers.js.map +1 -1
  36. package/dist/containers/AsideNavigation/AsideNavigation.d.ts +2 -0
  37. package/dist/containers/AsideNavigation/AsideNavigation.js +2 -1
  38. package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
  39. package/dist/containers/Clusters/constants.d.ts +1 -1
  40. package/dist/containers/Nodes/columns/columns.js +2 -2
  41. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  42. package/dist/containers/Nodes/columns/constants.js +2 -2
  43. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  44. package/dist/containers/Nodes/getNodes.js +4 -5
  45. package/dist/containers/Nodes/getNodes.js.map +1 -1
  46. package/dist/containers/Storage/StorageGroups/columns/columns.js +3 -3
  47. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
  48. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +3 -7
  49. package/dist/containers/Storage/StorageGroups/columns/constants.js +54 -10
  50. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  51. package/dist/containers/Storage/StorageGroups/getGroups.js +3 -5
  52. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  53. package/dist/containers/Storage/StorageNodes/columns/columns.js +2 -3
  54. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  55. package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -2
  56. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  57. package/dist/containers/Storage/StorageNodes/getNodes.js +4 -5
  58. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  59. package/dist/containers/Storage/utils/index.d.ts +1 -1
  60. package/dist/containers/Tablets/i18n/index.d.ts +1 -1
  61. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +3 -1
  62. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
  63. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -7
  64. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  65. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  66. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +3 -1
  67. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  68. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +5 -1
  69. package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
  70. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +5 -2
  71. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  72. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.d.ts +7 -0
  73. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js +40 -0
  74. package/dist/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.js.map +1 -0
  75. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +1 -1
  76. package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
  77. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +4 -1
  78. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  79. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +8 -1
  80. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -1
  81. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +3 -1
  82. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
  83. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -27
  84. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +32 -51
  85. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  86. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +1 -1
  87. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  88. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +9 -3
  89. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +23 -12
  90. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
  91. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +8 -3
  92. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js.map +1 -1
  93. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +1 -1
  94. package/dist/containers/Tenant/utils/newSQLQueryActions.js +2 -3
  95. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -1
  96. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -0
  97. package/dist/containers/Tenant/utils/schemaActions.js +59 -40
  98. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  99. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +1 -1
  100. package/dist/containers/UserSettings/i18n/en.json +2 -0
  101. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  102. package/dist/containers/UserSettings/settings.d.ts +1 -0
  103. package/dist/containers/UserSettings/settings.js +7 -2
  104. package/dist/containers/UserSettings/settings.js.map +1 -1
  105. package/dist/services/api.d.ts +4 -0
  106. package/dist/services/api.js +11 -0
  107. package/dist/services/api.js.map +1 -1
  108. package/dist/services/settings.d.ts +1 -0
  109. package/dist/services/settings.js +2 -1
  110. package/dist/services/settings.js.map +1 -1
  111. package/dist/store/configureStore.d.ts +25 -11
  112. package/dist/store/defaultStore.d.ts +12 -5
  113. package/dist/store/reducers/capabilities/capabilities.d.ts +48 -8
  114. package/dist/store/reducers/cluster/cluster.d.ts +36 -6
  115. package/dist/store/reducers/executeQuery.d.ts +41 -51
  116. package/dist/store/reducers/executeQuery.js +64 -160
  117. package/dist/store/reducers/executeQuery.js.map +1 -1
  118. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +120 -20
  119. package/dist/store/reducers/index.d.ts +19 -10
  120. package/dist/store/reducers/node/selectors.d.ts +6 -1
  121. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  122. package/dist/store/reducers/nodesList.d.ts +6 -1
  123. package/dist/store/reducers/planToSvg.d.ts +8 -0
  124. package/dist/store/reducers/planToSvg.js +21 -0
  125. package/dist/store/reducers/planToSvg.js.map +1 -0
  126. package/dist/store/reducers/queryActions/queryActions.d.ts +0 -27
  127. package/dist/store/reducers/queryActions/queryActions.js +1 -1
  128. package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
  129. package/dist/store/reducers/schema/schema.d.ts +22 -7
  130. package/dist/store/reducers/schema/schema.js +16 -20
  131. package/dist/store/reducers/schema/schema.js.map +1 -1
  132. package/dist/store/reducers/tablets.d.ts +30 -5
  133. package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
  134. package/dist/store/reducers/tenants/selectors.d.ts +54 -9
  135. package/dist/store/reducers/tooltip.d.ts +1 -1
  136. package/dist/store/reducers/topic.d.ts +90 -15
  137. package/dist/store/reducers/trace.d.ts +1 -1
  138. package/dist/store/reducers/trace.js +1 -1
  139. package/dist/store/reducers/trace.js.map +1 -1
  140. package/dist/types/api/nodes.d.ts +18 -4
  141. package/dist/types/api/nodes.js.map +1 -1
  142. package/dist/types/store/executeQuery.d.ts +3 -6
  143. package/dist/types/store/executeQuery.js.map +1 -1
  144. package/dist/utils/constants.d.ts +1 -0
  145. package/dist/utils/constants.js +1 -0
  146. package/dist/utils/constants.js.map +1 -1
  147. package/dist/utils/hooks/withConfirmation/i18n/en.json +4 -0
  148. package/dist/utils/hooks/withConfirmation/i18n/index.d.ts +2 -0
  149. package/dist/utils/hooks/withConfirmation/i18n/index.js +5 -0
  150. package/dist/utils/hooks/withConfirmation/i18n/index.js.map +1 -0
  151. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.d.ts +3 -0
  152. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js +53 -0
  153. package/dist/utils/hooks/withConfirmation/useChangeInputWithConfirmation.js.map +1 -0
  154. package/dist/utils/nodes.d.ts +1 -4
  155. package/dist/utils/nodes.js +0 -36
  156. package/dist/utils/nodes.js.map +1 -1
  157. package/dist/utils/query.d.ts +1 -1
  158. package/dist/utils/storage.d.ts +1 -3
  159. package/dist/utils/storage.js +0 -17
  160. package/dist/utils/storage.js.map +1 -1
  161. package/package.json +2 -1
@@ -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,7 +16,6 @@ export const NODES_COLUMNS_IDS = {
17
16
  LoadAverage: 'LoadAverage',
18
17
  Load: 'Load',
19
18
  DiskSpaceUsage: 'DiskSpaceUsage',
20
- SharedCacheUsage: 'SharedCacheUsage',
21
19
  TotalSessions: 'TotalSessions',
22
20
  Missing: 'Missing',
23
21
  Tablets: 'Tablets',
@@ -29,9 +27,6 @@ export const NODES_COLUMNS_TITLES = {
29
27
  get NodeId() {
30
28
  return i18n('node-id');
31
29
  },
32
- get SystemState() {
33
- return i18n('system-state');
34
- },
35
30
  get Host() {
36
31
  return i18n('host');
37
32
  },
@@ -74,9 +69,6 @@ export const NODES_COLUMNS_TITLES = {
74
69
  get DiskSpaceUsage() {
75
70
  return i18n('disk-usage');
76
71
  },
77
- get SharedCacheUsage() {
78
- return i18n('caches');
79
- },
80
72
  get TotalSessions() {
81
73
  return i18n('sessions');
82
74
  },
@@ -90,11 +82,60 @@ export const NODES_COLUMNS_TITLES = {
90
82
  return i18n('pdisks');
91
83
  },
92
84
  };
85
+ const NODES_COLUMNS_GROUP_BY_TITLES = {
86
+ get NodeId() {
87
+ return i18n('node-id');
88
+ },
89
+ get Host() {
90
+ return i18n('host');
91
+ },
92
+ get NodeName() {
93
+ return i18n('node-name');
94
+ },
95
+ get Database() {
96
+ return i18n('database');
97
+ },
98
+ get DiskSpaceUsage() {
99
+ return i18n('disk-usage');
100
+ },
101
+ get DC() {
102
+ return i18n('dc');
103
+ },
104
+ get Rack() {
105
+ return i18n('rack');
106
+ },
107
+ get Missing() {
108
+ return i18n('missing');
109
+ },
110
+ get Uptime() {
111
+ return i18n('uptime');
112
+ },
113
+ get Version() {
114
+ return i18n('version');
115
+ },
116
+ get SystemState() {
117
+ return i18n('system-state');
118
+ },
119
+ get ConnectStatus() {
120
+ return i18n('connect-status');
121
+ },
122
+ get NetworkUtilization() {
123
+ return i18n('network-utilization');
124
+ },
125
+ get ClockSkew() {
126
+ return i18n('clock-skew');
127
+ },
128
+ get PingTime() {
129
+ return i18n('ping-time');
130
+ },
131
+ };
132
+ export function getNodesGroupByFieldTitle(groupByField) {
133
+ return NODES_COLUMNS_GROUP_BY_TITLES[groupByField];
134
+ }
93
135
  // Although columns ids mostly similar to backend fields, there might be some difference
94
136
  // Also for some columns we may use more than one field
95
137
  export const NODES_COLUMNS_TO_DATA_FIELDS = {
96
138
  NodeId: ['NodeId'],
97
- SystemState: ['SystemState'],
98
139
  Host: ['Host', 'Rack', 'Database', 'SystemState'],
99
140
  Database: ['Database'],
100
141
  NodeName: ['NodeName'],
@@ -102,17 +143,43 @@ export const NODES_COLUMNS_TO_DATA_FIELDS = {
102
143
  Rack: ['Rack'],
103
144
  Version: ['Version'],
104
145
  Uptime: ['Uptime'],
105
- Memory: ['Memory'],
146
+ Memory: ['Memory', 'MemoryDetailed'],
106
147
  RAM: ['Memory'],
107
148
  Pools: ['CPU'],
108
149
  CPU: ['CPU'],
109
150
  LoadAverage: ['LoadAverage'],
110
151
  Load: ['LoadAverage'],
111
152
  DiskSpaceUsage: ['DiskSpaceUsage'],
112
- SharedCacheUsage: ['SystemState'],
113
153
  TotalSessions: ['SystemState'],
114
154
  Missing: ['Missing'],
115
155
  Tablets: ['Tablets', 'Database'],
116
156
  PDisks: ['PDisks'],
117
157
  };
158
+ const NODES_COLUMNS_TO_SORT_FIELDS = {
159
+ NodeId: 'NodeId',
160
+ Host: 'Host',
161
+ Database: 'Database',
162
+ NodeName: 'NodeName',
163
+ DC: 'DC',
164
+ Rack: 'Rack',
165
+ Version: 'Version',
166
+ Uptime: 'Uptime',
167
+ Memory: 'Memory',
168
+ RAM: 'Memory',
169
+ CPU: 'CPU',
170
+ Pools: 'CPU',
171
+ LoadAverage: 'LoadAverage',
172
+ Load: 'LoadAverage',
173
+ DiskSpaceUsage: 'DiskSpaceUsage',
174
+ TotalSessions: undefined,
175
+ Missing: 'Missing',
176
+ Tablets: undefined,
177
+ PDisks: undefined,
178
+ };
179
+ export function getNodesColumnSortField(columnId) {
180
+ return NODES_COLUMNS_TO_SORT_FIELDS[columnId];
181
+ }
182
+ export function isSortableNodesColumn(columnId) {
183
+ return Boolean(getNodesColumnSortField(columnId));
184
+ }
118
185
  //# 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;IAChB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EA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EAAE,SAAS;CACpB,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,22 @@
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
+ "network-utilization": "Network Utilization",
26
+ "clock-skew": "Clock Skew",
27
+ "ping-time": "Ping Time"
25
28
  }
@@ -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" | "node-id" | "node-name" | "dc" | "rack" | "ram" | "pools" | "disk-usage" | "load-average" | "sessions" | "pdisks" | "field_memory-used" | "field_memory-limit" | "system-state" | "connect-status" | "network-utilization" | "clock-skew" | "ping-time", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -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":["../../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nE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
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;A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F,KAAC,YAAY,IAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,YACpE,KAAK,CAAC,eAAe,GACX,IACF,CACpB,EACD,UAAU,EAAE;gBACR;oBACI,EAAE,EAAE,eAAe;oBACnB,OAAO,EAAE,YAAY,KAAK,KAAK,CAAC,YAAY;oBAC5C,OAAO,EAAE,KAAK,CAAC,QAAQ;iBAC1B;aACJ,EACD,YAAY,EAAE,GAAG,EAAE;gBACf,eAAe,CAAC,SAAS,CAAC,CAAC;YAC/B,CAAC,GACH,GACW,CACpB,CAAC;AACN,CAAC"}
@@ -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";
@@ -1,5 +1,5 @@
1
1
  import { getCpuColumn, getDataCenterColumn, getHostColumn, getLoadAverageColumn, getMemoryColumn, getNodeIdColumn, getNodeNameColumn, getPoolsColumn, getRAMColumn, getRackColumn, getTabletsColumn, getUptimeColumn, getVersionColumn, } from '../../../components/nodesColumns/columns';
2
- import { isSortableNodesProperty } from '../../../utils/nodes';
2
+ import { isSortableNodesColumn } from '../../../components/nodesColumns/constants';
3
3
  export function getNodesColumns(params) {
4
4
  const columns = [
5
5
  getNodeIdColumn(),
@@ -17,7 +17,7 @@ export function getNodesColumns(params) {
17
17
  getTabletsColumn(params),
18
18
  ];
19
19
  return columns.map((column) => {
20
- return { ...column, sortable: isSortableNodesProperty(column.name) };
20
+ return { ...column, sortable: isSortableNodesColumn(column.name) };
21
21
  });
22
22
  }
23
23
  //# sourceMappingURL=columns.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/columns.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACnB,MAAM,0CAA0C,CAAC;AAGlD,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAG7D,MAAM,UAAU,eAAe,CAAC,MAA6B;IACzD,MAAM,OAAO,GAAG;QACZ,eAAe,EAAuB;QACtC,aAAa,CAAsB,MAAM,CAAC;QAC1C,iBAAiB,EAAuB;QACxC,mBAAmB,EAAuB;QAC1C,aAAa,EAAuB;QACpC,gBAAgB,EAAuB;QACvC,eAAe,EAAuB;QACtC,eAAe,EAAuB;QACtC,YAAY,EAAuB;QACnC,cAAc,EAAuB;QACrC,YAAY,EAAuB;QACnC,oBAAoB,EAAuB;QAC3C,gBAAgB,CAAsB,MAAM,CAAC;KAChD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,OAAO,EAAC,GAAG,MAAM,EAAE,QAAQ,EAAE,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/columns.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAC,qBAAqB,EAAC,MAAM,4CAA4C,CAAC;AAKjF,MAAM,UAAU,eAAe,CAAC,MAA6B;IACzD,MAAM,OAAO,GAAG;QACZ,eAAe,EAAuB;QACtC,aAAa,CAAsB,MAAM,CAAC;QAC1C,iBAAiB,EAAuB;QACxC,mBAAmB,EAAuB;QAC1C,aAAa,EAAuB;QACpC,gBAAgB,EAAuB;QACvC,eAAe,EAAuB;QACtC,eAAe,EAAuB;QACtC,YAAY,EAAuB;QACnC,cAAc,EAAuB;QACrC,YAAY,EAAuB;QACnC,oBAAoB,EAAuB;QAC3C,gBAAgB,CAAsB,MAAM,CAAC;KAChD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,OAAO,EAAC,GAAG,MAAM,EAAE,QAAQ,EAAE,qBAAqB,CAAC,MAAM,CAAC,IAAI,CAAC,EAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1,4 +1,4 @@
1
- import { NODES_COLUMNS_TITLES } from '../../../components/nodesColumns/constants';
1
+ import { getNodesGroupByFieldTitle } from '../../../components/nodesColumns/constants';
2
2
  export const NODES_TABLE_SELECTED_COLUMNS_LS_KEY = 'nodesTableSelectedColumns';
3
3
  export const DEFAULT_NODES_COLUMNS = [
4
4
  'NodeId',
@@ -32,7 +32,7 @@ export function getNodesGroupByOptions(withSystemStateGroupBy) {
32
32
  return getAvailableNodesGroupByParams(withSystemStateGroupBy).map((param) => {
33
33
  return {
34
34
  value: param,
35
- content: NODES_COLUMNS_TITLES[param],
35
+ content: getNodesGroupByFieldTitle(param),
36
36
  };
37
37
  });
38
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,oBAAoB,EAAC,MAAM,4CAA4C,CAAC;AAIhF,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAoB;IAClD,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,aAAa;IACb,SAAS;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAElE,MAAM,yBAAyB,GAAG;IAC9B,aAAa;IACb,MAAM;IACN,IAAI;IACJ,MAAM;IACN,UAAU;IACV,SAAS;IACT,QAAQ;CAC4B,CAAC;AAEzC,SAAS,8BAA8B,CAAC,sBAAgC;IACpE,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC1B,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,aAAa,CAAC,CAAC;IAChF,CAAC;IAED,OAAO,yBAAyB,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,sBAAgC;IACnE,OAAO,8BAA8B,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACxE,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC;SACvC,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,YAAqB,EACrB,sBAAgC;IAEhC,MAAM,eAAe,GAAG,8BAA8B,CAAC,sBAAsB,CAAC,CAAC;IAE/E,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,KAAK,YAAY,CAAC,CAAC;AACjF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,yBAAyB,EAAC,MAAM,4CAA4C,CAAC;AAIrF,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E,MAAM,CAAC,MAAM,qBAAqB,GAAoB;IAClD,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,aAAa;IACb,SAAS;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAElE,MAAM,yBAAyB,GAAG;IAC9B,aAAa;IACb,MAAM;IACN,IAAI;IACJ,MAAM;IACN,UAAU;IACV,SAAS;IACT,QAAQ;CAC4B,CAAC;AAEzC,SAAS,8BAA8B,CAAC,sBAAgC;IACpE,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC1B,OAAO,yBAAyB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,aAAa,CAAC,CAAC;IAChF,CAAC;IAED,OAAO,yBAAyB,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,sBAAgC;IACnE,OAAO,8BAA8B,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACxE,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC;SAC5C,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,YAAqB,EACrB,sBAAgC;IAEhC,MAAM,eAAe,GAAG,8BAA8B,CAAC,sBAAsB,CAAC,CAAC;IAE/E,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,KAAK,YAAY,CAAC,CAAC;AACjF,CAAC"}
@@ -1,15 +1,14 @@
1
- import { NODES_COLUMNS_TO_DATA_FIELDS } from '../../components/nodesColumns/constants';
1
+ import { NODES_COLUMNS_TO_DATA_FIELDS, getNodesColumnSortField, } from '../../components/nodesColumns/constants';
2
2
  import { prepareNodesData } from '../../store/reducers/nodes/utils';
3
3
  import { prepareSortValue } from '../../utils/filters';
4
- import { NODES_SORT_VALUE_TO_FIELD, getProblemParamValue, getUptimeParamValue, isSortableNodesProperty, } from '../../utils/nodes';
4
+ import { getProblemParamValue, getUptimeParamValue } from '../../utils/nodes';
5
5
  import { getRequiredDataFields } from '../../utils/tableUtils/getRequiredDataFields';
6
6
  export const getNodes = async (params) => {
7
7
  const { type = 'any', storage = false, tablets = true, limit, offset, sortParams, filters, columnsIds, } = params;
8
8
  const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
9
9
  const { path, database, searchValue, problemFilter, uptimeFilter, filterGroup, filterGroupBy } = filters !== null && filters !== void 0 ? filters : {};
10
- const sort = isSortableNodesProperty(columnId)
11
- ? prepareSortValue(NODES_SORT_VALUE_TO_FIELD[columnId], sortOrder)
12
- : undefined;
10
+ const sortField = getNodesColumnSortField(columnId);
11
+ const sort = sortField ? prepareSortValue(sortField, sortOrder) : undefined;
13
12
  const dataFieldsRequired = getRequiredDataFields(columnsIds, NODES_COLUMNS_TO_DATA_FIELDS);
14
13
  const response = await window.api.getNodes({
15
14
  type,
@@ -1 +1 @@
1
- {"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/getNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,yCAAyC,CAAC;AAErF,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACH,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,qBAAqB,EAAC,MAAM,8CAA8C,CAAC;AAEnF,MAAM,CAAC,MAAM,QAAQ,GAIjB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EACF,IAAI,GAAG,K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KAAK;QACL,MAAM;QACN,IAAI;QACJ,IAAI;QACJ,QAAQ;QACR,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,oBAAoB,CAAC,aAAa,CAAC;QAClD,MAAM,EAAE,mBAAmB,CAAC,YAAY,CAAC;QACzC,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,aAAa;QAC9B,cAAc,EAAE,kBAAkB;KACrC,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAEpD,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,UAAU,IAAI,CAAC;QACvC,KAAK,EAAE,gBAAgB,CAAC,UAAU,IAAI,CAAC;KAC1C,CAAC;AACN,CAAC,CAAC"}
@@ -13,13 +13,13 @@ import { valueIsDefined } from '../../../../utils';
13
13
  import { cn } from '../../../../utils/cn';
14
14
  import { EMPTY_DATA_PLACEHOLDER } from '../../../../utils/constants';
15
15
  import { formatNumber } from '../../../../utils/dataFormatters/dataFormatters';
16
- import { getSpaceUsageSeverity, isSortableStorageProperty } from '../../../../utils/storage';
16
+ import { getSpaceUsageSeverity } from '../../../../utils/storage';
17
17
  import { formatToMs } from '../../../../utils/timeParsers';
18
18
  import { bytesToGB, bytesToSpeed } from '../../../../utils/utils';
19
19
  import { Disks } from '../../Disks/Disks';
20
20
  import { getDegradedSeverity, isVdiskActive } from '../../utils';
21
21
  import i18n from '../i18n';
22
- import { STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES } from './constants';
22
+ import { STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES, isSortableStorageGroupsColumn, } from './constants';
23
23
  import './StorageGroupsColumns.scss';
24
24
  const b = cn('ydb-storage-groups-columns');
25
25
  const poolNameColumn = {
@@ -216,7 +216,7 @@ export const getStorageGroupsColumns = (data) => {
216
216
  ];
217
217
  return columns.map((column) => ({
218
218
  ...column,
219
- sortable: isSortableStorageProperty(column.name),
219
+ sortable: isSortableStorageGroupsColumn(column.name),
220
220
  }));
221
221
  };
222
222
  //# sourceMappingURL=columns.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EAAC,qBAAqB,EAAE,yBAAyB,EAAC,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,mBAAmB,EAAE,aAAa,E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,IAAI,uBAAJ,IAAI,CAAE,WAAW,GAAI,CAAC;IACzE,CAAC;IACD,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,KAAK,EAAE,GAAG;IACV,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAyB,GAAG,EAAE;IACjE,MAAM,OAAO,GAAG;QACZ,aAAa;QACb,UAAU;QACV,aAAa;QACb,WAAW;QACX,UAAU;QACV,WAAW;KACd,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,OAAO;YACH,GAAG,MAAM;YACT,QAAQ,EAAE,KAAK;SAClB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAyB,CAAC,IAAI,EAAE,EAAE;IAClE,MAAM,OAAO,GAAG;QACZ,aAAa;QACb,cAAc;QACd,UAAU;QACV,aAAa;QACb,cAAc;QACd,WAAW;QACX,oBAAoB;QACpB,UAAU;QACV,WAAW;QACX,mBAAmB;QACnB,UAAU;QACV,WAAW;QACX,aAAa;QACb,qBAAqB;QACrB,eAAe,CAAC,IAAI,CAAC;QACrB,cAAc,CAAC,IAAI,CAAC;KACvB,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,MAAM;QACT,QAAQ,EAAE,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC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C,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,OAAO;YACH,GAAG,MAAM;YACT,QAAQ,EAAE,KAAK;SAClB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAyB,CAAC,IAAI,EAAE,EAAE;IAClE,MAAM,OAAO,GAAG;QACZ,aAAa;QACb,cAAc;QACd,UAAU;QACV,aAAa;QACb,cAAc;QACd,WAAW;QACX,oBAAoB;QACpB,UAAU;QACV,WAAW;QACX,mBAAmB;QACnB,UAAU;QACV,WAAW;QACX,aAAa;QACb,qBAAqB;QACrB,eAAe,CAAC,IAAI,CAAC;QACrB,cAAc,CAAC,IAAI,CAAC;KACvB,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,MAAM;QACT,QAAQ,EAAE,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC;KACvD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { SelectOption } from '@gravity-ui/uikit';
2
2
  import { z } from 'zod';
3
- import type { GroupsGroupByField, GroupsRequiredField } from '../../../../types/api/storage';
3
+ import type { GroupsGroupByField, GroupsRequiredField, StorageV2SortValue } from '../../../../types/api/storage';
4
4
  import type { ValueOf } from '../../../../types/common';
5
5
  export declare const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = "storageGroupsColumnsWidth";
6
6
  export declare const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = "storageGroupsSelectedColumns";
@@ -8,7 +8,6 @@ export declare const STORAGE_GROUPS_COLUMNS_IDS: {
8
8
  readonly GroupId: "GroupId";
9
9
  readonly PoolName: "PoolName";
10
10
  readonly MediaType: "MediaType";
11
- readonly Encryption: "Encryption";
12
11
  readonly Erasure: "Erasure";
13
12
  readonly Used: "Used";
14
13
  readonly Limit: "Limit";
@@ -21,9 +20,7 @@ export declare const STORAGE_GROUPS_COLUMNS_IDS: {
21
20
  readonly AllocationUnits: "AllocationUnits";
22
21
  readonly VDisks: "VDisks";
23
22
  readonly VDisksPDisks: "VDisksPDisks";
24
- readonly MissingDisks: "MissingDisks";
25
23
  readonly Degraded: "Degraded";
26
- readonly State: "State";
27
24
  };
28
25
  export type StorageGroupsColumnId = ValueOf<typeof STORAGE_GROUPS_COLUMNS_IDS>;
29
26
  export declare const DEFAULT_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
@@ -31,7 +28,6 @@ export declare const REQUIRED_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
31
28
  export declare const STORAGE_GROUPS_COLUMNS_TITLES: {
32
29
  readonly PoolName: string;
33
30
  readonly MediaType: string;
34
- readonly Encryption: string;
35
31
  readonly Erasure: string;
36
32
  readonly GroupId: string;
37
33
  readonly Used: string;
@@ -46,9 +42,9 @@ export declare const STORAGE_GROUPS_COLUMNS_TITLES: {
46
42
  readonly VDisks: string;
47
43
  readonly VDisksPDisks: string;
48
44
  readonly Degraded: string;
49
- readonly MissingDisks: string;
50
- readonly State: string;
51
45
  };
52
46
  export declare const STORAGE_GROUPS_GROUP_BY_OPTIONS: SelectOption[];
53
47
  export declare const storageGroupsGroupByParamSchema: z.ZodCatch<z.ZodType<GroupsGroupByField | undefined, z.ZodTypeDef, GroupsGroupByField | undefined>>;
54
48
  export declare const GROUPS_COLUMNS_TO_DATA_FIELDS: Record<StorageGroupsColumnId, GroupsRequiredField[]>;
49
+ export declare function getStorageGroupsColumnSortField(columnId?: string): StorageV2SortValue | undefined;
50
+ export declare function isSortableStorageGroupsColumn(columnId: string): boolean;
@@ -6,7 +6,6 @@ export const STORAGE_GROUPS_COLUMNS_IDS = {
6
6
  GroupId: 'GroupId',
7
7
  PoolName: 'PoolName',
8
8
  MediaType: 'MediaType',
9
- Encryption: 'Encryption',
10
9
  Erasure: 'Erasure',
11
10
  Used: 'Used',
12
11
  Limit: 'Limit',
@@ -19,9 +18,7 @@ export const STORAGE_GROUPS_COLUMNS_IDS = {
19
18
  AllocationUnits: 'AllocationUnits',
20
19
  VDisks: 'VDisks',
21
20
  VDisksPDisks: 'VDisksPDisks',
22
- MissingDisks: 'MissingDisks',
23
21
  Degraded: 'Degraded',
24
- State: 'State',
25
22
  };
26
23
  export const DEFAULT_STORAGE_GROUPS_COLUMNS = [
27
24
  'GroupId',
@@ -45,9 +42,6 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
45
42
  get MediaType() {
46
43
  return i18n('type');
47
44
  },
48
- get Encryption() {
49
- return i18n('encryption');
50
- },
51
45
  get Erasure() {
52
46
  return i18n('erasure');
53
47
  },
@@ -90,12 +84,41 @@ export const STORAGE_GROUPS_COLUMNS_TITLES = {
90
84
  get Degraded() {
91
85
  return i18n('missing-disks');
92
86
  },
87
+ };
88
+ const STORAGE_GROUPS_COLUMNS_GROUP_BY_TITLES = {
89
+ get GroupId() {
90
+ return i18n('group-id');
91
+ },
92
+ get Erasure() {
93
+ return i18n('erasure');
94
+ },
95
+ get Usage() {
96
+ return i18n('usage');
97
+ },
98
+ get DiskSpaceUsage() {
99
+ return i18n('disk-usage');
100
+ },
101
+ get PoolName() {
102
+ return i18n('pool-name');
103
+ },
104
+ get Kind() {
105
+ return i18n('type');
106
+ },
107
+ get Encryption() {
108
+ return i18n('encryption');
109
+ },
110
+ get MediaType() {
111
+ return i18n('type');
112
+ },
93
113
  get MissingDisks() {
94
114
  return i18n('missing-disks');
95
115
  },
96
116
  get State() {
97
117
  return i18n('state');
98
118
  },
119
+ get Latency() {
120
+ return i18n('latency');
121
+ },
99
122
  };
100
123
  const STORAGE_GROUPS_GROUP_BY_PARAMS = [
101
124
  'PoolName',
@@ -111,7 +134,7 @@ const STORAGE_GROUPS_GROUP_BY_PARAMS = [
111
134
  export const STORAGE_GROUPS_GROUP_BY_OPTIONS = STORAGE_GROUPS_GROUP_BY_PARAMS.map((param) => {
112
135
  return {
113
136
  value: param,
114
- content: STORAGE_GROUPS_COLUMNS_TITLES[param],
137
+ content: STORAGE_GROUPS_COLUMNS_GROUP_BY_TITLES[param],
115
138
  };
116
139
  });
117
140
  export const storageGroupsGroupByParamSchema = z
@@ -124,7 +147,6 @@ export const GROUPS_COLUMNS_TO_DATA_FIELDS = {
124
147
  PoolName: ['PoolName'],
125
148
  // We display MediaType and Encryption in one Type column
126
149
  MediaType: ['MediaType', 'Encryption'],
127
- Encryption: ['Encryption'],
128
150
  Erasure: ['Erasure'],
129
151
  Used: ['Used'],
130
152
  Limit: ['Limit'],
@@ -138,8 +160,30 @@ export const GROUPS_COLUMNS_TO_DATA_FIELDS = {
138
160
  // Read and Write fields make backend to return Whiteboard data
139
161
  VDisks: ['VDisk', 'PDisk', 'Read', 'Write'],
140
162
  VDisksPDisks: ['VDisk', 'PDisk', 'Read', 'Write'],
141
- MissingDisks: ['MissingDisks'],
142
163
  Degraded: ['MissingDisks'],
143
- State: ['State'],
144
164
  };
165
+ const STORAGE_GROUPS_COLUMNS_TO_SORT_FIELDS = {
166
+ GroupId: 'GroupId',
167
+ PoolName: 'PoolName',
168
+ MediaType: 'MediaType',
169
+ Erasure: 'Erasure',
170
+ Used: 'Used',
171
+ Limit: 'Limit',
172
+ Usage: 'Usage',
173
+ DiskSpaceUsage: 'DiskSpaceUsage',
174
+ DiskSpace: undefined,
175
+ Read: 'Read',
176
+ Write: 'Write',
177
+ Latency: 'Latency',
178
+ AllocationUnits: 'AllocationUnits',
179
+ VDisks: undefined,
180
+ VDisksPDisks: undefined,
181
+ Degraded: 'Degraded',
182
+ };
183
+ export function getStorageGroupsColumnSortField(columnId) {
184
+ return STORAGE_GROUPS_COLUMNS_TO_SORT_FIELDS[columnId];
185
+ }
186
+ export function isSortableStorageGroupsColumn(columnId) {
187
+ return Boolean(getStorageGroupsColumnSortField(columnId));
188
+ }
145
189
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers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IACjD,YAAY,EAAE,CAAC,cAAc,CAAC;IAC9B,QAAQ,EAAE,CAAC,cAAc,CAAC;IAC1B,KAAK,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAStB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAC/E,MAAM,CAAC,MAAM,sCAAsC,GAAG,8BAA8B,CAAC;AAErF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,gBAAgB;IAChC,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;IAClC,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX,MAAM,CAAC,MAAM,8BAA8B,GAA4B;IACnE,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAA4B,CAAC,SAAS,CAAC,CAAC;AAEpF,0FAA0F;AAC1F,iGAAiG;AACjG,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;IAC7B,CAAC;IACD,IAAI,SAAS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