ydb-embedded-ui 6.27.1 → 6.28.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -21
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/EntityStatus/EntityStatus.d.ts +1 -2
- package/dist/components/EntityStatus/EntityStatus.js +5 -3
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +24 -2
- package/dist/components/HoverPopup/HoverPopup.d.ts +4 -3
- package/dist/components/HoverPopup/HoverPopup.js +2 -2
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/LoaderWrapper/LoaderWrapper.d.ts +1 -1
- package/dist/components/MonitoringButton/MonitoringButton.d.ts +1 -3
- package/dist/components/MonitoringButton/MonitoringButton.js +2 -5
- package/dist/components/MonitoringButton/MonitoringButton.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +1 -3
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +3 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +16 -2
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/StatusIcon/StatusIcon.scss +1 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +4 -4
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TabletNameWrapper/TabletNameWrapper.d.ts +6 -0
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js +18 -0
- package/dist/components/TabletNameWrapper/TabletNameWrapper.js.map +1 -0
- package/dist/components/TabletNameWrapper/i18n/en.json +4 -0
- package/dist/components/TabletNameWrapper/i18n/index.d.ts +2 -0
- package/dist/components/TabletNameWrapper/i18n/index.js +5 -0
- package/dist/components/TabletNameWrapper/i18n/index.js.map +1 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.d.ts +8 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js +34 -0
- package/dist/components/TenantNameWrapper/TenantNameWrapper.js.map +1 -0
- package/dist/components/TenantNameWrapper/i18n/en.json +5 -0
- package/dist/components/TenantNameWrapper/i18n/index.d.ts +2 -0
- package/dist/components/TenantNameWrapper/i18n/index.js +5 -0
- package/dist/components/TenantNameWrapper/i18n/index.js.map +1 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.d.ts +2 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js +27 -5
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js.map +1 -1
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.scss +7 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/en.json +5 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.d.ts +2 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.js +5 -0
- package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.js.map +1 -0
- package/dist/components/VDiskInfo/VDiskInfo.js +5 -4
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.js +42 -5
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/nodesColumns/columns.js +6 -6
- package/dist/containers/App/App.scss +2 -4
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +1 -3
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +1 -3
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +2 -2
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +6 -13
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.d.ts +2 -0
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js +4 -0
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.js.map +1 -1
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.scss +6 -0
- package/dist/containers/Clusters/columns.js +3 -3
- package/dist/containers/Node/NodeStructure/Pdisk.js +4 -4
- package/dist/containers/Node/NodeStructure/Pdisk.js.map +1 -1
- package/dist/containers/Operations/Operations.scss +5 -0
- package/dist/containers/Operations/OperationsControls.d.ts +1 -0
- package/dist/containers/Operations/OperationsControls.js +2 -1
- package/dist/containers/Operations/OperationsControls.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +4 -4
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.js +11 -5
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.scss +0 -9
- package/dist/containers/Storage/Storage.js +1 -0
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/columns.js +3 -3
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +3 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/TabletsTable.js +2 -8
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +9 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +9 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +8 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +3 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +10 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -6
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
- package/dist/containers/Tenants/Tenants.js +2 -24
- package/dist/containers/Tenants/Tenants.js.map +1 -1
- package/dist/containers/Versions/NodesTable/NodesTable.js +2 -2
- package/dist/services/api.js +1 -1
- package/dist/services/api.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +6 -4
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/types/additionalProps.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +1 -0
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/utils/tableUtils/getRequiredDataFields.js +1 -1
- package/dist/utils/tableUtils/getRequiredDataFields.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/MonitoringButton/MonitoringButton.scss +0 -11
@@ -4,9 +4,9 @@ import { valueIsDefined } from '../../utils';
|
|
4
4
|
import { formatStorageValuesToGb } from '../../utils/dataFormatters/dataFormatters';
|
5
5
|
import { formatToMs } from '../../utils/timeParsers';
|
6
6
|
import { bytesToSpeed } from '../../utils/utils';
|
7
|
-
import { EntityStatus } from '../EntityStatus/EntityStatus';
|
8
7
|
import { InfoViewer } from '../InfoViewer';
|
9
8
|
import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
|
9
|
+
import { StatusIcon } from '../StatusIcon/StatusIcon';
|
10
10
|
import { storageGroupInfoKeyset } from './i18n';
|
11
11
|
// eslint-disable-next-line complexity
|
12
12
|
export function StorageGroupInfo({ data, className, ...infoViewerProps }) {
|
@@ -39,7 +39,7 @@ export function StorageGroupInfo({ data, className, ...infoViewerProps }) {
|
|
39
39
|
if (valueIsDefined(Overall)) {
|
40
40
|
storageGroupInfoFirstColumn.push({
|
41
41
|
label: storageGroupInfoKeyset('overall'),
|
42
|
-
value: _jsx(
|
42
|
+
value: _jsx(StatusIcon, { status: Overall }),
|
43
43
|
});
|
44
44
|
}
|
45
45
|
if (valueIsDefined(State)) {
|
@@ -73,13 +73,13 @@ export function StorageGroupInfo({ data, className, ...infoViewerProps }) {
|
|
73
73
|
if (valueIsDefined(DiskSpace)) {
|
74
74
|
storageGroupInfoSecondColumn.push({
|
75
75
|
label: storageGroupInfoKeyset('disk-space'),
|
76
|
-
value: _jsx(
|
76
|
+
value: _jsx(StatusIcon, { status: DiskSpace }),
|
77
77
|
});
|
78
78
|
}
|
79
79
|
if (valueIsDefined(Latency)) {
|
80
80
|
storageGroupInfoSecondColumn.push({
|
81
81
|
label: storageGroupInfoKeyset('latency'),
|
82
|
-
value: _jsx(
|
82
|
+
value: _jsx(StatusIcon, { status: Latency }),
|
83
83
|
});
|
84
84
|
}
|
85
85
|
if (valueIsDefined(LatencyPutTabletLogMs)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StorageGroupInfo.js","sourceRoot":"","sources":["../../../src/components/StorageGroupInfo/StorageGroupInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"StorageGroupInfo.js","sourceRoot":"","sources":["../../../src/components/StorageGroupInfo/StorageGroupInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAC,sBAAsB,EAAC,MAAM,QAAQ,CAAC;AAO9C,sCAAsC;AACtC,MAAM,UAAU,gBAAgB,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,GAAG,eAAe,EAAwB;IACzF,MAAM,EACF,UAAU,EACV,OAAO,EACP,SAAS,EACT,SAAS,EACT,cAAc,EACd,IAAI,EACJ,KAAK,EACL,KAAK,EACL,IAAI,EACJ,KAAK,EACL,eAAe,EACf,OAAO,EACP,eAAe,EACf,KAAK,EACL,YAAY,EACZ,SAAS,EACT,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,GACnB,GAAG,IAAI,IAAI,EAAE,CAAC;IAEf,MAAM,2BAA2B,GAAG,EAAE,CAAC;IAEvC,IAAI,cAAc,CAAC,eAAe,CAAC,EAAE,CAAC;QAClC,2BAA2B,C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B,KAAK,EAAE,sBAAsB,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACrC,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CACH,MAAC,IAAI,IAAC,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAC,KAAK,EAAC,IAAI,mBACpD,KAAC,UAAU,IAAC,IAAI,EAAE,2BAA2B,KAAM,eAAe,GAAI,EACtE,KAAC,UAAU,IAAC,IAAI,EAAE,4BAA4B,KAAM,eAAe,GAAI,IACpE,CACV,CAAC;AACN,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const storageGroupInfoKeyset: (key: "
|
1
|
+
export declare const storageGroupInfoKeyset: (key: "yes" | "no" | "state" | "encryption" | "missing-disks" | "usage" | "latency" | "allocation-units" | "media-type" | "available" | "read-throughput" | "write-throughput" | "overall" | "disk-space" | "erasure-species" | "used-space" | "group-generation" | "latency-put-tablet-log" | "latency-put-user-data" | "latency-get-fast", params?: import("@gravity-ui/i18n").Params) => string;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { DefinitionList, PopoverBehavior } from '@gravity-ui/uikit';
|
3
|
+
import { getTabletPagePath } from '../../routes';
|
4
|
+
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
5
|
+
import { createTabletDeveloperUIHref } from '../../utils/developerUI/developerUI';
|
6
|
+
import { useTypedSelector } from '../../utils/hooks';
|
7
|
+
import { CellWithPopover } from '../CellWithPopover/CellWithPopover';
|
8
|
+
import { EntityStatus } from '../EntityStatus/EntityStatus';
|
9
|
+
import { LinkWithIcon } from '../LinkWithIcon/LinkWithIcon';
|
10
|
+
import i18n from './i18n';
|
11
|
+
export function TabletNameWrapper({ tabletId, database }) {
|
12
|
+
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
13
|
+
const tabletPath = getTabletPagePath(tabletId, {
|
14
|
+
tenantName: database,
|
15
|
+
});
|
16
|
+
return (_jsx(CellWithPopover, { disabled: !isUserAllowedToMakeChanges, content: _jsx(DefinitionList, { responsive: true, children: _jsx(DefinitionList.Item, { name: i18n('field_links'), children: _jsx(LinkWithIcon, { title: i18n('context_developer-ui'), url: createTabletDeveloperUIHref(tabletId) }) }) }), placement: ['top', 'bottom'], behavior: PopoverBehavior.Immediate, children: _jsx(EntityStatus, { name: tabletId.toString(), path: tabletPath, hasClipboardButton: true, showStatus: false }) }));
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=TabletNameWrapper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TabletNameWrapper.js","sourceRoot":"","sources":["../../../src/components/TabletNameWrapper/TabletNameWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElE,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,2BAA2B,EAAC,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAO1B,MAAM,UAAU,iBAAiB,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAyB;IAC1E,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,gCAAgC,CAAC,CAAC;IAEtF,MAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,EAAE;QAC3C,UAAU,EAAE,QAAQ;KACvB,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,CAAC,0BAA0B,EACrC,OAAO,EACH,KAAC,cAAc,IAAC,UAAU,kBACtB,KAAC,cAAc,CAAC,IAAI,IAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,YAC1C,KAAC,YAAY,IACT,KAAK,EAAE,IAAI,CAAC,sBAAsB,CAAC,EACnC,GAAG,EAAE,2BAA2B,CAAC,QAAQ,CAAC,GAC5C,GACgB,GACT,EAErB,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,YAEnC,KAAC,YAAY,IACT,IAAI,EAAE,QAAQ,CAAC,QAAQ,EAAE,EACzB,IAAI,EAAE,UAAU,EAChB,kBAAkB,QAClB,UAAU,EAAE,KAAK,GACnB,GACY,CACrB,CAAC;AACN,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/TabletNameWrapper/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAE5C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { PreparedTenant } from '../../store/reducers/tenants/types';
|
2
|
+
import type { AdditionalTenantsProps } from '../../types/additionalProps';
|
3
|
+
interface TenantNameWrapperProps {
|
4
|
+
tenant: PreparedTenant;
|
5
|
+
additionalTenantsProps?: AdditionalTenantsProps;
|
6
|
+
}
|
7
|
+
export declare function TenantNameWrapper({ tenant, additionalTenantsProps }: TenantNameWrapperProps): import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { DefinitionList, PopoverBehavior } from '@gravity-ui/uikit';
|
3
|
+
import { getTenantPath } from '../../containers/Tenant/TenantPages';
|
4
|
+
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
5
|
+
import { useTypedSelector } from '../../utils/hooks';
|
6
|
+
import { CellWithPopover } from '../CellWithPopover/CellWithPopover';
|
7
|
+
import { EntityStatus } from '../EntityStatus/EntityStatus';
|
8
|
+
import { LinkWithIcon } from '../LinkWithIcon/LinkWithIcon';
|
9
|
+
import i18n from './i18n';
|
10
|
+
const getTenantBackend = (tenant, additionalTenantsProps) => {
|
11
|
+
var _a, _b;
|
12
|
+
if (typeof (additionalTenantsProps === null || additionalTenantsProps === void 0 ? void 0 : additionalTenantsProps.prepareTenantBackend) !== 'function') {
|
13
|
+
return undefined;
|
14
|
+
}
|
15
|
+
let backend = (_a = tenant.MonitoringEndpoint) !== null && _a !== void 0 ? _a : tenant.backend;
|
16
|
+
const nodeIds = (_b = tenant.NodeIds) !== null && _b !== void 0 ? _b : tenant.sharedNodeIds;
|
17
|
+
if (!backend && nodeIds && nodeIds.length > 0) {
|
18
|
+
const index = Math.floor(Math.random() * nodeIds.length);
|
19
|
+
backend = { NodeId: nodeIds[index] };
|
20
|
+
}
|
21
|
+
return additionalTenantsProps.prepareTenantBackend(backend);
|
22
|
+
};
|
23
|
+
export function TenantNameWrapper({ tenant, additionalTenantsProps }) {
|
24
|
+
var _a;
|
25
|
+
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
26
|
+
const backend = getTenantBackend(tenant, additionalTenantsProps);
|
27
|
+
const isExternalLink = Boolean(backend);
|
28
|
+
const monitoringLink = (_a = additionalTenantsProps === null || additionalTenantsProps === void 0 ? void 0 : additionalTenantsProps.getMonitoringLink) === null || _a === void 0 ? void 0 : _a.call(additionalTenantsProps, tenant.Name, tenant.Type);
|
29
|
+
return (_jsx(CellWithPopover, { disabled: !isUserAllowedToMakeChanges || !monitoringLink, content: monitoringLink ? (_jsx(DefinitionList, { responsive: true, children: _jsx(DefinitionList.Item, { name: i18n('field_links'), children: _jsx(LinkWithIcon, { title: i18n('field_monitoring-link'), url: monitoringLink }) }) })) : null, placement: ['top', 'bottom'], behavior: PopoverBehavior.Immediate, children: _jsx(EntityStatus, { externalLink: isExternalLink, name: tenant.Name || i18n('context_unknown'), withLeftTrim: true, status: tenant.Overall, hasClipboardButton: true, path: getTenantPath({
|
30
|
+
name: tenant.Name,
|
31
|
+
backend,
|
32
|
+
}) }) }));
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=TenantNameWrapper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TenantNameWrapper.js","sourceRoot":"","sources":["../../../src/components/TenantNameWrapper/TenantNameWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElE,OAAO,EAAC,aAAa,EAAC,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AAGpG,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAE1D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAO1B,MAAM,gBAAgB,GAAG,CACrB,MAAsB,EACtB,sBAA+C,EACjD,EAAE;;IACA,IAAI,OAAO,CAAA,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,oBAAoB,CAAA,KAAK,UAAU,EAAE,CAAC;QACrE,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,IAAI,OAAO,GAAqC,MAAA,MAAM,CAAC,kBAAkB,mCAAI,MAAM,CAAC,OAAO,CAAC;IAC5F,MAAM,O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AC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,YAEnC,KAAC,YAAY,IACT,YAAY,EAAE,cAAc,EAC5B,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,iBAAiB,CAAC,EAC5C,YAAY,EAAE,IAAI,EAClB,MAAM,EAAE,MAAM,CAAC,OAAO,EACtB,kBAAkB,QAClB,IAAI,EAAE,aAAa,CAAC;gBAChB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,OAAO;aACV,CAAC,GACJ,GACY,CACrB,CAAC;AACN,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/TenantNameWrapper/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAE5C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.d.ts
CHANGED
@@ -2,6 +2,7 @@ import type { TSystemStateInfo } from '../../../types/api/nodes';
|
|
2
2
|
import './NodeEndpointsTooltipContent.scss';
|
3
3
|
interface NodeEdpointsTooltipProps {
|
4
4
|
data?: TSystemStateInfo;
|
5
|
+
nodeHref?: string;
|
5
6
|
}
|
6
|
-
export declare const NodeEndpointsTooltipContent: ({ data }: NodeEdpointsTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
7
|
+
export declare const NodeEndpointsTooltipContent: ({ data, nodeHref }: NodeEdpointsTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
7
8
|
export {};
|
package/dist/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.js
CHANGED
@@ -1,20 +1,42 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { DefinitionList } from '@gravity-ui/uikit';
|
3
|
+
import { selectIsUserAllowedToMakeChanges } from '../../../store/reducers/authentication/authentication';
|
2
4
|
import { cn } from '../../../utils/cn';
|
3
|
-
import {
|
5
|
+
import { useTypedSelector } from '../../../utils/hooks';
|
6
|
+
import { LinkWithIcon } from '../../LinkWithIcon/LinkWithIcon';
|
7
|
+
import i18n from './i18n';
|
4
8
|
import './NodeEndpointsTooltipContent.scss';
|
5
9
|
const b = cn('ydb-node-endpoints-tooltip-content');
|
6
|
-
export const NodeEndpointsTooltipContent = ({ data }) => {
|
10
|
+
export const NodeEndpointsTooltipContent = ({ data, nodeHref }) => {
|
11
|
+
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
7
12
|
const info = [];
|
8
13
|
if (data === null || data === void 0 ? void 0 : data.Rack) {
|
9
|
-
info.push({
|
14
|
+
info.push({ name: i18n('field_rack'), children: data.Rack, key: 'Rack' });
|
10
15
|
}
|
11
16
|
if ((data === null || data === void 0 ? void 0 : data.Endpoints) && data.Endpoints.length) {
|
12
17
|
data.Endpoints.forEach(({ Name, Address }) => {
|
13
18
|
if (Name && Address) {
|
14
|
-
info.push({
|
19
|
+
info.push({ name: Name, children: Address, key: Name });
|
15
20
|
}
|
16
21
|
});
|
17
22
|
}
|
18
|
-
|
23
|
+
if (data === null || data === void 0 ? void 0 : data.Host) {
|
24
|
+
info.push({
|
25
|
+
name: i18n('field_host'),
|
26
|
+
children: data.Host,
|
27
|
+
copyText: data.Host,
|
28
|
+
key: 'Host',
|
29
|
+
});
|
30
|
+
}
|
31
|
+
if (isUserAllowedToMakeChanges && nodeHref) {
|
32
|
+
info.push({
|
33
|
+
name: 'Links',
|
34
|
+
children: _jsx(LinkWithIcon, { title: i18n('context_developer-ui'), url: nodeHref }),
|
35
|
+
key: 'developerUi',
|
36
|
+
});
|
37
|
+
}
|
38
|
+
return (_jsx("div", { className: b('list-container'), children: _jsx(DefinitionList, { responsive: true, children: info.map(({ children, key, ...rest }) => {
|
39
|
+
return (_jsx(DefinitionList.Item, { ...rest, children: _jsx("span", { className: b('definition'), children: children }) }, key));
|
40
|
+
}) }) }));
|
19
41
|
};
|
20
42
|
//# sourceMappingURL=NodeEndpointsTooltipContent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NodeEndpointsTooltipContent.js","sourceRoot":"","sources":["../../../../src/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"NodeEndpointsTooltipContent.js","sourceRoot":"","sources":["../../../../src/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAC,gCAAgC,EAAC,MAAM,uDAAuD,CAAC;AAEvG,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,iCAAiC,CAAC;AAE7D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,oCAAoC,CAAC;AAE5C,MAAM,CAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC,CAAC;AAOnD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EAAC,IAAI,EAAE,QAAQ,EAA2B,EAAE,EAAE;IACtF,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,gCAAgC,CAAC,CAAC;IACtF,MAAM,IAAI,GAAgD,EAAE,CAAC;IAE7D,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,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AC,IAAI,OAAe,IAAI,YACnC,eAAM,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAG,QAAQ,GAAQ,IAD7B,GAAG,CAEP,CACzB,CAAC;YACN,CAAC,CAAC,GACW,GACf,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,uBAAuB,CAAC;AAE1C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -12,6 +12,7 @@ import { EntityStatus } from '../EntityStatus/EntityStatus';
|
|
12
12
|
import { InfoViewer } from '../InfoViewer';
|
13
13
|
import { LinkWithIcon } from '../LinkWithIcon/LinkWithIcon';
|
14
14
|
import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
|
15
|
+
import { StatusIcon } from '../StatusIcon/StatusIcon';
|
15
16
|
import { vDiskInfoKeyset } from './i18n';
|
16
17
|
import './VDiskInfo.scss';
|
17
18
|
const b = cn('ydb-vdisk-info');
|
@@ -60,25 +61,25 @@ export function VDiskInfo({ data, withVDiskPageLink, withTitle, ...infoViewerPro
|
|
60
61
|
if (valueIsDefined(DiskSpace)) {
|
61
62
|
vdiskInfo.push({
|
62
63
|
label: vDiskInfoKeyset('space-status'),
|
63
|
-
value: _jsx(
|
64
|
+
value: _jsx(StatusIcon, { status: DiskSpace }),
|
64
65
|
});
|
65
66
|
}
|
66
67
|
if (valueIsDefined((_a = SatisfactionRank === null || SatisfactionRank === void 0 ? void 0 : SatisfactionRank.FreshRank) === null || _a === void 0 ? void 0 : _a.Flag)) {
|
67
68
|
vdiskInfo.push({
|
68
69
|
label: vDiskInfoKeyset('fresh-rank-satisfaction'),
|
69
|
-
value: _jsx(
|
70
|
+
value: _jsx(StatusIcon, { status: (_b = SatisfactionRank === null || SatisfactionRank === void 0 ? void 0 : SatisfactionRank.FreshRank) === null || _b === void 0 ? void 0 : _b.Flag }),
|
70
71
|
});
|
71
72
|
}
|
72
73
|
if (valueIsDefined((_c = SatisfactionRank === null || SatisfactionRank === void 0 ? void 0 : SatisfactionRank.LevelRank) === null || _c === void 0 ? void 0 : _c.Flag)) {
|
73
74
|
vdiskInfo.push({
|
74
75
|
label: vDiskInfoKeyset('level-rank-satisfaction'),
|
75
|
-
value: _jsx(
|
76
|
+
value: _jsx(StatusIcon, { status: (_d = SatisfactionRank === null || SatisfactionRank === void 0 ? void 0 : SatisfactionRank.LevelRank) === null || _d === void 0 ? void 0 : _d.Flag }),
|
76
77
|
});
|
77
78
|
}
|
78
79
|
if (valueIsDefined(FrontQueues)) {
|
79
80
|
vdiskInfo.push({
|
80
81
|
label: vDiskInfoKeyset('front-queues'),
|
81
|
-
value: _jsx(
|
82
|
+
value: _jsx(StatusIcon, { status: FrontQueues }),
|
82
83
|
});
|
83
84
|
}
|
84
85
|
if (valueIsDefined(HasUnreadableBlobs)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDiskInfo.js","sourceRoot":"","sources":["../../../src/components/VDiskInfo/VDiskInfo.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAC,0BAA0B,EAAC,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAE3D,OAAO,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AM,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,IAAC,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,aAAa,GAAI,IACjF,CACT,CAAC;AACN,CAAC"}
|
@@ -1,33 +1,51 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { Label } from '@gravity-ui/uikit';
|
4
|
+
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
4
5
|
import { selectNodeHostsMap } from '../../store/reducers/nodesList';
|
5
6
|
import { EFlag } from '../../types/api/enums';
|
6
7
|
import { valueIsDefined } from '../../utils';
|
7
8
|
import { cn } from '../../utils/cn';
|
8
9
|
import { EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
|
9
10
|
import { stringifyVdiskId } from '../../utils/dataFormatters/dataFormatters';
|
11
|
+
import { createVDiskDeveloperUILink } from '../../utils/developerUI/developerUI';
|
10
12
|
import { isFullVDiskData } from '../../utils/disks/helpers';
|
11
13
|
import { useTypedSelector } from '../../utils/hooks';
|
12
14
|
import { bytesToGB, bytesToSpeed } from '../../utils/utils';
|
13
15
|
import { InfoViewer } from '../InfoViewer';
|
14
16
|
import { InternalLink } from '../InternalLink';
|
17
|
+
import { LinkWithIcon } from '../LinkWithIcon/LinkWithIcon';
|
15
18
|
import { preparePDiskData } from '../PDiskPopup/PDiskPopup';
|
16
19
|
import { getVDiskLink } from '../VDisk/utils';
|
17
20
|
import './VDiskPopup.scss';
|
18
21
|
const b = cn('vdisk-storage-popup');
|
19
|
-
const prepareUnavailableVDiskData = (data) => {
|
22
|
+
const prepareUnavailableVDiskData = (data, withDeveloperUILink) => {
|
20
23
|
const { NodeId, PDiskId, VSlotId, StoragePoolName } = data;
|
21
24
|
const vdiskData = [{ label: 'State', value: 'not available' }];
|
22
25
|
if (StoragePoolName) {
|
23
26
|
vdiskData.push({ label: 'StoragePool', value: StoragePoolName });
|
24
27
|
}
|
25
28
|
vdiskData.push({ label: 'NodeId', value: NodeId !== null && NodeId !== void 0 ? NodeId : EMPTY_DATA_PLACEHOLDER }, { label: 'PDiskId', value: PDiskId !== null && PDiskId !== void 0 ? PDiskId : EMPTY_DATA_PLACEHOLDER }, { label: 'VSlotId', value: VSlotId !== null && VSlotId !== void 0 ? VSlotId : EMPTY_DATA_PLACEHOLDER });
|
29
|
+
if (withDeveloperUILink &&
|
30
|
+
valueIsDefined(NodeId) &&
|
31
|
+
valueIsDefined(PDiskId) &&
|
32
|
+
valueIsDefined(VSlotId)) {
|
33
|
+
const vDiskInternalViewerPath = createVDiskDeveloperUILink({
|
34
|
+
nodeId: NodeId,
|
35
|
+
pDiskId: PDiskId,
|
36
|
+
vDiskSlotId: VSlotId,
|
37
|
+
});
|
38
|
+
vdiskData.push({
|
39
|
+
label: 'Links',
|
40
|
+
value: _jsx(LinkWithIcon, { title: 'Developer UI', url: vDiskInternalViewerPath }),
|
41
|
+
});
|
42
|
+
}
|
26
43
|
return vdiskData;
|
27
44
|
};
|
28
|
-
|
45
|
+
// eslint-disable-next-line complexity
|
46
|
+
const prepareVDiskData = (data, withDeveloperUILink) => {
|
29
47
|
var _a, _b, _c, _d, _e, _f;
|
30
|
-
const { StringifiedId, VDiskState, SatisfactionRank, DiskSpace, FrontQueues, Replicated, UnsyncedVDisks, AllocatedSize, ReadThroughput, WriteThroughput, StoragePoolName, } = data;
|
48
|
+
const { NodeId, PDiskId, VDiskSlotId, StringifiedId, VDiskState, SatisfactionRank, DiskSpace, FrontQueues, Replicated, UnsyncedVDisks, AllocatedSize, ReadThroughput, WriteThroughput, StoragePoolName, } = data;
|
31
49
|
const vdiskData = [
|
32
50
|
{ label: 'VDisk', value: StringifiedId },
|
33
51
|
{ label: 'State', value: VDiskState !== null && VDiskState !== void 0 ? VDiskState : 'not available' },
|
@@ -86,14 +104,33 @@ const prepareVDiskData = (data) => {
|
|
86
104
|
value: bytesToSpeed(WriteThroughput),
|
87
105
|
});
|
88
106
|
}
|
107
|
+
if (withDeveloperUILink &&
|
108
|
+
valueIsDefined(NodeId) &&
|
109
|
+
valueIsDefined(PDiskId) &&
|
110
|
+
valueIsDefined(VDiskSlotId)) {
|
111
|
+
const vDiskInternalViewerPath = createVDiskDeveloperUILink({
|
112
|
+
nodeId: NodeId,
|
113
|
+
pDiskId: PDiskId,
|
114
|
+
vDiskSlotId: VDiskSlotId,
|
115
|
+
});
|
116
|
+
vdiskData.push({
|
117
|
+
label: 'Links',
|
118
|
+
value: _jsx(LinkWithIcon, { title: 'Developer UI', url: vDiskInternalViewerPath }),
|
119
|
+
});
|
120
|
+
}
|
89
121
|
return vdiskData;
|
90
122
|
};
|
91
123
|
export const VDiskPopup = ({ data }) => {
|
92
124
|
const isFullData = isFullVDiskData(data);
|
93
|
-
const
|
125
|
+
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
126
|
+
const vdiskInfo = React.useMemo(() => isFullData
|
127
|
+
? prepareVDiskData(data, isUserAllowedToMakeChanges)
|
128
|
+
: prepareUnavailableVDiskData(data, isUserAllowedToMakeChanges), [data, isFullData, isUserAllowedToMakeChanges]);
|
94
129
|
const nodeHostsMap = useTypedSelector(selectNodeHostsMap);
|
95
130
|
const nodeHost = valueIsDefined(data.NodeId) ? nodeHostsMap === null || nodeHostsMap === void 0 ? void 0 : nodeHostsMap.get(data.NodeId) : undefined;
|
96
|
-
const pdiskInfo = React.useMemo(() => isFullData &&
|
131
|
+
const pdiskInfo = React.useMemo(() => isFullData &&
|
132
|
+
data.PDisk &&
|
133
|
+
preparePDiskData(data.PDisk, nodeHost, isUserAllowedToMakeChanges), [data, nodeHost, isFullData, isUserAllowedToMakeChanges]);
|
97
134
|
const donorsInfo = [];
|
98
135
|
if ('Donors' in data && data.Donors) {
|
99
136
|
const donors = data.Donors;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDiskPopup.js","sourceRoot":"","sources":["../../../src/components/VDiskPopup/VDiskPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAA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IAAC,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,sBAAe,EACpE,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,GAAG,EACrD,SAAS,IAAI,KAAC,UAAU,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,GAAG,EACnE,UAAU,CAAC,MAAM,GAAG,CAAC,IAAI,KAAC,UAAU,IAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,GAAG,GAAG,IAChF,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -88,8 +88,8 @@ export function getMemoryColumn() {
|
|
88
88
|
defaultOrder: DataTable.DESCENDING,
|
89
89
|
render: ({ row }) => (_jsx(ProgressViewer, { value: row.MemoryUsed, capacity: row.MemoryLimit, formatValues: formatStorageValuesToGb, colorizeProgress: true })),
|
90
90
|
align: DataTable.LEFT,
|
91
|
-
width:
|
92
|
-
resizeMinWidth:
|
91
|
+
width: 170,
|
92
|
+
resizeMinWidth: 170,
|
93
93
|
};
|
94
94
|
}
|
95
95
|
export function getSharedCacheUsageColumn() {
|
@@ -98,8 +98,8 @@ export function getSharedCacheUsageColumn() {
|
|
98
98
|
header: NODES_COLUMNS_TITLES.SharedCacheUsage,
|
99
99
|
render: ({ row }) => (_jsx(ProgressViewer, { value: row.SharedCacheUsed, capacity: row.SharedCacheLimit, formatValues: formatStorageValuesToGb, colorizeProgress: true })),
|
100
100
|
align: DataTable.LEFT,
|
101
|
-
width:
|
102
|
-
resizeMinWidth:
|
101
|
+
width: 170,
|
102
|
+
resizeMinWidth: 170,
|
103
103
|
};
|
104
104
|
}
|
105
105
|
export function getCpuColumn() {
|
@@ -124,8 +124,8 @@ export function getLoadAverageColumn() {
|
|
124
124
|
? row.LoadAveragePercents[0]
|
125
125
|
: undefined, percents: true, colorizeProgress: true, capacity: 100 })),
|
126
126
|
align: DataTable.LEFT,
|
127
|
-
width:
|
128
|
-
resizeMinWidth:
|
127
|
+
width: 170,
|
128
|
+
resizeMinWidth: 170,
|
129
129
|
};
|
130
130
|
}
|
131
131
|
// The same as loadAverage, but more compact
|
@@ -46,6 +46,8 @@ body,
|
|
46
46
|
--ydb-color-status-red: var(--g-color-base-danger-heavy);
|
47
47
|
--ydb-color-status-blue: var(--g-color-base-info-heavy);
|
48
48
|
--ydb-color-status-black: var(--g-color-base-misc-heavy);
|
49
|
+
|
50
|
+
--g-popover-max-width: 500px;
|
49
51
|
}
|
50
52
|
|
51
53
|
:is(#tab, .g-tabs-item_active .g-tabs-item__title) {
|
@@ -103,7 +105,3 @@ body,
|
|
103
105
|
.app_embedded {
|
104
106
|
font-family: 'Rubik', sans-serif;
|
105
107
|
}
|
106
|
-
|
107
|
-
.g-popup {
|
108
|
-
max-width: 500px;
|
109
|
-
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { ClipboardButton } from '@gravity-ui/uikit';
|
3
|
-
import { MonitoringButton } from '../../../components/MonitoringButton/MonitoringButton';
|
4
3
|
import { getVersionColors, getVersionMap } from '../../../utils/clusterVersionColors';
|
5
4
|
import { cn } from '../../../utils/cn';
|
6
5
|
import { getCleanBalancerValue, removeViewerPathname } from '../../../utils/parseBalancer';
|
@@ -57,8 +56,7 @@ const getAdditionalTenantsProps = (clusterName, monitoring, balancer, useCluster
|
|
57
56
|
if (monitoring && getMonitoringLink) {
|
58
57
|
additionalTenantsProps.getMonitoringLink = (dbName, dbType) => {
|
59
58
|
if (dbName && dbType) {
|
60
|
-
|
61
|
-
return _jsx(MonitoringButton, { href: href });
|
59
|
+
return getMonitoringLink({ monitoring, dbName, dbType, clusterName });
|
62
60
|
}
|
63
61
|
return null;
|
64
62
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExtendedCluster.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"ExtendedCluster.js","sourceRoot":"","sources":["../../../../src/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAUlD,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAErC,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAC,sBAAsB,EAAE,yBAAyB,EAAC,MAAM,+BAA+B,CAAC;AAEhG,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,OAAO,wBAAwB,CAAC;AAEhC,MAAM,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC;AAEjC,MAAM,yBAAyB,GAAG,CAAC,QAAgB,EAAE,EAAE;IACnD,MAAM,YAAY,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAErD,OAAO;QACH,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,aACxB,YAAY,EACb,KAAC,eAAe,IAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAC,GAAG,EAAC,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,GAAI,IAChF,CACT;KACJ,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAC9B,WAA+B,EAC/B,UAA8B,EAC9B,QAA4B,EAC5B,wBAAmD,EACrD,EAAE;IACA,MAAM,sBAAsB,GAA2B,EAAE,CAAC;IAE1D,IAAI,UAAU,IAAI,wBAAwB,EAAE,CAAC;QACzC,MAAM,W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,IAAI,CAAC,mCAAI,SAAS,CAAC;IACrF,CAAC,CAAC;IAEF,IAAI,UAAU,IAAI,iBAAiB,EAAE,CAAC;QAClC,sBAAsB,CAAC,iBAAiB,GAAG,CAAC,MAAe,EAAE,MAAoB,EAAE,EAAE;YACjF,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;gBACnB,OAAO,iBAAiB,CAAC,EAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAC,CAAC,CAAC;YACxE,CAAC;YAED,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;IACN,CAAC;IAED,OAAO,sBAAsB,CAAC;AAClC,CAAC,CAAC;AAOF,MAAM,UAAU,eAAe,CAAC,EAC5B,SAAS,EAAE,gBAAgB,EAC3B,iBAAiB,EACjB,wBAAwB,GACL;IACnB,MAAM,EACF,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,2BAA2B,EAC3B,oBAAoB,GACvB,GAAG,cAAc,EAAE,CAAC;IAErB,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,EAAE,YACf,KAAC,gBAAgB,IACb,sBAAsB,EAAE,yBAAyB,CAC7C,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EACb,UAAU,EACV,QAAQ,EACR,wBAAwB,CAC3B,EACD,uBAAuB,EAAE,0BAA0B,CAAC,QAAQ,CAAC,EAC7D,sBAAsB,EAAE,yBAAyB,CAC7C,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EACb,UAAU,EACV,QAAQ,EACR,2BAA2B,EAC3B,iBAAiB,CACpB,EACD,oBAAoB,EAAE,oBAAoB,GAC5C,GACA,CACT,CAAC;AACN,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { MonitoringButton } from '../../../components/MonitoringButton/MonitoringButton';
|
3
2
|
import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
|
4
3
|
import { useAdditionalNodeProps } from '../useClusterData';
|
5
4
|
export function ExtendedTenant({ component: TenantComponent, getMonitoringLink, }) {
|
@@ -8,12 +7,11 @@ export function ExtendedTenant({ component: TenantComponent, getMonitoringLink,
|
|
8
7
|
const additionalTenantProps = {
|
9
8
|
getMonitoringLink: (dbName, dbType) => {
|
10
9
|
if (monitoring && dbName && dbType && getMonitoringLink) {
|
11
|
-
|
10
|
+
return getMonitoringLink({
|
12
11
|
monitoring,
|
13
12
|
dbName,
|
14
13
|
dbType,
|
15
14
|
});
|
16
|
-
return href ? _jsx(MonitoringButton, { href: href, visible: true, size: "xs" }) : null;
|
17
15
|
}
|
18
16
|
return null;
|
19
17
|
},
|