ydb-embedded-ui 7.0.0 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/dist/components/JSONTree/JSONTree.d.ts +9 -0
  2. package/dist/components/JSONTree/JSONTree.js +23 -0
  3. package/dist/components/JSONTree/JSONTree.js.map +1 -0
  4. package/dist/components/JSONTree/JSONTree.scss +20 -0
  5. package/dist/components/JSONTree/i18n/en.json +4 -0
  6. package/dist/components/JSONTree/i18n/index.d.ts +2 -0
  7. package/dist/components/JSONTree/i18n/index.js +5 -0
  8. package/dist/components/JSONTree/i18n/index.js.map +1 -0
  9. package/dist/components/MemoryViewer/MemoryViewer.scss +1 -1
  10. package/dist/components/Table/Table.d.ts +13 -0
  11. package/dist/components/Table/Table.js +21 -0
  12. package/dist/components/Table/Table.js.map +1 -0
  13. package/dist/components/Table/Table.scss +60 -0
  14. package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js +2 -2
  15. package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js.map +1 -1
  16. package/dist/components/nodesColumns/columns.js +1 -1
  17. package/dist/components/nodesColumns/constants.js +1 -1
  18. package/dist/components/nodesColumns/constants.js.map +1 -1
  19. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -2
  20. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
  21. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -0
  22. package/dist/containers/Cluster/ClusterInfo/utils.js +39 -0
  23. package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
  24. package/dist/containers/Cluster/i18n/en.json +2 -0
  25. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  26. package/dist/containers/Clusters/columns.js +5 -2
  27. package/dist/containers/Clusters/columns.js.map +1 -1
  28. package/dist/containers/Storage/Storage.d.ts +6 -0
  29. package/dist/containers/Storage/Storage.js +22 -12
  30. package/dist/containers/Storage/Storage.js.map +1 -1
  31. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +1 -1
  32. package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +1 -1
  33. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +5 -2
  34. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -1
  35. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +3 -14
  36. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -1
  37. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +0 -51
  38. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +6 -8
  39. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -1
  40. package/dist/containers/Tablet/components/TabletTable/TabletTable.js +2 -2
  41. package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -1
  42. package/dist/containers/Tablets/TabletsTable.js +2 -2
  43. package/dist/containers/Tablets/TabletsTable.js.map +1 -1
  44. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +1 -1
  45. package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +0 -1
  46. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +2 -5
  47. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  48. package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +1 -9
  49. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +2 -2
  50. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js.map +1 -1
  51. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +0 -2
  52. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +5 -2
  53. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
  54. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -1
  55. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js.map +1 -1
  56. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +11 -4
  57. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -1
  58. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +11 -10
  59. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -1
  60. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.d.ts +105 -0
  61. package/dist/containers/Tenant/Diagnostics/TopQueries/{getTopQueriesColumns.js → columns/columns.js} +53 -44
  62. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.js.map +1 -0
  63. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.d.ts +21 -0
  64. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.js +71 -0
  65. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.js.map +1 -0
  66. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/en.json +12 -0
  67. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.d.ts +2 -0
  68. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.js +5 -0
  69. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.js.map +1 -0
  70. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +1 -5
  71. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
  72. package/dist/containers/Tenant/Diagnostics/TopQueries/utils.d.ts +12 -0
  73. package/dist/containers/Tenant/Diagnostics/TopQueries/utils.js +28 -0
  74. package/dist/containers/Tenant/Diagnostics/TopQueries/utils.js.map +1 -0
  75. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +9 -34
  76. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
  77. package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.d.ts → columns/columns.d.ts} +1 -2
  78. package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.js → columns/columns.js} +16 -36
  79. package/dist/containers/Tenant/Diagnostics/TopShards/columns/columns.js.map +1 -0
  80. package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.d.ts +17 -0
  81. package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.js +55 -0
  82. package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.js.map +1 -0
  83. package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/en.json +10 -0
  84. package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.d.ts +2 -0
  85. package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.js +5 -0
  86. package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.js.map +1 -0
  87. package/dist/containers/Tenant/Diagnostics/TopShards/utils.d.ts +5 -0
  88. package/dist/containers/Tenant/Diagnostics/TopShards/utils.js +17 -0
  89. package/dist/containers/Tenant/Diagnostics/TopShards/utils.js.map +1 -0
  90. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.d.ts +0 -1
  91. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js +2 -5
  92. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map +1 -1
  93. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +0 -3
  94. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js +1 -1
  95. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -1
  96. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js +16 -25
  97. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
  98. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +3 -53
  99. package/dist/services/settings.d.ts +1 -0
  100. package/dist/services/settings.js +2 -1
  101. package/dist/services/settings.js.map +1 -1
  102. package/dist/store/reducers/cluster/cluster.d.ts +6 -0
  103. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +8 -8
  104. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +10 -7
  105. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  106. package/dist/store/reducers/nodes/selectors.d.ts +0 -7
  107. package/dist/store/reducers/nodes/selectors.js +2 -28
  108. package/dist/store/reducers/nodes/selectors.js.map +1 -1
  109. package/dist/store/reducers/nodes/types.d.ts +2 -2
  110. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +1 -4
  111. package/dist/store/reducers/shardsWorkload/shardsWorkload.js +3 -5
  112. package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
  113. package/dist/store/reducers/storage/types.d.ts +2 -2
  114. package/dist/types/api/autocomplete.d.ts +1 -1
  115. package/dist/types/api/meta.d.ts +3 -0
  116. package/dist/utils/constants.d.ts +1 -0
  117. package/dist/utils/constants.js +1 -0
  118. package/dist/utils/constants.js.map +1 -1
  119. package/dist/utils/dataFormatters/__test__/formatUptime.test.d.ts +1 -0
  120. package/dist/utils/dataFormatters/__test__/formatUptime.test.js +21 -0
  121. package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -0
  122. package/dist/utils/dataFormatters/dataFormatters.d.ts +4 -3
  123. package/dist/utils/dataFormatters/dataFormatters.js +23 -11
  124. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  125. package/dist/utils/developerUI/developerUI.d.ts +1 -0
  126. package/dist/utils/developerUI/developerUI.js +3 -0
  127. package/dist/utils/developerUI/developerUI.js.map +1 -1
  128. package/dist/utils/hooks/__test__/useTableSort.test.d.ts +1 -0
  129. package/dist/utils/hooks/__test__/useTableSort.test.js +188 -0
  130. package/dist/utils/hooks/__test__/useTableSort.test.js.map +1 -0
  131. package/dist/utils/hooks/useTableSort.d.ts +10 -5
  132. package/dist/utils/hooks/useTableSort.js +61 -16
  133. package/dist/utils/hooks/useTableSort.js.map +1 -1
  134. package/dist/utils/monaco/yql/generateSuggestions.js +6 -3
  135. package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
  136. package/dist/utils/nodes.d.ts +1 -1
  137. package/dist/utils/nodes.js +10 -4
  138. package/dist/utils/nodes.js.map +1 -1
  139. package/package.json +3 -3
  140. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +0 -8
  141. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +0 -1
  142. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +0 -1
  143. package/dist/utils/diagnostics.d.ts +0 -23
  144. package/dist/utils/diagnostics.js +0 -37
  145. package/dist/utils/diagnostics.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ import JSONTreeBase from 'react-json-inspector';
2
+ import './JSONTree.scss';
3
+ import 'react-json-inspector/json-inspector.css';
4
+ interface JSONTreeProps extends React.ComponentProps<typeof JSONTreeBase> {
5
+ search?: false;
6
+ treeClassName?: string;
7
+ }
8
+ export declare function JSONTree({ treeClassName, search, ...rest }: JSONTreeProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ActionTooltip, Button, Icon } from '@gravity-ui/uikit';
3
+ import JSONTreeBase from 'react-json-inspector';
4
+ import { cn } from '../../utils/cn';
5
+ import { CASE_SENSITIVE_JSON_SEARCH } from '../../utils/constants';
6
+ import { useSetting } from '../../utils/hooks';
7
+ import i18n from './i18n';
8
+ import FontCaseIcon from '@gravity-ui/icons/svgs/font-case.svg';
9
+ import './JSONTree.scss';
10
+ import 'react-json-inspector/json-inspector.css';
11
+ const b = cn('ydb-json-tree');
12
+ const DEBAUNCE_TIME = 300;
13
+ export function JSONTree({ treeClassName, search, ...rest }) {
14
+ const [caseSensitiveSearch, setCaseSensitiveSearch] = useSetting(CASE_SENSITIVE_JSON_SEARCH, false);
15
+ return (_jsxs("div", { className: b(), children: [_jsx(JSONTreeBase, { className: b('tree', treeClassName), filterOptions: {
16
+ ignoreCase: !caseSensitiveSearch,
17
+ }, searchOptions: {
18
+ debounceTime: DEBAUNCE_TIME,
19
+ }, ...rest }), search !== false && (_jsx(ActionTooltip, { title: caseSensitiveSearch
20
+ ? i18n('context_case-sensitive-search')
21
+ : i18n('context_case-sensitive-search-disabled'), children: _jsx(Button, { view: "outlined", className: b('case'), onClick: () => setCaseSensitiveSearch(!caseSensitiveSearch), selected: caseSensitiveSearch, children: _jsx(Icon, { data: FontCaseIcon }) }) }))] }));
22
+ }
23
+ //# sourceMappingURL=JSONTree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JSONTree.js","sourceRoot":"","sources":["../../../src/components/JSONTree/JSONTree.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,0BAA0B,EAAC,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,YAAY,MAAM,sCAAsC,CAAC;AAEhE,OAAO,iBAAiB,CAAC;AACzB,OAAO,yCAAyC,CAAC;AAEjD,MAAM,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;AAE9B,MAAM,aAAa,GAAG,GAAG,CAAC;AAO1B,MAAM,UAAU,QAAQ,CAAC,EAAC,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI,EAAgB;IACpE,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,UAAU,CAC5D,0BAA0B,EAC1B,KAAK,CACR,CAAC;IACF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACf,KAAC,YAAY,IACT,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,EACnC,aAAa,EAAE;oBACX,UAAU,EAAE,CAAC,mBAAmB;iBACnC,EACD,aAAa,EAAE;oBACX,YAAY,EAAE,aAAa;iBAC9B,KACG,IAAI,GACV,EACD,MAAM,KAAK,KAAK,IAAI,CACjB,KAAC,aAAa,IACV,KAAK,EACD,mBAAmB;oBACf,CAAC,CAAC,IAAI,CAAC,+BAA+B,CAAC;oBACvC,CAAC,CAAC,IAAI,CAAC,wCAAwC,CAAC,YAGxD,KAAC,MAAM,IACH,IAAI,EAAC,UAAU,EACf,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,CAAC,mBAAmB,CAAC,EAC3D,QAAQ,EAAE,mBAAmB,YAE7B,KAAC,IAAI,IAAC,IAAI,EAAE,YAAY,GAAI,GACvB,GACG,CACnB,IACC,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,20 @@
1
+ @use '../../styles/mixins.scss';
2
+
3
+ .ydb-json-tree {
4
+ position: relative;
5
+
6
+ width: 100%;
7
+ height: 100%;
8
+ &__tree {
9
+ @include mixins.json-tree-styles();
10
+ }
11
+ &__case {
12
+ position: absolute;
13
+ top: 0;
14
+ left: 308px;
15
+ }
16
+
17
+ .json-inspector__search {
18
+ height: 26px;
19
+ }
20
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "context_case-sensitive-search": "Case sensitive search enadled",
3
+ "context_case-sensitive-search-disabled": "Case sensitive search disabled"
4
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "context_case-sensitive-search" | "context_case-sensitive-search-disabled", 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-json-tree';
4
+ export default registerKeysets(COMPONENT, { en });
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/JSONTree/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,eAAe,CAAC;AAElC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -3,7 +3,7 @@ $memory-type-colors: (
3
3
  'SharedCacheConsumption': var(--g-color-base-info-medium-hover),
4
4
  'MemTableConsumption': var(--g-color-base-warning-medium-hover),
5
5
  'QueryExecutionConsumption': var(--g-color-base-positive-medium-hover),
6
- 'Other': var(--g-color-base-neutral-light-hover),
6
+ 'Other': var(--g-color-base-generic-medium-hover),
7
7
  );
8
8
 
9
9
  @mixin memory-type-color($type) {
@@ -0,0 +1,13 @@
1
+ import type { BaseTableProps } from '@gravity-ui/table';
2
+ import './Table.scss';
3
+ interface TableProps<TData> extends BaseTableProps<TData> {
4
+ width?: 'max' | 'auto';
5
+ wrapperClassName?: string;
6
+ }
7
+ interface ColumnHeaderProps {
8
+ children: React.ReactNode;
9
+ className?: string;
10
+ }
11
+ export declare function ColumnHeader({ children, className }: ColumnHeaderProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function Table<TData>({ className, width, wrapperClassName, ...props }: TableProps<TData>): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { BaseTable } from '@gravity-ui/table';
3
+ import { cn } from '../../utils/cn';
4
+ import './Table.scss';
5
+ const block = cn('ydb-table');
6
+ export function ColumnHeader({ children, className }) {
7
+ return _jsx("div", { className: block('table-header-content', className), children: children });
8
+ }
9
+ export function Table({ className, width, wrapperClassName, ...props }) {
10
+ return (_jsx("div", { className: block(null, wrapperClassName), children: _jsx(BaseTable, { headerCellClassName: ({ column }) => {
11
+ var _a;
12
+ const align = (_a = column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.align;
13
+ return block('table-header-cell', { align });
14
+ }, cellClassName: (cell) => {
15
+ var _a, _b;
16
+ const align = (_a = cell === null || cell === void 0 ? void 0 : cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.align;
17
+ const verticalAlign = (_b = cell === null || cell === void 0 ? void 0 : cell.column.columnDef.meta) === null || _b === void 0 ? void 0 : _b.verticalAlign;
18
+ return block('table-cell', { align, 'vertical-align': verticalAlign });
19
+ }, className: block('table', { width }, className), ...props }) }));
20
+ }
21
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,cAAc,CAAC;AAEtB,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC;AAY9B,MAAM,UAAU,YAAY,CAAC,EAAC,QAAQ,EAAE,SAAS,EAAoB;IACjE,OAAO,cAAK,SAAS,EAAE,KAAK,CAAC,sBAAsB,EAAE,SAAS,CAAC,YAAG,QAAQ,GAAO,CAAC;AACtF,CAAC;AAED,MAAM,UAAU,KAAK,CAAQ,EAAC,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,KAAK,EAAoB;IAC1F,OAAO,CACH,cAAK,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE,gBAAgB,CAAC,YACzC,KAAC,SAAS,IACN,mBAAmB,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE;;gBAC9B,MAAM,KAAK,GAAG,MAAA,MAAM,CAAC,SAAS,CAAC,IAAI,0CAAE,KAAK,CAAC;gBAC3C,OAAO,KAAK,CAAC,mBAAmB,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC;YAC/C,CAAC,EACD,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE;;gBACpB,MAAM,KAAK,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAC,SAAS,CAAC,IAAI,0CAAE,KAAK,CAAC;gBACjD,MAAM,aAAa,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAC,SAAS,CAAC,IAAI,0CAAE,aAAa,CAAC;gBACjE,OAAO,KAAK,CAAC,YAAY,EAAE,EAAC,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAC,CAAC,CAAC;YACzE,CAAC,EACD,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,EAAC,KAAK,EAAC,EAAE,SAAS,CAAC,KACzC,KAAK,GACX,GACA,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,60 @@
1
+ @use '../../styles/mixins.scss';
2
+
3
+ .ydb-table {
4
+ $block: &;
5
+ --ydb-table-cell-height: 40px;
6
+ &__table-header-content {
7
+ display: inline-flex;
8
+ align-items: center;
9
+
10
+ width: 100%;
11
+ height: 100%;
12
+ padding: var(--g-spacing-1) var(--g-spacing-2);
13
+
14
+ border-bottom: 1px solid var(--g-color-line-generic);
15
+ }
16
+ &__table {
17
+ table-layout: fixed;
18
+ border-spacing: 0px;
19
+ border-collapse: collapse;
20
+ tr {
21
+ &:hover {
22
+ background-color: var(--g-color-base-simple-hover) !important;
23
+ }
24
+ }
25
+ tr:nth-of-type(2n + 1) {
26
+ background-color: var(--g-color-base-generic-ultralight);
27
+ }
28
+ }
29
+ &__table_width_max {
30
+ width: 100%;
31
+ }
32
+ &__table-header-cell {
33
+ height: var(--ydb-table-cell-height) !important;
34
+ padding: 0;
35
+
36
+ text-align: left;
37
+ vertical-align: middle;
38
+
39
+ background-color: var(--g-color-base-background);
40
+ @include mixins.text-subheader-2();
41
+ &_align_right {
42
+ #{$block}__table-header-content {
43
+ justify-content: flex-end;
44
+
45
+ text-align: right;
46
+ }
47
+ }
48
+ }
49
+ &__table-cell {
50
+ height: var(--ydb-table-cell-height) !important;
51
+ padding: 0;
52
+ @include mixins.text-body-2();
53
+ &_align_right {
54
+ text-align: right;
55
+ }
56
+ &_vertical-align_top {
57
+ vertical-align: top;
58
+ }
59
+ }
60
+ }
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { calcUptime } from '../../../utils/dataFormatters/dataFormatters';
2
+ import { getUptimeFromDateFormatted } from '../../../utils/dataFormatters/dataFormatters';
3
3
  import { InfoViewer, createInfoFormatter, formatObject } from '../../InfoViewer';
4
4
  const formatTablet = createInfoFormatter({
5
5
  values: {
6
- ChangeTime: (value) => calcUptime(value),
6
+ ChangeTime: (value) => getUptimeFromDateFormatted(value),
7
7
  },
8
8
  labels: {
9
9
  TabletId: 'Tablet',
@@ -1 +1 @@
1
- {"version":3,"file":"TabletTooltipContent.js","sourceRoot":"","sources":["../../../../src/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE/E,MAAM,YAAY,GAAG,mBAAmB,CAAmB;IACvD,MAAM,EAAE;QACJ,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;KAC3C;IACD,MAAM,EAAE;QACJ,QAAQ,EAAE,QAAQ;KACrB;IACD,qBAAqB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC;CAC3D,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAC,IAAI,GAAG,EAAE,EAAE,SAAS,EAA4B,EAAE,EAAE;IACtF,MAAM,EAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC;IAErE,MAAM,IAAI,GAAG,YAAY,CAAC,YAAY,EAAE;QACpC,QAAQ;QACR,MAAM;QACN,KAAK;QACL,IAAI;QACJ,UAAU;QACV,UAAU;KACb,CAAC,CAAC;IAEH,OAAO,KAAC,UAAU,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,GAAI,CAAC;AACpF,CAAC,CAAC"}
1
+ {"version":3,"file":"TabletTooltipContent.js","sourceRoot":"","sources":["../../../../src/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,0BAA0B,EAAC,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAC,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE/E,MAAM,YAAY,GAAG,mBAAmB,CAAmB;IACvD,MAAM,EAAE;QACJ,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC;KAC3D;IACD,MAAM,EAAE;QACJ,QAAQ,EAAE,QAAQ;KACrB;IACD,qBAAqB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC;CAC3D,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAC,IAAI,GAAG,EAAE,EAAE,SAAS,EAA4B,EAAE,EAAE;IACtF,MAAM,EAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC;IAErE,MAAM,IAAI,GAAG,YAAY,CAAC,YAAY,EAAE;QACpC,QAAQ;QACR,MAAM;QACN,KAAK;QACL,IAAI;QACJ,UAAU;QACV,UAAU;KACb,CAAC,CAAC;IAEH,OAAO,KAAC,UAAU,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,GAAI,CAAC;AACpF,CAAC,CAAC"}
@@ -87,7 +87,7 @@ export function getUptimeColumn() {
87
87
  sortAccessor: ({ StartTime }) => (StartTime ? -StartTime : 0),
88
88
  render: ({ row }) => row.Uptime,
89
89
  align: DataTable.RIGHT,
90
- width: 110,
90
+ width: 120,
91
91
  };
92
92
  }
93
93
  export function getRAMColumn() {
@@ -166,7 +166,7 @@ export const NODES_COLUMNS_TO_DATA_FIELDS = {
166
166
  DC: ['DC'],
167
167
  Rack: ['Rack'],
168
168
  Version: ['Version'],
169
- Uptime: ['Uptime'],
169
+ Uptime: ['Uptime', 'DisconnectTime'],
170
170
  Memory: ['Memory', 'MemoryDetailed'],
171
171
  RAM: ['Memory'],
172
172
  Pools: ['CPU'],
@@ -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,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,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B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CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,QAAgB;IAClD,OAAO,OAAO,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -3,11 +3,12 @@ import { ResponseError } from '../../../components/Errors/ResponseError';
3
3
  import { InfoViewer } from '../../../components/InfoViewer/InfoViewer';
4
4
  import { InfoViewerSkeleton } from '../../../components/InfoViewerSkeleton/InfoViewerSkeleton';
5
5
  import { b } from './shared';
6
- import { getInfo } from './utils';
6
+ import { getInfo, useClusterLinks } from './utils';
7
7
  import './ClusterInfo.scss';
8
8
  export const ClusterInfo = ({ cluster, loading, error, additionalClusterProps = {}, }) => {
9
9
  const { info = [], links = [] } = additionalClusterProps;
10
- const clusterInfo = getInfo(cluster !== null && cluster !== void 0 ? cluster : {}, info, links);
10
+ const clusterLinks = useClusterLinks();
11
+ const clusterInfo = getInfo(cluster !== null && cluster !== void 0 ? cluster : {}, info, [...links, ...clusterLinks]);
11
12
  const getContent = () => {
12
13
  if (loading) {
13
14
  return _jsx(InfoViewerSkeleton, { className: b('skeleton'), rows: 9 });
@@ -1 +1 @@
1
- {"version":3,"file":"ClusterInfo.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/ClusterInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAM7F,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAEhC,OAAO,oBAAoB,CAAC;AAU5B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EACxB,OAAO,EACP,OAAO,EACP,KAAK,EACL,sBAAsB,GAAG,EAAE,GACZ,EAAE,EAAE;IACnB,MAAM,EAAC,IAAI,GAAG,E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AM,CAAC,MAAM,WAAW,GAAG,CAAC,EACxB,OAAO,EACP,OAAO,EACP,KAAK,EACL,sBAAsB,GAAG,EAAE,GACZ,EAAE,EAAE;IACnB,MAAM,EAAC,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAC,GAAG,sBAAsB,CAAC;IAEvD,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC;IAE9E,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,IAAI,OAAO,EAAE,CAAC;YACV,OAAO,KAAC,kBAAkB,IAAC,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAI,CAAC;QACrE,CAAC;QAED,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,GAAI,CAAC;IACzD,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACtE,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAAG,UAAU,EAAE,GAAO,IAC7C,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -4,3 +4,4 @@ import type { TClusterInfo } from '../../../types/api/cluster';
4
4
  import type { TTabletStateInfo } from '../../../types/api/tablet';
5
5
  export declare const compareTablets: (tablet1: TTabletStateInfo, tablet2: TTabletStateInfo) => 0 | 1 | -1;
6
6
  export declare const getInfo: (cluster: TClusterInfo, additionalInfo: InfoViewerItem[], links: ClusterLink[]) => InfoViewerItem[];
7
+ export declare function useClusterLinks(): ClusterLink[];
@@ -4,9 +4,11 @@ import { Flex } from '@gravity-ui/uikit';
4
4
  import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
5
5
  import { ProgressViewer } from '../../../components/ProgressViewer/ProgressViewer';
6
6
  import { Tags } from '../../../components/Tags';
7
+ import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
7
8
  import { isClusterInfoV2 } from '../../../types/api/cluster';
8
9
  import { EType } from '../../../types/api/tablet';
9
10
  import { formatNumber } from '../../../utils/dataFormatters/dataFormatters';
11
+ import { parseJson } from '../../../utils/utils';
10
12
  import i18n from '../i18n';
11
13
  import { NodesState } from './components/NodesState/NodesState';
12
14
  import { b } from './shared';
@@ -67,4 +69,41 @@ export const getInfo = (cluster, additionalInfo, links) => {
67
69
  }
68
70
  return info;
69
71
  };
72
+ /**
73
+ * parses stringified json in format {url: "href"}
74
+ */
75
+ function prepareClusterLink(rawLink) {
76
+ try {
77
+ const linkObject = parseJson(rawLink);
78
+ if (linkObject &&
79
+ typeof linkObject === 'object' &&
80
+ 'url' in linkObject &&
81
+ typeof linkObject.url === 'string') {
82
+ return linkObject.url;
83
+ }
84
+ }
85
+ catch (_a) { }
86
+ return undefined;
87
+ }
88
+ export function useClusterLinks() {
89
+ const { cores, logging } = useClusterBaseInfo();
90
+ return React.useMemo(() => {
91
+ const result = [];
92
+ const coresLink = prepareClusterLink(cores);
93
+ const loggingLink = prepareClusterLink(logging);
94
+ if (coresLink) {
95
+ result.push({
96
+ title: i18n('link_cores'),
97
+ url: coresLink,
98
+ });
99
+ }
100
+ if (loggingLink) {
101
+ result.push({
102
+ title: i18n('link_logging'),
103
+ url: loggingLink,
104
+ });
105
+ }
106
+ return result;
107
+ }, [cores, logging]);
108
+ }
70
109
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceR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M,UAAU,eAAe;IAC3B,MAAM,EAAC,KAAK,EAAE,OAAO,EAAC,GAAG,kBAAkB,EAAE,CAAC;IAE9C,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACtB,MAAM,MAAM,GAAkB,EAAE,CAAC;QAEjC,MAAM,SAAS,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAEhD,IAAI,SAAS,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC;gBACR,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC;gBACzB,GAAG,EAAE,SAAS;aACjB,CAAC,CAAC;QACP,CAAC;QAED,IAAI,WAAW,EAAE,CAAC;YACd,MAAM,CAAC,IAAI,CAAC;gBACR,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC;gBAC3B,GAAG,EAAE,WAAW;aACnB,CAAC,CAAC;QACP,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AACzB,CAAC"}
@@ -9,6 +9,8 @@
9
9
  "storage-size": "Storage size",
10
10
  "storage-groups": "Storage groups, {{diskType}}",
11
11
  "links": "Links",
12
+ "link_cores": "Cores",
13
+ "link_logging": "Logging",
12
14
  "context_cores": "cores",
13
15
  "title_cpu": "CPU",
14
16
  "title_storage": "Storage",
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "links" | "erasure" | "usage" | "storage-groups" | "title_storage" | "disk-type" | "allocated" | "available" | "label_nodes-state" | "label_dc" | "storage-size" | "context_cores" | "title_cpu" | "title_memory" | "label_nodes" | "label_hosts" | "label_storage-groups" | "label_databases" | "label_load", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "links" | "erasure" | "usage" | "storage-groups" | "title_storage" | "disk-type" | "allocated" | "available" | "label_nodes-state" | "label_dc" | "storage-size" | "link_cores" | "link_logging" | "context_cores" | "title_cpu" | "title_memory" | "label_nodes" | "label_hosts" | "label_storage-groups" | "label_databases" | "label_load", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -6,6 +6,7 @@ import { ClipboardButton, Link as ExternalLink, Progress } from '@gravity-ui/uik
6
6
  import { ProgressViewer } from '../../components/ProgressViewer/ProgressViewer';
7
7
  import { UserCard } from '../../components/User/User';
8
8
  import { formatStorageValuesToTb } from '../../utils/dataFormatters/dataFormatters';
9
+ import { createDeveloperUIMonitoringPageHref } from '../../utils/developerUI/developerUI';
9
10
  import { getCleanBalancerValue, removeViewerPathname } from '../../utils/parseBalancer';
10
11
  import { clusterTabsIds, getClusterPath } from '../Cluster/utils';
11
12
  import { COLUMNS_NAMES, COLUMNS_TITLES } from './constants';
@@ -20,9 +21,11 @@ export const CLUSTERS_COLUMNS = [
20
21
  width: 230,
21
22
  render: ({ row }) => {
22
23
  var _a, _b;
23
- const { balancer, name: clusterName } = row;
24
+ const { balancer, name: clusterName, use_embedded_ui: useEmbeddedUi } = row;
24
25
  const backend = balancer && removeViewerPathname(balancer);
25
- const clusterPath = getClusterPath(undefined, { backend, clusterName });
26
+ const clusterPath = useEmbeddedUi && backend
27
+ ? createDeveloperUIMonitoringPageHref(backend)
28
+ : getClusterPath(undefined, { backend, clusterName });
26
29
  const clusterStatus = (_a = row.cluster) === null || _a === void 0 ? void 0 : _a.Overall;
27
30
  return (_jsxs("div", { className: b('cluster'), children: [clusterStatus ? (_jsx(ExternalLink, { href: clusterPath, children: _jsx("div", { className: b('cluster-status', {
28
31
  type: clusterStatus && clusterStatus.toLowerCase(),
@@ -1 +1 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../src/containers/Clusters/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,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AG,EAAC,EAAE,EAAE;YACd,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;gBAChB,OAAO,UAAU,CAAC;YACtB,CAAC;YAED,MAAM,YAAY,GAAG,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACzD,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,aAC9B,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAAG,YAAY,GAAO,EACxD,KAAC,eAAe,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,GAAI,IAC7E,CACT,CAAC;QACN,CAAC;KACJ;CACJ,CAAC"}
@@ -1,5 +1,11 @@
1
+ import type { OrderType, SortOrder } from '@gravity-ui/react-data-table';
2
+ import type { HandleSort } from '../../utils/hooks';
1
3
  import type { StorageViewContext } from './types';
2
4
  import './Storage.scss';
5
+ export declare function useStorageSort<T extends {
6
+ sortValue: string;
7
+ sortOrder: OrderType;
8
+ }>({ sortValue, sortOrder }: T, onSort: (params: T | undefined) => void): [SortOrder[] | undefined, HandleSort];
3
9
  interface StorageProps {
4
10
  database?: string;
5
11
  nodeId?: string | number;
@@ -19,6 +19,22 @@ import { b } from './shared';
19
19
  import { useStorageQueryParams } from './useStorageQueryParams';
20
20
  import { defaultSortNode, getDefaultSortGroup } from './utils';
21
21
  import './Storage.scss';
22
+ export function useStorageSort({ sortValue, sortOrder }, onSort) {
23
+ return useTableSort({
24
+ initialSortColumn: sortValue,
25
+ initialSortOrder: sortOrder,
26
+ multiple: false,
27
+ onSort: (sort) => {
28
+ const newSort = (sort === null || sort === void 0 ? void 0 : sort[0])
29
+ ? {
30
+ sortValue: sort[0].columnId,
31
+ sortOrder: sort[0].order,
32
+ }
33
+ : undefined;
34
+ onSort(newSort);
35
+ },
36
+ });
37
+ }
22
38
  export const Storage = ({ database, viewContext, nodeId, groupId, pDiskId }) => {
23
39
  var _a, _b;
24
40
  const { balancer } = useClusterBaseInfo();
@@ -29,16 +45,10 @@ export const Storage = ({ database, viewContext, nodeId, groupId, pDiskId }) =>
29
45
  const [autoRefreshInterval] = useAutoRefreshInterval();
30
46
  const isGroups = storageType === 'groups';
31
47
  const isNodes = storageType === 'nodes';
32
- const [nodeSort, setNodeSort] = React.useState({
33
- sortOrder: undefined,
34
- sortValue: undefined,
35
- });
36
- const nodesSortParams = nodeSort.sortValue ? nodeSort : defaultSortNode;
37
- const [groupSort, setGroupSort] = React.useState({
38
- sortOrder: undefined,
39
- sortValue: undefined,
40
- });
41
- const groupsSortParams = groupSort.sortOrder ? groupSort : getDefaultSortGroup(visibleEntities);
48
+ const [nodeSort, setNodeSort] = React.useState(undefined);
49
+ const nodesSortParams = nodeSort ? nodeSort : defaultSortNode;
50
+ const [groupSort, setGroupSort] = React.useState(undefined);
51
+ const groupsSortParams = groupSort ? groupSort : getDefaultSortGroup(visibleEntities);
42
52
  const { columnsToShow: storageNodesColumnsToShow, columnsToSelect: storageNodesColumnsToSelect, setColumns: setStorageNodesSelectedColumns, } = useStorageNodesSelectedColumns({
43
53
  additionalNodesProps,
44
54
  visibleEntities,
@@ -75,8 +85,8 @@ export const Storage = ({ database, viewContext, nodeId, groupId, pDiskId }) =>
75
85
  const isLoading = currentData === undefined && isFetching;
76
86
  const storageNodes = React.useMemo(() => filterNodes(nodes, searchValue, nodesUptimeFilter), [nodes, nodesUptimeFilter, searchValue]);
77
87
  const storageGroups = React.useMemo(() => filterGroups(groups, searchValue), [searchValue, groups]);
78
- const [nodesSort, handleNodesSort] = useTableSort(nodesSortParams, (params) => setNodeSort(params));
79
- const [groupsSort, handleGroupsSort] = useTableSort(groupsSortParams, (params) => setGroupSort(params));
88
+ const [nodesSort, handleNodesSort] = useStorageSort(nodesSortParams, setNodeSort);
89
+ const [groupsSort, handleGroupsSort] = useStorageSort(groupsSortParams, setGroupSort);
80
90
  const renderDataTable = () => {
81
91
  return (_jsxs(React.Fragment, { children: [isGroups ? (_jsx(StorageGroupsTable, { visibleEntities: visibleEntities, data: storageGroups, onShowAll: handleShowAllGroups, sort: groupsSort, handleSort: handleGroupsSort, columns: storageGroupsColumnsToShow }, "groups")) : null, isNodes ? (_jsx(StorageNodesTable, { visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, data: storageNodes, onShowAll: handleShowAllNodes, sort: nodesSort, handleSort: handleNodesSort, columns: storageNodesColumnsToShow }, "nodes")) : null] }));
82
92
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/containers/Storage/Storage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AAExE,OAAO,EAAC,YAAY,EAAE,WAAW,EAAC,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EAAC,sBAAsB,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mCAAmC,CAAC;AAEzE,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,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AC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,IAAC,QAAQ,EAAC,MAAM,GAAG,CAAC;IAC5C,CAAC;IAED,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAC1B,OAAO,EAAE,SAAS,IAAI,CAAC,kBAAkB,EACzC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAEpB,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,GACX,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -7,7 +7,7 @@ interface StorageGroupsTableProps {
7
7
  columns: StorageGroupsColumn[];
8
8
  visibleEntities: VisibleEntities;
9
9
  onShowAll?: VoidFunction;
10
- sort?: SortOrder;
10
+ sort?: SortOrder[];
11
11
  handleSort?: HandleSort;
12
12
  }
13
13
  export declare function StorageGroupsTable({ data, columns, visibleEntities, onShowAll, sort, handleSort, }: StorageGroupsTableProps): import("react/jsx-runtime").JSX.Element;
@@ -8,7 +8,7 @@ interface StorageNodesTableProps {
8
8
  columns: StorageNodesColumn[];
9
9
  visibleEntities: VisibleEntities;
10
10
  nodesUptimeFilter: NodesUptimeFilterValues;
11
- sort?: SortOrder;
11
+ sort?: SortOrder[];
12
12
  onShowAll?: VoidFunction;
13
13
  handleSort?: HandleSort;
14
14
  }
@@ -8,7 +8,7 @@ import { getTabletPagePath } from '../../../../routes';
8
8
  import { selectIsUserAllowedToMakeChanges } from '../../../../store/reducers/authentication/authentication';
9
9
  import { ETabletState } from '../../../../types/api/tablet';
10
10
  import { cn } from '../../../../utils/cn';
11
- import { calcUptime } from '../../../../utils/dataFormatters/dataFormatters';
11
+ import { getUptimeFromDateFormatted } from '../../../../utils/dataFormatters/dataFormatters';
12
12
  import { createTabletDeveloperUIHref } from '../../../../utils/developerUI/developerUI';
13
13
  import { useTypedSelector } from '../../../../utils/hooks';
14
14
  import { getDefaultNodePath } from '../../../Node/NodePages';
@@ -36,7 +36,10 @@ export const TabletInfo = ({ tablet }) => {
36
36
  }
37
37
  tabletInfo.push({ label: tabletInfoKeyset('field_state'), value: _jsx(TabletState, { state: State }) });
38
38
  if (hasUptime) {
39
- tabletInfo.push({ label: tabletInfoKeyset('field_uptime'), value: calcUptime(ChangeTime) });
39
+ tabletInfo.push({
40
+ label: tabletInfoKeyset('field_uptime'),
41
+ value: getUptimeFromDateFormatted(ChangeTime),
42
+ });
40
43
  }
41
44
  tabletInfo.push({ label: tabletInfoKeyset('field_generation'), value: Generation }, {
42
45
  label: tabletInfoKeyset('field_node'),
@@ -1 +1 @@
1
- {"version":3,"file":"TabletInfo.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletInfo/TabletInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAGtC,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,WAAW,EAAC,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,gCAAgC,EAAC,MAAM,0DAA0D,CAAC;AAC1G,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,UAAU,EAAC,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAC,2BAA2B,EAAC,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAC,gBAAgB,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AAO,CACH,0BACI,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,YAAG,gBAAgB,CAAC,aAAa,CAAC,GAAO,EAC3E,MAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,aAC3B,KAAC,YAAY,IACT,KAAK,EAAE,gBAAgB,CAAC,wBAAwB,CAAC,EACjD,GAAG,EAAE,2BAA2B,CAAC,QAAQ,EAAE,KAAK,CAAC,GACnD,EACF,KAAC,YAAY,IACT,KAAK,EAAE,gBAAgB,CAAC,6BAA6B,CAAC,EACtD,GAAG,EAAE,2BAA2B,CAAC,QAAQ,EAAE,UAAU,CAAC,GACxD,EACF,KAAC,YAAY,IACT,KAAK,EAAE,gBAAgB,CAAC,6BAA6B,CAAC,EACtD,GAAG,EAAE,2BAA2B,CAAC,QAAQ,EAAE,mBAAmB,CAAC,GACjE,EACF,KAAC,YAAY,IACT,KAAK,EAAE,gBAAgB,CAAC,0BAA0B,CAAC,EACnD,GAAG,EAAE,2BAA2B,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,GAC/D,IACC,IACL,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,IAAI,IAAC,GAAG,EAAE,EAAE,EAAE,IAAI,EAAC,QAAQ,aACvB,gBAAgB,EAAE,EAClB,WAAW,EAAE,IACX,CACV,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"TabletInfo.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletInfo/TabletInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAGtC,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,WAAW,EAAC,MAAM,gDAAgD,CAAC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