ydb-embedded-ui 22.3.0 → 22.4.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/DiskCapacityInfo/DiskCapacityInfo.d.ts +10 -1
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.js +75 -13
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.js.map +1 -1
- package/dist/components/DiskCapacityInfo/i18n/index.d.ts +1 -1
- package/dist/components/DiskPopup/DiskPopup.d.ts +25 -0
- package/dist/components/DiskPopup/DiskPopup.js +44 -0
- package/dist/components/DiskPopup/DiskPopup.js.map +1 -0
- package/dist/components/DiskPopup/DiskPopup.scss +203 -0
- package/dist/components/DiskPopup/i18n/en.json +3 -0
- package/dist/components/DiskPopup/i18n/index.d.ts +2 -0
- package/dist/components/DiskPopup/i18n/index.js +4 -0
- package/dist/components/DiskPopup/i18n/index.js.map +1 -0
- package/dist/components/DiskStatus/DiskStatus.d.ts +31 -0
- package/dist/components/DiskStatus/DiskStatus.js +61 -0
- package/dist/components/DiskStatus/DiskStatus.js.map +1 -0
- package/dist/components/DiskStatus/DiskStatus.scss +59 -0
- package/dist/components/DiskStatus/i18n/en.json +6 -0
- package/dist/components/DiskStatus/i18n/index.d.ts +2 -0
- package/dist/components/DiskStatus/i18n/index.js +4 -0
- package/dist/components/DiskStatus/i18n/index.js.map +1 -0
- package/dist/components/EntityStatus/EntityStatus.d.ts +1 -0
- package/dist/components/EntityStatus/EntityStatus.js +1 -1
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/EvictVDiskButton/i18n/en.json +1 -1
- package/dist/components/FullNodeViewer/i18n/index.d.ts +1 -1
- package/dist/components/HoverPopup/HoverPopup.d.ts +2 -1
- package/dist/components/HoverPopup/HoverPopup.js +49 -17
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/HoverPopup/usePopupPriority.d.ts +4 -0
- package/dist/components/HoverPopup/usePopupPriority.js +30 -0
- package/dist/components/HoverPopup/usePopupPriority.js.map +1 -0
- package/dist/components/PDiskInfo/PDiskLogSize.d.ts +5 -0
- package/dist/components/PDiskInfo/PDiskLogSize.js +20 -0
- package/dist/components/PDiskInfo/PDiskLogSize.js.map +1 -0
- package/dist/components/PDiskInfo/PDiskLogSize.scss +12 -0
- package/dist/components/PDiskInfo/getPDiskDetails.d.ts +4 -0
- package/dist/components/PDiskInfo/getPDiskDetails.js +33 -0
- package/dist/components/PDiskInfo/getPDiskDetails.js.map +1 -0
- package/dist/components/PDiskInfo/i18n/en.json +64 -2
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskInfo/statuses.d.ts +7 -0
- package/dist/components/PDiskInfo/statuses.js +185 -0
- package/dist/components/PDiskInfo/statuses.js.map +1 -0
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +4 -7
- package/dist/components/PDiskPopup/PDiskPopup.js +28 -99
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PDiskPopup/i18n/en.json +2 -12
- package/dist/components/PDiskPopup/i18n/index.d.ts +1 -1
- package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +3 -3
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +78 -218
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/StorageGroupInfo.scss +21 -0
- package/dist/components/StorageGroupInfo/i18n/en.json +1 -9
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -1
- package/dist/components/VDisk/VDisk.js +23 -32
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.js +2 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
- package/dist/components/VDisk/getFlagStatusText.d.ts +2 -0
- package/dist/components/VDisk/getFlagStatusText.js +18 -0
- package/dist/components/VDisk/getFlagStatusText.js.map +1 -0
- package/dist/components/VDisk/i18n/en.json +1 -1
- package/dist/components/VDisk/i18n/index.d.ts +1 -1
- package/dist/components/VDiskInfo/getVDiskDetails.d.ts +5 -0
- package/dist/components/VDiskInfo/getVDiskDetails.js +29 -0
- package/dist/components/VDiskInfo/getVDiskDetails.js.map +1 -0
- package/dist/components/VDiskInfo/i18n/en.json +3 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +6 -8
- package/dist/components/VDiskPopup/VDiskPopup.js +106 -240
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.scss +3 -10
- package/dist/components/VDiskPopup/i18n/en.json +6 -22
- package/dist/components/VDiskPopup/i18n/index.d.ts +1 -1
- package/dist/components/VDiskStatus/VDiskReplicationStatus.d.ts +8 -0
- package/dist/components/VDiskStatus/VDiskReplicationStatus.js +32 -0
- package/dist/components/VDiskStatus/VDiskReplicationStatus.js.map +1 -0
- package/dist/components/VDiskStatus/VDiskStatus.d.ts +16 -0
- package/dist/components/VDiskStatus/VDiskStatus.js +20 -0
- package/dist/components/VDiskStatus/VDiskStatus.js.map +1 -0
- package/dist/components/VDiskStatus/VDiskStatus.scss +32 -0
- package/dist/components/VDiskStatus/i18n/en.json +33 -0
- package/dist/components/VDiskStatus/i18n/index.d.ts +1 -0
- package/dist/components/VDiskStatus/i18n/index.js +5 -0
- package/dist/components/VDiskStatus/i18n/index.js.map +1 -0
- package/dist/components/VDiskStatus/index.d.ts +2 -0
- package/dist/components/VDiskStatus/index.js +3 -0
- package/dist/components/VDiskStatus/index.js.map +1 -0
- package/dist/components/VDiskStatus/statuses.d.ts +4 -0
- package/dist/components/VDiskStatus/statuses.js +120 -0
- package/dist/components/VDiskStatus/statuses.js.map +1 -0
- package/dist/components/capacityMetricsColumns/i18n/en.json +4 -4
- package/dist/containers/Cluster/ClusterDrawerHealthcheck.js +6 -1
- package/dist/containers/Cluster/ClusterDrawerHealthcheck.js.map +1 -1
- package/dist/containers/Clusters/ClusterDrawerHealthcheck.js +1 -1
- package/dist/containers/Clusters/ClusterDrawerHealthcheck.js.map +1 -1
- package/dist/containers/Header/Header.js +8 -2
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Header/StorageGroupLeftControls.d.ts +1 -0
- package/dist/containers/Header/StorageGroupLeftControls.js +23 -0
- package/dist/containers/Header/StorageGroupLeftControls.js.map +1 -0
- package/dist/containers/Header/i18n/en.json +3 -1
- package/dist/containers/Header/i18n/index.d.ts +1 -1
- package/dist/containers/Operations/constants.d.ts +1 -1
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +4 -4
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js.map +1 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/Disks/Disks.js +36 -9
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +2 -1
- package/dist/containers/Storage/PDisk/PDisk.js +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/columns.js +7 -2
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/columns.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/SpaceLegend.scss +14 -82
- package/dist/containers/Storage/StorageExpertModePanel/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroupStateLabel.d.ts +4 -0
- package/dist/containers/Storage/StorageGroupStateLabel.js +9 -0
- package/dist/containers/Storage/StorageGroupStateLabel.js.map +1 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.d.ts +2 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.js +35 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.js.map +1 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +17 -12
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +9 -13
- package/dist/containers/StorageGroupPage/i18n/en.json +3 -1
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +4 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.js +11 -2
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.js +9 -8
- package/dist/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.d.ts +16 -1
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.js +56 -19
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/en.json +5 -1
- package/dist/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.d.ts +3 -1
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js +3 -3
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js.map +1 -1
- package/dist/containers/Tenant/TenantDrawerHealthcheck.js +8 -1
- package/dist/containers/Tenant/TenantDrawerHealthcheck.js.map +1 -1
- package/dist/containers/Tenants/DatabaseDrawerHealthcheck.js +8 -1
- package/dist/containers/Tenants/DatabaseDrawerHealthcheck.js.map +1 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/lib.d.ts +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/header/types.d.ts +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/pdisk/types.d.ts +1 -0
- package/dist/store/reducers/pdisk/utils.js +6 -1
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js +7 -18
- package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -1
- package/dist/store/reducers/storage/utils.js +4 -0
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/streamingQuery/streamingQuery.js +2 -4
- package/dist/store/reducers/streamingQuery/streamingQuery.js.map +1 -1
- package/dist/styles/mixins.scss +22 -0
- package/dist/types/api/pdisk.d.ts +4 -0
- package/dist/types/api/pdisk.js.map +1 -1
- package/dist/types/api/vdisk.d.ts +8 -0
- package/dist/types/api/vdisk.js +7 -0
- package/dist/types/api/vdisk.js.map +1 -1
- package/dist/types/store/nodesList.d.ts +4 -2
- package/dist/uiFactory/types.d.ts +5 -2
- package/dist/utils/bytesParsers/formatBytes.d.ts +3 -1
- package/dist/utils/bytesParsers/formatBytes.js +12 -3
- package/dist/utils/bytesParsers/formatBytes.js.map +1 -1
- package/dist/utils/disks/constants.d.ts +1 -0
- package/dist/utils/disks/constants.js +4 -0
- package/dist/utils/disks/constants.js.map +1 -1
- package/dist/utils/disks/diskInfo/getDiskLocationItems.d.ts +16 -0
- package/dist/utils/disks/diskInfo/getDiskLocationItems.js +30 -0
- package/dist/utils/disks/diskInfo/getDiskLocationItems.js.map +1 -0
- package/dist/utils/disks/diskInfo/i18n/en.json +9 -0
- package/dist/utils/disks/diskInfo/i18n/index.d.ts +2 -0
- package/dist/utils/disks/diskInfo/i18n/index.js +4 -0
- package/dist/utils/disks/diskInfo/i18n/index.js.map +1 -0
- package/dist/utils/disks/iconCalculators.d.ts +5 -0
- package/dist/utils/disks/iconCalculators.js +1 -1
- package/dist/utils/disks/iconCalculators.js.map +1 -1
- package/dist/utils/disks/prepareDisks.d.ts +6 -2
- package/dist/utils/disks/prepareDisks.js +22 -35
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +9 -2
- package/dist/utils/hooks/useNodeMetadata.d.ts +2 -0
- package/dist/utils/hooks/useNodeMetadata.js +15 -0
- package/dist/utils/hooks/useNodeMetadata.js.map +1 -0
- package/dist/utils/nodes.js +6 -2
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/storageMetrics.d.ts +2 -2
- package/dist/utils/storageMetrics.js +22 -10
- package/dist/utils/storageMetrics.js.map +1 -1
- package/dist/utils/timeParsers/formatDuration.d.ts +4 -1
- package/dist/utils/timeParsers/formatDuration.js +16 -1
- package/dist/utils/timeParsers/formatDuration.js.map +1 -1
- package/dist/utils/timeParsers/i18n/en.json +5 -1
- package/dist/utils/timeParsers/i18n/index.d.ts +1 -1
- package/dist/utils/timeParsers/i18n/ru.json +5 -1
- package/package.json +2 -2
- package/src/components/DiskCapacityInfo/DiskCapacityInfo.tsx +106 -15
- package/src/components/DiskPopup/DiskPopup.scss +203 -0
- package/src/components/DiskPopup/DiskPopup.tsx +123 -0
- package/src/components/DiskPopup/i18n/en.json +3 -0
- package/src/components/DiskPopup/i18n/index.ts +5 -0
- package/src/components/DiskStatus/DiskStatus.scss +59 -0
- package/src/components/DiskStatus/DiskStatus.tsx +149 -0
- package/src/components/DiskStatus/i18n/en.json +6 -0
- package/src/components/DiskStatus/i18n/index.ts +5 -0
- package/src/components/EntityStatus/EntityStatus.tsx +1 -1
- package/src/components/EvictVDiskButton/i18n/en.json +1 -1
- package/src/components/HoverPopup/HoverPopup.tsx +67 -20
- package/src/components/HoverPopup/usePopupPriority.ts +39 -0
- package/src/components/PDiskInfo/PDiskLogSize.scss +12 -0
- package/src/components/PDiskInfo/PDiskLogSize.tsx +37 -0
- package/src/components/PDiskInfo/getPDiskDetails.tsx +37 -0
- package/src/components/PDiskInfo/i18n/en.json +64 -8
- package/src/components/PDiskInfo/statuses.ts +209 -0
- package/src/components/PDiskPopup/PDiskPopup.tsx +62 -147
- package/src/components/PDiskPopup/i18n/en.json +2 -12
- package/src/components/StorageGroupInfo/StorageGroupInfo.scss +21 -0
- package/src/components/StorageGroupInfo/StorageGroupInfo.tsx +121 -260
- package/src/components/StorageGroupInfo/i18n/en.json +1 -9
- package/src/components/VDisk/VDisk.tsx +31 -34
- package/src/components/VDisk/VDiskWithDonorsStack.tsx +2 -0
- package/src/components/VDisk/getFlagStatusText.ts +19 -0
- package/src/components/VDisk/i18n/en.json +1 -1
- package/src/components/VDiskInfo/getVDiskDetails.tsx +41 -0
- package/src/components/VDiskInfo/i18n/en.json +3 -10
- package/src/components/VDiskPopup/VDiskPopup.scss +3 -10
- package/src/components/VDiskPopup/VDiskPopup.tsx +197 -421
- package/src/components/VDiskPopup/i18n/en.json +6 -22
- package/src/components/VDiskStatus/VDiskReplicationStatus.tsx +77 -0
- package/src/components/VDiskStatus/VDiskStatus.scss +32 -0
- package/src/components/VDiskStatus/VDiskStatus.tsx +38 -0
- package/src/components/VDiskStatus/i18n/en.json +33 -0
- package/src/components/VDiskStatus/i18n/index.ts +7 -0
- package/src/components/VDiskStatus/index.ts +7 -0
- package/src/components/VDiskStatus/statuses.ts +139 -0
- package/src/components/capacityMetricsColumns/i18n/en.json +4 -4
- package/src/containers/Cluster/ClusterDrawerHealthcheck.tsx +6 -0
- package/src/containers/Clusters/ClusterDrawerHealthcheck.tsx +1 -0
- package/src/containers/Header/Header.tsx +11 -3
- package/src/containers/Header/StorageGroupLeftControls.tsx +38 -0
- package/src/containers/Header/i18n/en.json +3 -1
- package/src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.tsx +13 -2
- package/src/containers/Storage/Disks/Disks.tsx +66 -12
- package/src/containers/Storage/PDisk/PDisk.tsx +3 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/columns.tsx +24 -3
- package/src/containers/Storage/StorageExpertModePanel/components/SpaceLegend.scss +14 -82
- package/src/containers/Storage/StorageGroupStateLabel.tsx +22 -0
- package/src/containers/Storage/utils/getStorageGroupStateLabel.ts +49 -0
- package/src/containers/StorageGroupPage/StorageGroupPage.scss +9 -13
- package/src/containers/StorageGroupPage/StorageGroupPage.tsx +53 -25
- package/src/containers/StorageGroupPage/i18n/en.json +3 -1
- package/src/containers/Tenant/Diagnostics/Overview/Overview.tsx +5 -1
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.tsx +12 -1
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.tsx +11 -10
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.tsx +83 -20
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/en.json +5 -1
- package/src/containers/Tenant/Healthcheck/components/HealthcheckDrawer.tsx +5 -2
- package/src/containers/Tenant/TenantDrawerHealthcheck.tsx +10 -0
- package/src/containers/Tenants/DatabaseDrawerHealthcheck.tsx +10 -0
- package/src/lib.ts +1 -0
- package/src/store/reducers/header/types.ts +3 -1
- package/src/store/reducers/pdisk/types.ts +1 -0
- package/src/store/reducers/pdisk/utils.ts +6 -3
- package/src/store/reducers/storage/prepareGroupsDisks.ts +7 -22
- package/src/store/reducers/storage/utils.ts +4 -0
- package/src/store/reducers/streamingQuery/streamingQuery.ts +2 -4
- package/src/styles/mixins.scss +22 -0
- package/src/types/api/pdisk.ts +4 -0
- package/src/types/api/vdisk.ts +9 -0
- package/src/types/store/nodesList.ts +7 -7
- package/src/uiFactory/types.ts +9 -2
- package/src/utils/bytesParsers/formatBytes.ts +23 -4
- package/src/utils/disks/constants.ts +5 -0
- package/src/utils/disks/diskInfo/getDiskLocationItems.ts +50 -0
- package/src/utils/disks/diskInfo/i18n/en.json +9 -0
- package/src/utils/disks/diskInfo/i18n/index.ts +5 -0
- package/src/utils/disks/iconCalculators.ts +1 -1
- package/src/utils/disks/prepareDisks.ts +21 -47
- package/src/utils/disks/types.ts +10 -2
- package/src/utils/hooks/useNodeMetadata.ts +21 -0
- package/src/utils/nodes.ts +6 -1
- package/src/utils/storageMetrics.ts +27 -14
- package/src/utils/timeParsers/formatDuration.ts +22 -1
- package/src/utils/timeParsers/i18n/en.json +5 -1
- package/src/utils/timeParsers/i18n/ru.json +5 -1
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import {Ban, Check, CircleQuestionFill, CircleXmarkFill} from '@gravity-ui/icons';
|
|
2
|
+
|
|
3
|
+
import type {EDecommitStatus, EDriveStatus, EMaintenanceStatus} from '../../types/api/pdisk';
|
|
4
|
+
import {TPDiskState} from '../../types/api/pdisk';
|
|
5
|
+
import {NOT_AVAILABLE_SEVERITY, NUMERIC_SEVERITY_TO_LABEL_VIEW} from '../../utils/disks/constants';
|
|
6
|
+
import {
|
|
7
|
+
getPDiskDecommitDisplayState,
|
|
8
|
+
getPDiskDriveDisplayState,
|
|
9
|
+
getPDiskMaintenanceDisplayState,
|
|
10
|
+
getPDiskStateDisplayState,
|
|
11
|
+
} from '../../utils/disks/pdiskState';
|
|
12
|
+
import type {DiskStatusLabelData} from '../DiskStatus/DiskStatus';
|
|
13
|
+
|
|
14
|
+
import {pDiskInfoKeyset as i18n} from './i18n';
|
|
15
|
+
|
|
16
|
+
type StatusText = Pick<DiskStatusLabelData, 'value' | 'tooltip'>;
|
|
17
|
+
|
|
18
|
+
function unknownLabel(): DiskStatusLabelData {
|
|
19
|
+
return {
|
|
20
|
+
value: i18n('value_unknown'),
|
|
21
|
+
tooltip: i18n('context_unknown'),
|
|
22
|
+
theme: 'unknown',
|
|
23
|
+
icon: CircleQuestionFill,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function getLabelView({
|
|
28
|
+
severity,
|
|
29
|
+
icon,
|
|
30
|
+
}: ReturnType<typeof getPDiskStateDisplayState>): Pick<
|
|
31
|
+
DiskStatusLabelData,
|
|
32
|
+
'theme' | 'icon' | 'dangerHeavy'
|
|
33
|
+
> {
|
|
34
|
+
const labelView = NUMERIC_SEVERITY_TO_LABEL_VIEW[severity];
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
theme: severity === NOT_AVAILABLE_SEVERITY ? 'unknown' : labelView?.theme,
|
|
38
|
+
icon,
|
|
39
|
+
dangerHeavy: Boolean(labelView?.dangerHeavy),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function getPDiskStateLabel(state?: TPDiskState): DiskStatusLabelData {
|
|
44
|
+
const labels: Partial<Record<TPDiskState, StatusText>> = {
|
|
45
|
+
[TPDiskState.Normal]: {value: i18n('value_ok'), tooltip: i18n('context_state-normal')},
|
|
46
|
+
[TPDiskState.Initial]: {
|
|
47
|
+
value: i18n('value_initial'),
|
|
48
|
+
tooltip: i18n('context_state-initial'),
|
|
49
|
+
},
|
|
50
|
+
[TPDiskState.InitialFormatRead]: {
|
|
51
|
+
value: i18n('value_initial-format-read'),
|
|
52
|
+
tooltip: i18n('context_initial-format-read'),
|
|
53
|
+
},
|
|
54
|
+
[TPDiskState.InitialSysLogRead]: {
|
|
55
|
+
value: i18n('value_initial-sys-log-read'),
|
|
56
|
+
tooltip: i18n('context_initial-sys-log-read'),
|
|
57
|
+
},
|
|
58
|
+
[TPDiskState.InitialCommonLogRead]: {
|
|
59
|
+
value: i18n('value_initial-common-log-read'),
|
|
60
|
+
tooltip: i18n('context_initial-common-log-read'),
|
|
61
|
+
},
|
|
62
|
+
[TPDiskState.OpenFileError]: {
|
|
63
|
+
value: i18n('value_open-file-error'),
|
|
64
|
+
tooltip: i18n('context_open-file-error'),
|
|
65
|
+
},
|
|
66
|
+
[TPDiskState.DeviceIoError]: {
|
|
67
|
+
value: i18n('value_device-io-error'),
|
|
68
|
+
tooltip: i18n('context_device-io-error'),
|
|
69
|
+
},
|
|
70
|
+
[TPDiskState.Stopped]: {value: i18n('value_stopped'), tooltip: i18n('context_stopped')},
|
|
71
|
+
[TPDiskState.InitialFormatReadError]: {
|
|
72
|
+
value: i18n('value_initial-format-read-error'),
|
|
73
|
+
tooltip: i18n('context_initial-format-read-error'),
|
|
74
|
+
},
|
|
75
|
+
[TPDiskState.InitialSysLogReadError]: {
|
|
76
|
+
value: i18n('value_initial-sys-log-read-error'),
|
|
77
|
+
tooltip: i18n('context_initial-sys-log-read-error'),
|
|
78
|
+
},
|
|
79
|
+
[TPDiskState.InitialSysLogParseError]: {
|
|
80
|
+
value: i18n('value_initial-sys-log-parse-error'),
|
|
81
|
+
tooltip: i18n('context_initial-sys-log-parse-error'),
|
|
82
|
+
},
|
|
83
|
+
[TPDiskState.CommonLoggerInitError]: {
|
|
84
|
+
value: i18n('value_common-logger-init-error'),
|
|
85
|
+
tooltip: i18n('context_common-logger-init-error'),
|
|
86
|
+
},
|
|
87
|
+
[TPDiskState.InitialCommonLogReadError]: {
|
|
88
|
+
value: i18n('value_initial-common-log-read-error'),
|
|
89
|
+
tooltip: i18n('context_initial-common-log-read-error'),
|
|
90
|
+
},
|
|
91
|
+
[TPDiskState.InitialCommonLogParseError]: {
|
|
92
|
+
value: i18n('value_initial-common-log-parse-error'),
|
|
93
|
+
tooltip: i18n('context_initial-common-log-parse-error'),
|
|
94
|
+
},
|
|
95
|
+
[TPDiskState.ChunkQuotaError]: {
|
|
96
|
+
value: i18n('value_chunk-quota-error'),
|
|
97
|
+
tooltip: i18n('context_chunk-quota-error'),
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
const label = state && Object.hasOwn(labels, state) ? labels[state] : undefined;
|
|
101
|
+
if (!label) {
|
|
102
|
+
return unknownLabel();
|
|
103
|
+
}
|
|
104
|
+
const {theme, icon, dangerHeavy} = getLabelView(getPDiskStateDisplayState(state));
|
|
105
|
+
return {
|
|
106
|
+
...label,
|
|
107
|
+
theme,
|
|
108
|
+
icon: state === TPDiskState.Normal ? Check : icon,
|
|
109
|
+
dangerHeavy,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function getPDiskDriveLabel(status?: EDriveStatus): DiskStatusLabelData | undefined {
|
|
114
|
+
if (!status || status === 'UNKNOWN') {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
const labels: Record<Exclude<EDriveStatus, 'UNKNOWN'>, StatusText> = {
|
|
118
|
+
ACTIVE: {value: i18n('value_active'), tooltip: i18n('context_active')},
|
|
119
|
+
INACTIVE: {value: i18n('value_inactive'), tooltip: i18n('context_inactive')},
|
|
120
|
+
TO_BE_REMOVED: {value: i18n('value_to-be-removed'), tooltip: i18n('context_to-be-removed')},
|
|
121
|
+
FAULTY: {value: i18n('value_faulty'), tooltip: i18n('context_faulty')},
|
|
122
|
+
BROKEN: {value: i18n('value_broken'), tooltip: i18n('context_broken')},
|
|
123
|
+
};
|
|
124
|
+
if (!Object.hasOwn(labels, status)) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
const {theme, icon: defaultIcon} = getLabelView(getPDiskDriveDisplayState(status));
|
|
128
|
+
let icon = defaultIcon;
|
|
129
|
+
if (status === 'ACTIVE') {
|
|
130
|
+
icon = Check;
|
|
131
|
+
} else if (status === 'BROKEN') {
|
|
132
|
+
icon = CircleXmarkFill;
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
...labels[status],
|
|
136
|
+
theme,
|
|
137
|
+
icon,
|
|
138
|
+
dangerHeavy: status === 'BROKEN',
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function getPDiskDecommitLabel(status?: EDecommitStatus): DiskStatusLabelData | undefined {
|
|
143
|
+
if (!status || status === 'DECOMMIT_UNSET') {
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
146
|
+
const labels: Record<Exclude<EDecommitStatus, 'DECOMMIT_UNSET'>, StatusText> = {
|
|
147
|
+
DECOMMIT_NONE: {value: i18n('value_decommit-none'), tooltip: i18n('context_decommit-none')},
|
|
148
|
+
DECOMMIT_PENDING: {
|
|
149
|
+
value: i18n('value_decommit-pending'),
|
|
150
|
+
tooltip: i18n('context_decommit-pending'),
|
|
151
|
+
},
|
|
152
|
+
DECOMMIT_REJECTED: {
|
|
153
|
+
value: i18n('value_decommit-rejected'),
|
|
154
|
+
tooltip: i18n('context_decommit-rejected'),
|
|
155
|
+
},
|
|
156
|
+
DECOMMIT_IMMINENT: {
|
|
157
|
+
value: i18n('value_decommit-imminent'),
|
|
158
|
+
tooltip: i18n('context_decommit-imminent'),
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
if (!Object.hasOwn(labels, status)) {
|
|
162
|
+
return undefined;
|
|
163
|
+
}
|
|
164
|
+
const {theme, icon, dangerHeavy} = getLabelView(getPDiskDecommitDisplayState(status));
|
|
165
|
+
return {
|
|
166
|
+
...labels[status],
|
|
167
|
+
theme,
|
|
168
|
+
icon: status === 'DECOMMIT_NONE' ? Ban : icon,
|
|
169
|
+
dangerHeavy,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function getPDiskMaintenanceLabel(
|
|
174
|
+
status?: EMaintenanceStatus,
|
|
175
|
+
): DiskStatusLabelData | undefined {
|
|
176
|
+
if (!status) {
|
|
177
|
+
return undefined;
|
|
178
|
+
}
|
|
179
|
+
const labels: Record<EMaintenanceStatus, StatusText> = {
|
|
180
|
+
NO_REQUEST: {
|
|
181
|
+
value: i18n('value_maintenance-none'),
|
|
182
|
+
tooltip: i18n('context_maintenance-none'),
|
|
183
|
+
},
|
|
184
|
+
NOT_SET: {
|
|
185
|
+
value: i18n('value_maintenance-unset'),
|
|
186
|
+
tooltip: i18n('context_maintenance-unset'),
|
|
187
|
+
},
|
|
188
|
+
NO_NEW_VDISKS: {
|
|
189
|
+
value: i18n('value_maintenance-no-new-vdisks'),
|
|
190
|
+
tooltip: i18n('context_maintenance-no-new-vdisks'),
|
|
191
|
+
},
|
|
192
|
+
LONG_TERM_MAINTENANCE_PLANNED: {
|
|
193
|
+
value: i18n('value_maintenance-long-term'),
|
|
194
|
+
tooltip: i18n('context_maintenance-long-term'),
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
if (!Object.hasOwn(labels, status)) {
|
|
198
|
+
return undefined;
|
|
199
|
+
}
|
|
200
|
+
const {theme, icon, dangerHeavy} = getLabelView(getPDiskMaintenanceDisplayState(status));
|
|
201
|
+
return {
|
|
202
|
+
...labels[status],
|
|
203
|
+
title: i18n('label_maintenance'),
|
|
204
|
+
// An explicitly unset status is shown as a normal state in the popup design.
|
|
205
|
+
theme: status === 'NOT_SET' ? 'success' : theme,
|
|
206
|
+
icon: status === 'NOT_SET' ? undefined : icon,
|
|
207
|
+
dangerHeavy,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
@@ -1,137 +1,45 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {Wrench} from '@gravity-ui/icons';
|
|
4
|
-
import {
|
|
4
|
+
import {Divider, Flex} from '@gravity-ui/uikit';
|
|
5
5
|
import {isNil} from 'lodash';
|
|
6
6
|
|
|
7
7
|
import {getPDiskPagePath} from '../../routes';
|
|
8
8
|
import {useBlobStorageCapacityMetricsEnabled} from '../../store/reducers/capabilities/hooks';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {BRAND_BUTTON_CLASS, EMPTY_DATA_PLACEHOLDER} from '../../utils/constants';
|
|
9
|
+
import type {NodeMetadata} from '../../types/store/nodesList';
|
|
10
|
+
import {BRAND_BUTTON_CLASS} from '../../utils/constants';
|
|
12
11
|
import {createPDiskDeveloperUILink, useHasDeveloperUi} from '../../utils/developerUI/developerUI';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {formatPDiskType} from '../../utils/disks/getPDiskType';
|
|
12
|
+
import type {DiskDetailItem} from '../../utils/disks/diskInfo/getDiskLocationItems';
|
|
13
|
+
import {getDiskLocationItems} from '../../utils/disks/diskInfo/getDiskLocationItems';
|
|
16
14
|
import type {PreparedPDisk} from '../../utils/disks/types';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {bytesToGB, isNumeric} from '../../utils/utils';
|
|
15
|
+
import {useNodeMetadata} from '../../utils/hooks/useNodeMetadata';
|
|
16
|
+
import {getPDiskCapacityItems} from '../DiskCapacityInfo/DiskCapacityInfo';
|
|
20
17
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
DiskPopup,
|
|
19
|
+
DiskPopupHeader,
|
|
20
|
+
DiskPopupLocation,
|
|
21
|
+
DiskPopupPanel,
|
|
22
|
+
} from '../DiskPopup/DiskPopup';
|
|
23
|
+
import {DiskStatusLabel} from '../DiskStatus/DiskStatus';
|
|
24
24
|
import {InternalLinkButton} from '../InternalLinkButton';
|
|
25
25
|
import {LinkWithIcon} from '../LinkWithIcon/LinkWithIcon';
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
import {getPDiskLogItems, getPDiskRuntimeItems} from '../PDiskInfo/getPDiskDetails';
|
|
27
|
+
import {
|
|
28
|
+
getPDiskDecommitLabel,
|
|
29
|
+
getPDiskDriveLabel,
|
|
30
|
+
getPDiskMaintenanceLabel,
|
|
31
|
+
getPDiskStateLabel,
|
|
32
|
+
} from '../PDiskInfo/statuses';
|
|
31
33
|
import {YDBDefinitionList} from '../YDBDefinitionList/YDBDefinitionList';
|
|
32
34
|
|
|
33
35
|
import {pDiskPopupKeyset} from './i18n';
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
) => {
|
|
42
|
-
const {AvailableSize, TotalSize, NodeId, Path, Realtime, Type, Device} = data;
|
|
43
|
-
|
|
44
|
-
const pdiskData: YDBDefinitionListItem[] = [
|
|
45
|
-
{
|
|
46
|
-
name: pDiskPopupKeyset('label_type'),
|
|
47
|
-
content: formatPDiskType(Type) || pDiskPopupKeyset('value_unknown'),
|
|
48
|
-
},
|
|
49
|
-
];
|
|
50
|
-
|
|
51
|
-
if (NodeId) {
|
|
52
|
-
pdiskData.push({
|
|
53
|
-
name: pDiskPopupKeyset('label_node-id'),
|
|
54
|
-
content: NodeId,
|
|
55
|
-
copyText: NodeId,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (nodeData?.Host) {
|
|
60
|
-
pdiskData.push({
|
|
61
|
-
name: pDiskPopupKeyset('label_host'),
|
|
62
|
-
content: nodeData.Host,
|
|
63
|
-
copyText: nodeData.Host,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
if (nodeData?.DC) {
|
|
68
|
-
pdiskData.push({name: pDiskPopupKeyset('label_dc'), content: <Label>{nodeData.DC}</Label>});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (Path) {
|
|
72
|
-
pdiskData.push({name: pDiskPopupKeyset('label_path'), content: Path, copyText: Path});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (capacityMetricsEnabled) {
|
|
76
|
-
pdiskData.push(
|
|
77
|
-
...toDefinitionListItems(
|
|
78
|
-
getPDiskCapacityInfoItems(data, {
|
|
79
|
-
withUsage: true,
|
|
80
|
-
withCapacityAlert: true,
|
|
81
|
-
}),
|
|
82
|
-
),
|
|
83
|
-
);
|
|
84
|
-
} else if (isNumeric(TotalSize) && isNumeric(AvailableSize)) {
|
|
85
|
-
pdiskData.push({
|
|
86
|
-
name: pDiskPopupKeyset('label_available'),
|
|
87
|
-
content: `${bytesToGB(AvailableSize)} ${pDiskPopupKeyset('value_of')} ${bytesToGB(TotalSize)}`,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (Realtime && errorColors.includes(Realtime)) {
|
|
92
|
-
pdiskData.push({
|
|
93
|
-
name: pDiskPopupKeyset('label_realtime'),
|
|
94
|
-
content: <StatusIcon mode="icons" status={Realtime} />,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (Device && errorColors.includes(Device)) {
|
|
99
|
-
pdiskData.push({
|
|
100
|
-
name: pDiskPopupKeyset('label_device'),
|
|
101
|
-
content: <StatusIcon mode="icons" status={Device} />,
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return pdiskData;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export const preparePDiskHeaderLabels = (data: PreparedPDisk): YDBDefinitionListHeaderLabel[] => {
|
|
109
|
-
const labels: YDBDefinitionListHeaderLabel[] = [];
|
|
110
|
-
const {State} = data;
|
|
111
|
-
|
|
112
|
-
if (!State) {
|
|
113
|
-
labels.push({
|
|
114
|
-
id: 'state',
|
|
115
|
-
value: pDiskPopupKeyset('context_not-available'),
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
return labels;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (State) {
|
|
122
|
-
const severity = getStateSeverity(State);
|
|
123
|
-
const {theme, icon} = NUMERIC_SEVERITY_TO_LABEL_VIEW[severity];
|
|
124
|
-
|
|
125
|
-
labels.push({
|
|
126
|
-
id: 'state',
|
|
127
|
-
value: State,
|
|
128
|
-
theme: theme,
|
|
129
|
-
icon: icon,
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return labels;
|
|
134
|
-
};
|
|
37
|
+
function getStorageItems(data: PreparedPDisk, capacityMetricsEnabled: boolean): DiskDetailItem[] {
|
|
38
|
+
const items = getPDiskCapacityItems(data, {useWhiteboardSize: capacityMetricsEnabled}).filter(
|
|
39
|
+
({id}) => capacityMetricsEnabled || id === 'space',
|
|
40
|
+
);
|
|
41
|
+
return [...items, ...getPDiskLogItems(data)];
|
|
42
|
+
}
|
|
135
43
|
|
|
136
44
|
export const buildPDiskFooter = (
|
|
137
45
|
data: PreparedPDisk,
|
|
@@ -175,41 +83,48 @@ export const buildPDiskFooter = (
|
|
|
175
83
|
|
|
176
84
|
interface PDiskPopupProps {
|
|
177
85
|
data: PreparedPDisk;
|
|
86
|
+
nodeData?: NodeMetadata;
|
|
178
87
|
}
|
|
179
88
|
|
|
180
|
-
export
|
|
181
|
-
const
|
|
89
|
+
export function PDiskPopupContent({data, nodeData: parentNodeData}: PDiskPopupProps) {
|
|
90
|
+
const nodeData = useNodeMetadata(data.NodeId, parentNodeData);
|
|
182
91
|
const hasDeveloperUi = useHasDeveloperUi();
|
|
183
92
|
const capacityMetricsEnabled = useBlobStorageCapacityMetricsEnabled();
|
|
184
|
-
const
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
const headerLabels = React.useMemo<YDBDefinitionListHeaderLabel[]>(
|
|
193
|
-
() => preparePDiskHeaderLabels(data),
|
|
194
|
-
[data],
|
|
195
|
-
);
|
|
93
|
+
const storageItems = getStorageItems(data, capacityMetricsEnabled);
|
|
94
|
+
const locationItems = getDiskLocationItems(data, nodeData);
|
|
95
|
+
const statusLabels = [
|
|
96
|
+
{id: 'state', label: getPDiskStateLabel(data.State)},
|
|
97
|
+
{id: 'drive', label: getPDiskDriveLabel(data.DriveStatus)},
|
|
98
|
+
{id: 'decommit', label: getPDiskDecommitLabel(data.DecommitStatus)},
|
|
99
|
+
{id: 'maintenance', label: getPDiskMaintenanceLabel(data.MaintenanceStatus)},
|
|
100
|
+
];
|
|
196
101
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
102
|
+
return (
|
|
103
|
+
<DiskPopupPanel footer={buildPDiskFooter(data, hasDeveloperUi)}>
|
|
104
|
+
<DiskPopupHeader
|
|
105
|
+
title={pDiskPopupKeyset('label_pdisk')}
|
|
106
|
+
id={data.StringifiedId}
|
|
107
|
+
type={data.Type}
|
|
108
|
+
statuses={statusLabels.map(({id, label}) =>
|
|
109
|
+
label ? <DiskStatusLabel key={id} {...label} size="xs" /> : null,
|
|
110
|
+
)}
|
|
111
|
+
/>
|
|
112
|
+
<DiskPopupLocation items={locationItems} />
|
|
113
|
+
<YDBDefinitionList items={getPDiskRuntimeItems(data)} nameMaxWidth={150} />
|
|
114
|
+
{storageItems.length > 0 && (
|
|
115
|
+
<React.Fragment>
|
|
116
|
+
<Divider />
|
|
117
|
+
<YDBDefinitionList items={storageItems} nameMaxWidth={150} />
|
|
118
|
+
</React.Fragment>
|
|
119
|
+
)}
|
|
120
|
+
</DiskPopupPanel>
|
|
200
121
|
);
|
|
122
|
+
}
|
|
201
123
|
|
|
202
|
-
|
|
203
|
-
|
|
124
|
+
export function PDiskPopup(props: PDiskPopupProps) {
|
|
204
125
|
return (
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
titleSuffix={{title: pdiskId ?? EMPTY_DATA_PLACEHOLDER, copyText: pdiskId}}
|
|
209
|
-
items={info}
|
|
210
|
-
headerLabels={headerLabels}
|
|
211
|
-
footer={footer}
|
|
212
|
-
nameMaxWidth={capacityMetricsEnabled ? 220 : 100}
|
|
213
|
-
/>
|
|
126
|
+
<DiskPopup>
|
|
127
|
+
<PDiskPopupContent {...props} />
|
|
128
|
+
</DiskPopup>
|
|
214
129
|
);
|
|
215
|
-
}
|
|
130
|
+
}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"context_not-available": "Not available",
|
|
3
|
-
"label_type": "Type",
|
|
4
|
-
"label_node-id": "Node Id",
|
|
5
|
-
"label_host": "Host",
|
|
6
|
-
"label_dc": "DC",
|
|
7
|
-
"label_path": "Path",
|
|
8
|
-
"label_available": "Available",
|
|
9
|
-
"label_realtime": "Realtime",
|
|
10
|
-
"label_device": "Device",
|
|
11
|
-
"value_unknown": "unknown",
|
|
12
|
-
"value_of": "of",
|
|
13
2
|
"action_open-in-developer-ui": "Open in Developer UI",
|
|
14
|
-
"action_go-to-pdisk": "Go to PDisk"
|
|
3
|
+
"action_go-to-pdisk": "Go to PDisk",
|
|
4
|
+
"label_pdisk": "PDisk"
|
|
15
5
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.ydb-storage-group-info {
|
|
2
|
+
gap: var(--g-spacing-4) var(--g-spacing-6);
|
|
3
|
+
|
|
4
|
+
&__configuration {
|
|
5
|
+
width: 400px;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&__capacity {
|
|
10
|
+
width: 500px;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.g-definition-list {
|
|
15
|
+
--g-definition-list-item-gap: var(--g-spacing-3);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.g-definition-list__definition {
|
|
19
|
+
min-width: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|