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
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
- import { Table, useTable } from '@gravity-ui/table';
3
+ import { useTable } from '@gravity-ui/table';
4
+ import { Table } from '../../../../components/Table/Table';
4
5
  import { getColumns } from './columns';
5
- import { b } from './shared';
6
6
  import { prepareData } from './utils';
7
7
  import './TabletStorageInfo.scss';
8
8
  export function TabletStorageInfo({ data }) {
@@ -20,17 +20,6 @@ export function TabletStorageInfo({ data }) {
20
20
  expanded,
21
21
  },
22
22
  });
23
- return (
24
- //block wrapper for table
25
- _jsx("div", { children: _jsx(Table, { table: table, headerCellClassName: ({ column }) => {
26
- var _a;
27
- const align = (_a = column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.align;
28
- return b('table-header-cell', { align });
29
- }, cellClassName: (cell) => {
30
- var _a, _b;
31
- const align = (_a = cell === null || cell === void 0 ? void 0 : cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.align;
32
- const verticalAlign = (_b = cell === null || cell === void 0 ? void 0 : cell.column.columnDef.meta) === null || _b === void 0 ? void 0 : _b.verticalAlign;
33
- return b('table-cell', { align, 'vertical-align': verticalAlign });
34
- }, className: b('table') }) }));
23
+ return _jsx(Table, { table: table });
35
24
  }
36
25
  //# sourceMappingURL=TabletStorageInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabletStorageInfo.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAKlD,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEpC,OAAO,0BAA0B,CAAC;AAMlC,MAAM,UAAU,iBAAiB,CAAC,EAAC,IAAI,EAAyB;IAC5D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAgB,EAAE,CAAC,CAAC;IAClE,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,CAAA,EAAA,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7F,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,QAAQ,CAAC;QACnB,OAAO;QACP,IAAI,EAAE,IAAI;QACV,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ;QACnC,eAAe,EAAE,IAAI;QACrB,gBAAgB,EAAE,WAAW;QAC7B,KAAK,EAAE;YACH,QAAQ;SACX;KACJ,CAAC,CAAC;IACH,OAAO;IACH,yBAAyB;IACzB,wBACI,KAAC,KAAK,IACF,KAAK,EAAE,KAAK,EACZ,mBAAmB,EAAE,CAAC,EAAC,MAAM,EAAC,EAAE,EAAE;;gBAC9B,MAAM,KAAK,GAAG,MAAA,MAAM,CAAC,SAAS,CAAC,IAAI,0CAAE,KAAK,CAAC;gBAC3C,OAAO,CAAC,CAAC,mBAAmB,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC;YAC3C,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,CAAC,CAAC,YAAY,EAAE,EAAC,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAC,CAAC,CAAC;YACrE,CAAC,EACD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GACvB,GACA,CACT,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"TabletStorageInfo.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAC,KAAK,EAAC,MAAM,oCAAoC,CAAC;AAGzD,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEpC,OAAO,0BAA0B,CAAC;AAMlC,MAAM,UAAU,iBAAiB,CAAC,EAAC,IAAI,EAAyB;IAC5D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAgB,EAAE,CAAC,CAAC;IAClE,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,CAAA,EAAA,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7F,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,QAAQ,CAAC;QACnB,OAAO;QACP,IAAI,EAAE,IAAI;QACV,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ;QACnC,eAAe,EAAE,IAAI;QACrB,gBAAgB,EAAE,WAAW;QAC7B,KAAK,EAAE;YACH,QAAQ;SACX;KACJ,CAAC,CAAC;IACH,OAAO,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AACnC,CAAC"}
@@ -2,58 +2,7 @@
2
2
 
3
3
  .ydb-tablet-storage-info {
4
4
  $block: &;
5
- &__table {
6
- table-layout: fixed;
7
- border-spacing: 0px;
8
- border-collapse: collapse;
9
- tr {
10
- &:hover {
11
- background-color: var(--g-color-base-simple-hover-solid) !important;
12
- }
13
- }
14
- tr:nth-of-type(2n + 1) {
15
- background-color: var(--g-color-base-generic-ultralight);
16
- }
17
- :is(#{$block}__table-header-cell) {
18
- height: 40px;
19
- padding: 0;
20
5
 
21
- text-align: left;
22
-
23
- background-color: var(--g-color-base-background);
24
- @include mixins.text-subheader-2();
25
- }
26
- :is(#{$block}__table-cell) {
27
- height: 40px;
28
- padding: 0;
29
- @include mixins.text-body-2();
30
- }
31
- }
32
-
33
- &__table-header-cell {
34
- &_align_right {
35
- #{$block}__table-header-content {
36
- justify-content: flex-end;
37
-
38
- text-align: right;
39
- }
40
- }
41
- }
42
-
43
- &__table-header-content {
44
- display: flex;
45
- align-items: center;
46
-
47
- height: 100%;
48
- padding: var(--g-spacing-1) var(--g-spacing-2);
49
-
50
- vertical-align: middle;
51
-
52
- border-bottom: 1px solid var(--g-color-line-generic);
53
- }
54
- :is(&__table-cell_align_right) {
55
- text-align: right;
56
- }
57
6
  &__metrics-cell {
58
7
  padding: var(--g-spacing-1) var(--g-spacing-2);
59
8
 
@@ -1,11 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ArrowToggle, Button, Flex } from '@gravity-ui/uikit';
3
+ import { ColumnHeader } from '../../../../components/Table/Table';
3
4
  import { formatTimestamp } from '../../../../utils/dataFormatters/dataFormatters';
4
5
  import { tabletInfoKeyset } from './i18n';
5
6
  import { b } from './shared';
6
- function ColumnHeader({ name, className }) {
7
- return _jsx("div", { className: b('table-header-content', className), children: name });
8
- }
9
7
  function metricsCell(info, formatter) {
10
8
  const value = info.getValue();
11
9
  const formattedValue = typeof formatter === 'function' ? formatter(value) : value;
@@ -19,33 +17,33 @@ export function getColumns(hasExpand) {
19
17
  const columns = [
20
18
  {
21
19
  accessorKey: 'channelIndex',
22
- header: () => _jsx(ColumnHeader, { name: tabletInfoKeyset('label_channel-index') }),
20
+ header: () => _jsx(ColumnHeader, { children: tabletInfoKeyset('label_channel-index') }),
23
21
  size: 50,
24
22
  cell: metricsCell,
25
23
  meta: { align: 'right' },
26
24
  },
27
25
  {
28
26
  accessorKey: 'storagePoolName',
29
- header: () => _jsx(ColumnHeader, { name: tabletInfoKeyset('label_storage-pool') }),
27
+ header: () => _jsx(ColumnHeader, { children: tabletInfoKeyset('label_storage-pool') }),
30
28
  size: 200,
31
29
  cell: metricsCell,
32
30
  },
33
31
  {
34
32
  accessorKey: 'GroupID',
35
- header: () => (_jsx(ColumnHeader, { name: tabletInfoKeyset('label_group-id'), className: hasExpand ? b('with-padding') : undefined })),
33
+ header: () => (_jsx(ColumnHeader, { className: hasExpand ? b('with-padding') : undefined, children: tabletInfoKeyset('label_group-id') })),
36
34
  size: 100,
37
35
  cell: (info) => (_jsx(GroupIdCell, { row: info.row, name: info.getValue(), hasExpand: hasExpand })),
38
36
  },
39
37
  {
40
38
  accessorKey: 'FromGeneration',
41
- header: () => _jsx(ColumnHeader, { name: tabletInfoKeyset('label_generation') }),
39
+ header: () => _jsx(ColumnHeader, { children: tabletInfoKeyset('label_generation') }),
42
40
  size: 100,
43
41
  cell: metricsCell,
44
42
  meta: { align: 'right' },
45
43
  },
46
44
  {
47
45
  accessorKey: 'Timestamp',
48
- header: () => _jsx(ColumnHeader, { name: tabletInfoKeyset('label_timestamp') }),
46
+ header: () => _jsx(ColumnHeader, { children: tabletInfoKeyset('label_timestamp') }),
49
47
  size: 200,
50
48
  cell: (info) => metricsCell(info, formatTimestamp),
51
49
  meta: { align: 'right' },
@@ -1 +1 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletStorageInfo/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAG5D,OAAO,EAAC,eAAe,EAAC,MAAM,iDAAiD,CAAC;AAEhF,OAAO,EAAC,gBAAgB,EAAC,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAQ3B,SAAS,YAAY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;YACI,WAAW,EAAE,gBAAgB;YAC7B,MAAM,EAAE,GAAG,EAAE,CAAC,KAAC,YAAY,cAAE,gBAAgB,CAAC,kBAAkB,CAAC,GAAgB;YACjF,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC;SACzB;QACD;YACI,WAAW,EAAE,WAAW;YACxB,MAAM,EAAE,GAAG,EAAE,CAAC,KAAC,YAAY,cAAE,gBAAgB,CAAC,iBAAiB,CAAC,GAAgB;YAChF,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,eAAe,CAAC;YAClD,IAAI,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC;SACzB;KACJ,CAAC;IACF,OAAO,OAAO,CAAC;AACnB,CAAC"}
@@ -4,7 +4,7 @@ import { EntityStatus } from '../../../../components/EntityStatus/EntityStatus';
4
4
  import { InternalLink } from '../../../../components/InternalLink/InternalLink';
5
5
  import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
6
6
  import { TabletState } from '../../../../components/TabletState/TabletState';
7
- import { calcUptime } from '../../../../utils/dataFormatters/dataFormatters';
7
+ import { getUptimeFromDateFormatted } from '../../../../utils/dataFormatters/dataFormatters';
8
8
  import { getDefaultNodePath } from '../../../Node/NodePages';
9
9
  const TABLET_COLUMNS_WIDTH_LS_KEY = 'tabletTableColumnsWidth';
10
10
  const columns = [
@@ -17,7 +17,7 @@ const columns = [
17
17
  name: 'Change time',
18
18
  align: DataTable.RIGHT,
19
19
  sortable: false,
20
- render: ({ row }) => calcUptime(row.changeTime),
20
+ render: ({ row }) => getUptimeFromDateFormatted(row.changeTime),
21
21
  },
22
22
  {
23
23
  name: 'State',
@@ -1 +1 @@
1
- {"version":3,"file":"TabletTable.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletTable/TabletTable.tsx"],"names":[],"mapp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E,KAAK;QACf,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;YACd,OAAO,KAAC,YAAY,IAAC,EAAE,EAAE,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,YAAG,GAAG,CAAC,MAAM,GAAgB,CAAC;QACzF,CAAC;KACJ;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;YACd,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;gBACZ,OAAO,oCAAc,CAAC;YAC1B,CAAC;YACD,OAAO,KAAC,YAAY,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,kBAAkB,SAAG,CAAC;QAClF,CAAC;KACJ;CACJ,CAAC;AAEF,MAAM,cAAc,GAAG;IACnB,cAAc,EAAE,KAAK;CACxB,CAAC;AAMF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAC,OAAO,EAAmB,EAAE,EAAE;IACvD,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,2BAA2B,EAC9C,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,cAAc,EACxB,gBAAgB,EAAE;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,SAAS,CAAC,UAAU;SAC9B,GACH,CACL,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"TabletTable.js","sourceRoot":"","sources":["../../../../../src/containers/Tablet/components/TabletTable/TabletTable.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;A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;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;YACd,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;gBACZ,OAAO,oCAAc,CAAC;YAC1B,CAAC;YACD,OAAO,KAAC,YAAY,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,kBAAkB,SAAG,CAAC;QAClF,CAAC;KACJ;CACJ,CAAC;AAEF,MAAM,cAAc,GAAG;IACnB,cAAc,EAAE,KAAK;CACxB,CAAC;AAMF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAC,OAAO,EAAmB,EAAE,EAAE;IACvD,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,2BAA2B,EAC9C,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,cAAc,EACxB,gBAAgB,EAAE;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,SAAS,CAAC,UAAU;SAC9B,GACH,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -12,7 +12,7 @@ import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentic
12
12
  import { tabletApi } from '../../store/reducers/tablet';
13
13
  import { ETabletState } from '../../types/api/tablet';
14
14
  import { DEFAULT_TABLE_SETTINGS, EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
15
- import { calcUptime } from '../../utils/dataFormatters/dataFormatters';
15
+ import { getUptimeFromDateFormatted } from '../../utils/dataFormatters/dataFormatters';
16
16
  import { useTypedSelector } from '../../utils/hooks';
17
17
  import { getDefaultNodePath } from '../Node/NodePages';
18
18
  import i18n from './i18n';
@@ -87,7 +87,7 @@ function getColumns({ database }) {
87
87
  return i18n('Uptime');
88
88
  },
89
89
  render: ({ row }) => {
90
- return calcUptime(row.ChangeTime);
90
+ return getUptimeFromDateFormatted(row.ChangeTime);
91
91
  },
92
92
  sortAccessor: (row) => -Number(row.ChangeTime),
93
93
  align: 'right',
@@ -1 +1 @@
1
- {"version":3,"file":"TabletsTable.js","sourceRoot":"","sources":["../../../src/containers/Tablets/TabletsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,iBAAiB,EAAC,MAAM,sDAAsD,CAAC;AACvF,OAAO,EAAC,WAAW,EAAC,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAC,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AAErD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,SAAS,UAAU,CAAC,EAAC,QAAQ,EAAsB;IAC/C,MAAM,OAAO,GAA0D;QACnE;YACI,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,GAAG;YACV,IAAI,MAAM;gBACN,OAAO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AAC;QACV,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IACD,OAAO,CACH,KAAC,mBAAmB,IAChB,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,UAAU,CAAC,EAAC,QAAQ,EAAC,CAAC,EAC/B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,GACzC,CACL,CAAC;AACN,CAAC"}
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "no-data" | "disabled" | "td-feature-flag" | "td-default" | "td-current" | "enabled" | "flag-touched" | "search-placeholder" | "search-empty", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "no-data" | "disabled" | "enabled" | "td-feature-flag" | "td-default" | "td-current" | "flag-touched" | "search-placeholder" | "search-empty", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import type { EPathType } from '../../../../types/api/schema';
2
2
  import './Describe.scss';
3
- import 'react-json-inspector/json-inspector.css';
4
3
  interface IDescribeProps {
5
4
  path: string;
6
5
  database: string;
@@ -1,15 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ClipboardButton } from '@gravity-ui/uikit';
3
- import JSONTree from 'react-json-inspector';
4
3
  import { shallowEqual } from 'react-redux';
5
4
  import { ResponseError } from '../../../../components/Errors/ResponseError';
5
+ import { JSONTree } from '../../../../components/JSONTree/JSONTree';
6
6
  import { Loader } from '../../../../components/Loader';
7
7
  import { selectSchemaMergedChildrenPaths, useGetMultiOverviewQuery, } from '../../../../store/reducers/overview/overview';
8
8
  import { cn } from '../../../../utils/cn';
9
9
  import { useAutoRefreshInterval, useTypedSelector } from '../../../../utils/hooks';
10
10
  import { isEntityWithMergedImplementation } from '../../utils/schema';
11
11
  import './Describe.scss';
12
- import 'react-json-inspector/json-inspector.css';
13
12
  const b = cn('ydb-describe');
14
13
  const expandMap = new Map();
15
14
  const Describe = ({ path, database, type }) => {
@@ -44,11 +43,9 @@ const Describe = ({ path, database, type }) => {
44
43
  if (!preparedDescribeData && !error) {
45
44
  return _jsx("div", { className: b('message-container'), children: "Empty" });
46
45
  }
47
- return (_jsxs("div", { className: b(), children: [error ? _jsx(ResponseError, { error: error }) : null, preparedDescribeData ? (_jsxs("div", { className: b('result'), children: [_jsx(JSONTree, { data: preparedDescribeData, className: b('tree'), onClick: ({ path }) => {
46
+ return (_jsxs("div", { className: b(), children: [error ? _jsx(ResponseError, { error: error }) : null, preparedDescribeData ? (_jsxs("div", { className: b('result'), children: [_jsx(JSONTree, { data: preparedDescribeData, onClick: ({ path }) => {
48
47
  const newValue = !(expandMap.get(path) || false);
49
48
  expandMap.set(path, newValue);
50
- }, searchOptions: {
51
- debounceTime: 300,
52
49
  }, isExpanded: (keypath) => {
53
50
  return expandMap.get(keypath) || false;
54
51
  } }), _jsx(ClipboardButton, { view: "flat-secondary", text: JSON.stringify(preparedDescribeData), className: b('copy') })] })) : null] }));
@@ -1 +1 @@
1
- {"version":3,"file":"Describe.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/Describe/Describe.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EACH,+BAA+B,EAC/B,wBAAwB,GAC3B,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAC,gCAAgC,EAAC,MAAM,oBAAoB,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,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC;4BACjD,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;wBAClC,CAAC,EACD,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;4BACpB,OAAO,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC;wBAC3C,CAAC,GACH,EACF,KAAC,eAAe,IACZ,IAAI,EAAC,gBAAgB,EACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,EAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,GACtB,IACA,CACT,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -15,16 +15,8 @@
15
15
  padding: 0 20px 20px 0;
16
16
  }
17
17
 
18
- &__tree {
19
- @include mixins.json-tree-styles();
20
- }
21
-
22
18
  &__copy {
23
19
  position: absolute;
24
- left: 308px;
25
- }
26
-
27
- .json-inspector__search {
28
- height: 26px;
20
+ left: 340px;
29
21
  }
30
22
  }
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import _omit from 'lodash/omit';
4
- import JSONTree from 'react-json-inspector';
5
4
  import { TreeView } from 'ydb-ui-components';
5
+ import { JSONTree } from '../../../../../../components/JSONTree/JSONTree';
6
6
  import { hcStatusToColorFlag } from '../../../../../../store/reducers/healthcheckInfo/utils';
7
7
  import { cn } from '../../../../../../utils/cn';
8
8
  import { IssueTreeItem } from './IssueTreeItem';
@@ -14,7 +14,7 @@ const IssueTree = ({ issueTree }) => {
14
14
  if (!info) {
15
15
  return null;
16
16
  }
17
- return (_jsx("div", { className: b('info-panel'), children: _jsx(JSONTree, { data: info, search: false, isExpanded: () => true, className: b('inspector') }) }));
17
+ return (_jsx("div", { className: b('info-panel'), children: _jsx(JSONTree, { data: info, search: false, isExpanded: () => true, treeClassName: b('inspector') }) }));
18
18
  }, []);
19
19
  const renderTree = React.useCallback((data) => {
20
20
  return data.map((item) => {
@@ -1 +1 @@
1
- {"version":3,"file":"IssueTree.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAC,mBAAmB,EAAC,MAAM,wDAAwD,CAAC;AAC3F,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAE9C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC;AAM3B,MAAM,SAAS,GAAG,CAAC,EAAC,SAAS,EAAoB,EAAE,EAAE;IACjD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAA0B,EAAE,CAAC,CAAC;IAE1F,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,IAAa,EAAE,EAAE;QACxD,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAC3B,KAAC,QAAQ,IACL,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,EACtB,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,GAC3B,GACA,CACT,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,UAAU,GA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AAO,GACzD,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"IssueTree.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,QAAQ,EAAC,MAAM,gDAAgD,CAAC;AAExE,OAAO,EAAC,mBAAmB,EAAC,MAAM,wDAAwD,CAAC;AAC3F,OAAO,EAAC,EAAE,EAAC,MAAM,4BAA4B,CAAC;AAE9C,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC;AAM3B,MAAM,SAAS,GAAG,CAAC,EAAC,SAAS,EAAoB,EAAE,EAAE;IACjD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAA0B,EAAE,CAAC,CAAC;IAE1F,MAAM,eAAe,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,IAAa,EAAE,EAAE;QACxD,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAC3B,KAAC,QAAQ,IACL,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,EACtB,aAAa,EAAE,CAAC,CAAC,WAAW,CAAC,GAC/B,GACA,CACT,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,CAChC,CAAC,IAAk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AAEF,eAAe,SAAS,CAAC"}
@@ -23,8 +23,6 @@
23
23
  }
24
24
 
25
25
  &__inspector {
26
- @include mixins.json-tree-styles();
27
-
28
26
  :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before {
29
27
  content: '';
30
28
  }
@@ -9,7 +9,8 @@ import { useAutoRefreshInterval, useTypedDispatch } from '../../../../../utils/h
9
9
  import { useChangeInputWithConfirmation } from '../../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
10
10
  import { parseQueryErrorToString } from '../../../../../utils/query';
11
11
  import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
12
- import { TENANT_OVERVIEW_TOP_QUERUES_COLUMNS, TOP_QUERIES_COLUMNS_WIDTH_LS_KEY, } from '../../TopQueries/getTopQueriesColumns';
12
+ import { getTenantOverviewTopQueriesColumns } from '../../TopQueries/columns/columns';
13
+ import { TOP_QUERIES_COLUMNS_WIDTH_LS_KEY } from '../../TopQueries/columns/constants';
13
14
  import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
14
15
  import { getSectionTitle } from '../getSectionTitle';
15
16
  import i18n from '../i18n';
@@ -21,7 +22,9 @@ export function TopQueries({ tenantName }) {
21
22
  const history = useHistory();
22
23
  const query = parseQuery(location);
23
24
  const [autoRefreshInterval] = useAutoRefreshInterval();
24
- const columns = TENANT_OVERVIEW_TOP_QUERUES_COLUMNS;
25
+ const columns = React.useMemo(() => {
26
+ return getTenantOverviewTopQueriesColumns();
27
+ }, []);
25
28
  const { currentData, isFetching, error } = topQueriesApi.useGetTopQueriesQuery({ database: tenantName }, { pollingInterval: autoRefreshInterval });
26
29
  const loading = isFetching && currentData === undefined;
27
30
  const data = ((_b = (_a = currentData === null || currentData === void 0 ? void 0 : currentData.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) || [];
@@ -1 +1 @@
1
- {"version":3,"file":"TopQueries.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantO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,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAC,CAAC,CAAC,CAAC;QACrE,CAAC;QACD,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,UAAU;SAC5E,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,gCAAgC,EACnD,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,cAAc,EAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,EACrC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAC1C,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"TopQueries.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACH,oBAAoB,EACpB,aAAa,GAChB,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EACH,2BAA2B,EAC3B,WAAW,EACX,gBAAgB,EAChB,oBAAoB,GACvB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAC,8BAA8B,EAAC,MAAM,4EAA4E,CAAC;AAC1H,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAC,g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,CAAC,EACrC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAC1C,CACL,CAAC;AACN,CAAC"}
@@ -6,7 +6,8 @@ import { topShardsApi } from '../../../../../store/reducers/tenantOverview/topSh
6
6
  import { useAutoRefreshInterval } from '../../../../../utils/hooks';
7
7
  import { parseQueryErrorToString } from '../../../../../utils/query';
8
8
  import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
9
- import { TOP_SHARDS_COLUMNS_WIDTH_LS_KEY, getTopShardsColumns, } from '../../TopShards/getTopShardsColumns';
9
+ import { getTopShardsColumns } from '../../TopShards/columns/columns';
10
+ import { TOP_SHARDS_COLUMNS_WIDTH_LS_KEY } from '../../TopShards/columns/constants';
10
11
  import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
11
12
  import { getSectionTitle } from '../getSectionTitle';
12
13
  import i18n from '../i18n';
@@ -1 +1 @@
1
- {"version":3,"file":"TopShards.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAC,YAAY,EAAC,MAAM,gFAAgF,CAAC;AAC5G,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACH,+BAA+B,EAC/B,mBAAmB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAA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AK,SAAS,CAAC;IACxD,MAAM,IAAI,GAAG,CAAA,MAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,0CAAG,CAAC,CAAC,0CAAE,MAAM,KAAI,EAAE,CAAC;IAExD,MAAM,OAAO,GAAG,mBAAmB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAE1D,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC;QAC7B,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,SAAS;SAC3E,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,+BAA+B,EAClD,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GACvC,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -6,21 +6,28 @@ import { TableWithControlsLayout } from '../../../../components/TableWithControl
6
6
  import { topQueriesApi } from '../../../../store/reducers/executeTopQueries/executeTopQueries';
7
7
  import { useAutoRefreshInterval, useTypedSelector } from '../../../../utils/hooks';
8
8
  import { parseQueryErrorToString } from '../../../../utils/query';
9
- import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
10
- import { RUNNING_QUERIES_COLUMNS, RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY, } from './getTopQueriesColumns';
9
+ import { getRunningQueriesColumns } from './columns/columns';
10
+ import { RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
11
11
  import i18n from './i18n';
12
+ import { TOP_QUERIES_TABLE_SETTINGS, useRunningQueriesSort } from './utils';
12
13
  export const RunningQueriesData = ({ database, onRowClick, rowClassName }) => {
13
14
  var _a;
14
15
  const [autoRefreshInterval] = useAutoRefreshInterval();
15
16
  const filters = useTypedSelector((state) => state.executeTopQueries);
16
- const { currentData, isLoading, error } = topQueriesApi.useGetRunningQueriesQuery({
17
+ const { tableSort, handleTableSort, backendSort } = useRunningQueriesSort();
18
+ const { currentData, isFetching, error } = topQueriesApi.useGetRunningQueriesQuery({
17
19
  database,
18
20
  filters,
21
+ sortOrder: backendSort,
19
22
  }, { pollingInterval: autoRefreshInterval });
23
+ const loading = isFetching && currentData === undefined;
20
24
  const data = ((_a = currentData === null || currentData === void 0 ? void 0 : currentData.resultSets) === null || _a === void 0 ? void 0 : _a[0].result) || [];
25
+ const columns = React.useMemo(() => {
26
+ return getRunningQueriesColumns();
27
+ }, []);
21
28
  const handleRowClick = (row) => {
22
29
  return onRowClick(row.QueryText);
23
30
  };
24
- return (_jsxs(React.Fragment, { children: [error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: isLoading, children: _jsx(ResizeableDataTable, { emptyDataMessage: i18n('no-data'), columnsWidthLSKey: RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY, columns: RUNNING_QUERIES_COLUMNS, data: data, settings: QUERY_TABLE_SETTINGS, onRowClick: handleRowClick, rowClassName: () => rowClassName }) })] }));
31
+ return (_jsxs(React.Fragment, { children: [error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: loading, children: _jsx(ResizeableDataTable, { emptyDataMessage: i18n('no-data'), columnsWidthLSKey: RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY, columns: columns, data: data, settings: TOP_QUERIES_TABLE_SETTINGS, onRowClick: handleRowClick, rowClassName: () => rowClassName, sortOrder: tableSort, onSort: handleTableSort }) })] }));
25
32
  };
26
33
  //# sourceMappingURL=RunningQueriesData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RunningQueriesData.js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C,GAAG,CAAC,SAAmB,CAAC,CAAC;IAC/C,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACV,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACxE,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,SAAS,YAC7C,KAAC,mBAAmB,IAChB,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,EACjC,iBAAiB,EAAE,oCAAoC,EACvD,OAAO,EAAE,uBAAuB,EAChC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,oBAAoB,EAC9B,UAAU,EAAE,cAAc,EAC1B,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,GAClC,GAC0B,IACnB,CACpB,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"RunningQueriesData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,aAAa,EAAC,MAAM,gEAAgE,CAAC;AAE7F,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAC,wBAAwB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,oCAAoC,EAAC,MAAM,qBAAqB,CAAC;AACzE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,0BAA0B,EAAE,qBAAqB,EAAC,MA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gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,EACjC,iBAAiB,EAAE,oCAAoC,EACvD,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,0BAA0B,EACpC,UAAU,EAAE,cAAc,EAC1B,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,EAChC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,eAAe,GACzB,GAC0B,IACnB,CACpB,CAAC;AACN,CAAC,CAAC"}
@@ -4,29 +4,30 @@ import { ResponseError } from '../../../../components/Errors/ResponseError';
4
4
  import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
5
5
  import { TableWithControlsLayout } from '../../../../components/TableWithControlsLayout/TableWithControlsLayout';
6
6
  import { topQueriesApi } from '../../../../store/reducers/executeTopQueries/executeTopQueries';
7
- import { isSortableTopQueriesProperty } from '../../../../utils/diagnostics';
8
7
  import { useAutoRefreshInterval, useTypedSelector } from '../../../../utils/hooks';
9
8
  import { parseQueryErrorToString } from '../../../../utils/query';
10
- import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
11
- import { TOP_QUERIES_COLUMNS, TOP_QUERIES_COLUMNS_WIDTH_LS_KEY } from './getTopQueriesColumns';
9
+ import { getTopQueriesColumns } from './columns/columns';
10
+ import { TOP_QUERIES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
12
11
  import i18n from './i18n';
12
+ import { TOP_QUERIES_TABLE_SETTINGS, useTopQueriesSort } from './utils';
13
13
  export const TopQueriesData = ({ database, onRowClick, rowClassName }) => {
14
14
  var _a, _b;
15
15
  const [autoRefreshInterval] = useAutoRefreshInterval();
16
16
  const filters = useTypedSelector((state) => state.executeTopQueries);
17
- const { currentData, isLoading, error } = topQueriesApi.useGetTopQueriesQuery({
17
+ const { tableSort, handleTableSort, backendSort } = useTopQueriesSort();
18
+ const { currentData, isFetching, error } = topQueriesApi.useGetTopQueriesQuery({
18
19
  database,
19
20
  filters,
21
+ sortOrder: backendSort,
20
22
  }, { pollingInterval: autoRefreshInterval });
23
+ const loading = isFetching && currentData === undefined;
21
24
  const data = ((_b = (_a = currentData === null || currentData === void 0 ? void 0 : currentData.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) || [];
22
- const rawColumns = TOP_QUERIES_COLUMNS;
23
- const columns = rawColumns.map((column) => ({
24
- ...column,
25
- sortable: isSortableTopQueriesProperty(column.name),
26
- }));
25
+ const columns = React.useMemo(() => {
26
+ return getTopQueriesColumns();
27
+ }, []);
27
28
  const handleRowClick = (row) => {
28
29
  return onRowClick(row.QueryText);
29
30
  };
30
- return (_jsxs(React.Fragment, { children: [error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: isLoading, children: _jsx(ResizeableDataTable, { emptyDataMessage: i18n('no-data'), columnsWidthLSKey: TOP_QUERIES_COLUMNS_WIDTH_LS_KEY, columns: columns, data: data || [], settings: QUERY_TABLE_SETTINGS, onRowClick: handleRowClick, rowClassName: () => rowClassName }) })] }));
31
+ return (_jsxs(React.Fragment, { children: [error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: loading, children: _jsx(ResizeableDataTable, { emptyDataMessage: i18n('no-data'), columnsWidthLSKey: TOP_QUERIES_COLUMNS_WIDTH_LS_KEY, columns: columns, data: data || [], settings: TOP_QUERIES_TABLE_SETTINGS, onRowClick: handleRowClick, rowClassName: () => rowClassName, sortOrder: tableSort, onSort: handleTableSort }) })] }));
31
32
  };
32
33
  //# sourceMappingURL=TopQueriesData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopQueriesData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1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