ydb-embedded-ui 6.31.0 → 6.32.0-hotfix.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. package/dist/components/AutoRefreshControl/AutoRefreshControl.js +1 -1
  2. package/dist/components/AutoRefreshControl/AutoRefreshControl.js.map +1 -1
  3. package/dist/components/BasicNodeViewer/BasicNodeViewer.js +9 -5
  4. package/dist/components/BasicNodeViewer/BasicNodeViewer.js.map +1 -1
  5. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +9 -5
  6. package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
  7. package/dist/components/PDiskPopup/PDiskPopup.js +9 -9
  8. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  9. package/dist/components/PaginatedTable/types.d.ts +1 -1
  10. package/dist/components/Search/Search.d.ts +3 -1
  11. package/dist/components/Search/Search.js +2 -2
  12. package/dist/components/Search/Search.js.map +1 -1
  13. package/dist/components/TabletNameWrapper/TabletNameWrapper.js +1 -1
  14. package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -1
  15. package/dist/components/TenantNameWrapper/TenantNameWrapper.js +1 -1
  16. package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -1
  17. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +10 -10
  18. package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
  19. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  20. package/dist/components/VDiskPopup/VDiskPopup.js +1 -9
  21. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  22. package/dist/components/nodesColumns/constants.d.ts +4 -0
  23. package/dist/components/nodesColumns/constants.js +10 -0
  24. package/dist/components/nodesColumns/constants.js.map +1 -1
  25. package/dist/components/nodesColumns/i18n/en.json +2 -0
  26. package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
  27. package/dist/containers/Clusters/i18n/index.d.ts +1 -1
  28. package/dist/containers/Header/Header.js +2 -9
  29. package/dist/containers/Header/Header.js.map +1 -1
  30. package/dist/containers/Nodes/Nodes.js +11 -33
  31. package/dist/containers/Nodes/Nodes.js.map +1 -1
  32. package/dist/containers/Nodes/Nodes.scss +4 -0
  33. package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +11 -0
  34. package/dist/containers/Nodes/NodesControls/NodesControls.js +24 -0
  35. package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -0
  36. package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -2
  37. package/dist/containers/Nodes/PaginatedNodes.js +78 -54
  38. package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
  39. package/dist/containers/Nodes/PaginatedNodesTable.d.ts +22 -0
  40. package/dist/containers/Nodes/PaginatedNodesTable.js +30 -0
  41. package/dist/containers/Nodes/PaginatedNodesTable.js.map +1 -0
  42. package/dist/containers/Nodes/columns/constants.d.ts +4 -0
  43. package/dist/containers/Nodes/columns/constants.js +28 -0
  44. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  45. package/dist/containers/Nodes/getNodes.js +4 -5
  46. package/dist/containers/Nodes/getNodes.js.map +1 -1
  47. package/dist/containers/Nodes/i18n/en.json +5 -1
  48. package/dist/containers/Nodes/i18n/index.d.ts +1 -1
  49. package/dist/containers/Nodes/i18n/index.js +1 -2
  50. package/dist/containers/Nodes/i18n/index.js.map +1 -1
  51. package/dist/containers/Nodes/shared.d.ts +5 -0
  52. package/dist/containers/Nodes/shared.js +16 -0
  53. package/dist/containers/Nodes/shared.js.map +1 -0
  54. package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +9 -0
  55. package/dist/containers/Nodes/useNodesPageQueryParams.js +34 -0
  56. package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -0
  57. package/dist/containers/Storage/Disks/Disks.js +1 -2
  58. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  59. package/dist/containers/Storage/PaginatedStorageNodes.js +1 -2
  60. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
  61. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  62. package/dist/containers/Storage/utils/index.d.ts +1 -1
  63. package/dist/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.js +2 -2
  64. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +1 -1
  65. package/dist/containers/Tenant/i18n/en.json +1 -0
  66. package/dist/containers/Tenant/i18n/index.d.ts +1 -1
  67. package/dist/containers/Tenant/utils/schemaActions.js +5 -1
  68. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  69. package/dist/containers/Tenant/utils/schemaQueryTemplates.js +5 -1
  70. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -1
  71. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  72. package/dist/store/reducers/capabilities/hooks.js +3 -0
  73. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  74. package/dist/store/reducers/node/selectors.js +5 -5
  75. package/dist/store/reducers/node/selectors.js.map +1 -1
  76. package/dist/store/reducers/node/types.d.ts +3 -4
  77. package/dist/store/reducers/nodes/types.d.ts +3 -1
  78. package/dist/store/reducers/nodes/utils.d.ts +1 -1
  79. package/dist/store/reducers/nodes/utils.js +9 -4
  80. package/dist/store/reducers/nodes/utils.js.map +1 -1
  81. package/dist/store/reducers/pdisk/utils.js +6 -3
  82. package/dist/store/reducers/pdisk/utils.js.map +1 -1
  83. package/dist/store/reducers/settings/hooks.d.ts +5 -0
  84. package/dist/store/reducers/settings/hooks.js +14 -0
  85. package/dist/store/reducers/settings/hooks.js.map +1 -0
  86. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.d.ts +1 -0
  87. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js +354 -0
  88. package/dist/store/reducers/storage/__test__/prepareGroupsDisks.test.js.map +1 -0
  89. package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +37 -0
  90. package/dist/store/reducers/storage/prepareGroupsDisks.js +72 -0
  91. package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -0
  92. package/dist/store/reducers/storage/utils.js +7 -28
  93. package/dist/store/reducers/storage/utils.js.map +1 -1
  94. package/dist/store/reducers/tenantOverview/topShards/utils.d.ts +1 -1
  95. package/dist/store/reducers/vdisk/utils.js +3 -3
  96. package/dist/store/reducers/vdisk/utils.js.map +1 -1
  97. package/dist/types/api/nodes.d.ts +1 -1
  98. package/dist/types/api/pdisk.d.ts +1 -1
  99. package/dist/types/api/storage.d.ts +2 -2
  100. package/dist/utils/developerUI/__test__/developerUI.test.js +21 -1
  101. package/dist/utils/developerUI/__test__/developerUI.test.js.map +1 -1
  102. package/dist/utils/developerUI/developerUI.d.ts +1 -0
  103. package/dist/utils/developerUI/developerUI.js +3 -0
  104. package/dist/utils/developerUI/developerUI.js.map +1 -1
  105. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +10 -7
  106. package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js.map +1 -1
  107. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +8 -23
  108. package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
  109. package/dist/utils/disks/__test__/prepareDisks.test.d.ts +1 -0
  110. package/dist/utils/disks/__test__/prepareDisks.test.js +200 -0
  111. package/dist/utils/disks/__test__/prepareDisks.test.js.map +1 -0
  112. package/dist/utils/disks/calculatePDiskSeverity.d.ts +5 -2
  113. package/dist/utils/disks/calculatePDiskSeverity.js +2 -2
  114. package/dist/utils/disks/calculatePDiskSeverity.js.map +1 -1
  115. package/dist/utils/disks/calculateVDiskSeverity.d.ts +8 -2
  116. package/dist/utils/disks/calculateVDiskSeverity.js +0 -4
  117. package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
  118. package/dist/utils/disks/helpers.d.ts +2 -1
  119. package/dist/utils/disks/helpers.js.map +1 -1
  120. package/dist/utils/disks/prepareDisks.d.ts +22 -4
  121. package/dist/utils/disks/prepareDisks.js +75 -28
  122. package/dist/utils/disks/prepareDisks.js.map +1 -1
  123. package/dist/utils/disks/types.d.ts +9 -2
  124. package/dist/utils/storage.d.ts +1 -1
  125. package/package.json +3 -2
  126. package/dist/containers/Nodes/i18n/ru.json +0 -3
@@ -0,0 +1,34 @@
1
+ import { StringParam, useQueryParams } from 'use-query-params';
2
+ import { useViewerNodesHandlerHasGroupingBySystemState } from '../../store/reducers/capabilities/hooks';
3
+ import { nodesUptimeFilterValuesSchema } from '../../utils/nodes';
4
+ import { parseNodesGroupByParam } from './columns/constants';
5
+ export function useNodesPageQueryParams() {
6
+ var _a;
7
+ const [queryParams, setQueryParams] = useQueryParams({
8
+ uptimeFilter: StringParam,
9
+ search: StringParam,
10
+ nodesGroupBy: StringParam,
11
+ });
12
+ const uptimeFilter = nodesUptimeFilterValuesSchema.parse(queryParams.uptimeFilter);
13
+ const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
14
+ const systemStateGroupingAvailable = useViewerNodesHandlerHasGroupingBySystemState();
15
+ const groupByParam = parseNodesGroupByParam(queryParams.nodesGroupBy, systemStateGroupingAvailable);
16
+ const handleSearchQueryChange = (value) => {
17
+ setQueryParams({ search: value || undefined }, 'replaceIn');
18
+ };
19
+ const handleUptimeFilterChange = (value) => {
20
+ setQueryParams({ uptimeFilter: value }, 'replaceIn');
21
+ };
22
+ const handleGroupByParamChange = (value) => {
23
+ setQueryParams({ nodesGroupBy: value }, 'replaceIn');
24
+ };
25
+ return {
26
+ uptimeFilter,
27
+ searchValue,
28
+ groupByParam,
29
+ handleSearchQueryChange,
30
+ handleUptimeFilterChange,
31
+ handleGroupByParamChange,
32
+ };
33
+ }
34
+ //# sourceMappingURL=useNodesPageQueryParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNodesPageQueryParams.js","sourceRoot":"","sources":["../../../src/containers/Nodes/useNodesPageQueryParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO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} from '../../../components/VDisk/VDisk';
5
5
  import { valueIsDefined } from '../../../utils';
6
6
  import { cn } from '../../../utils/cn';
7
- import { getPDiskId } from '../../../utils/disks/helpers';
8
7
  import { PDisk } from '../PDisk';
9
8
  import { isVdiskActive } from '../utils';
10
9
  import './Disks.scss';
@@ -19,7 +18,7 @@ export function Disks({ vDisks = [], viewContext }) {
19
18
  const unavailableVDiskWidth = (VDISKS_CONTAINER_WIDTH - spaceBaseSize * (vDisks.length - 1)) / vDisks.length;
20
19
  return (_jsxs("div", { className: b(null), children: [_jsx(Flex, { direction: 'row', gap: 1, grow: true, style: { width: VDISKS_CONTAINER_WIDTH }, children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => (_jsx(VDiskItem, { vDisk: vDisk, inactive: !isVdiskActive(vDisk, viewContext), highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk, unavailableVDiskWidth: unavailableVDiskWidth }, vDisk.StringifiedId))) }), _jsx("div", { className: b('pdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
21
20
  var _a;
22
- return (_jsx(PDiskItem, { vDisk: vDisk, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, getPDiskId(vDisk.NodeId, (_a = vDisk === null || vDisk === void 0 ? void 0 : vDisk.PDisk) === null || _a === void 0 ? void 0 : _a.PDiskId)));
21
+ return (_jsx(PDiskItem, { vDisk: vDisk, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, (_a = vDisk === null || vDisk === void 0 ? void 0 : vDisk.PDisk) === null || _a === void 0 ? void 0 : _a.StringifiedId));
23
22
  }) })] }));
24
23
  }
25
24
  function VDiskItem({ vDisk, highlightedVDisk, inactive, setHighlightedVDisk, unavailableVDiskWidth, }) {
@@ -1 +1 @@
1
- {"version":3,"file":"Disks.js","sourceRoot":"","sources":["../../../../src/containers/Storage/Disks/Disks.tsx"],"names":[],"mappings":";AAAA,O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,EAAC,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAiB;IAC7E,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC;IAEpC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,KAAC,KAAK,IACF,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,EAC1B,oBAAoB,EAAE,CAAC,CAAC,oBAAoB,CAAC,EAC7C,IAAI,EAAE,KAAK,CAAC,KAAK,EACjB,SAAS,EAAE,gBAAgB,KAAK,OAAO,EACvC,WAAW,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAC/C,WAAW,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,GACnD,CACL,CAAC;AACN,CAAC"}
@@ -26,8 +26,7 @@ export const PaginatedStorageNodes = (props) => {
26
26
  // Reset them if grouping available
27
27
  React.useEffect(() => {
28
28
  if (viewerNodesHandlerHasGrouping &&
29
- visibleEntities !== 'all' &&
30
- nodesUptimeFilter !== NodesUptimeFilterValues.All) {
29
+ (visibleEntities !== 'all' || nodesUptimeFilter !== NodesUptimeFilterValues.All)) {
31
30
  handleShowAllNodes();
32
31
  }
33
32
  }, [handleShowAllNodes, nodesUptimeFilter, viewerNodesHandlerHasGrouping, visibleEntities]);
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedStorageNodes.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorageNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,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AO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,gBAAgB,CAAC,YAC5E,YAAY,EAAE,GACa,IACV,CAC7B,CAAC;AACN,CAAC;AAED,SAAS,8BAA8B,CAAC,EACpC,QAAQ,EACR,WAAW,GAId;IACG,MAAM,EAAC,QAAQ,EAAC,GAAG,kBAAkB,EAAE,CAAC;IACxC,MAAM,EAAC,oBAAoB,EAAC,GAAG,sBAAsB,CAAC,EAAC,QAAQ,EAAC,CAAC,CAAC;IAClE,MAAM,EAAC,eAAe,EAAC,GAAG,qBAAqB,EAAE,CAAC;IAElD,OAAO,8BAA8B,CAAC;QAClC,oBAAoB;QACpB,eAAe;QACf,QAAQ;QACR,WAAW;KACd,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"PaginatedStorageNodes.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorageNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,sBAAsB,EAAC,MAAM,mCAAmC,CAAC;AAGzE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAC,0BAA0B,EAAC,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAC,8BAA8B,EAAC,MA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AC;QAClC,oBAAoB;QACpB,eAAe;QACf,QAAQ;QACR,WAAW;KACd,CAAC,CAAC;AACP,CAAC"}
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "nodes" | "groups" | "controls_groups-search-placeholder" | "controls_nodes-search-placeholder" | "controls_group-by-placeholder" | "no-nodes" | "no-groups", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "nodes" | "controls_group-by-placeholder" | "groups" | "controls_groups-search-placeholder" | "controls_nodes-search-placeholder" | "no-nodes" | "no-groups", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -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) => "danger" | "warning" | "success" | undefined;
5
+ export declare const getDegradedSeverity: (group: PreparedStorageGroup) => "success" | "warning" | "danger" | 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,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ArrowRotateRight } from '@gravity-ui/icons';
2
+ import { ArrowsRotateLeft } from '@gravity-ui/icons';
3
3
  import { ActionTooltip, Button, Icon } from '@gravity-ui/uikit';
4
4
  import { nanoid } from '@reduxjs/toolkit';
5
5
  import { useDispatchTreeKey } from '../UpdateTreeContext';
@@ -7,6 +7,6 @@ export function RefreshTreeButton() {
7
7
  const updateTreeKey = useDispatchTreeKey();
8
8
  return (_jsx(ActionTooltip, { title: "Refresh", children: _jsx(Button, { view: "flat-secondary", onClick: () => {
9
9
  updateTreeKey(nanoid());
10
- }, children: _jsx(Icon, { data: ArrowRotateRight }) }) }));
10
+ }, children: _jsx(Icon, { data: ArrowsRotateLeft }) }) }));
11
11
  }
12
12
  //# sourceMappingURL=RefreshTreeButton.js.map
@@ -21,7 +21,7 @@
21
21
  "action.create-topic": "Create Topic",
22
22
  "action.drop-topic": "Drop Topic",
23
23
  "action.alter-topic": "Alter Topic",
24
- "action.create-cdc-stream": "Create CDC Stream",
24
+ "action.create-cdc-stream": "Create changefeed",
25
25
  "action.create-async-replication": "Create async replication",
26
26
  "action.create-user": "Create user",
27
27
  "action.create-group": "Create group",
@@ -38,6 +38,7 @@
38
38
  "actions.dropView": "Drop view...",
39
39
  "actions.alterTable": "Alter table...",
40
40
  "actions.addTableIndex": "Add index...",
41
+ "actions.createCdcStream": "Create changefeed...",
41
42
  "actions.alterTopic": "Alter topic...",
42
43
  "actions.selectQuery": "Select query...",
43
44
  "actions.upsertQuery": "Upsert query...",
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "page.title" | "pages.query" | "pages.diagnostics" | "summary.navigation" | "summary.showPreview" | "summary.source-type" | "summary.data-source" | "summary.copySchemaPath" | "summary.type" | "summary.subtype" | "summary.id" | "summary.version" | "summary.created" | "summary.data-size" | "summary.row-count" | "summary.partitions" | "summary.paths" | "summary.shards" | "summary.state" | "summary.mode" | "summary.format" | "summary.retention" | "label.read-only" | "actions.copied" | "actions.notCopied" | "actions.copyPath" | "actions.dropIndex" | "actions.openPreview" | "actions.createTable" | "actions.createExternalTable" | "actions.createTopic" | "actions.createColumnTable" | "actions.createAsyncReplication" | "actions.createView" | "actions.dropTable" | "actions.dropTopic" | "actions.dropView" | "actions.alterTable" | "actions.addTableIndex" | "actions.alterTopic" | "actions.selectQuery" | "actions.upsertQuery" | "actions.alterReplication" | "actions.dropReplication" | "actions.createDirectory" | "schema.tree.dialog.placeholder" | "schema.tree.dialog.invalid" | "schema.tree.dialog.whitespace" | "schema.tree.dialog.empty" | "schema.tree.dialog.header" | "schema.tree.dialog.description" | "schema.tree.dialog.buttonCancel" | "schema.tree.dialog.buttonApply", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "page.title" | "pages.query" | "pages.diagnostics" | "summary.navigation" | "summary.showPreview" | "summary.source-type" | "summary.data-source" | "summary.copySchemaPath" | "summary.type" | "summary.subtype" | "summary.id" | "summary.version" | "summary.created" | "summary.data-size" | "summary.row-count" | "summary.partitions" | "summary.paths" | "summary.shards" | "summary.state" | "summary.mode" | "summary.format" | "summary.retention" | "label.read-only" | "actions.copied" | "actions.notCopied" | "actions.copyPath" | "actions.dropIndex" | "actions.openPreview" | "actions.createTable" | "actions.createExternalTable" | "actions.createTopic" | "actions.createColumnTable" | "actions.createAsyncReplication" | "actions.createView" | "actions.dropTable" | "actions.dropTopic" | "actions.dropView" | "actions.alterTable" | "actions.addTableIndex" | "actions.createCdcStream" | "actions.alterTopic" | "actions.selectQuery" | "actions.upsertQuery" | "actions.alterReplication" | "actions.dropReplication" | "actions.createDirectory" | "schema.tree.dialog.placeholder" | "schema.tree.dialog.invalid" | "schema.tree.dialog.whitespace" | "schema.tree.dialog.empty" | "schema.tree.dialog.header" | "schema.tree.dialog.description" | "schema.tree.dialog.buttonCancel" | "schema.tree.dialog.buttonApply", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -6,7 +6,7 @@ import createToast from '../../../utils/createToast';
6
6
  import { transformPath } from '../ObjectSummary/transformPath';
7
7
  import i18n from '../i18n';
8
8
  import { nodeTableTypeToPathType } from './schema';
9
- import { addTableIndex, alterAsyncReplicationTemplate, alterTableTemplate, alterTopicTemplate, createAsyncReplicationTemplate, createColumnTableTemplate, createExternalTableTemplate, createTableTemplate, createTopicTemplate, createViewTemplate, dropAsyncReplicationTemplate, dropExternalTableTemplate, dropTableIndex, dropTopicTemplate, dropViewTemplate, selectQueryTemplate, upsertQueryTemplate, } from './schemaQueryTemplates';
9
+ import { addTableIndex, alterAsyncReplicationTemplate, alterTableTemplate, alterTopicTemplate, createAsyncReplicationTemplate, createCdcStreamTemplate, createColumnTableTemplate, createExternalTableTemplate, createTableTemplate, createTopicTemplate, createViewTemplate, dropAsyncReplicationTemplate, dropExternalTableTemplate, dropTableIndex, dropTableTemplate, dropTopicTemplate, dropViewTemplate, selectQueryTemplate, upsertQueryTemplate, } from './schemaQueryTemplates';
10
10
  const bindActions = (params, dispatch, additionalEffects) => {
11
11
  const { setActivePath, updateQueryExecutionSettings, showCreateDirectoryDialog, getTableSchemaDataPromise, } = additionalEffects;
12
12
  const inputQuery = (tmpl, mode) => () => {
@@ -41,6 +41,7 @@ const bindActions = (params, dispatch, additionalEffects) => {
41
41
  alterAsyncReplication: inputQuery(alterAsyncReplicationTemplate, 'script'),
42
42
  dropAsyncReplication: inputQuery(dropAsyncReplicationTemplate, 'script'),
43
43
  alterTable: inputQuery(alterTableTemplate, 'script'),
44
+ dropTable: inputQuery(dropTableTemplate, 'script'),
44
45
  selectQuery: inputQuery(selectQueryTemplate),
45
46
  upsertQuery: inputQuery(upsertQueryTemplate),
46
47
  createExternalTable: inputQuery(createExternalTableTemplate, 'script'),
@@ -53,6 +54,7 @@ const bindActions = (params, dispatch, additionalEffects) => {
53
54
  dropView: inputQuery(dropViewTemplate, 'script'),
54
55
  dropIndex: inputQuery(dropTableIndex, 'script'),
55
56
  addTableIndex: inputQuery(addTableIndex, 'script'),
57
+ createCdcStream: inputQuery(createCdcStreamTemplate, 'script'),
56
58
  copyPath: () => {
57
59
  try {
58
60
  copy(params.relativePath);
@@ -98,9 +100,11 @@ export const getActions = (dispatch, additionalEffects, rootPath = '') => (path,
98
100
  [copyItem],
99
101
  [
100
102
  { text: i18n('actions.alterTable'), action: actions.alterTable },
103
+ { text: i18n('actions.dropTable'), action: actions.dropTable },
101
104
  { text: i18n('actions.selectQuery'), action: actions.selectQuery },
102
105
  { text: i18n('actions.upsertQuery'), action: actions.upsertQuery },
103
106
  { text: i18n('actions.addTableIndex'), action: actions.addTableIndex },
107
+ { text: i18n('actions.createCdcStream'), action: actions.createCdcStream },
104
108
  ],
105
109
  ];
106
110
  const TOPIC_SET = [
@@ -1 +1 @@
1
- {"version":3,"file":"schemaActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaActions.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AAIrC,OAAO,EAAC,eAAe,EAAC,MAAM,sCAAsC,CAAC;AAErE,OAAO,EAAC,gBAAgB,EAAE,oBAAoB,EAAC,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEjF,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAE7D,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,uBAAuB,EAAC,MAAM,UAAU,CAAC;AAEjD,OAAO,EACH,aAAa,EACb,6BAA6B,EAC7B,kBAAkB,EAClB,kBAAkB,EAClB,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,4BAA4B,EAC5B,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,wBAAwB,CAAC;AAkBhC,MAAM,WAAW,GAAG,CAChB,MAAwB,EACxB,QAAqB,EACrB,iBAA2C,EAC7C,EAAE;IACA,MAAM,EACF,aAAa,EACb,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,GAC5B,GAAG,iBAAiB,CAAC;IAEtB,MAAM,UAAU,GAAG,CAAC,IAAgB,EAAE,IAAgB,EAAE,EAAE,CAAC,GAAG,EAAE;QAC5D,IAAI,IAAI,EAAE,CAAC;YACP,4BAA4B,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,QAAQ,GAAG,uBAAuB,CA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
  );`;
59
59
  };
60
60
  export const alterTableTemplate = (params) => {
61
- return `ALTER TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`
61
+ return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter_table/
62
+
63
+ ALTER TABLE \`${(params === null || params === void 0 ? void 0 : params.relativePath) || '$path'}\`
64
+ -- RENAME TO new_table_name
65
+ -- DROP COLUMN some_existing_column
62
66
  ADD COLUMN numeric_column Int32;`;
63
67
  };
64
68
  export const selectQueryTemplate = (params) => {
@@ -1 +1 @@
1
- {"version":3,"file":"schemaQueryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/schemaQueryTemplates.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC9D,OAAO;iBACM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,KAAI,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B9C,CAAC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAA0B,EAAE,EAAE;IACpE,OAAO;iBACM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,KAAI,OAAO;;;;;;;;sBAQ1B,CAAC;AACvB,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO;;;;;;;;;;;GAWR,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC7D,OAAO,iBAAiB,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,KAAI,OAAO;qCACtB,CAAC;AACtC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA0B,EAAE,EAAE;;IAC9D,MAAM,OAAO,GAAG,CAAA,MAAA,MAAM,aAAN,MA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AClH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC9D,OAAO;WACA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,KAAI,OAAO;;oBAEtB,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAA0B,EAAE,EAAE;IAC5D,OAAO,gBAAgB,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,KAAI,OAAO,KAAK,CAAC;AAChE,CAAC,CAAC"}
@@ -6,5 +6,6 @@ export declare const useTracingLevelOptionAvailable: () => boolean;
6
6
  export declare const useStorageGroupsHandlerAvailable: () => boolean;
7
7
  export declare const useStorageGroupsHandlerHasGrouping: () => boolean;
8
8
  export declare const useViewerNodesHandlerHasGrouping: () => boolean;
9
+ export declare const useViewerNodesHandlerHasGroupingBySystemState: () => boolean;
9
10
  export declare const useFeatureFlagsAvailable: () => boolean;
10
11
  export declare const useClusterDashboardAvailable: () => boolean;
@@ -39,6 +39,9 @@ export const useStorageGroupsHandlerHasGrouping = () => {
39
39
  export const useViewerNodesHandlerHasGrouping = () => {
40
40
  return useGetFeatureVersion('/viewer/nodes') > 6;
41
41
  };
42
+ export const useViewerNodesHandlerHasGroupingBySystemState = () => {
43
+ return useGetFeatureVersion('/viewer/nodes') > 11;
44
+ };
42
45
  export const useFeatureFlagsAvailable = () => {
43
46
  return useGetFeatureVersion('/viewer/feature_flags') > 1;
44
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/store/reducers/capabilities/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAC,eAAe,EAAE,uBAAuB,EAAE,0BAA0B,EAAC,MAAM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AC,iBAAiB,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,EAAE;IACjD,OAAO,oBAAoB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;AACrD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6CAA6C,GAAG,GAAG,EAAE;IAC9D,OAAO,oBAAoB,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC;AACtD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACzC,OAAO,oBAAoB,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAC7D,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC7C,OAAO,oBAAoB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { createSelector } from '@reduxjs/toolkit';
2
2
  import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
3
- import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
3
+ import { prepareWhiteboardVDiskData } from '../../../utils/disks/prepareDisks';
4
4
  import { nodeApi } from './node';
5
5
  const getNodeStructureSelector = createSelector((nodeId) => nodeId, (nodeId) => nodeApi.endpoints.getNodeStructure.select({ nodeId }));
6
6
  const selectGetNodeStructureData = createSelector((state) => state, (_state, nodeId) => getNodeStructureSelector(nodeId), (state, selectGetNodeStructure) => selectGetNodeStructure(state).data);
@@ -11,13 +11,13 @@ export const selectNodeStructure = createSelector((_state, nodeId) => Number(nod
11
11
  const groups = pool.Groups;
12
12
  groups === null || groups === void 0 ? void 0 : groups.forEach((group) => {
13
13
  var _a;
14
- const vDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.filter((el) => el.NodeId === nodeId).map(prepareVDiskData);
14
+ const vDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.filter((el) => el.NodeId === nodeId).map(prepareWhiteboardVDiskData);
15
15
  vDisks === null || vDisks === void 0 ? void 0 : vDisks.forEach((vd) => {
16
+ var _a;
16
17
  const vDiskId = stringifyVdiskId(vd.VDiskId);
17
- const preparedPDisk = preparePDiskData(vd.PDisk);
18
- const pDiskId = preparedPDisk.PDiskId;
18
+ const pDiskId = (_a = vd.PDisk) === null || _a === void 0 ? void 0 : _a.PDiskId;
19
19
  if (!structure[String(pDiskId)]) {
20
- structure[String(pDiskId)] = { vDisks: {}, ...preparedPDisk };
20
+ structure[String(pDiskId)] = { vDisks: {}, ...vd.PDisk };
21
21
  }
22
22
  structure[String(pDiskId)].vDisks[vDiskId] = {
23
23
  ...vd,
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/store/reducers/node/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AAGrF,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAG/B,MAAM,wBAAwB,GAAG,cAAc,CAC3C,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,EAC1B,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAC,MAAM,EAAC,CAAC,CAClE,CAAC;AAEF,MAAM,0BAA0B,GAAG,cAAc,CAC7C,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,EAC3B,CAAC,MAAiB,EAAE,MAAc,EAAE,EAAE,CAAC,wBAAwB,CAAC,MAAM,CAAC,EACvE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,IAAI,CACxE,CAAC;AAEF,MAAM,C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AE,CAAC,GAAG,EAAC,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAC,CAAC;QAChE,OAAO,iBAAiB,CAAC;IAC7B,CAAC,EACD,EAAE,CACL,CAAC;IACF,OAAO,wBAAwB,CAAC;AACpC,CAAC,CACJ,CAAC"}
@@ -1,11 +1,10 @@
1
- import type { TVDiskStateInfo } from '../../../types/api/vdisk';
2
- import type { PreparedPDisk } from '../../../utils/disks/types';
1
+ import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
3
2
  import type { PreparedNodeSystemState } from '../../../utils/nodes';
4
3
  interface RawStructurePDisk extends PreparedPDisk {
5
- vDisks: Record<string, TVDiskStateInfo>;
4
+ vDisks: Record<string, PreparedVDisk>;
6
5
  }
7
6
  export type RawNodeStructure = Record<string, RawStructurePDisk>;
8
- export interface PreparedStructureVDisk extends TVDiskStateInfo {
7
+ export interface PreparedStructureVDisk extends PreparedVDisk {
9
8
  id: string;
10
9
  order: number;
11
10
  }
@@ -1,6 +1,6 @@
1
1
  import type { OrderType } from '@gravity-ui/react-data-table';
2
2
  import type { EFlag } from '../../../types/api/enums';
3
- import type { NodesSortValue, TEndpoint, TPoolStats } from '../../../types/api/nodes';
3
+ import type { NodesGroupByField, NodesSortValue, TEndpoint, TPoolStats } from '../../../types/api/nodes';
4
4
  import type { TTabletStateInfo as TFullTabletStateInfo } from '../../../types/api/tablet';
5
5
  import type { NodesUptimeFilterValues, PreparedNodeSystemState } from '../../../utils/nodes';
6
6
  import type { ProblemFilterValue } from '../settings/types';
@@ -33,6 +33,8 @@ export interface NodesFilters {
33
33
  uptimeFilter: NodesUptimeFilterValues;
34
34
  path?: string;
35
35
  database?: string;
36
+ filterGroup?: string;
37
+ filterGroupBy?: NodesGroupByField;
36
38
  }
37
39
  export interface NodesGroup {
38
40
  name: string;
@@ -1,4 +1,4 @@
1
1
  import type { TNodesInfo } from '../../../types/api/nodes';
2
2
  import type { NodesHandledResponse } from './types';
3
3
  export declare const prepareNodesData: (data: TNodesInfo) => NodesHandledResponse;
4
- export declare const getLoadSeverityForNode: (value: number) => "danger" | "warning" | "success" | undefined;
4
+ export declare const getLoadSeverityForNode: (value: number) => "success" | "warning" | "danger" | undefined;
@@ -10,10 +10,15 @@ export const prepareNodesData = (data) => {
10
10
  NodeId: node.NodeId,
11
11
  };
12
12
  });
13
- const preparedGroups = (_a = data.NodeGroups) === null || _a === void 0 ? void 0 : _a.map((group) => ({
14
- name: group.GroupName,
15
- count: group.NodeCount,
16
- }));
13
+ const preparedGroups = (_a = data.NodeGroups) === null || _a === void 0 ? void 0 : _a.map(({ GroupName, NodeCount }) => {
14
+ if (GroupName && NodeCount) {
15
+ return {
16
+ name: GroupName,
17
+ count: Number(NodeCount),
18
+ };
19
+ }
20
+ return undefined;
21
+ }).filter((group) => Boolean(group));
17
22
  return {
18
23
  Nodes: preparedNodes,
19
24
  NodeGroups: preparedGroups,
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAI5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAgB,EAAwB,EAAE;;IACvE,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IAElC,MAAM,aAAa,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxC,OAAO;YACH,GAAG,sBAAsB,CAAC,IAAI,CAAC,WAAW,CAAC;YAC3C,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE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AK,EAAE,MAAM,CAAC,SAAS,CAAC;aAC3B,CAAC;QACN,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,EAAuB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAE1D,OAAO;QACH,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,cAAc;QAC1B,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,aAAa,CAAC,MAAM;QAC3D,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KACtC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { getArray, valueIsDefined } from '../../../utils';
2
- import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
2
+ import { prepareWhiteboardPDiskData, prepareWhiteboardVDiskData, } from '../../../utils/disks/prepareDisks';
3
3
  import { prepareNodeSystemState } from '../../../utils/nodes';
4
4
  export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
5
5
  var _a, _b, _c;
@@ -8,7 +8,10 @@ export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
8
8
  const { BSC = {}, Whiteboard = {} } = pdiskResponse || {};
9
9
  const { PDisk: WhiteboardPDiskData = {}, VDisks: WhiteboardVDisksData = [] } = Whiteboard;
10
10
  const { PDisk: BSCPDiskData = {} } = BSC;
11
- const preparedPDisk = preparePDiskData(WhiteboardPDiskData, BSCPDiskData);
11
+ const preparedPDisk = prepareWhiteboardPDiskData({
12
+ ...BSCPDiskData,
13
+ ...WhiteboardPDiskData,
14
+ });
12
15
  const NodeId = (_b = preparedPDisk.NodeId) !== null && _b !== void 0 ? _b : preparedNode.NodeId;
13
16
  const { LogUsedSize, LogTotalSize, TotalSize: PDiskTotalSize, SystemSize, ExpectedSlotCount, EnforcedDynamicSlotSize, } = preparedPDisk;
14
17
  let logSlot;
@@ -26,7 +29,7 @@ export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
26
29
  },
27
30
  };
28
31
  }
29
- const preparedVDisks = WhiteboardVDisksData.map((disk) => prepareVDiskData({ ...disk, NodeId }));
32
+ const preparedVDisks = WhiteboardVDisksData.map((disk) => prepareWhiteboardVDiskData({ ...disk, NodeId }));
30
33
  preparedVDisks.sort((disk1, disk2) => Number(disk2.VDiskSlotId) - Number(disk1.VDiskSlotId));
31
34
  const vdisksSlots = preparedVDisks.map((preparedVDisk) => {
32
35
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAI5D,MAAM,UAAU,wBAAwB,CAAC,CAAC,aAAa,GAAG,EAAE,EAAE,YAAY,CAGzE;;IACG,MAAM,OAAO,GAAG,MAAA,YAAY,CAAC,eAAe,0CAAG,CAAC,CAAC,CAAC;IAClD,MAAM,YAAY,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAErD,MAAM,EAAC,GAAG,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,EAAC,GAAG,aAAa,IAAI,EAAE,CAAC;IAExD,MAAM,EAAC,KAAK,EAAE,mBAAmB,GAAG,EAAE,EAAE,MAAM,EAAE,oBAAoB,GAAG,EAAE,EAAC,GAAG,UAAU,CAAC;IACxF,MAAM,EAAC,KAAK,EAAE,YAAY,GAAG,EAAE,EAAC,GAAG,GAAG,CAAC;IAEvC,MAAM,aAA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AAQ,EAAE,MAAA,YAAY,CAAC,KAAK,0CAAG,CAAC,CAAC;QACjC,MAAM,EAAE,YAAY,CAAC,EAAE;QACvB,SAAS,EAAE,SAAS;KACvB,CAAC;AACN,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ProblemFilterValue } from './types';
2
+ export declare function useProblemFilter(): {
3
+ problemFilter: ProblemFilterValue;
4
+ handleProblemFilterChange: (value: ProblemFilterValue) => void;
5
+ };
@@ -0,0 +1,14 @@
1
+ import { useTypedDispatch, useTypedSelector } from '../../../utils/hooks';
2
+ import { changeFilter, selectProblemFilter } from './settings';
3
+ export function useProblemFilter() {
4
+ const dispatch = useTypedDispatch();
5
+ const problemFilter = useTypedSelector(selectProblemFilter);
6
+ const handleProblemFilterChange = (value) => {
7
+ dispatch(changeFilter(value));
8
+ };
9
+ return {
10
+ problemFilter,
11
+ handleProblemFilterChange,
12
+ };
13
+ }
14
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/store/reducers/settings/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAG7D,MAAM,UAAU,gBAAgB;IAC5B,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IAEpC,MAAM,aAAa,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAE5D,MAAM,yBAAyB,GAAG,CAAC,KAAyB,EAAE,EAAE;QAC5D,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAClC,CAAC,CAAC;IAEF,OAAO;QACH,aAAa;QACb,yBAAyB;KAC5B,CAAC;AACN,CAAC"}