ydb-embedded-ui 6.14.1 → 6.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. package/README.md +1 -1
  2. package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +1 -1
  3. package/dist/components/Errors/PageError/PageError.js +4 -1
  4. package/dist/components/Errors/PageError/PageError.js.map +1 -1
  5. package/dist/components/MetricChart/reducer.d.ts +2 -2
  6. package/dist/components/QueryExecutionStatus/QueryExecutionStatus.js +1 -1
  7. package/dist/components/QueryExecutionStatus/QueryExecutionStatus.js.map +1 -1
  8. package/dist/components/VDiskInfo/VDiskInfo.js +24 -11
  9. package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
  10. package/dist/containers/App/Content.js +17 -4
  11. package/dist/containers/App/Content.js.map +1 -1
  12. package/dist/containers/Nodes/getNodes.d.ts +1 -1
  13. package/dist/containers/Nodes/getNodes.js +2 -2
  14. package/dist/containers/Nodes/getNodes.js.map +1 -1
  15. package/dist/containers/Tenant/Acl/Acl.js +28 -4
  16. package/dist/containers/Tenant/Acl/Acl.js.map +1 -1
  17. package/dist/containers/Tenant/Acl/Acl.scss +5 -0
  18. package/dist/containers/Tenant/Acl/i18n/en.json +1 -0
  19. package/dist/containers/Tenant/Acl/i18n/index.d.ts +1 -1
  20. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +1 -1
  21. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
  22. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +8 -11
  23. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  24. package/dist/containers/Tenant/Query/Preview/Preview.js +5 -1
  25. package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
  26. package/dist/containers/Tenant/Query/Preview/Preview.scss +0 -8
  27. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +9 -3
  28. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
  29. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.scss +14 -1
  30. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +1 -1
  31. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
  32. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +12 -6
  33. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js.map +1 -1
  34. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.scss +14 -1
  35. package/dist/containers/Tenant/Query/i18n/en.json +2 -0
  36. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  37. package/dist/containers/Tenant/Query/utils/useSavedQueries.js +6 -2
  38. package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
  39. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +2 -2
  40. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
  41. package/dist/containers/Tenant/Tenant.js +7 -2
  42. package/dist/containers/Tenant/Tenant.js.map +1 -1
  43. package/dist/containers/Tenant/utils/controls.d.ts +9 -0
  44. package/dist/containers/Tenant/utils/{schemaControls.js → controls.js} +14 -3
  45. package/dist/containers/Tenant/utils/controls.js.map +1 -0
  46. package/dist/services/api.js +6 -5
  47. package/dist/services/api.js.map +1 -1
  48. package/dist/store/configureStore.d.ts +4 -4
  49. package/dist/store/defaultStore.d.ts +2 -2
  50. package/dist/store/reducers/api.d.ts +1 -1
  51. package/dist/store/reducers/api.js +1 -1
  52. package/dist/store/reducers/api.js.map +1 -1
  53. package/dist/store/reducers/authentication/authentication.d.ts +4 -4
  54. package/dist/store/reducers/authentication/authentication.js +2 -1
  55. package/dist/store/reducers/authentication/authentication.js.map +1 -1
  56. package/dist/store/reducers/cancelQuery.d.ts +2 -2
  57. package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
  58. package/dist/store/reducers/cluster/cluster.d.ts +2 -2
  59. package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
  60. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  61. package/dist/store/reducers/describe.d.ts +2 -2
  62. package/dist/store/reducers/executeQuery.d.ts +9 -2
  63. package/dist/store/reducers/executeQuery.js +24 -1
  64. package/dist/store/reducers/executeQuery.js.map +1 -1
  65. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  66. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
  67. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  68. package/dist/store/reducers/heatmap.d.ts +2 -2
  69. package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
  70. package/dist/store/reducers/index.d.ts +3 -3
  71. package/dist/store/reducers/network/network.d.ts +2 -2
  72. package/dist/store/reducers/node/node.d.ts +3 -3
  73. package/dist/store/reducers/node/selectors.d.ts +1 -1
  74. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  75. package/dist/store/reducers/nodes/nodes.js +1 -0
  76. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  77. package/dist/store/reducers/nodesList.d.ts +3 -3
  78. package/dist/store/reducers/overview/overview.d.ts +2 -2
  79. package/dist/store/reducers/overview/overview.js +1 -0
  80. package/dist/store/reducers/overview/overview.js.map +1 -1
  81. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  82. package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
  83. package/dist/store/reducers/preview.d.ts +2 -2
  84. package/dist/store/reducers/preview.js +1 -1
  85. package/dist/store/reducers/preview.js.map +1 -1
  86. package/dist/store/reducers/queryActions/queryActions.d.ts +14 -1
  87. package/dist/store/reducers/queryActions/queryActions.js +7 -2
  88. package/dist/store/reducers/queryActions/queryActions.js.map +1 -1
  89. package/dist/store/reducers/queryActions/types.d.ts +1 -0
  90. package/dist/store/reducers/schema/schema.d.ts +3 -3
  91. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +3 -2
  92. package/dist/store/reducers/schemaAcl/schemaAcl.js +1 -0
  93. package/dist/store/reducers/schemaAcl/schemaAcl.js.map +1 -1
  94. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  95. package/dist/store/reducers/storage/storage.d.ts +3 -3
  96. package/dist/store/reducers/storage/storage.js +1 -1
  97. package/dist/store/reducers/storage/storage.js.map +1 -1
  98. package/dist/store/reducers/tablet.d.ts +3 -3
  99. package/dist/store/reducers/tablets.d.ts +13 -13
  100. package/dist/store/reducers/tabletsFilters.d.ts +1 -1
  101. package/dist/store/reducers/tenant/tenant.d.ts +2 -2
  102. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  103. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  104. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  105. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
  106. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  107. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  108. package/dist/store/reducers/topic.d.ts +44 -44
  109. package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
  110. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  111. package/dist/types/api/acl.d.ts +1 -0
  112. package/dist/types/store/executeQuery.d.ts +3 -2
  113. package/dist/utils/response.d.ts +6 -1
  114. package/dist/utils/response.js +3 -0
  115. package/dist/utils/response.js.map +1 -1
  116. package/package.json +3 -3
  117. package/dist/containers/Tenant/utils/schemaControls.d.ts +0 -6
  118. package/dist/containers/Tenant/utils/schemaControls.js.map +0 -1
package/README.md CHANGED
@@ -94,7 +94,7 @@ Install all Playwright dependencies and chromium to run tests.
94
94
  npm run test:e2e:install
95
95
  ```
96
96
 
97
- Run tests. If `PLAYWRIGHT_BASE_URL` is provided, tests run on this url, otherwise Playwright `webServer` is started with `npm run dev` on `http://localhost:3000` and all tests run there.
97
+ Run tests. If `PLAYWRIGHT_BASE_URL` is provided, tests run on this url, otherwise Playwright `webServer` is started with `npm run dev` on `http://localhost:3000` and all tests run there. If `PLAYWRIGHT_APP_BACKEND` is provided, tests will be use this url as backend, otherwise `http://localhost:8765` will be used.
98
98
 
99
99
  ```
100
100
  npm run test:e2e
@@ -1,5 +1,5 @@
1
1
  .ydb-critical-dialog {
2
- padding-top: 18px;
2
+ padding-top: var(--g-spacing-7);
3
3
 
4
4
  &__warning-icon {
5
5
  margin-right: 16px;
@@ -15,6 +15,9 @@ export function PageError({ title, description, error, children, ...restProps })
15
15
  return _jsx(React.Fragment, { children: children });
16
16
  }
17
17
  export function isAccessError(error) {
18
- return Boolean(error && typeof error === 'object' && 'status' in error && error.status === 403);
18
+ return Boolean(error &&
19
+ typeof error === 'object' &&
20
+ 'status' in error &&
21
+ (error.status === 403 || error.status === 401));
19
22
  }
20
23
  //# sourceMappingURL=PageError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageError.js","sourceRoot":"","sources":["../../../../src/components/Errors/PageError/PageError.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAS3B,MAAM,UAAU,SAAS,CAAC,EAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAiB;IACzF,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,IAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,KAAM,SAAS,GAAI,CAAC;IACnF,CAAC;IAED,IAAI,KAAK,IAAI,WAAW,EAAE,CAAC;QACvB,OAA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ACP,KAAK,EAAE,KAAC,YAAY,IAAC,IAAI,EAAC,OAAO,GAAG,EACpC,KAAK,EAAE,KAAK,IAAI,IAAI,CAAC,aAAa,CAAC,EACnC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,WAAW,KAC9D,SAAS,GACf,CACL,CAAC;IACN,CAAC;IAED,OAAO,KAAC,KAAK,CAAC,QAAQ,cAAE,QAAQ,GAAkB,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAc;IACxC,OAAO,OAAO,CACV,KAAK;QACD,OAAO,KAAK,KAAK,QAAQ;QACzB,QAAQ,IAAI,KAAK;QACjB,CAAC,KAAK,CAAC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,CAAC,CACrD,CAAC;AACN,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { GetChartDataParams } from './getChartData';
2
2
  export declare const chartApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, {
3
- getChartData: import("@reduxjs/toolkit/query").QueryDefinition<GetChartDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData", import("./types").PreparedMetricsData | undefined, "api">;
4
- }, "api", "All" | "PDiskData" | "UserData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
3
+ getChartData: import("@reduxjs/toolkit/query").QueryDefinition<GetChartDataParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../store/reducers/api")._NEVER, unknown, {}>, "All" | "PDiskData" | "UserData" | "PreviewData", import("./types").PreparedMetricsData | undefined, "api">;
4
+ }, "api", "All" | "PDiskData" | "UserData" | "PreviewData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CircleCheck, CircleInfo, CircleQuestionFill, CircleStop, CircleXmark, } from '@gravity-ui/icons';
3
3
  import { Icon, Spin, Tooltip } from '@gravity-ui/uikit';
4
- import { isAxiosError } from 'axios';
5
4
  import i18n from '../../containers/Tenant/Query/i18n';
6
5
  import { isQueryCancelledError } from '../../containers/Tenant/Query/utils/isQueryCancelledError';
7
6
  import { cn } from '../../utils/cn';
8
7
  import { useChangedQuerySettings } from '../../utils/hooks/useChangedQuerySettings';
8
+ import { isAxiosError } from '../../utils/response';
9
9
  import QuerySettingsDescription from '../QuerySettingsDescription/QuerySettingsDescription';
10
10
  import './QueryExecutionStatus.scss';
11
11
  const b = cn('kv-query-execution-status');
@@ -1 +1 @@
1
- {"version":3,"file":"QueryExecutionStatus.js","sourceRoot":"","sources":["../../../src/components/QueryExecutionStatus/QueryExecutionStatus.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,WAAW,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAEnC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAC,qBAAqB,EAAC,MAAM,2DAA2D,CAAC;AAChG,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,wBAAwB,MAAM,sDAAsD,CAAC;AAE5F,OAAO,6BAA6B,CAAC;AAErC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAQ1C,MAAM,sBAAsB,GAAG,G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C,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EAC1C,SAAS,EAAE,CAAC,CAAC,oBAAoB,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC,GACvD,CACL,CAAC;QACF,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC;IAC9C,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,aAC7B,IAAI,EACJ,KAAK,EACL,qBAAqB,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,sBAAsB,KAAG,IAC1E,CACT,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryExecutionStatus.js","sourceRoot":"","sources":["../../../src/components/QueryExecutionStatus/QueryExecutionStatus.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,WAAW,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAEtD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAC,qBAAqB,EAAC,MAAM,2DAA2D,CAAC;AAChG,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAClD,OAAO,wBAAwB,MAAM,sDAAsD,CAAC;AAE5F,OAAO,6BAA6B,CAAC;AAErC,MAAM,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC;AAQ1C,MAAM,sBAAsB,GAAG,GAAG,EAAE;IAChC,MAAM,EAAC,gBAAgB,EAAE,wCAAwC,EAAC,GAAG,uBAAuB,EAAE,CAAC;IAE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C,KAAK,EAAE,QAAQ,EAAC,CAAC,GACvD,CACL,CAAC;QACF,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC;IAC9C,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,aAC7B,IAAI,EACJ,KAAK,EACL,qBAAqB,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,sBAAsB,KAAG,IAC1E,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getVDiskPagePath } from '../../routes';
3
+ import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
3
4
  import { useDiskPagesAvailable } from '../../store/reducers/capabilities/hooks';
4
5
  import { valueIsDefined } from '../../utils';
5
6
  import { cn } from '../../utils/cn';
6
7
  import { formatStorageValuesToGb, stringifyVdiskId } from '../../utils/dataFormatters/dataFormatters';
7
8
  import { createVDiskDeveloperUILink } from '../../utils/developerUI/developerUI';
8
9
  import { getSeverityColor } from '../../utils/disks/helpers';
10
+ import { useTypedSelector } from '../../utils/hooks';
9
11
  import { bytesToSpeed } from '../../utils/utils';
10
12
  import { EntityStatus } from '../EntityStatus/EntityStatus';
11
13
  import { InfoViewer } from '../InfoViewer';
@@ -18,6 +20,7 @@ const b = cn('ydb-vdisk-info');
18
20
  export function VDiskInfo({ data, withVDiskPageLink, withTitle, ...infoViewerProps }) {
19
21
  var _a, _b, _c, _d;
20
22
  const diskPagesAvailable = useDiskPagesAvailable();
23
+ const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
21
24
  const { AllocatedSize, DiskSpace, FrontQueues, Guid, Replicated, VDiskState, VDiskSlotId, Kind, SatisfactionRank, AvailableSize, HasUnreadableBlobs, IncarnationGuid, InstanceGuid, StoragePoolName, ReadThroughput, WriteThroughput, PDiskId, NodeId, } = data || {};
22
25
  const vdiskInfo = [];
23
26
  if (valueIsDefined(VDiskSlotId)) {
@@ -98,17 +101,27 @@ export function VDiskInfo({ data, withVDiskPageLink, withTitle, ...infoViewerPro
98
101
  value: bytesToSpeed(WriteThroughput),
99
102
  });
100
103
  }
101
- if (valueIsDefined(PDiskId) && valueIsDefined(NodeId) && valueIsDefined(VDiskSlotId)) {
102
- const vDiskPagePath = getVDiskPagePath(VDiskSlotId, PDiskId, NodeId);
103
- const vDiskInternalViewerPath = createVDiskDeveloperUILink({
104
- nodeId: NodeId,
105
- pDiskId: PDiskId,
106
- vDiskSlotId: VDiskSlotId,
107
- });
108
- vdiskInfo.push({
109
- label: vDiskInfoKeyset('links'),
110
- value: (_jsxs("span", { className: b('links'), children: [withVDiskPageLink && diskPagesAvailable && (_jsx(LinkWithIcon, { title: vDiskInfoKeyset('vdisk-page'), url: vDiskPagePath, external: false })), _jsx(LinkWithIcon, { title: vDiskInfoKeyset('developer-ui'), url: vDiskInternalViewerPath })] })),
111
- });
104
+ const diskParamsDefined = valueIsDefined(PDiskId) && valueIsDefined(NodeId) && valueIsDefined(VDiskSlotId);
105
+ if (diskParamsDefined) {
106
+ const links = [];
107
+ if (withVDiskPageLink && diskPagesAvailable) {
108
+ const vDiskPagePath = getVDiskPagePath(VDiskSlotId, PDiskId, NodeId);
109
+ links.push(_jsx(LinkWithIcon, { title: vDiskInfoKeyset('vdisk-page'), url: vDiskPagePath, external: false }, vDiskPagePath));
110
+ }
111
+ if (isUserAllowedToMakeChanges) {
112
+ const vDiskInternalViewerPath = createVDiskDeveloperUILink({
113
+ nodeId: NodeId,
114
+ pDiskId: PDiskId,
115
+ vDiskSlotId: VDiskSlotId,
116
+ });
117
+ links.push(_jsx(LinkWithIcon, { title: vDiskInfoKeyset('developer-ui'), url: vDiskInternalViewerPath }, vDiskInternalViewerPath));
118
+ }
119
+ if (links.length) {
120
+ vdiskInfo.push({
121
+ label: vDiskInfoKeyset('links'),
122
+ value: _jsx("div", { className: b('links'), children: links }),
123
+ });
124
+ }
112
125
  }
113
126
  const title = data && withTitle ? _jsx(VDiskTitle, { data: data }) : null;
114
127
  return _jsx(InfoViewer, { info: vdiskInfo, title: title, ...infoViewerProps });
@@ -1 +1 @@
1
- {"version":3,"file":"VDiskInfo.js","sourceRoot":"","sources":["../../../src/components/VDiskInfo/VDiskInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,qBAAqB,EAAC,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,uBAAuB,EAAE,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAC,0BAA0B,EAAC,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAC,eAAe,EAAC,MAAM,QAAQ,CAAC;AAEvC,OAAO,kBAAkB,CAAC;AAE1B,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC;AAQ/B,sCAAsC;AACtC,MAAM,UAAU,SAAS,CAA0B,EAC/C,IAAI,EACJ,iBAAiB,EACjB,SAAS,EACT,GAAG,eAAe,EACF;;IAChB,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IAEnD,MA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CAAC;QACN,CAAC;QAED,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,SAAS,CAAC,IAAI,CAAC;gBACX,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;gBAC/B,KAAK,EAAE,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAG,KAAK,GAAO;aACnD,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAEpE,OAAO,KAAC,UAAU,IAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAM,eAAe,GAAI,CAAC;AAC9E,CAAC;AAMD,SAAS,UAAU,CAA0B,EAAC,IAAI,EAAqB;IACnE,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aACrB,eAAe,CAAC,aAAa,CAAC,EAC/B,KAAC,YAAY,IACT,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EACvC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,GACtC,IACA,CACT,CAAC;AACN,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from 'react';
2
3
  import { connect } from 'react-redux';
3
4
  import { Redirect, Route, Switch } from 'react-router-dom';
4
5
  import { PageError } from '../../components/Errors/PageError/PageError';
@@ -22,41 +23,49 @@ const routesSlots = [
22
23
  path: routes.cluster,
23
24
  slot: ClusterSlot,
24
25
  component: lazyComponent(() => import('../Cluster/Cluster'), 'Cluster'),
26
+ wrapper: DataWrapper,
25
27
  },
26
28
  {
27
29
  path: routes.tenant,
28
30
  slot: TenantSlot,
29
31
  component: lazyComponent(() => import('../Tenant/Tenant'), 'Tenant'),
32
+ wrapper: DataWrapper,
30
33
  },
31
34
  {
32
35
  path: routes.node,
33
36
  slot: NodeSlot,
34
37
  component: lazyComponent(() => import('../Node/Node'), 'Node'),
38
+ wrapper: DataWrapper,
35
39
  },
36
40
  {
37
41
  path: routes.pDisk,
38
42
  slot: PDiskPageSlot,
39
43
  component: lazyComponent(() => import('../PDiskPage/PDiskPage'), 'PDiskPage'),
44
+ wrapper: DataWrapper,
40
45
  },
41
46
  {
42
47
  path: routes.vDisk,
43
48
  slot: VDiskPageSlot,
44
49
  component: lazyComponent(() => import('../VDiskPage/VDiskPage'), 'VDiskPage'),
50
+ wrapper: DataWrapper,
45
51
  },
46
52
  {
47
53
  path: routes.tablet,
48
54
  slot: TabletSlot,
49
55
  component: lazyComponent(() => import('../Tablet'), 'Tablet'),
56
+ wrapper: DataWrapper,
50
57
  },
51
58
  {
52
59
  path: routes.tabletsFilters,
53
60
  slot: TabletsFiltersSlot,
54
61
  component: lazyComponent(() => import('../TabletsFilters/TabletsFilters'), 'TabletsFilters'),
62
+ wrapper: DataWrapper,
55
63
  },
56
64
  ];
57
65
  const Clusters = lazyComponent(() => import('../Clusters/Clusters'), 'Clusters');
58
66
  function renderRouteSlot(slots, route) {
59
67
  return (_jsx(Route, { path: route.path, exact: route.exact, render: (props) => {
68
+ var _a;
60
69
  const slot = slots.get(route.slot);
61
70
  let content;
62
71
  if (!slot) {
@@ -69,7 +78,8 @@ function renderRouteSlot(slots, route) {
69
78
  else {
70
79
  content = slot.rendered;
71
80
  }
72
- return _jsx("main", { className: b('main'), children: content });
81
+ const Wrapper = (_a = route.wrapper) !== null && _a !== void 0 ? _a : React.Fragment;
82
+ return (_jsx("main", { className: b('main'), children: _jsx(Wrapper, { children: content }) }));
73
83
  } }, route.path));
74
84
  }
75
85
  export function Content(props) {
@@ -90,9 +100,12 @@ export function Content(props) {
90
100
  exact: true,
91
101
  component: Clusters,
92
102
  slot: ClustersSlot,
93
- }), additionalRoutes === null || additionalRoutes === void 0 ? void 0 : additionalRoutes.rendered, _jsx(Route, { children: _jsxs(GetUser, { children: [_jsx(GetNodesList, {}), _jsx(GetCapabilities, {}), _jsx(Header, { mainPage: mainPage }), _jsxs(Switch, { children: [routesSlots.map((route) => {
94
- return renderRouteSlot(slots, route);
95
- }), _jsx(Route, { path: redirectProps.from || redirectProps.path, exact: redirectProps.exact, strict: redirectProps.strict, render: () => (_jsx(Redirect, { to: redirectProps.to, push: redirectProps.push })) })] })] }) }, "single-cluster")] }));
103
+ }), additionalRoutes === null || additionalRoutes === void 0 ? void 0 : additionalRoutes.rendered, _jsxs(Route, { children: [_jsx(Header, { mainPage: mainPage }), _jsxs(Switch, { children: [routesSlots.map((route) => {
104
+ return renderRouteSlot(slots, route);
105
+ }), _jsx(Route, { path: redirectProps.from || redirectProps.path, exact: redirectProps.exact, strict: redirectProps.strict, render: () => _jsx(Redirect, { to: redirectProps.to, push: redirectProps.push }) })] })] }, "single-cluster")] }));
106
+ }
107
+ function DataWrapper({ children }) {
108
+ return (_jsxs(GetUser, { children: [_jsx(GetNodesList, {}), _jsx(GetCapabilities, {}), children] }));
96
109
  }
97
110
  function GetUser({ children }) {
98
111
  const { isLoading, error } = authenticationApi.useWhoamiQuery(undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../src/containers/App/Content.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,SAAS,EAAC,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAGhD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EAAC,iBAAiB,EAAC,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAC,eAAe,EAAC,MAAM,gDAAgD,C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O,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,eAAe;IACpB,eAAe,CAAC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAC1D,OAAO,IAAI,CAAC;AAChB,CAAC;AAQD,SAAS,cAAc,CAAC,KAA0B;IAC9C,MAAM,EAAC,iBAAiB,EAAE,eAAe,EAAC,GAAG,KAAK,CAAC;IAEnD,OAAO,CACH,MAAC,MAAM,eACH,KAAC,KAAK,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,YACpB,KAAC,cAAc,IAAC,QAAQ,SAAG,GACvB,EACR,KAAC,KAAK,cACF,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,iBAAiB,EAAC,CAAC,YAC3C,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAC,cAAc,KAAG,GACpD,GACF,IACH,CACZ,CAAC;AACN,CAAC;AAED,SAAS,eAAe,CAAC,KAAgB;IACrC,OAAO;QACH,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe;QACrD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;KAC7C,CAAC;AACN,CAAC;AAED,eAAe,OAAO,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { NodesApiRequestParams } from '../../store/reducers/nodes/types';
2
- export declare const getNodes: ({ type, storage, limit, offset, ...params }: NodesApiRequestParams) => Promise<{
2
+ export declare const getNodes: ({ type, storage, tablets, limit, offset, ...params }: NodesApiRequestParams) => Promise<{
3
3
  data: import("../../store/reducers/nodes/types").NodesPreparedEntity[];
4
4
  found: number;
5
5
  total: number;
@@ -2,8 +2,8 @@ import { prepareNodesData } from '../../store/reducers/nodes/utils';
2
2
  const getConcurrentId = (limit, offset) => {
3
3
  return `getNodes|offset${offset}|limit${limit}`;
4
4
  };
5
- export const getNodes = async ({ type = 'any', storage = false, limit, offset, ...params }) => {
6
- const response = await window.api.getNodes({ type, storage, limit, offset, ...params }, { concurrentId: getConcurrentId(limit, offset) });
5
+ export const getNodes = async ({ type = 'any', storage = false, tablets = true, limit, offset, ...params }) => {
6
+ const response = await window.api.getNodes({ type, storage, tablets, limit, offset, ...params }, { concurrentId: getConcurrentId(limit, offset) });
7
7
  const preparedResponse = prepareNodesData(response);
8
8
  return {
9
9
  data: preparedResponse.Nodes || [],
@@ -1 +1 @@
1
- {"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/getNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;IACxD,OAAO,kBAAkB,MAAM,SAAS,KAAK,EAAE,CAAC;AACpD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,EAC3B,IAAI,GAAG,KAAK,EACZ,OAAO,GAAG,KAAK,EACf,KAAK,EACL,MAAM,EACN,GAAG,MAAM,EACW,EAAE,EAAE;IACxB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CACtC,EAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAC,EACzC,EAAC,YAAY,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,EAAC,CACjD,CAAC;IACF,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAEpD,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,UAAU,IAAI,CAAC;QACvC,KAAK,EAAE,gBAAgB,CAAC,UAAU,IAAI,CAAC;KAC1C,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/getNodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;IACxD,OAAO,kBAAkB,MAAM,SAAS,KAAK,EAAE,CAAC;AACpD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,EAC3B,IAAI,GAAG,KAAK,EACZ,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,IAAI,EACd,KAAK,EACL,MAAM,EACN,GAAG,MAAM,EACW,EAAE,EAAE;IACxB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CACtC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAC,EAClD,EAAC,YAAY,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,EAAC,CACjD,CAAC;IACF,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAEpD,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,UAAU,IAAI,CAAC;QACvC,KAAK,EAAE,gBAAgB,CAAC,UAAU,IAAI,CAAC;KAC1C,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { DefinitionList } from '@gravity-ui/components';
4
+ import { SquareCheck } from '@gravity-ui/icons';
5
+ import { Icon } from '@gravity-ui/uikit';
4
6
  import { ResponseError } from '../../../components/Errors/ResponseError';
5
7
  import { Loader } from '../../../components/Loader';
6
8
  import { schemaAclApi } from '../../../store/reducers/schemaAcl/schemaAcl';
@@ -60,6 +62,7 @@ function getAclListItems(acl) {
60
62
  return {
61
63
  name: Subject,
62
64
  content: _jsx(DefinitionValue, { value: definedDataEntries[0][1] }),
65
+ multilineName: true,
63
66
  };
64
67
  }
65
68
  return {
@@ -71,6 +74,7 @@ function getAclListItems(acl) {
71
74
  return {
72
75
  name: aclParamToName[key],
73
76
  content: _jsx(DefinitionValue, { value: value }),
77
+ multilineName: true,
74
78
  };
75
79
  }
76
80
  return undefined;
@@ -86,18 +90,32 @@ function getOwnerItem(owner) {
86
90
  }
87
91
  return [
88
92
  {
89
- name: _jsx("span", { className: b('owner'), children: preparedOwner }),
90
- content: _jsx("span", { className: b('owner'), children: i18n('title_owner') }),
93
+ name: preparedOwner,
94
+ content: i18n('title_owner'),
95
+ multilineName: true,
96
+ },
97
+ ];
98
+ }
99
+ function getInterruptInheritanceItem(flag) {
100
+ if (!flag) {
101
+ return [];
102
+ }
103
+ return [
104
+ {
105
+ name: i18n('title_interupt-inheritance'),
106
+ content: _jsx(Icon, { data: SquareCheck, size: 20 }),
107
+ multilineName: true,
91
108
  },
92
109
  ];
93
110
  }
94
111
  export const Acl = ({ path, database }) => {
95
112
  const { currentData, isFetching, error } = schemaAclApi.useGetSchemaAclQuery({ path, database });
96
113
  const loading = isFetching && !currentData;
97
- const { acl, effectiveAcl, owner } = currentData || {};
114
+ const { acl, effectiveAcl, owner, interruptInheritance } = currentData || {};
98
115
  const aclListItems = getAclListItems(acl);
99
116
  const effectiveAclListItems = getAclListItems(effectiveAcl);
100
117
  const ownerItem = getOwnerItem(owner);
118
+ const interruptInheritanceItem = getInterruptInheritanceItem(interruptInheritance);
101
119
  if (loading) {
102
120
  return _jsx(Loader, {});
103
121
  }
@@ -108,6 +126,12 @@ export const Acl = ({ path, database }) => {
108
126
  return _jsx(React.Fragment, { children: i18n('description_empty') });
109
127
  }
110
128
  const accessRightsItems = ownerItem.concat(aclListItems);
111
- return (_jsxs("div", { className: b(), children: [accessRightsItems.length ? (_jsxs(React.Fragment, { children: [_jsx("div", { className: b('list-title'), children: i18n('title_rights') }), _jsx(DefinitionList, { items: accessRightsItems, nameMaxWidth: 200, className: b('result') })] })) : null, effectiveAclListItems.length ? (_jsxs(React.Fragment, { children: [_jsx("div", { className: b('list-title'), children: i18n('title_effective-rights') }), _jsx(DefinitionList, { items: effectiveAclListItems, nameMaxWidth: 200, className: b('result') })] })) : null] }));
129
+ return (_jsxs("div", { className: b(), children: [_jsx(AclDefinitionList, { items: interruptInheritanceItem }), _jsx(AclDefinitionList, { items: accessRightsItems, title: i18n('title_rights') }), _jsx(AclDefinitionList, { items: effectiveAclListItems, title: i18n('title_effective-rights') })] }));
112
130
  };
131
+ function AclDefinitionList({ items, title }) {
132
+ if (!items.length) {
133
+ return null;
134
+ }
135
+ return (_jsxs(React.Fragment, { children: [title && _jsx("div", { className: b('list-title'), children: title }), _jsx(DefinitionList, { items: items, nameMaxWidth: 200, className: b('result', { 'no-title': !title }), responsive: true })] }));
136
+ }
113
137
  //# sourceMappingURL=Acl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Acl.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Acl/Acl.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAC,YAAY,EAAC,MAAM,6CAA6C,CAAC;AAEzE,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAErC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;AAExB,MAAM,YAAY,GAAG,CAAC,KAAyB,EAAE,EAAE;IAC/C,IAAI,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CA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AE,GAAG,EACjB,SAAS,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAC,UAAU,EAAE,CAAC,KAAK,EAAC,CAAC,EAC5C,UAAU,SACZ,IACW,CACpB,CAAC;AACN,CAAC"}
@@ -5,10 +5,15 @@
5
5
  &__result {
6
6
  padding-bottom: var(--g-spacing-4);
7
7
  padding-left: var(--g-spacing-2);
8
+
9
+ &_no-title {
10
+ margin-top: var(--g-spacing-3);
11
+ }
8
12
  }
9
13
  &__definition-content {
10
14
  display: flex;
11
15
  flex-direction: column;
16
+ align-items: flex-end;
12
17
  }
13
18
  &__list-title {
14
19
  margin: var(--g-spacing-3) 0 var(--g-spacing-5);
@@ -2,5 +2,6 @@
2
2
  "title_rights": "Access Rights",
3
3
  "title_effective-rights": "Effective Access Rights",
4
4
  "title_owner": "Owner",
5
+ "title_interupt-inheritance": "Interrupt inheritance",
5
6
  "description_empty": "No Acl data"
6
7
  }
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "title_rights" | "title_effective-rights" | "title_owner" | "description_empty", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "title_rights" | "title_effective-rights" | "title_owner" | "title_interupt-inheritance" | "description_empty", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -13,7 +13,7 @@ export function TopNodesByMemory({ tenantName, additionalNodesProps }) {
13
13
  const columns = getTopNodesByMemoryColumns({
14
14
  getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
15
15
  });
16
- const { currentData, isFetching, error } = topNodesApi.useGetTopNodesQuery({ tenant: tenantName, sortValue: 'Memory' }, { pollingInterval: autoRefreshInterval });
16
+ const { currentData, isFetching, error } = topNodesApi.useGetTopNodesQuery({ tenant: tenantName, sortValue: 'Memory', tablets: true }, { pollingInterval: autoRefreshInterval });
17
17
  const loading = isFetching && currentData === undefined;
18
18
  const topNodes = currentData;
19
19
  const title = getSectionTitle({
@@ -1 +1 @@
1
- {"version":3,"file":"TopNodesByMemory.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAC,WAAW,EAAC,MAAM,gEAAgE,CAAC;AAE3F,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EACH,0BAA0B,EAC1B,0BAA0B,GAC7B,MAAM,mCAAmC,CAAC;AAC3C,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;AAO3B,MAAM,UAAU,gBAAgB,CAAC,EAAC,UAAU,EAAE,oBAAoB,EAAwB;IACtF,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,MAAM,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,0BAA0B,CAAC;QACvC,UAAU,EAAE,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU;KAC/C,CAAC,CAAC;IAEH,MAAM,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,EAAC,GAAG,WAAW,CAAC,mBAAmB,CACpE,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAC,EACzC,EAAC,eAAe,EAAE,mBAAmB,EAAC,CACzC,CAAC;IAEF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IACxD,MAAM,QAAQ,GAAG,WAAW,CAAC;IAE7B,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,IAAI,EAAE,EACpB,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":";AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAC,WAAW,EAAC,MAAM,gEAAgE,CAAC;AAE3F,OAAO,EAAC,sBAAsB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAClF,OAAO,EACH,0BAA0B,EAC1B,0BAA0B,GAC7B,MAAM,mCAAmC,CAAC;AAC3C,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;AAO3B,MAAM,UAAU,gBAAgB,CAAC,EAAC,UAAU,EAAE,oBAAoB,EAAwB;IACtF,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,MAAM,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,EAAE,CAAC;IACvD,MAAM,OAAO,GAAG,0BAA0B,CAAC;QACvC,UAAU,EAAE,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU;KAC/C,CAAC,CAAC;IAEH,MAAM,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,EAAC,GAAG,WAAW,CAAC,mBAAmB,CACpE,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAC,EACxD,EAAC,eAAe,EAAE,mBAAmB,EAAC,CACzC,CAAC;IAEF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IACxD,MAAM,QAAQ,GAAG,WAAW,CAAC;IAE7B,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,IAAI,EAAE,EACpB,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,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { HelpPopover } from '@gravity-ui/components';
4
- import { LayoutHeaderCellsLargeFill } from '@gravity-ui/icons';
5
- import { Button, Icon, Tabs } from '@gravity-ui/uikit';
4
+ import { Tabs } from '@gravity-ui/uikit';
6
5
  import qs from 'qs';
7
6
  import { Link, useLocation } from 'react-router-dom';
8
7
  import { StringParam, useQueryParam } from 'use-query-params';
@@ -14,9 +13,9 @@ import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
14
13
  import { Loader } from '../../../components/Loader';
15
14
  import SplitPane from '../../../components/SplitPane';
16
15
  import routes, { createExternalUILink, createHref } from '../../../routes';
17
- import { setShowPreview, useGetSchemaQuery } from '../../../store/reducers/schema/schema';
18
- import { TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID, TENANT_SUMMARY_TABS_IDS, } from '../../../store/reducers/tenant/constants';
19
- import { setQueryTab, setSummaryTab, setTenantPage } from '../../../store/reducers/tenant/tenant';
16
+ import { useGetSchemaQuery } from '../../../store/reducers/schema/schema';
17
+ import { TENANT_SUMMARY_TABS_IDS } from '../../../store/reducers/tenant/constants';
18
+ import { setSummaryTab } from '../../../store/reducers/tenant/tenant';
20
19
  import { EPathSubType, EPathType } from '../../../types/api/schema';
21
20
  import { cn } from '../../../utils/cn';
22
21
  import { DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED, DEFAULT_SIZE_TENANT_SUMMARY_KEY, } from '../../../utils/constants';
@@ -28,6 +27,7 @@ import { SchemaTree } from '../Schema/SchemaTree/SchemaTree';
28
27
  import { SchemaViewer } from '../Schema/SchemaViewer/SchemaViewer';
29
28
  import { TENANT_INFO_TABS, TENANT_SCHEMA_TAB, TenantTabsGroups } from '../TenantPages';
30
29
  import i18n from '../i18n';
30
+ import { getSummaryControls } from '../utils/controls';
31
31
  import { PaneVisibilityActionTypes, PaneVisibilityToggleButtons, paneVisibilityToggleReducerCreator, } from '../utils/paneVisibilityToggleHelpers';
32
32
  import { isIndexTableType, isTableType } from '../utils/schema';
33
33
  import { transformPath } from './transformPath';
@@ -44,6 +44,7 @@ const getTenantCommonInfoState = () => {
44
44
  export function ObjectSummary({ type, subType, tenantName, path, onCollapseSummary, onExpandSummary, isCollapsed, }) {
45
45
  var _a;
46
46
  const dispatch = useTypedDispatch();
47
+ const [, setCurrentPath] = useQueryParam('schema', StringParam);
47
48
  const [commonInfoVisibilityState, dispatchCommonInfoVisibilityState] = React.useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED), undefined, getTenantCommonInfoState);
48
49
  const { summaryTab = TENANT_SUMMARY_TABS_IDS.overview } = useTypedSelector((state) => state.tenant);
49
50
  const location = useLocation();
@@ -244,14 +245,10 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
244
245
  const onSplitStartDragAdditional = () => {
245
246
  dispatchCommonInfoVisibilityState(PaneVisibilityActionTypes.clear);
246
247
  };
247
- const onOpenPreview = () => {
248
- dispatch(setShowPreview(true));
249
- dispatch(setTenantPage(TENANT_PAGES_IDS.query));
250
- dispatch(setQueryTab(TENANT_QUERY_TABS_ID.newQuery));
251
- };
252
248
  const renderCommonInfoControls = () => {
253
249
  const showPreview = isTableType(type) && !isIndexTableType(subType);
254
- return (_jsxs(React.Fragment, { children: [showPreview && (_jsx(Button, { view: "flat-secondary", onClick: onOpenPreview, title: i18n('summary.showPreview'), children: _jsx(Icon, { data: LayoutHeaderCellsLargeFill }) })), _jsx(ClipboardButton, { text: path, view: "flat-secondary", title: i18n('summary.copySchemaPath') }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseInfoHandler, onExpand: onExpandInfoHandler, isCollapsed: commonInfoVisibilityState.collapsed, initialDirection: "bottom" })] }));
250
+ return (_jsxs(React.Fragment, { children: [showPreview &&
251
+ getSummaryControls(dispatch, { setActivePath: setCurrentPath }, 'm')(path, 'preview'), _jsx(ClipboardButton, { text: path, view: "flat-secondary", title: i18n('summary.copySchemaPath') }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseInfoHandler, onExpand: onExpandInfoHandler, isCollapsed: commonInfoVisibilityState.collapsed, initialDirection: "bottom" })] }));
255
252
  };
256
253
  const renderEntityTypeBadge = () => {
257
254
  const { Status, Reason } = currentObjectData !== null && currentObjectData !== void 0 ? currentObjectData : {};
@@ -1 +1 @@
1
- {"version":3,"file":"Ob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ACT,CAAC;AACN,CAAC"}
@@ -18,7 +18,11 @@ export const Preview = ({ database, path, type }) => {
18
18
  const isPreviewAvailable = isTableType(type);
19
19
  const [autoRefreshInterval] = useAutoRefreshInterval();
20
20
  const query = `--!syntax_v1\nselect * from \`${path}\` limit 32`;
21
- const { currentData, isFetching, error } = previewApi.useSendQueryQuery({ database, query, action: isExternalTableType(type) ? 'execute-query' : 'execute-scan' }, { pollingInterval: autoRefreshInterval, skip: !isPreviewAvailable });
21
+ const { currentData, isFetching, error } = previewApi.useSendQueryQuery({ database, query, action: isExternalTableType(type) ? 'execute-query' : 'execute-scan' }, {
22
+ pollingInterval: autoRefreshInterval,
23
+ skip: !isPreviewAvailable,
24
+ refetchOnMountOrArgChange: true,
25
+ });
22
26
  const loading = isFetching && currentData === undefined;
23
27
  const data = currentData !== null && currentData !== void 0 ? currentData : {};
24
28
  const handleClosePreview = () => {