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
@@ -1,17 +1,15 @@
1
1
  import React from 'react';
2
2
  import { requestStorageData } from '../../../store/reducers/storage/requestStorageData';
3
3
  import { prepareSortValue } from '../../../utils/filters';
4
- import { isSortableStorageProperty } from '../../../utils/storage';
5
4
  import { getRequiredDataFields } from '../../../utils/tableUtils/getRequiredDataFields';
6
- import { GROUPS_COLUMNS_TO_DATA_FIELDS } from './columns/constants';
5
+ import { GROUPS_COLUMNS_TO_DATA_FIELDS, getStorageGroupsColumnSortField } from './columns/constants';
7
6
  export function useGroupsGetter(shouldUseGroupsHandler) {
8
7
  const fetchData = React.useCallback(async (params) => {
9
8
  const { limit, offset, sortParams, filters, columnsIds } = params;
10
9
  const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
11
10
  const { searchValue, visibleEntities, database, nodeId, groupId, pDiskId, filterGroup, filterGroupBy, } = filters !== null && filters !== void 0 ? filters : {};
12
- const sort = isSortableStorageProperty(columnId)
13
- ? prepareSortValue(columnId, sortOrder)
14
- : undefined;
11
+ const sortField = getStorageGroupsColumnSortField(columnId);
12
+ const sort = sortField ? prepareSortValue(sortField, sortOrder) : undefined;
15
13
  const dataFieldsRequired = getRequiredDataFields(columnsIds, GROUPS_COLUMNS_TO_DATA_FIELDS);
16
14
  const { groups, found, total } = await requestStorageData({
17
15
  limit,
@@ -1 +1 @@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,EAAE,eAAe;YACrB,QAAQ;YACR,MAAM;YACN,OAAO;YACP,OAAO;YACP,YAAY,EAAE,WAAW;YACzB,eAAe,EAAE,aAAa;YAC9B,cAAc,EAAE,kBAAkB;YAClC,sBAAsB;SACzB,CAAC,CAAC;QAEH,OAAO;YACH,IAAI,EAAE,MAAM,IAAI,EAAE;YAClB,KAAK,EAAE,KAAK,IAAI,CAAC;YACjB,KAAK,EAAE,KAAK,IAAI,CAAC;SACpB,CAAC;IACN,CAAC,EACD,CAAC,sBAAsB,CAAC,CAC3B,CAAC;IAEF,OAAO,SAAS,CAAC;AACrB,CAAC"}
1
+ {"version":3,"file":"getGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/getGroups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,oDAAoD,CAAC;AAKtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AAEtF,OAAO,EAAC,6BAA6B,EAAE,+BAA+B,EAAC,MAAM,qBAAqB,CAAC;AAInG,MAAM,UAAU,eAAe,CAAC,sBAA+B;IAC3D,MAAM,SAAS,GAAqB,KAAK,CAAC,WAAW,CACjD,KAAK,EAAE,MAAM,EAAE,EAAE;QACb,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAC,GAAG,MAAM,CAAC;QAChE,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;QAC/C,MAAM,EACF,WAAW,EACX,eAAe,EACf,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,GAChB,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;QAElB,MAAM,SAAS,GAAG,+BAA+B,CAAC,QAAQ,CAAC,CAAC;QAC5D,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE5E,MAAM,kBAAkB,GAAG,qBAAqB,CAC5C,UAAU,EACV,6BAA6B,CAChC,CAAC;QAEF,MAAM,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAC,GAAG,MAAM,kBAAkB,CAAC;YACpD,KAAK;YACL,MAAM;YACN,IAAI;YACJ,MAAM,EAAE,WAAW;YACnB,IAAI,EAAE,eAAe;YACrB,QAAQ;YACR,MAAM;YACN,OAAO;YACP,OAAO;YACP,YAAY,EAAE,WAAW;YACzB,eAAe,EAAE,aAAa;YAC9B,cAAc,EAAE,kBAAkB;YAClC,sBAAsB;SACzB,CAAC,CAAC;QAEH,OAAO;YACH,IAAI,EAAE,MAAM,IAAI,EAAE;YAClB,KAAK,EAAE,KAAK,IAAI,CAAC;YACjB,KAAK,EAAE,KAAK,IAAI,CAAC;SACpB,CAAC;IACN,CAAC,EACD,CAAC,sBAAsB,CAAC,CAC3B,CAAC;IAEF,OAAO,SAAS,CAAC;AACrB,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import DataTable from '@gravity-ui/react-data-table';
3
3
  import { getCpuColumn, getDataCenterColumn, getDiskSpaceUsageColumn, getHostColumn, getMemoryColumn, getMissingDisksColumn, getNodeIdColumn, getNodeNameColumn, getPoolsColumn, getRAMColumn, getRackColumn, getUptimeColumn, getVersionColumn, } from '../../../../components/nodesColumns/columns';
4
- import { NODES_COLUMNS_IDS, NODES_COLUMNS_TITLES, } from '../../../../components/nodesColumns/constants';
4
+ import { NODES_COLUMNS_IDS, NODES_COLUMNS_TITLES, isSortableNodesColumn, } from '../../../../components/nodesColumns/constants';
5
5
  import { cn } from '../../../../utils/cn';
6
- import { isSortableNodesProperty } from '../../../../utils/nodes';
7
6
  import { PDisk } from '../../PDisk/PDisk';
8
7
  import './StorageNodesColumns.scss';
9
8
  const b = cn('ydb-storage-nodes-columns');
@@ -46,7 +45,7 @@ export const getStorageNodesColumns = ({ database, additionalNodesProps, viewCon
46
45
  ];
47
46
  const sortableColumns = columns.map((column) => ({
48
47
  ...column,
49
- sortable: isSortableNodesProperty(column.name),
48
+ sortable: isSortableNodesColumn(column.name),
50
49
  }));
51
50
  return sortableColumns;
52
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACH,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC,OAAO,4BAA4B,CAAC;AAEpC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,eAAe,GAAG,CAAC,EAAC,WAAW,EAA+B,EAAsB,EAAE;IACxF,OAAO;QACH,IAAI,EAAE,iBAAiB,CAAC,MAAM;QAC9B,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC;QAC7B,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;;YACd,OAAO,CACH,cAAK,SAAS,EAAE,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O,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC7C,GAAG,MAAM;QACT,QAAQ,EAAE,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC;KACjD,CAAC,CAAC,CAAC;IAEJ,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAC"}
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,uBAAuB,EACvB,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACH,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,GACxB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAIxC,OAAO,4BAA4B,CAAC;AAEpC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAE1C,MAAM,eAAe,GAAG,CAAC,EAAC,WAAW,EAA+B,EAAsB,EAAE;IACxF,OAAO;QACH,IAAI,EAAE,iBAAiB,CAAC,MAAM;QAC9B,MAAM,EAAE,oBAAoB,CAAC,MAAM;QACnC,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC;QAC7B,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE;;YACd,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC9B,MAAA,GAAG,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;;oBACvB,MAAM,MAAM,GAAG,MAAA,GAAG,CAAC,MA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AC,CAAC;IAEJ,OAAO,eAAe,CAAC;AAC3B,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { NODES_COLUMNS_TITLES } from '../../../../components/nodesColumns/constants';
2
+ import { getNodesGroupByFieldTitle } from '../../../../components/nodesColumns/constants';
3
3
  export const STORAGE_NODES_COLUMNS_WIDTH_LS_KEY = 'storageNodesColumnsWidth';
4
4
  export const STORAGE_NODES_SELECTED_COLUMNS_LS_KEY = 'storageNodesSelectedColumns';
5
5
  export const DEFAULT_STORAGE_NODES_COLUMNS = [
@@ -24,7 +24,7 @@ const STORAGE_NODES_GROUP_BY_PARAMS = [
24
24
  export const STORAGE_NODES_GROUP_BY_OPTIONS = STORAGE_NODES_GROUP_BY_PARAMS.map((param) => {
25
25
  return {
26
26
  value: param,
27
- content: NODES_COLUMNS_TITLES[param],
27
+ content: getNodesGroupByFieldTitle(param),
28
28
  };
29
29
  });
30
30
  export const storageNodesGroupByParamSchema = z
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AAGnF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,MAAM,CAAC,MAAM,6BAA6B,GAAoB;IAC1D,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;CACX,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAE1E,MAAM,6BAA6B,GAAG;IAClC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,SAAS;IACT,gBAAgB;CACoB,CAAC;AAEzC,MAAM,CAAC,MAAM,8BAA8B,GAAmB,6BAA6B,CAAC,GAAG,CAC3F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC;KACvC,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC1C,MAAM,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/F,KAAK,CAAC,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,yBAAyB,EAAC,MAAM,+CAA+C,CAAC;AAGxF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAC;AAEnF,MAAM,CAAC,MAAM,6BAA6B,GAAoB;IAC1D,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;CACX,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAoB,CAAC,QAAQ,CAAC,CAAC;AAE1E,MAAM,6BAA6B,GAAG;IAClC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,SAAS;IACT,gBAAgB;CACoB,CAAC;AAEzC,MAAM,CAAC,MAAM,8BAA8B,GAAmB,6BAA6B,CAAC,GAAG,CAC3F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,yBAAyB,CAAC,KAAK,CAAC;KAC5C,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC1C,MAAM,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/F,KAAK,CAAC,SAAS,CAAC,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 { prepareStorageNodesResponse } from '../../../store/reducers/storage/utils';
3
3
  import { prepareSortValue } from '../../../utils/filters';
4
- import { NODES_SORT_VALUE_TO_FIELD, getUptimeParamValue, isSortableNodesProperty, } from '../../../utils/nodes';
4
+ import { getUptimeParamValue } from '../../../utils/nodes';
5
5
  import { getRequiredDataFields } from '../../../utils/tableUtils/getRequiredDataFields';
6
6
  export const getStorageNodes = async (params) => {
7
7
  const { type = 'static', storage = true, limit, offset, sortParams, filters, columnsIds, } = params;
8
8
  const { searchValue, nodesUptimeFilter, visibleEntities, database, nodeId, groupId, filterGroup, filterGroupBy, } = filters !== null && filters !== void 0 ? filters : {};
9
9
  const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
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/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,4BAA4B,EAAC,MAAM,4CAA4C,CAAC;AAKxF,OAAO,EAAC,2BAA2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eAAe,EAAE,aAAa;QAC9B,cAAc,EAAE,kBAAkB;KACrC,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IAC/D,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;KACrC,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"AACA,OAAO,EACH,4BAA4B,EAC5B,uBAAuB,GAC1B,MAAM,4CAA4C,CAAC;AAKpD,OAAO,EAAC,2BAA2B,EAAC,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AAEtF,MAAM,CAAC,MAAM,eAAe,GAIxB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EACF,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,IAAI,EACd,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,GACb,GAAG,MAAM,CAAC;IACX,MAAM,EACF,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,aAAa,GAChB,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;IAClB,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;IAE/C,MAAM,SAAS,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACpD,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE5E,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,UAAU,EAAE,4BAA4B,CAAC,CAAC;IAE3F,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACvC,IAAI;QACJ,OAAO;QACP,KAAK;QACL,MAAM;QACN,IAAI;QACJ,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,mBAAmB,CAAC,iBAAiB,CAAC;QAC9C,IAAI,EAAE,eAAe;QACrB,QAAQ;QACR,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,aAAa;QAC9B,cAAc,EAAE,kBAAkB;KACrC,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IAC/D,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;KACrC,CAAC;AACN,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import type { NodesSortParams } from '../../../store/reducers/nodes/types';
2
2
  import type { PreparedStorageGroup, StorageSortParams, VisibleEntities } from '../../../store/reducers/storage/types';
3
3
  import type { PreparedVDisk } from '../../../utils/disks/types';
4
4
  import type { StorageViewContext } from '../types';
5
- export declare const getDegradedSeverity: (group: PreparedStorageGroup) => "success" | "warning" | "danger" | undefined;
5
+ export declare const getDegradedSeverity: (group: PreparedStorageGroup) => "warning" | "danger" | "success" | undefined;
6
6
  export declare const defaultSortNode: NodesSortParams;
7
7
  export declare function getDefaultSortGroup(visibleEntities: VisibleEntities): StorageSortParams;
8
8
  export declare function isVdiskActive(vDisk: PreparedVDisk, viewContext?: StorageViewContext): boolean;
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "Uptime" | "State" | "Tablet" | "Type" | "Generation" | "Node ID" | "Node FQDN" | "noTabletsData" | "dialog.kill-header" | "dialog.kill-text" | "controls.kill-not-allowed", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "Tablet" | "Uptime" | "State" | "Type" | "Generation" | "Node ID" | "Node FQDN" | "noTabletsData" | "dialog.kill-header" | "dialog.kill-text" | "controls.kill-not-allowed", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -6,6 +6,7 @@ import { changeUserInput } from '../../../../../store/reducers/executeQuery';
6
6
  import { setTopQueriesFilters, topQueriesApi, } from '../../../../../store/reducers/executeTopQueries/executeTopQueries';
7
7
  import { TENANT_DIAGNOSTICS_TABS_IDS, TENANT_PAGE, TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID, } from '../../../../../store/reducers/tenant/constants';
8
8
  import { useAutoRefreshInterval, useTypedDispatch } from '../../../../../utils/hooks';
9
+ import { useChangeInputWithConfirmation } from '../../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
9
10
  import { parseQueryErrorToString } from '../../../../../utils/query';
10
11
  import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
11
12
  import { TENANT_OVERVIEW_TOP_QUERUES_COLUMNS, TOP_QUERIES_COLUMNS_WIDTH_LS_KEY, } from '../../TopQueries/getTopQueriesColumns';
@@ -24,7 +25,7 @@ export function TopQueries({ tenantName }) {
24
25
  const { currentData, isFetching, error } = topQueriesApi.useGetTopQueriesQuery({ database: tenantName }, { pollingInterval: autoRefreshInterval });
25
26
  const loading = isFetching && currentData === undefined;
26
27
  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) || [];
27
- const handleRowClick = React.useCallback((row) => {
28
+ const applyRowClick = React.useCallback((row) => {
28
29
  const { QueryText: input } = row;
29
30
  dispatch(changeUserInput({ input }));
30
31
  const queryParams = parseQuery(location);
@@ -35,6 +36,7 @@ export function TopQueries({ tenantName }) {
35
36
  });
36
37
  history.push(queryPath);
37
38
  }, [dispatch, history, location]);
39
+ const handleRowClick = useChangeInputWithConfirmation(applyRowClick);
38
40
  const title = getSectionTitle({
39
41
  entity: i18n('queries'),
40
42
  postfix: i18n('by-cpu-time', { executionPeriod: i18n('executed-last-hour') }),
@@ -1 +1 @@
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,EAAC,eAAe,EAAC,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EACH,oBAAoB,EACpB,aAAa,GAChB,MAAM,mEAAmE,CAAC;AAC3E,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,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACH,mCAAmC,EACnC,gCAAgC,GACnC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAM3B,MAAM,UAAU,UAA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AQ,CAAC,CAChC,CAAC;IAEF,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC;QACvB,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,EAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,EAAC,CAAC;QAC3E,OAAO,EAAE,GAAG,EAAE;YACV,QAAQ,CAAC,oBAAoB,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,EAAC,eAAe,EAAC,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EACH,oBAAoB,EACpB,aAAa,GAChB,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EACH,2BAA2B,EAC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AAO,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,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { getHostColumn, getLoadColumn, getMemoryColumn, getNodeIdColumn, getSessionsColumn, getSharedCacheUsageColumn, getTabletsColumn, getUptimeColumn, } from '../../../../../components/nodesColumns/columns';
2
+ import { getHostColumn, getLoadColumn, getMemoryColumn, getNodeIdColumn, getSessionsColumn, getTabletsColumn, getUptimeColumn, } from '../../../../../components/nodesColumns/columns';
3
3
  import { NODES_COLUMNS_TO_DATA_FIELDS, NODES_COLUMNS_WIDTH_LS_KEY, } from '../../../../../components/nodesColumns/constants';
4
4
  import { nodesApi } from '../../../../../store/reducers/nodes/nodes';
5
5
  import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
@@ -11,17 +11,12 @@ import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
11
11
  import { getSectionTitle } from '../getSectionTitle';
12
12
  import i18n from '../i18n';
13
13
  function getTopNodesByMemoryColumns(params) {
14
- const memoryColumn = {
15
- ...getMemoryColumn(),
16
- header: i18n('column-header.process'),
17
- };
18
14
  const columns = [
19
15
  getNodeIdColumn(),
20
16
  getHostColumn(params),
21
17
  getUptimeColumn(),
22
18
  getLoadColumn(),
23
- memoryColumn,
24
- getSharedCacheUsageColumn(),
19
+ getMemoryColumn(),
25
20
  getSessionsColumn(),
26
21
  getTabletsColumn(params),
27
22
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"TopNodesByMemory.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx"],"names":[],"m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,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"TopNodesByMemory.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACH,4BAA4B,EAC5B,0BAA0B,GAC7B,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAC,QAAQ,EAAC,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAG3F,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EAAC,qBAAqB,EAAC,MAAM,uDAAuD,CAAC;AAC5F,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,SAAS,0BAA0B,CAC/B,MAA6B;IAE7B,MAAM,OAAO,GAAG;QACZ,eAAe,EAAuB;QACtC,aAAa,CAAsB,MAAM,CAAC;QAC1C,eAAe,EAAuB;QACtC,aAAa,EAAuB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,KAAK,KAAI,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC;QAC1B,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,KAAK;SACvE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "queries" | "nodes" | "no-data" | "top" | "groups" | "shards" | "tables" | "no-pools-data" | "top-nodes.empty-data" | "top-groups.empty-data" | "by-pools-usage" | "by-cpu-time" | "by-cpu-usage" | "by-load" | "by-memory" | "by-usage" | "by-size" | "cards.cpu-label" | "cards.storage-label" | "cards.memory-label" | "charts.queries-per-second" | "charts.transaction-latency" | "charts.cpu-usage" | "charts.storage-usage" | "charts.memory-usage" | "storage.tablet-storage-title" | "storage.tablet-storage-description" | "storage.db-storage-title" | "storage.db-storage-description" | "executed-last-hour" | "column-header.process", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "queries" | "nodes" | "tables" | "no-data" | "top" | "groups" | "shards" | "no-pools-data" | "top-nodes.empty-data" | "top-groups.empty-data" | "by-pools-usage" | "by-cpu-time" | "by-cpu-usage" | "by-load" | "by-memory" | "by-usage" | "by-size" | "cards.cpu-label" | "cards.storage-label" | "cards.memory-label" | "charts.queries-per-second" | "charts.transaction-latency" | "charts.cpu-usage" | "charts.storage-usage" | "charts.memory-usage" | "storage.tablet-storage-title" | "storage.tablet-storage-description" | "storage.db-storage-title" | "storage.db-storage-description" | "executed-last-hour" | "column-header.process", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -13,6 +13,7 @@ import { setTopQueriesFilters } from '../../../../store/reducers/executeTopQueri
13
13
  import { TENANT_PAGE, TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID, } from '../../../../store/reducers/tenant/constants';
14
14
  import { cn } from '../../../../utils/cn';
15
15
  import { useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
16
+ import { useChangeInputWithConfirmation } from '../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
16
17
  import { TenantTabsGroups, getTenantPath } from '../../TenantPages';
17
18
  import { RunningQueriesData } from './RunningQueriesData';
18
19
  import { TopQueriesData } from './TopQueriesData';
@@ -46,7 +47,7 @@ export const TopQueries = ({ tenantName }) => {
46
47
  const queryMode = queryModeSchema.parse(_queryMode);
47
48
  const isTopQueries = queryMode === QueryModeIds.top;
48
49
  const filters = useTypedSelector((state) => state.executeTopQueries);
49
- const onRowClick = React.useCallback((input) => {
50
+ const applyRowClick = React.useCallback((input) => {
50
51
  dispatch(changeUserInput({ input }));
51
52
  const queryParams = parseQuery(location);
52
53
  const queryPath = getTenantPath({
@@ -56,6 +57,7 @@ export const TopQueries = ({ tenantName }) => {
56
57
  });
57
58
  history.push(queryPath);
58
59
  }, [dispatch, history, location]);
60
+ const onRowClick = useChangeInputWithConfirmation(applyRowClick);
59
61
  const handleTextSearchUpdate = (text) => {
60
62
  dispatch(setTopQueriesFilters({ text }));
61
63
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TopQueries.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/TopQueries.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAE,WAAW,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xs as _jsxs } from "react/jsx-runtime";
5
5
  import React from 'react';
6
6
  import { NavigationTree } from 'ydb-ui-components';
7
7
  import { useCreateDirectoryFeatureAvailable } from '../../../../store/reducers/capabilities/hooks';
8
+ import { selectUserInput } from '../../../../store/reducers/executeQuery';
8
9
  import { schemaApi } from '../../../../store/reducers/schema/schema';
9
10
  import { tableSchemaDataApi } from '../../../../store/reducers/tableSchemaData';
10
11
  import { wait } from '../../../../utils';
11
12
  import { SECOND_IN_MS } from '../../../../utils/constants';
12
- import { useQueryExecutionSettings, useTypedDispatch } from '../../../../utils/hooks';
13
+ import { useQueryExecutionSettings, useTypedDispatch, useTypedSelector, } from '../../../../utils/hooks';
14
+ import { getConfirmation } from '../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
13
15
  import { getSchemaControls } from '../../utils/controls';
14
16
  import { isChildlessPathType, mapPathTypeToNavigationTreeType } from '../../utils/schema';
15
17
  import { getActions } from '../../utils/schemaActions';
@@ -20,6 +22,7 @@ export function SchemaTree(props) {
20
22
  const createDirectoryFeatureAvailable = useCreateDirectoryFeatureAvailable();
21
23
  const { rootPath, rootName, rootType, currentPath, onActivePathUpdate } = props;
22
24
  const dispatch = useTypedDispatch();
25
+ const input = useTypedSelector(selectUserInput);
23
26
  const [getTableSchemaDataMutation] = tableSchemaDataApi.useGetTableSchemaDataMutation();
24
27
  const getTableSchemaDataPromise = React.useCallback(async (args) => {
25
28
  try {
@@ -98,6 +101,7 @@ export function SchemaTree(props) {
98
101
  ? handleOpenCreateDirectoryDialog
99
102
  : undefined,
100
103
  getTableSchemaDataPromise,
104
+ getConfirmation: input ? getConfirmation : undefined,
101
105
  }, rootPath), renderAdditionalNodeElements: getSchemaControls(dispatch, {
102
106
  setActivePath: onActivePathUpdate,
103
107
  }), activePath: currentPath, onActivePathUpdate: onActivePathUpdate, cache: false, virtualize: true }, schemaTreeKey)] }));
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaTree.js","sourceRoot":"","sources":["../../../../../src/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EAAE;oBACtD,aAAa,EAAE,kBAAkB;iBACpC,CAAC,EACF,UAAU,EAAE,WAAW,EACvB,kBAAkB,EAAE,kBAAkB,EACtC,KAAK,EAAE,KAAK,EACZ,UAAU,UA5BL,aAAa,CA6BpB,IACW,CACpB,CAAC;AACN,CAAC"}
@@ -13,8 +13,9 @@ import { QueryResultTable } from '../../../../components/QueryResultTable/QueryR
13
13
  import { disableFullscreen } from '../../../../store/reducers/fullscreen';
14
14
  import { getArray } from '../../../../utils';
15
15
  import { cn } from '../../../../utils/cn';
16
+ import { USE_SHOW_PLAN_SVG_KEY } from '../../../../utils/constants';
16
17
  import { getStringifiedData } from '../../../../utils/dataFormatters/dataFormatters';
17
- import { useTypedDispatch } from '../../../../utils/hooks';
18
+ import { useSetting, useTypedDispatch } from '../../../../utils/hooks';
18
19
  import { parseQueryError } from '../../../../utils/query';
19
20
  import { PaneVisibilityToggleButtons } from '../../utils/paneVisibilityToggleHelpers';
20
21
  import { CancelQueryButton } from '../CancelQueryButton/CancelQueryButton';
@@ -24,6 +25,7 @@ import { QueryDuration } from '../QueryDuration/QueryDuration';
24
25
  import { QuerySettingsBanner } from '../QuerySettingsBanner/QuerySettingsBanner';
25
26
  import { getPreparedResult } from '../utils/getPreparedResult';
26
27
  import { isQueryCancelledError } from '../utils/isQueryCancelledError';
28
+ import { PlanToSvgButton } from './PlanToSvgButton';
27
29
  import { TraceButton } from './TraceButton';
28
30
  import i18n from './i18n';
29
31
  import { getPlan } from './utils';
@@ -40,6 +42,7 @@ export function ExecuteResult({ result, isResultsCollapsed, theme, tenantName, o
40
42
  const [selectedResultSet, setSelectedResultSet] = React.useState(0);
41
43
  const [activeSection, setActiveSection] = React.useState(resultOptionsIds.result);
42
44
  const dispatch = useTypedDispatch();
45
+ const [useShowPlanToSvg] = useSetting(USE_SHOW_PLAN_SVG_KEY);
43
46
  const { error, isLoading, queryId, data } = result;
44
47
  const stats = data === null || data === void 0 ? void 0 : data.stats;
45
48
  const resultsSetsCount = ((_a = data === null || data === void 0 ? void 0 : data.resultSets) === null || _a === void 0 ? void 0 : _a.length) || 0;
@@ -146,6 +149,6 @@ export function ExecuteResult({ result, isResultsCollapsed, theme, tenantName, o
146
149
  }
147
150
  return null;
148
151
  };
149
- return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: b('controls'), children: [_jsxs("div", { className: b('controls-right'), children: [_jsx(QueryExecutionStatus, { error: error, loading: isLoading }), !error && !isLoading && (_jsxs(React.Fragment, { children: [(stats === null || stats === void 0 ? void 0 : stats.DurationUs) !== undefined && (_jsx(QueryDuration, { duration: Number(stats.DurationUs) })), resultOptions && activeSection && (_jsxs(React.Fragment, { children: [_jsx(Divider, {}), _jsx(RadioButton, { options: resultOptions, value: activeSection, onUpdate: onSelectSection })] }))] })), isLoading ? (_jsxs(React.Fragment, { children: [_jsx(ElapsedTime, { className: b('elapsed-time') }), _jsx(CancelQueryButton, { queryId: queryId, tenantName: tenantName })] })) : null, (data === null || data === void 0 ? void 0 : data.traceId) ? (_jsx(TraceButton, { traceId: data.traceId, isTraceReady: result.isTraceReady })) : null] }), _jsxs("div", { className: b('controls-left'), children: [renderClipboardButton(), _jsx(EnableFullscreenButton, {}), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseResults, onExpand: onExpandResults, isCollapsed: isResultsCollapsed, initialDirection: "bottom" })] })] }), isLoading || isQueryCancelledError(error) ? null : _jsx(QuerySettingsBanner, {}), _jsx(LoaderWrapper, { loading: isLoading, children: _jsx(Fullscreen, { children: renderResultSection() }) })] }));
152
+ return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: b('controls'), children: [_jsxs("div", { className: b('controls-right'), children: [_jsx(QueryExecutionStatus, { error: error, loading: isLoading }), !error && !isLoading && (_jsxs(React.Fragment, { children: [(stats === null || stats === void 0 ? void 0 : stats.DurationUs) !== undefined && (_jsx(QueryDuration, { duration: Number(stats.DurationUs) })), resultOptions && activeSection && (_jsxs(React.Fragment, { children: [_jsx(Divider, {}), _jsx(RadioButton, { options: resultOptions, value: activeSection, onUpdate: onSelectSection })] }))] })), isLoading ? (_jsxs(React.Fragment, { children: [_jsx(ElapsedTime, { className: b('elapsed-time') }), _jsx(CancelQueryButton, { queryId: queryId, tenantName: tenantName })] })) : null, (data === null || data === void 0 ? void 0 : data.traceId) ? (_jsx(TraceButton, { traceId: data.traceId, isTraceReady: result.isTraceReady })) : null, (data === null || data === void 0 ? void 0 : data.plan) && useShowPlanToSvg ? (_jsx(PlanToSvgButton, { plan: data === null || data === void 0 ? void 0 : data.plan, database: tenantName })) : null] }), _jsxs("div", { className: b('controls-left'), children: [renderClipboardButton(), _jsx(EnableFullscreenButton, {}), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseResults, onExpand: onExpandResults, isCollapsed: isResultsCollapsed, initialDirection: "bottom" })] })] }), isLoading || isQueryCancelledError(error) ? null : _jsx(QuerySettingsBanner, {}), _jsx(LoaderWrapper, { loading: isLoading, children: _jsx(Fullscreen, { children: renderResultSection() }) })] }));
150
153
  }
151
154
  //# sourceMappingURL=ExecuteResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExecuteResult.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/ExecuteResult/ExecuteResult.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,eAAe,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAE5C,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,sBAAsB,MAAM,sEAAsE,CAAC;AAC1G,OAAO,UAAU,MAAM,8CAA8C,CAAC;AACtE,OAAO,EAAC,QAAQ,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,oBAAo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AO,EAAE,SAAS,YAC7B,KAAC,UAAU,cAAE,mBAAmB,EAAE,GAAc,GACpC,IACH,CACpB,CAAC;AACN,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { QueryPlan, ScriptPlan } from '../../../../types/api/query';
2
+ interface PlanToSvgButtonProps {
3
+ plan: QueryPlan | ScriptPlan;
4
+ database: string;
5
+ }
6
+ export declare function PlanToSvgButton({ plan, database }: PlanToSvgButtonProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
3
+ import { ArrowUpRightFromSquare } from '@gravity-ui/icons';
4
+ import { Button, Tooltip } from '@gravity-ui/uikit';
5
+ import { planToSvgApi } from '../../../../store/reducers/planToSvg';
6
+ import i18n from './i18n';
7
+ function getButtonView(error, isLoading) {
8
+ if (error) {
9
+ return 'flat-danger';
10
+ }
11
+ return isLoading ? 'flat-secondary' : 'flat-info';
12
+ }
13
+ export function PlanToSvgButton({ plan, database }) {
14
+ const [error, setError] = React.useState(null);
15
+ const [blobUrl, setBlobUrl] = React.useState(null);
16
+ const [getPlanToSvg, { isLoading }] = planToSvgApi.useLazyPlanToSvgQueryQuery();
17
+ const handleClick = React.useCallback(() => {
18
+ getPlanToSvg({ plan, database })
19
+ .unwrap()
20
+ .then((result) => {
21
+ const blob = new Blob([result], { type: 'image/svg+xml' });
22
+ const url = URL.createObjectURL(blob);
23
+ setBlobUrl(url);
24
+ setError(null);
25
+ window.open(url, '_blank');
26
+ })
27
+ .catch((err) => {
28
+ setError(JSON.stringify(err));
29
+ });
30
+ }, [database, getPlanToSvg, plan]);
31
+ React.useEffect(() => {
32
+ return () => {
33
+ if (blobUrl) {
34
+ URL.revokeObjectURL(blobUrl);
35
+ }
36
+ };
37
+ }, [blobUrl]);
38
+ return (_jsx(Tooltip, { content: error ? i18n('text_error-plan-svg', { error }) : i18n('text_open-plan-svg'), children: _jsxs(Button, { view: getButtonView(error, isLoading), loading: isLoading, onClick: handleClick, disabled: isLoading, children: [i18n('text_plan-svg'), _jsx(Button.Icon, { children: _jsx(ArrowUpRightFromSquare, {}) })] }) }));
39
+ }
40
+ //# sourceMappingURL=PlanToSvgButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanToSvgButton.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,MAAM,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,YAAY,EAAC,MAAM,sCAAsC,CAAC;AAGlE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,SAAS,aAAa,CAAC,KAAoB,EAAE,SAAkB;IAC3D,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,aAAa,CAAC;IACzB,CAAC;IACD,OAAO,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC;AACtD,CAAC;AAOD,MAAM,UAAU,eAAe,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAuB;IAClE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAC9D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAClE,MAAM,CAAC,YAAY,EAAE,EAAC,SAAS,EAAC,CAAC,GAAG,YAAY,CAAC,0BAA0B,EAAE,CAAC;IAE9E,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACvC,YAAY,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC;aACzB,MAAM,EAAE;aACR,IAAI,CAAC,CAAC,MAA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Id, isTraceReady }) {
10
10
  const { traceCheck, traceView } = useClusterBaseInfo();
11
11
  const checkTraceUrl = (traceCheck === null || traceCheck === void 0 ? void 0 : traceCheck.url) ? replaceParams(traceCheck.url, { traceId }) : '';
12
12
  const traceUrl = (traceView === null || traceView === void 0 ? void 0 : traceView.url) ? replaceParams(traceView.url, { traceId }) : '';
13
- const [checkTrace, { isLoading, isUninitialized }] = traceApi.useCheckTraceMutation();
13
+ const [checkTrace, { isLoading, isUninitialized }] = traceApi.useLazyCheckTraceQuery();
14
14
  React.useEffect(() => {
15
15
  let checkTraceMutation;
16
16
  if (checkTraceUrl && !isTraceReady) {
@@ -1 +1 @@
1
- {"version":3,"file":"TraceButton.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/ExecuteResult/TraceButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAErD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAO1B,MAAM,UAAU,WAAW,CAAC,EAAC,OAAO,EAAE,YAAY,EAAsB;IACpE,MAAM,EAAC,UAAU,EAAE,SAAS,EAAC,GAAG,kBAAkB,EAAE,CAAC;IAErD,MAAM,aAAa,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,EAAC,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,EAAC,OAAO,EAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACtF,MAAM,QAAQ,GAAG,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG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AAC,YAAY,CAAC,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,MAAC,MAAM,IACH,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,EAChD,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,QAAQ,EACd,MAAM,EAAC,QAAQ,aAEd,IAAI,CAAC,OAAO,CAAC,EACd,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,sBAAsB,KAAG,GAChB,IACT,CACZ,CAAC;AACN,CAAC"}
@@ -7,5 +7,8 @@
7
7
  "action.copy": "Copy {{activeSection}}",
8
8
  "trace": "Trace",
9
9
  "title.truncated": "Truncated",
10
- "title.result": "Result"
10
+ "title.result": "Result",
11
+ "text_plan-svg": "Execution plan",
12
+ "text_open-plan-svg": "Open execution plan in new window",
13
+ "text_error-plan-svg": "Error: {{error}}"
11
14
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "trace" | "description.graph-is-not-supported" | "action.result" | "action.stats" | "action.schema" | "action.explain-plan" | "action.copy" | "title.truncated" | "title.result", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "trace" | "description.graph-is-not-supported" | "action.result" | "action.stats" | "action.schema" | "action.explain-plan" | "action.copy" | "title.truncated" | "title.result" | "text_plan-svg" | "text_open-plan-svg" | "text_error-plan-svg", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -1,12 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
2
3
  import { ChevronDown } from '@gravity-ui/icons';
3
4
  import { Button, DropdownMenu } from '@gravity-ui/uikit';
5
+ import { changeUserInput } from '../../../../store/reducers/executeQuery';
4
6
  import { useTypedDispatch } from '../../../../utils/hooks';
7
+ import { useChangeInputWithConfirmation } from '../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
5
8
  import { bindActions } from '../../utils/newSQLQueryActions';
6
9
  import i18n from './i18n';
7
10
  export function NewSQL() {
8
11
  const dispatch = useTypedDispatch();
9
- const actions = bindActions(dispatch);
12
+ const insertTemplate = React.useCallback((input) => {
13
+ dispatch(changeUserInput({ input }));
14
+ }, [dispatch]);
15
+ const onTemplateClick = useChangeInputWithConfirmation(insertTemplate);
16
+ const actions = bindActions(onTemplateClick);
10
17
  const items = [
11
18
  {
12
19
  text: i18n('menu.tables'),
@@ -1 +1 @@
1
- {"version":3,"file":"NewSQL.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/NewSQL/NewSQL.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAE3D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,UAAU,MAAM;IAClB,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IACpC,MAAM,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;IAEtC,MAAM,KAAK,GAAG;QACV;YACI,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC;YACzB,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,IAAI,CAAC,yBAAyB,CAAC;oBACrC,MAAM,EAAE,OAAO,CAAC,cAAc;iBACjC;gBACD;oBACI,IAAI,EAAE,IAAI,CAAC,4BAA4B,CAAC;oBACxC,MAAM,EAAE,OAAO,CAAC,iBAAiB;iBACpC;gBACD;oBACI,IAAI,EAAE,IAAI,CAAC,8BAA8B,CAAC;oBAC1C,MAAM,EAAE,OAAO,CAAC,mBAAmB;iBACtC;gBACD;oBACI,IAAI,EAAE,IAAI,CAAC,wBAAwB,CAAC;oBACpC,MAAM,EAAE,OAAO,CAAC,W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CAAC,WAAW;iBAC9B;gBACD;oBACI,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC;oBAC9B,MAAM,EAAE,OAAO,CAAC,QAAQ;iBAC3B;gBACD;oBACI,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAAC;oBAC/B,MAAM,EAAE,OAAO,CAAC,SAAS;iBAC5B;gBACD;oBACI,IAAI,EAAE,IAAI,CAAC,wBAAwB,CAAC;oBACpC,MAAM,EAAE,OAAO,CAAC,cAAc;iBACjC;gBACD;oBACI,IAAI,EAAE,IAAI,CAAC,yBAAyB,CAAC;oBACrC,MAAM,EAAE,OAAO,CAAC,eAAe;iBAClC;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO,CACH,KAAC,YAAY,IACT,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CACvB,MAAC,MAAM,OAAK,KAAK,aACZ,IAAI,CAAC,gBAAgB,CAAC,EACvB,KAAC,MAAM,CAAC,IAAI,cACR,KAAC,WAAW,KAAG,GACL,IACT,CACZ,EACD,UAAU,EAAE,EAAC,SAAS,EAAE,KAAK,EAAC,GAChC,CACL,CAAC;AACN,CAAC"}
@@ -9,6 +9,7 @@ import { setQueryTab } from '../../../../store/reducers/tenant/tenant';
9
9
  import { cn } from '../../../../utils/cn';
10
10
  import { formatDateTime } from '../../../../utils/dataFormatters/dataFormatters';
11
11
  import { useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
12
+ import { useChangeInputWithConfirmation } from '../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
12
13
  import { formatToMs, parseUsToMs } from '../../../../utils/timeParsers';
13
14
  import { MAX_QUERY_HEIGHT, QUERY_TABLE_SETTINGS } from '../../utils/constants';
14
15
  import i18n from '../i18n';
@@ -20,10 +21,11 @@ function QueriesHistory({ changeUserInput }) {
20
21
  const queriesHistory = useTypedSelector(selectQueriesHistory);
21
22
  const filter = useTypedSelector(selectQueriesHistoryFilter);
22
23
  const reversedHistory = [...queriesHistory].reverse();
23
- const onQueryClick = (query) => {
24
+ const applyQueryClick = (query) => {
24
25
  changeUserInput({ input: query.queryText });
25
26
  dispatch(setQueryTab(TENANT_QUERY_TABS_ID.newQuery));
26
27
  };
28
+ const onQueryClick = useChangeInputWithConfirmation(applyQueryClick);
27
29
  const onChangeFilter = (value) => {
28
30
  dispatch(setQueryHistoryFilter(value));
29
31
  };