ydb-embedded-ui 21.0.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +0 -4
- package/dist/components/ComponentsProvider/componentsRegistry.d.ts +0 -2
- package/dist/components/ComponentsProvider/componentsRegistry.js +1 -3
- package/dist/components/ComponentsProvider/componentsRegistry.js.map +1 -1
- package/dist/components/ContentWithPopup/ContentWithPopup.d.ts +1 -1
- package/dist/components/ContentWithPopup/ContentWithPopup.js +4 -2
- package/dist/components/ContentWithPopup/ContentWithPopup.js.map +1 -1
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +10 -6
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/CriticalActionDialog/i18n/en.json +1 -2
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/components/FullNodeViewer/i18n/index.d.ts +1 -1
- package/dist/components/HoverPopup/HoverPopup.js +27 -4
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/HoverPopup/getPopupScrollContainer.d.ts +1 -0
- package/dist/components/HoverPopup/getPopupScrollContainer.js +20 -0
- package/dist/components/HoverPopup/getPopupScrollContainer.js.map +1 -0
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/SegmentedProgress/SegmentedProgress.d.ts +22 -1
- package/dist/components/SegmentedProgress/SegmentedProgress.js +44 -3
- package/dist/components/SegmentedProgress/SegmentedProgress.js.map +1 -1
- package/dist/components/SegmentedProgress/SegmentedProgress.scss +5 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +1 -13
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/en.json +0 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/App/App.js +3 -3
- package/dist/containers/App/App.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +8 -5
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +8 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.d.ts +4 -3
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.js +62 -25
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.scss +18 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.d.ts +22 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.js +49 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.js.map +1 -0
- package/dist/containers/Cluster/i18n/en.json +13 -4
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Header/HeaderActionsMenu.js +19 -3
- package/dist/containers/Header/HeaderActionsMenu.js.map +1 -1
- package/dist/containers/Header/hooks/useSharedDatabasePath.d.ts +4 -1
- package/dist/containers/Header/hooks/useSharedDatabasePath.js +14 -10
- package/dist/containers/Header/hooks/useSharedDatabasePath.js.map +1 -1
- package/dist/containers/Header/i18n/en.json +1 -0
- package/dist/containers/Header/i18n/index.d.ts +1 -1
- package/dist/containers/Node/Node.js +20 -17
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.d.ts +3 -9
- package/dist/containers/Node/NodePages.js +2 -10
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Node/i18n/en.json +0 -3
- package/dist/containers/Node/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/NodesTable.js +2 -2
- package/dist/containers/Nodes/NodesTable.js.map +1 -1
- package/dist/containers/Operations/columns.js +2 -2
- package/dist/containers/Operations/columns.js.map +1 -1
- package/dist/containers/Operations/i18n/en.json +2 -2
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +1 -1
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/i18n/en.json +3 -3
- package/dist/containers/Storage/PDisks/PDisks.js +1 -1
- package/dist/containers/Storage/PDisks/PDisks.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.js +0 -1
- package/dist/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.js +2 -3
- package/dist/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/constants.d.ts +2 -2
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.js +2 -3
- package/dist/containers/Storage/PaginatedStorageGroupsTable/getGroups.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +2 -3
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +1 -1
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -1
- package/dist/containers/Tablet/i18n/en.json +3 -3
- package/dist/containers/Tablets/TabletsTable.js +1 -1
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tablets/i18n/en.json +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/constants.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +3 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +1 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/useTenantStorageNewData.d.ts +5 -5
- package/dist/containers/Tenant/Diagnostics/useDiagnosticsPages.js +2 -4
- package/dist/containers/Tenant/Diagnostics/useDiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js +10 -2
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js.map +1 -1
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api/viewer.d.ts +1 -2
- package/dist/services/api/viewer.js +0 -11
- package/dist/services/api/viewer.js.map +1 -1
- package/dist/store/configureStore.d.ts +12 -12
- package/dist/store/defaultStore.d.ts +6 -6
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +3 -0
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/capabilities/capabilities.d.ts +43 -43
- package/dist/store/reducers/capabilities/hooks.d.ts +5 -6
- package/dist/store/reducers/capabilities/hooks.js +0 -3
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +5 -5
- package/dist/store/reducers/cluster/cluster.js +3 -2
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.js +2 -1
- package/dist/store/reducers/clusters/clusters.js.map +1 -1
- package/dist/store/reducers/codeAssist/codeAssist.d.ts +6 -6
- package/dist/store/reducers/configs.d.ts +3 -3
- package/dist/store/reducers/entityDataTags.d.ts +21 -0
- package/dist/store/reducers/entityDataTags.js +24 -0
- package/dist/store/reducers/entityDataTags.js.map +1 -0
- package/dist/store/reducers/environments/environments.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -4
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +111 -111
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +8 -8
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +2 -5
- package/dist/store/reducers/node/node.js +0 -12
- package/dist/store/reducers/node/node.js.map +1 -1
- package/dist/store/reducers/node/types.d.ts +0 -14
- package/dist/store/reducers/nodes/nodes.d.ts +2 -2
- package/dist/store/reducers/nodesList.d.ts +12 -12
- package/dist/store/reducers/operations.d.ts +5 -5
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +3 -3
- package/dist/store/reducers/pdisk/pdisk.d.ts +2 -2
- package/dist/store/reducers/planToSvg.d.ts +2 -2
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/query/api.d.ts +4 -4
- package/dist/store/reducers/replication.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +16 -16
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +40 -40
- package/dist/store/reducers/settings/api.d.ts +4 -4
- package/dist/store/reducers/settings/settings.d.ts +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/showCreateTable/showCreateTable.d.ts +2 -2
- package/dist/store/reducers/storage/requestStorageData.d.ts +2 -4
- package/dist/store/reducers/storage/requestStorageData.js +4 -10
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
- package/dist/store/reducers/storage/storage.d.ts +4 -6
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +0 -9
- package/dist/store/reducers/storage/utils.d.ts +1 -2
- package/dist/store/reducers/storage/utils.js +3 -114
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/storageUsage/StorageUsage.d.ts +2 -2
- package/dist/store/reducers/streamingQuery/streamingQuery.d.ts +2 -2
- package/dist/store/reducers/table/table.d.ts +4 -4
- package/dist/store/reducers/tableData.d.ts +1 -1
- package/dist/store/reducers/tablePartitioning/tablePartitioning.d.ts +2 -2
- package/dist/store/reducers/tableSchemaData.d.ts +2 -2
- package/dist/store/reducers/tablet.d.ts +8 -8
- package/dist/store/reducers/tablets.d.ts +3 -3
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenant/tenant.js +14 -1
- package/dist/store/reducers/tenant/tenant.js.map +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/storage/tenantOverviewStorage.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenants/tenants.d.ts +3 -3
- package/dist/store/reducers/tenants/tenants.js +2 -1
- package/dist/store/reducers/tenants/tenants.js.map +1 -1
- package/dist/store/reducers/topic/topic.d.ts +84 -84
- package/dist/store/reducers/vdisk/vdisk.d.ts +3 -3
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/state-url-mapping.js +5 -1
- package/dist/store/state-url-mapping.js.map +1 -1
- package/dist/types/api/storage.d.ts +2 -111
- package/dist/types/api/storage.js.map +1 -1
- package/dist/uiFactory/types.d.ts +8 -0
- package/dist/uiFactory/uiFactory.js +5 -2
- package/dist/uiFactory/uiFactory.js.map +1 -1
- package/dist/utils/hooks/useWhoami.d.ts +5 -5
- package/package.json +2 -2
- package/src/components/ComponentsProvider/componentsRegistry.ts +1 -4
- package/src/components/ContentWithPopup/ContentWithPopup.tsx +7 -0
- package/src/components/CriticalActionDialog/CriticalActionDialog.tsx +12 -25
- package/src/components/CriticalActionDialog/i18n/en.json +1 -2
- package/src/components/DropdownMenu/DropdownMenu.tsx +3 -2
- package/src/components/HoverPopup/HoverPopup.tsx +32 -3
- package/src/components/HoverPopup/getPopupScrollContainer.ts +20 -0
- package/src/components/SegmentedProgress/SegmentedProgress.scss +5 -0
- package/src/components/SegmentedProgress/SegmentedProgress.tsx +99 -10
- package/src/components/StorageGroupInfo/StorageGroupInfo.tsx +0 -13
- package/src/components/StorageGroupInfo/i18n/en.json +0 -1
- package/src/containers/App/App.tsx +3 -3
- package/src/containers/Cluster/ClusterInfo/ClusterInfo.scss +8 -0
- package/src/containers/Cluster/ClusterInfo/ClusterInfo.tsx +12 -11
- package/src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.scss +18 -0
- package/src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.tsx +143 -58
- package/src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.ts +89 -0
- package/src/containers/Cluster/i18n/en.json +13 -4
- package/src/containers/Header/HeaderActionsMenu.tsx +22 -2
- package/src/containers/Header/hooks/useSharedDatabasePath.ts +33 -26
- package/src/containers/Header/i18n/en.json +1 -0
- package/src/containers/Node/Node.tsx +32 -18
- package/src/containers/Node/NodePages.ts +5 -10
- package/src/containers/Node/i18n/en.json +0 -4
- package/src/containers/Nodes/NodesTable.tsx +7 -1
- package/src/containers/Operations/columns.tsx +4 -0
- package/src/containers/Operations/i18n/en.json +2 -2
- package/src/containers/PDiskPage/DecommissionButton/DecommissionButton.tsx +2 -0
- package/src/containers/PDiskPage/PDiskPage.tsx +3 -1
- package/src/containers/PDiskPage/i18n/en.json +3 -3
- package/src/containers/Storage/PDisks/PDisks.tsx +1 -1
- package/src/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.tsx +0 -1
- package/src/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.tsx +2 -6
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/constants.ts +2 -2
- package/src/containers/Storage/PaginatedStorageGroupsTable/getGroups.ts +40 -47
- package/src/containers/StorageGroupPage/StorageGroupPage.tsx +2 -6
- package/src/containers/Tablet/components/TabletControls/TabletControls.tsx +7 -1
- package/src/containers/Tablet/i18n/en.json +3 -3
- package/src/containers/Tablets/TabletsTable.tsx +3 -1
- package/src/containers/Tablets/i18n/en.json +1 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx +3 -1
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx +2 -2
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx +1 -6
- package/src/containers/Tenant/Diagnostics/useDiagnosticsPages.ts +1 -4
- package/src/containers/Tenant/Healthcheck/components/HealthcheckDrawer.tsx +16 -1
- package/src/routes.ts +1 -1
- package/src/services/api/viewer.ts +1 -25
- package/src/store/reducers/api.ts +4 -0
- package/src/store/reducers/capabilities/hooks.ts +0 -4
- package/src/store/reducers/cluster/cluster.ts +3 -2
- package/src/store/reducers/clusters/clusters.ts +2 -1
- package/src/store/reducers/entityDataTags.ts +34 -0
- package/src/store/reducers/node/node.ts +0 -11
- package/src/store/reducers/node/types.ts +0 -18
- package/src/store/reducers/storage/requestStorageData.ts +5 -17
- package/src/store/reducers/storage/storage.ts +2 -6
- package/src/store/reducers/storage/types.ts +0 -9
- package/src/store/reducers/storage/utils.ts +5 -178
- package/src/store/reducers/tenant/tenant.ts +17 -1
- package/src/store/reducers/tenants/tenants.ts +2 -1
- package/src/store/state-url-mapping.ts +5 -1
- package/src/types/api/storage.ts +7 -131
- package/src/uiFactory/types.ts +9 -0
- package/src/uiFactory/uiFactory.ts +12 -2
- package/dist/containers/Node/NodeStructure/NodeStructure.d.ts +0 -7
- package/dist/containers/Node/NodeStructure/NodeStructure.js +0 -76
- package/dist/containers/Node/NodeStructure/NodeStructure.js.map +0 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +0 -155
- package/dist/containers/Node/NodeStructure/PDiskTitleBadge.d.ts +0 -7
- package/dist/containers/Node/NodeStructure/PDiskTitleBadge.js +0 -7
- package/dist/containers/Node/NodeStructure/PDiskTitleBadge.js.map +0 -1
- package/dist/containers/Node/NodeStructure/Pdisk.d.ts +0 -10
- package/dist/containers/Node/NodeStructure/Pdisk.js +0 -125
- package/dist/containers/Node/NodeStructure/Pdisk.js.map +0 -1
- package/dist/store/reducers/node/selectors.d.ts +0 -47
- package/dist/store/reducers/node/selectors.js +0 -43
- package/dist/store/reducers/node/selectors.js.map +0 -1
- package/src/containers/Node/NodeStructure/NodeStructure.scss +0 -155
- package/src/containers/Node/NodeStructure/NodeStructure.tsx +0 -121
- package/src/containers/Node/NodeStructure/PDiskTitleBadge.tsx +0 -18
- package/src/containers/Node/NodeStructure/Pdisk.tsx +0 -274
- package/src/store/reducers/node/selectors.ts +0 -68
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.js","sourceRoot":"","sources":["../../../src/containers/App/App.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAC,kBAAkB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"App.js","sourceRoot":"","sources":["../../../src/containers/App/App.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAC,kBAAkB,EAAC,MAAM,+CAA+C,CAAC;AACjF,O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C,cAAc,cACX,MAAC,iBAAiB,IACd,iBAAiB,EAAE,iBAAiB,EACpC,YAAY,EAAE,YAAY,aAE1B,KAAC,OAAO,IAAC,iBAAiB,EAAE,iBAAiB,YAAG,QAAQ,GAAW,EACnE,cAAK,GAAG,EAAE,iBAAiB,GAAQ,IACnB,GACP,GACA,IACR,CACpB,CAAC;AACN,CAAC;AAED,eAAe,GAAG,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 { Card, DefinitionList, Divider, Flex, Text } from '@gravity-ui/uikit';
|
|
3
4
|
import { ResponseError } from '../../../components/Errors/ResponseError';
|
|
4
5
|
import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
|
|
@@ -8,11 +9,13 @@ import { formatNumber } from '../../../utils/dataFormatters/dataFormatters';
|
|
|
8
9
|
import { BridgeInfoTable } from '../ClusterOverview/components/BridgeInfoTable';
|
|
9
10
|
import i18n from '../i18n';
|
|
10
11
|
import { StorageGroupStats } from './components/DiskGroupsStatsBars/DiskGroupsStats';
|
|
12
|
+
import { prepareClusterGroupsStats } from './components/DiskGroupsStatsBars/utils';
|
|
11
13
|
import { b } from './shared';
|
|
12
14
|
import './ClusterInfo.scss';
|
|
13
|
-
export const ClusterInfo = ({ cluster, clusterName, loading, error, additionalClusterProps = {}, groupStats
|
|
15
|
+
export const ClusterInfo = ({ cluster, clusterName, loading, error, additionalClusterProps = {}, groupStats, bridgePiles, }) => {
|
|
14
16
|
const { info = [], links = [] } = additionalClusterProps;
|
|
15
17
|
const clusterLinks = useClusterLinks(links);
|
|
18
|
+
const preparedGroupStats = React.useMemo(() => prepareClusterGroupsStats(groupStats !== null && groupStats !== void 0 ? groupStats : {}), [groupStats]);
|
|
16
19
|
const noDetails = (error && !cluster) || (!info.length && !clusterLinks.length);
|
|
17
20
|
const renderDetailSection = () => {
|
|
18
21
|
if (loading) {
|
|
@@ -29,10 +32,10 @@ export const ClusterInfo = ({ cluster, clusterName, loading, error, additionalCl
|
|
|
29
32
|
}) }))] }) })] }));
|
|
30
33
|
};
|
|
31
34
|
const renderStorageGroupsSection = () => {
|
|
32
|
-
if (loading ||
|
|
35
|
+
if (loading || preparedGroupStats.disks.length === 0) {
|
|
33
36
|
return null;
|
|
34
37
|
}
|
|
35
|
-
return (
|
|
38
|
+
return (_jsx(InfoSection, { className: b('storage-section'), dataQa: "cluster-storage-groups", children: _jsx(StorageGroupStats, { stats: preparedGroupStats }) }));
|
|
36
39
|
};
|
|
37
40
|
const renderBridgePilesSection = () => {
|
|
38
41
|
if (loading || !(bridgePiles === null || bridgePiles === void 0 ? void 0 : bridgePiles.length)) {
|
|
@@ -42,7 +45,7 @@ export const ClusterInfo = ({ cluster, clusterName, loading, error, additionalCl
|
|
|
42
45
|
};
|
|
43
46
|
return (_jsxs(Flex, { gap: 4, direction: "column", className: b(), children: [error ? _jsx(ResponseError, { error: error, className: b('error') }) : null, _jsxs("div", { className: b('sections', { 'no-details': !loading && noDetails }), children: [renderDetailSection(), renderStorageGroupsSection(), renderBridgePilesSection()] })] }));
|
|
44
47
|
};
|
|
45
|
-
function InfoSection({ children, className }) {
|
|
46
|
-
return (_jsx(Flex, { direction: "column", gap: 2, className: className, children: children }));
|
|
48
|
+
function InfoSection({ children, className, dataQa }) {
|
|
49
|
+
return (_jsx(Flex, { direction: "column", gap: 2, className: className, qa: dataQa, children: children }));
|
|
47
50
|
}
|
|
48
51
|
//# sourceMappingURL=ClusterInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterInfo.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/ClusterInfo.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ClusterInfo.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/ClusterInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,M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section {
|
|
55
55
|
--g-card-border-radius: var(--g-border-radius-s);
|
|
56
|
+
|
|
57
|
+
width: 100%;
|
|
58
|
+
|
|
59
|
+
@container overview-wrapper (min-width: 804px) {
|
|
60
|
+
width: var(--cluster-overview-section);
|
|
61
|
+
min-width: var(--cluster-overview-section);
|
|
62
|
+
}
|
|
63
|
+
|
|
56
64
|
@container overview-wrapper (min-width: 1104px) {
|
|
57
65
|
grid-area: storage;
|
|
58
66
|
}
|
package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PreparedClusterGroupsStats } from './utils';
|
|
2
|
+
import './DiskGroupsStats.scss';
|
|
2
3
|
interface StorageGroupStatsProps {
|
|
3
|
-
|
|
4
|
+
stats: PreparedClusterGroupsStats;
|
|
4
5
|
}
|
|
5
|
-
export declare function StorageGroupStats({
|
|
6
|
+
export declare function StorageGroupStats({ stats }: StorageGroupStatsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.js
CHANGED
|
@@ -1,32 +1,69 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Flex, Label, Text } from '@gravity-ui/uikit';
|
|
4
|
-
import { SegmentedProgress } from '../../../../../components/SegmentedProgress/SegmentedProgress';
|
|
3
|
+
import { Card, Flex, HelpMark, Label, Text } from '@gravity-ui/uikit';
|
|
4
|
+
import { SegmentedProgress, defaultNormalizePercent, } from '../../../../../components/SegmentedProgress/SegmentedProgress';
|
|
5
|
+
import { cn } from '../../../../../utils/cn';
|
|
5
6
|
import { formatNumber } from '../../../../../utils/dataFormatters/dataFormatters';
|
|
6
7
|
import i18n from '../../../i18n';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}) })] })] }), _jsx(SegmentedProgress, { value: stats.createdGroups, total: stats.totalGroups, labelStart: erasure, ariaLabel: i18n('context_storage-group-allocation-progress') })] }));
|
|
8
|
+
import './DiskGroupsStats.scss';
|
|
9
|
+
const b = cn('ydb-disk-groups-stats');
|
|
10
|
+
const ERASURE_COLORS = {
|
|
11
|
+
'block-4-2': 'var(--g-color-base-info-heavy)',
|
|
12
|
+
'mirror-3-dc': 'var(--g-color-base-utility-heavy)',
|
|
13
|
+
'mirror-3of4': 'var(--g-color-base-utility-heavy)',
|
|
14
|
+
none: 'var(--g-color-base-neutral-heavy)',
|
|
15
|
+
};
|
|
16
|
+
function getErasureColor(erasure) {
|
|
17
|
+
var _a;
|
|
18
|
+
return (_a = ERASURE_COLORS[erasure]) !== null && _a !== void 0 ? _a : 'var(--g-color-base-neutral-heavy)';
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
return (
|
|
20
|
+
function formatGroups(count) {
|
|
21
|
+
return i18n('value_groups', {
|
|
22
|
+
count,
|
|
23
|
+
formattedCount: formatNumber(count),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function formatAvailableGroups({ min, max }) {
|
|
27
|
+
if (min === max) {
|
|
28
|
+
return formatGroups(min);
|
|
29
|
+
}
|
|
30
|
+
return i18n('value_available-groups-range', {
|
|
31
|
+
min: formatNumber(min),
|
|
32
|
+
max: formatNumber(max),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function getErasureTooltip(stats) {
|
|
36
|
+
return i18n('context_available-groups-by-erasure', {
|
|
37
|
+
count: stats.availableGroups,
|
|
38
|
+
formattedCount: formatNumber(stats.availableGroups),
|
|
39
|
+
erasure: stats.erasure,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function DiskGroupStats({ stats }) {
|
|
43
|
+
const legendId = React.useId();
|
|
44
|
+
const { allocatedGroups, availableGroups, diskType, erasures, progressTotalGroups } = stats;
|
|
45
|
+
const progressValue = progressTotalGroups > 0 ? allocatedGroups / progressTotalGroups : 0;
|
|
46
|
+
const progressPercent = progressValue * 100;
|
|
47
|
+
const progressLabel = i18n('context_storage-group-allocation-progress', {
|
|
48
|
+
diskType,
|
|
49
|
+
percent: defaultNormalizePercent(progressPercent),
|
|
50
|
+
});
|
|
51
|
+
const availableGroupsContext = i18n('context_available-groups');
|
|
52
|
+
const segments = erasures.map((erasureStats, index) => ({
|
|
53
|
+
id: erasureStats.erasure,
|
|
54
|
+
value: erasureStats.createdGroups,
|
|
55
|
+
minWidth: 10,
|
|
56
|
+
color: getErasureColor(erasureStats.erasure),
|
|
57
|
+
className: b('progress-segment'),
|
|
58
|
+
dataQa: 'cluster-storage-group-segment',
|
|
59
|
+
tooltip: getErasureTooltip(erasureStats),
|
|
60
|
+
ariaLabelledBy: `${legendId}-${index}`,
|
|
61
|
+
}));
|
|
62
|
+
return (_jsx(Card, { view: "filled", className: b('card'), qa: "cluster-storage-group-card", children: _jsxs(Flex, { direction: "column", gap: 1, children: [_jsxs(Flex, { direction: "column", gap: 2, children: [_jsxs(Flex, { justifyContent: "space-between", alignItems: "center", gap: 2, children: [_jsx(Text, { variant: "subheader-1", children: diskType }), _jsx(Label, { theme: "info", value: _jsxs(Flex, { alignItems: "center", gap: 1, children: [formatAvailableGroups(availableGroups), _jsx(HelpMark, { iconSize: "s", "aria-label": i18n('action_show-available-groups-info', {
|
|
63
|
+
diskType,
|
|
64
|
+
}), className: b('available-help'), popoverProps: { placement: ['top', 'bottom'] }, children: availableGroupsContext })] }), children: i18n('title_available') })] }), _jsx("div", { role: "group", "aria-label": progressLabel, children: _jsx(SegmentedProgress, { segments: segments, total: progressTotalGroups, ariaLabel: progressLabel, hideLabels: true }) })] }), _jsxs(Flex, { justifyContent: "space-between", alignItems: "center", gap: 2, wrap: "wrap", children: [_jsx(Flex, { alignItems: "center", gap: 4, wrap: "wrap", children: erasures.map((erasureStats, index) => (_jsxs(Flex, { id: `${legendId}-${index}`, alignItems: "center", gap: 2, children: [_jsx("span", { "aria-hidden": "true", className: b('legend-dot'), style: { backgroundColor: getErasureColor(erasureStats.erasure) } }), _jsx(Text, { children: erasureStats.erasure }), _jsx(Text, { color: "secondary", children: formatGroups(erasureStats.createdGroups) })] }, erasureStats.erasure))) }), _jsx(Text, { color: "secondary", children: formatGroups(allocatedGroups) })] })] }) }));
|
|
65
|
+
}
|
|
66
|
+
export function StorageGroupStats({ stats }) {
|
|
67
|
+
return (_jsxs(React.Fragment, { children: [_jsxs(Text, { as: "div", variant: "subheader-2", children: [i18n('title_storage-groups'), ' ', _jsx(Text, { color: "secondary", variant: "subheader-2", children: formatNumber(stats.allocatedGroups) })] }), _jsx(Flex, { direction: "column", gap: 1, children: stats.disks.map((diskStats) => (_jsx(DiskGroupStats, { stats: diskStats }, diskStats.diskType))) })] }));
|
|
31
68
|
}
|
|
32
69
|
//# sourceMappingURL=DiskGroupsStats.js.map
|
package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiskGroupsStats.js","sourceRoot":"","sources":["../../../../../../src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"DiskGroupsStats.js","sourceRoot":"","sources":["../../../../../../src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.tsx"],"names":[],"mapp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b-disk-groups-stats {
|
|
2
|
+
&__card {
|
|
3
|
+
padding: var(--g-spacing-3) var(--g-spacing-4);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&__available-help {
|
|
7
|
+
color: inherit;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&__legend-dot {
|
|
11
|
+
flex: 0 0 8px;
|
|
12
|
+
|
|
13
|
+
width: 8px;
|
|
14
|
+
height: 8px;
|
|
15
|
+
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ClusterGroupsStats } from '../../../../../store/reducers/cluster/types';
|
|
2
|
+
export interface PreparedErasureGroupsStats {
|
|
3
|
+
erasure: string;
|
|
4
|
+
createdGroups: number;
|
|
5
|
+
availableGroups: number;
|
|
6
|
+
}
|
|
7
|
+
export interface PreparedDiskGroupsStats {
|
|
8
|
+
diskType: string;
|
|
9
|
+
erasures: PreparedErasureGroupsStats[];
|
|
10
|
+
allocatedGroups: number;
|
|
11
|
+
availableGroups: {
|
|
12
|
+
min: number;
|
|
13
|
+
max: number;
|
|
14
|
+
average: number;
|
|
15
|
+
};
|
|
16
|
+
progressTotalGroups: number;
|
|
17
|
+
}
|
|
18
|
+
export interface PreparedClusterGroupsStats {
|
|
19
|
+
disks: PreparedDiskGroupsStats[];
|
|
20
|
+
allocatedGroups: number;
|
|
21
|
+
}
|
|
22
|
+
export declare function prepareClusterGroupsStats(groupStats: ClusterGroupsStats): PreparedClusterGroupsStats;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const DISK_TYPE_ORDER = ['HDD', 'SSD'];
|
|
2
|
+
const ERASURE_ORDER = ['block-4-2', 'mirror-3-dc', 'mirror-3of4', 'none'];
|
|
3
|
+
function getErasureOrder(erasure) {
|
|
4
|
+
const index = ERASURE_ORDER.indexOf(erasure);
|
|
5
|
+
return index === -1 ? ERASURE_ORDER.length : index;
|
|
6
|
+
}
|
|
7
|
+
function getDiskTypeOrder(diskType) {
|
|
8
|
+
const index = DISK_TYPE_ORDER.indexOf(diskType);
|
|
9
|
+
return index === -1 ? DISK_TYPE_ORDER.length : index;
|
|
10
|
+
}
|
|
11
|
+
export function prepareClusterGroupsStats(groupStats) {
|
|
12
|
+
let allocatedGroups = 0;
|
|
13
|
+
const disks = Object.entries(groupStats)
|
|
14
|
+
.flatMap(([diskType, diskStats]) => {
|
|
15
|
+
const erasures = Object.values(diskStats)
|
|
16
|
+
.filter(({ createdGroups }) => createdGroups > 0)
|
|
17
|
+
.map((stats) => ({
|
|
18
|
+
erasure: stats.erasure,
|
|
19
|
+
createdGroups: stats.createdGroups,
|
|
20
|
+
availableGroups: stats.totalGroups - stats.createdGroups,
|
|
21
|
+
}))
|
|
22
|
+
.sort((a, b) => getErasureOrder(a.erasure) - getErasureOrder(b.erasure));
|
|
23
|
+
if (erasures.length === 0) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
const diskAllocatedGroups = erasures.reduce((sum, stats) => sum + stats.createdGroups, 0);
|
|
27
|
+
const availableValues = erasures.map((stats) => stats.availableGroups);
|
|
28
|
+
const minAvailableGroups = Math.min(...availableValues);
|
|
29
|
+
const maxAvailableGroups = Math.max(...availableValues);
|
|
30
|
+
const averageAvailableGroups = (minAvailableGroups + maxAvailableGroups) / 2;
|
|
31
|
+
allocatedGroups += diskAllocatedGroups;
|
|
32
|
+
return [
|
|
33
|
+
{
|
|
34
|
+
diskType,
|
|
35
|
+
erasures,
|
|
36
|
+
allocatedGroups: diskAllocatedGroups,
|
|
37
|
+
availableGroups: {
|
|
38
|
+
min: minAvailableGroups,
|
|
39
|
+
max: maxAvailableGroups,
|
|
40
|
+
average: averageAvailableGroups,
|
|
41
|
+
},
|
|
42
|
+
progressTotalGroups: diskAllocatedGroups + averageAvailableGroups,
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
})
|
|
46
|
+
.sort((a, b) => getDiskTypeOrder(a.diskType) - getDiskTypeOrder(b.diskType));
|
|
47
|
+
return { disks, allocatedGroups };
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/utils.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACvC,MAAM,aAAa,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;AAyB1E,SAAS,eAAe,CAAC,OAAe;IACpC,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE7C,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;AACvD,CAAC;AAED,SAAS,gBAAgB,CAAC,QAAgB;IACtC,MAAM,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEhD,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,yBAAyB,CACrC,UAA8B;IAE9B,IAAI,eAAe,GAAG,CAAC,CAAC;IAExB,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;SACnC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,EAAE;QAC/B,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;aACpC,MAAM,CAAC,CAAC,EAAC,aAAa,EAAC,EAAE,EAAE,CAAC,aAAa,GAAG,CAAC,CAAC;aAC9C,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACb,OAAO,EAAE,KAAK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AQ,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEjF,OAAO,EAAC,KAAK,EAAE,eAAe,EAAC,CAAC;AACpC,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"title_available": "Available",
|
|
3
|
+
"value_groups": {
|
|
4
|
+
"one": "{{formattedCount}} group",
|
|
5
|
+
"other": "{{formattedCount}} groups"
|
|
6
|
+
},
|
|
7
|
+
"value_available-groups-range": "{{min}}–{{max}} groups",
|
|
8
|
+
"context_available-groups": "Estimated number of free groups available for allocation.",
|
|
9
|
+
"action_show-available-groups-info": "About available {{diskType}} storage groups",
|
|
10
|
+
"context_available-groups-by-erasure": {
|
|
11
|
+
"one": "{{formattedCount}} group available if only {{erasure}} is used",
|
|
12
|
+
"other": "{{formattedCount}} groups available if only {{erasure}} is used"
|
|
13
|
+
},
|
|
14
|
+
"context_storage-group-allocation-progress": "{{diskType}} storage group allocation: {{percent}}%",
|
|
6
15
|
"title_cpu": "CPU",
|
|
7
16
|
"title_storage-groups": "Allocated Storage Groups",
|
|
8
17
|
"title_memory": "Memory",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (key: "
|
|
1
|
+
declare const _default: (key: "title_available" | "value_groups" | "value_available-groups-range" | "context_available-groups" | "action_show-available-groups-info" | "context_available-groups-by-erasure" | "context_storage-group-allocation-progress" | "title_cpu" | "title_storage-groups" | "title_memory" | "title_network" | "title_links" | "title_details" | "title_bridge" | "label_overview" | "field_state" | "field_nodes" | "value_nodes" | "value_bridge-state-primary" | "value_bridge-state-promoted" | "value_bridge-state-synchronised" | "value_bridge-state-not-synchronised" | "value_bridge-state-suspended" | "value_bridge-state-disconnected" | "value_bridge-state-unspecified" | "label_you-are-here" | "label_bridge-pile-health-status-prefix" | "value_bridge-group-status-unknown" | "value_bridge-group-status-full" | "value_bridge-group-status-partial" | "value_bridge-group-status-degraded" | "value_bridge-group-status-disintegrated" | "context_bridge-pile-state-promoted" | "context_bridge-pile-state-primary" | "context_bridge-pile-state-synchronised" | "context_bridge-pile-state-not-synchronised" | "context_bridge-pile-state-suspended" | "context_bridge-pile-state-disconnected" | "context_group-statuses" | "context_group-statuses-empty" | "context_cpu" | "context_memory" | "title_storage-by-type" | "title_storage" | "context_network" | "context_cpu-description" | "context_memory-description" | "context_storage-by-type-description" | "context_storage-total-description" | "context_network-description" | "tab_databases" | "tab_nodes" | "tab_storage" | "tab_network" | "tab_versions" | "tab_tablets" | "tab_events" | "tab_configs" | "title_healthcheck-dashboard" | "action_download-healthcheck", params?: import("@gravity-ui/i18n").Params) => string;
|
|
2
2
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { DatabaseArrowRight, Pencil, PlugConnection, TrashBin } from '@gravity-ui/icons';
|
|
4
|
+
import { Flex, Spin, Text } from '@gravity-ui/uikit';
|
|
4
5
|
import { useHistory } from 'react-router-dom';
|
|
5
6
|
import { getConnectToDBDialog } from '../../components/ConnectToDB/ConnectToDBDialog';
|
|
6
7
|
import { DropdownMenu } from '../../components/DropdownMenu';
|
|
@@ -14,7 +15,7 @@ import { headerKeyset } from './i18n';
|
|
|
14
15
|
export function DBHeaderActionsMenu({ database, clusterName, databaseData, isDatabaseDataLoading, isV2NavigationEnabled, isViewerUser, prepareTenantBackend, databaseLinks, }) {
|
|
15
16
|
const history = useHistory();
|
|
16
17
|
const emMetaAvailable = useEmMetaAvailable();
|
|
17
|
-
const sharedDatabasePath = useSharedDatabasePath({
|
|
18
|
+
const { isSharedDatabaseLoading, sharedDatabasePath } = useSharedDatabasePath({
|
|
18
19
|
clusterName,
|
|
19
20
|
databaseData,
|
|
20
21
|
isViewerUser,
|
|
@@ -47,7 +48,21 @@ export function DBHeaderActionsMenu({ database, clusterName, databaseData, isDat
|
|
|
47
48
|
},
|
|
48
49
|
]);
|
|
49
50
|
}
|
|
50
|
-
if (
|
|
51
|
+
if (isSharedDatabaseLoading) {
|
|
52
|
+
menuItems.push([
|
|
53
|
+
{
|
|
54
|
+
title: (_jsxs(Flex, { alignItems: "center", gap: 2, children: [_jsx(Spin, { size: "xs", qa: "shared-database-link-loader" }), _jsx(Text, { children: headerKeyset('action_go-to-shared-db') })] })),
|
|
55
|
+
action: () => undefined,
|
|
56
|
+
disabled: true,
|
|
57
|
+
extraProps: {
|
|
58
|
+
'aria-busy': true,
|
|
59
|
+
'aria-disabled': true,
|
|
60
|
+
'aria-label': headerKeyset('status_loading-shared-db'),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
]);
|
|
64
|
+
}
|
|
65
|
+
else if (sharedDatabasePath) {
|
|
51
66
|
menuItems.push([
|
|
52
67
|
{
|
|
53
68
|
title: headerKeyset('action_go-to-shared-db'),
|
|
@@ -96,6 +111,7 @@ export function DBHeaderActionsMenu({ database, clusterName, databaseData, isDat
|
|
|
96
111
|
history,
|
|
97
112
|
isEditDBAvailable,
|
|
98
113
|
isDeleteDBAvailable,
|
|
114
|
+
isSharedDatabaseLoading,
|
|
99
115
|
sharedDatabasePath,
|
|
100
116
|
]);
|
|
101
117
|
if (!menuItems.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderActionsMenu.js","sourceRoot":"","sources":["../../../src/containers/Header/HeaderActionsMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,kBAAkB,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAA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ED,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,YAC7B,KAAC,YAAY,IACT,KAAK,EAAE,SAAS,EAChB,UAAU,EAAE,EAAC,SAAS,EAAE,YAAY,EAAC,EACrC,oBAAoB,EAAE,EAAC,OAAO,EAAE,qBAAqB,EAAC,GACxD,GACA,CACT,CAAC;AACN,CAAC"}
|
|
@@ -6,5 +6,8 @@ interface UseSharedDatabasePathParams {
|
|
|
6
6
|
isViewerUser?: boolean;
|
|
7
7
|
prepareTenantBackend?: AdditionalTenantsProps['prepareTenantBackend'];
|
|
8
8
|
}
|
|
9
|
-
export declare function useSharedDatabasePath({ clusterName, databaseData, isViewerUser, prepareTenantBackend, }: UseSharedDatabasePathParams):
|
|
9
|
+
export declare function useSharedDatabasePath({ clusterName, databaseData, isViewerUser, prepareTenantBackend, }: UseSharedDatabasePathParams): {
|
|
10
|
+
isSharedDatabaseLoading: boolean;
|
|
11
|
+
sharedDatabasePath: string | undefined;
|
|
12
|
+
};
|
|
10
13
|
export {};
|
|
@@ -50,7 +50,7 @@ export function useSharedDatabasePath({ clusterName, databaseData, isViewerUser,
|
|
|
50
50
|
useDatabaseId,
|
|
51
51
|
});
|
|
52
52
|
const shouldResolveSharedDatabaseFromViewer = shouldResolveSharedDatabaseName && !window.api.meta;
|
|
53
|
-
const { currentData: sharedDatabaseFromViewer } = tenantsApi.useGetSharedDatabaseQuery(shouldResolveSharedDatabaseFromViewer && (databaseData === null || databaseData === void 0 ? void 0 : databaseData.ResourceId)
|
|
53
|
+
const { currentData: sharedDatabaseFromViewer, isFetching: isSharedDatabaseFromViewerFetching } = tenantsApi.useGetSharedDatabaseQuery(shouldResolveSharedDatabaseFromViewer && (databaseData === null || databaseData === void 0 ? void 0 : databaseData.ResourceId)
|
|
54
54
|
? {
|
|
55
55
|
clusterName,
|
|
56
56
|
database: databaseData.Name,
|
|
@@ -62,7 +62,7 @@ export function useSharedDatabasePath({ clusterName, databaseData, isViewerUser,
|
|
|
62
62
|
}
|
|
63
63
|
: skipToken);
|
|
64
64
|
const shouldResolveSharedDatabaseFromMetaList = shouldResolveSharedDatabaseName && Boolean(window.api.meta);
|
|
65
|
-
const { currentData: databases } = tenantsApi.useGetTenantsInfoQuery(shouldResolveSharedDatabaseFromMetaList
|
|
65
|
+
const { currentData: databases, isFetching: isDatabasesFetching } = tenantsApi.useGetTenantsInfoQuery(shouldResolveSharedDatabaseFromMetaList
|
|
66
66
|
? { clusterName, environmentName: environment, isMetaDatabasesAvailable }
|
|
67
67
|
: skipToken);
|
|
68
68
|
const sharedDatabaseTarget = React.useMemo(() => {
|
|
@@ -90,13 +90,17 @@ export function useSharedDatabasePath({ clusterName, databaseData, isViewerUser,
|
|
|
90
90
|
]);
|
|
91
91
|
const sharedDatabase = useDatabaseId ? databaseData === null || databaseData === void 0 ? void 0 : databaseData.ResourceId : sharedDatabaseTarget === null || sharedDatabaseTarget === void 0 ? void 0 : sharedDatabaseTarget.name;
|
|
92
92
|
const backend = getSharedDatabaseBackend(sharedDatabaseTarget, prepareTenantBackend);
|
|
93
|
-
return
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
93
|
+
return {
|
|
94
|
+
isSharedDatabaseLoading: (isSharedDatabaseFromViewerFetching && sharedDatabaseFromViewer === undefined) ||
|
|
95
|
+
(isDatabasesFetching && databases === undefined),
|
|
96
|
+
sharedDatabasePath: getResolvedSharedDatabasePath({
|
|
97
|
+
backend,
|
|
98
|
+
clusterName,
|
|
99
|
+
databaseData,
|
|
100
|
+
isClusterBaseInfoResolved: isClusterBaseInfoAvailable,
|
|
101
|
+
isViewerUser,
|
|
102
|
+
sharedDatabase,
|
|
103
|
+
}),
|
|
104
|
+
};
|
|
101
105
|
}
|
|
102
106
|
//# sourceMappingURL=useSharedDatabasePath.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSharedDatabasePath.js","sourceRoot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,QAAQ,EACR,QAAQ,EACR,oBAAoB,CACvB,CAAC;IACF,MAAM,+BAA+B,GAAG,4BAA4B,CAAC;QACjE,YAAY;QACZ,yBAAyB,EAAE,0BAA0B;QACrD,YAAY;QACZ,aAAa;KAChB,CAAC,CAAC;IAEH,MAAM,qCAAqC,GACvC,+BAA+B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;IAExD,MAAM,EAAC,WAAW,EAAE,wBAAwB,EAAC,
|
|
1
|
+
{"version":3,"file":"useSharedDatabasePath.js","sourceRoot":"","sources":["../../../../src/containers/Header/hooks/useSharedDatabasePath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,OAAO,IAAI,aAAa,EAAE,WAAW,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAC,UAAU,EAAC,MAAM,yCAAyC,CAAC;AAGnE,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAC,6BAA6B,EAAC,MAAM,oDAAoD,CAAC;AAgBjG,SAAS,4BAA4B,CAAC,EAClC,YAAY,EACZ,yBAAyB,EACzB,YAAY,EACZ,aAAa,GACoB;IACjC,OAAO,OAAO,CACV,YAAY;QACR,yBAAyB;QACzB,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,MAAK,YAAY;QACnC,YAAY,CAAC,UAAU;QACvB,CAAC,aAAa;QACd,CAAC,YAAY,CAAC,gBAAgB,CACrC,CAAC;AACN,CAAC;AAED,S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ApB,oBAAoB,uBAApB,oBAAoB,CAAE,IAAI,CAAC;IAC7F,MAAM,OAAO,GAAG,wBAAwB,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;IAErF,OAAO;QACH,uBAAuB,EACnB,CAAC,kCAAkC,IAAI,wBAAwB,KAAK,SAAS,CAAC;YAC9E,CAAC,mBAAmB,IAAI,SAAS,KAAK,SAAS,CAAC;QACpD,kBAAkB,EAAE,6BAA6B,CAAC;YAC9C,OAAO;YACP,WAAW;YACX,YAAY;YACZ,yBAAyB,EAAE,0BAA0B;YACrD,YAAY;YACZ,cAAc;SACjB,CAAC;KACL,CAAC;AACN,CAAC"}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"action_delete-cluster": "Delete Cluster",
|
|
17
17
|
"action_connect-to-db": "Connect to database",
|
|
18
18
|
"action_go-to-shared-db": "Go to shared database",
|
|
19
|
+
"status_loading-shared-db": "Loading shared database",
|
|
19
20
|
"action_manage": "Manage",
|
|
20
21
|
"title_developer-ui": "Developer UI",
|
|
21
22
|
"description_developer-ui": "Developer interface with a full set\nof administrative functions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const headerKeyset: (key: "title_monitoring" | "breadcrumbs.clusters" | "breadcrumbs.databases" | "breadcrumbs.tenant" | "breadcrumbs.node" | "breadcrumbs.pDisk" | "breadcrumbs.vDisk" | "breadcrumbs.tablet" | "breadcrumbs.tablets" | "breadcrumbs.storageGroup" | "title_connect" | "title_add-cluster" | "action_edit-db" | "action_delete-db" | "action_edit-cluster" | "action_delete-cluster" | "action_connect-to-db" | "action_go-to-shared-db" | "action_manage" | "title_developer-ui" | "description_developer-ui" | "description_connect-to-db" | "action_copy-path", params?: import("@gravity-ui/i18n").Params) => string;
|
|
1
|
+
export declare const headerKeyset: (key: "title_monitoring" | "breadcrumbs.clusters" | "breadcrumbs.databases" | "breadcrumbs.tenant" | "breadcrumbs.node" | "breadcrumbs.pDisk" | "breadcrumbs.vDisk" | "breadcrumbs.tablet" | "breadcrumbs.tablets" | "breadcrumbs.storageGroup" | "title_connect" | "title_add-cluster" | "action_edit-db" | "action_delete-db" | "action_edit-cluster" | "action_delete-cluster" | "action_connect-to-db" | "action_go-to-shared-db" | "status_loading-shared-db" | "action_manage" | "title_developer-ui" | "description_developer-ui" | "description_connect-to-db" | "action_copy-path", params?: import("@gravity-ui/i18n").Params) => string;
|