ydb-embedded-ui 22.3.0 → 22.5.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/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +3 -2
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +19 -4
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js.map +1 -1
- package/dist/components/CopyableValue/CopyableValue.d.ts +10 -0
- package/dist/components/CopyableValue/CopyableValue.js +10 -0
- package/dist/components/CopyableValue/CopyableValue.js.map +1 -0
- package/dist/components/CopyableValue/CopyableValue.scss +16 -0
- package/dist/components/CopyableValue/i18n/en.json +3 -0
- package/dist/components/CopyableValue/i18n/index.d.ts +2 -0
- package/dist/components/CopyableValue/i18n/index.js +6 -0
- package/dist/components/CopyableValue/i18n/index.js.map +1 -0
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +2 -1
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +2 -1
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.d.ts +8 -19
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.js +68 -92
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.js.map +1 -1
- package/dist/components/DiskCapacityInfo/i18n/en.json +0 -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 +19 -6
- package/dist/components/EntityStatus/EntityStatus.js +6 -2
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +5 -0
- package/dist/components/EvictVDiskButton/EvictVDiskButton.d.ts +5 -2
- package/dist/components/EvictVDiskButton/EvictVDiskButton.js +3 -2
- package/dist/components/EvictVDiskButton/EvictVDiskButton.js.map +1 -1
- package/dist/components/EvictVDiskButton/i18n/en.json +2 -2
- package/dist/components/FullNodeViewer/FullNodeViewer.js +4 -7
- package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
- package/dist/components/FullNodeViewer/i18n/index.d.ts +1 -1
- package/dist/components/HoverPopup/HoverPopup.d.ts +3 -1
- package/dist/components/HoverPopup/HoverPopup.js +131 -28
- 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/MemoryViewer/MemoryViewer.d.ts +3 -1
- package/dist/components/MemoryViewer/MemoryViewer.js +25 -16
- package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -1
- package/dist/components/MemoryViewer/i18n/en.json +4 -3
- package/dist/components/MemoryViewer/i18n/index.d.ts +1 -1
- package/dist/components/MemoryViewer/utils.d.ts +4 -2
- package/dist/components/MemoryViewer/utils.js +11 -11
- package/dist/components/MemoryViewer/utils.js.map +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +4 -9
- package/dist/components/PDiskInfo/PDiskInfo.js +32 -144
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.scss +15 -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 +69 -4
- 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 +194 -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/Search/Search.js +3 -1
- package/dist/components/Search/Search.js.map +1 -1
- package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +3 -3
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +73 -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/TenantNameWrapper/i18n/index.d.ts +1 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -1
- package/dist/components/VDisk/VDisk.js +24 -33
- 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/VDiskInfo.d.ts +3 -7
- package/dist/components/VDiskInfo/VDiskInfo.js +57 -235
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskInfo/VDiskInfo.scss +19 -3
- package/dist/components/VDiskInfo/getVDiskDetails.d.ts +11 -0
- package/dist/components/VDiskInfo/getVDiskDetails.js +42 -0
- package/dist/components/VDiskInfo/getVDiskDetails.js.map +1 -0
- package/dist/components/VDiskInfo/i18n/en.json +5 -12
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +7 -8
- package/dist/components/VDiskPopup/VDiskPopup.js +91 -241
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.scss +3 -10
- package/dist/components/VDiskPopup/i18n/en.json +4 -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 +36 -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/components/nodesColumns/columns.d.ts +1 -0
- package/dist/components/nodesColumns/columns.js +13 -6
- package/dist/components/nodesColumns/columns.js.map +1 -1
- 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/Clusters/Clusters.js +35 -6
- package/dist/containers/Clusters/Clusters.js.map +1 -1
- package/dist/containers/Clusters/Clusters.scss +24 -6
- package/dist/containers/Clusters/columns.js +9 -4
- package/dist/containers/Clusters/columns.js.map +1 -1
- package/dist/containers/Clusters/i18n/en.json +6 -0
- package/dist/containers/Clusters/i18n/index.d.ts +1 -1
- package/dist/containers/Header/Header.js +16 -2
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Header/HeaderLeftControls.js +3 -1
- package/dist/containers/Header/HeaderLeftControls.js.map +1 -1
- package/dist/containers/Header/PDiskLeftControls.d.ts +1 -0
- package/dist/containers/Header/PDiskLeftControls.js +24 -0
- package/dist/containers/Header/PDiskLeftControls.js.map +1 -0
- 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/VDiskLeftControls.d.ts +1 -0
- package/dist/containers/Header/VDiskLeftControls.js +23 -0
- package/dist/containers/Header/VDiskLeftControls.js.map +1 -0
- package/dist/containers/Header/breadcrumbs.js +5 -2
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Header/i18n/en.json +6 -1
- package/dist/containers/Header/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js +1 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes/GroupedNodesComponent.js +5 -3
- package/dist/containers/Nodes/PaginatedNodes/GroupedNodesComponent.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes/NodesComponent.js +4 -2
- package/dist/containers/Nodes/PaginatedNodes/NodesComponent.js.map +1 -1
- package/dist/containers/Nodes/useDebouncedSearch.d.ts +2 -0
- package/dist/containers/Nodes/useDebouncedSearch.js +11 -0
- package/dist/containers/Nodes/useDebouncedSearch.js.map +1 -0
- package/dist/containers/Operations/constants.d.ts +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +30 -31
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +22 -11
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +7 -7
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskStorageDetails.d.ts +6 -0
- package/dist/containers/PDiskPage/PDiskStorageDetails.js +28 -0
- package/dist/containers/PDiskPage/PDiskStorageDetails.js.map +1 -0
- package/dist/containers/PDiskPage/PDiskStorageDetails.scss +51 -0
- package/dist/containers/PDiskPage/i18n/en.json +2 -0
- 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/constants.d.ts +1 -1
- 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/useStorageQueryParams.d.ts +4 -4
- 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 +20 -13
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +18 -12
- package/dist/containers/StorageGroupPage/i18n/en.json +2 -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/Overview/TableInfo/ManagePartitioningDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +5 -12
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Healthcheck/Healthcheck.scss +6 -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/Healthcheck/components/HealthcheckIssue.js +2 -2
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckIssue.js.map +1 -1
- package/dist/containers/Tenant/TenantDrawerHealthcheck.js +17 -2
- 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/VDiskPage.js +33 -33
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +21 -8
- package/dist/containers/VDiskPage/VDiskStorageDetails.js +27 -29
- package/dist/containers/VDiskPage/VDiskStorageDetails.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskStorageDetails.scss +24 -93
- package/dist/containers/VDiskPage/i18n/en.json +3 -12
- 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/cluster/parseFields.js +1 -0
- package/dist/store/reducers/cluster/parseFields.js.map +1 -1
- package/dist/store/reducers/clusters/clusters.js +1 -0
- package/dist/store/reducers/clusters/clusters.js.map +1 -1
- package/dist/store/reducers/clusters/selectors.d.ts +1 -0
- package/dist/store/reducers/clusters/selectors.js +4 -1
- package/dist/store/reducers/clusters/selectors.js.map +1 -1
- package/dist/store/reducers/clusters/types.d.ts +2 -0
- 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 +2 -1
- package/dist/store/reducers/storage/prepareGroupsDisks.js +9 -19
- package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -1
- package/dist/store/reducers/storage/utils.js +14 -3
- 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/store/reducers/vdisk/types.d.ts +1 -1
- package/dist/store/reducers/vdisk/utils.js +5 -5
- package/dist/store/reducers/vdisk/utils.js.map +1 -1
- package/dist/styles/mixins.scss +22 -0
- package/dist/types/api/meta.d.ts +1 -0
- package/dist/types/api/nodesList.d.ts +2 -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/useDatabaseHealthcheckAvailable.d.ts +2 -0
- package/dist/utils/hooks/useDatabaseHealthcheckAvailable.js +6 -0
- package/dist/utils/hooks/useDatabaseHealthcheckAvailable.js.map +1 -0
- 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/memory.d.ts +5 -0
- package/dist/utils/memory.js +9 -0
- package/dist/utils/memory.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 +3 -2
- package/dist/utils/storageMetrics.js +30 -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/ButtonWithConfirmDialog/ButtonWithConfirmDialog.tsx +22 -3
- package/src/components/CopyableValue/CopyableValue.scss +16 -0
- package/src/components/CopyableValue/CopyableValue.tsx +40 -0
- package/src/components/CopyableValue/i18n/en.json +3 -0
- package/src/components/CopyableValue/i18n/index.ts +8 -0
- package/src/components/CriticalActionDialog/CriticalActionDialog.tsx +3 -0
- package/src/components/DiskCapacityInfo/DiskCapacityInfo.tsx +75 -129
- package/src/components/DiskCapacityInfo/i18n/en.json +0 -1
- 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.scss +5 -0
- package/src/components/EntityStatus/EntityStatus.tsx +39 -6
- package/src/components/EvictVDiskButton/EvictVDiskButton.tsx +10 -2
- package/src/components/EvictVDiskButton/i18n/en.json +2 -2
- package/src/components/FullNodeViewer/FullNodeViewer.tsx +4 -9
- package/src/components/HoverPopup/HoverPopup.tsx +157 -34
- package/src/components/HoverPopup/usePopupPriority.ts +39 -0
- package/src/components/MemoryViewer/MemoryViewer.tsx +30 -17
- package/src/components/MemoryViewer/i18n/en.json +4 -3
- package/src/components/MemoryViewer/utils.ts +19 -12
- package/src/components/PDiskInfo/PDiskInfo.scss +15 -0
- package/src/components/PDiskInfo/PDiskInfo.tsx +51 -243
- package/src/components/PDiskInfo/PDiskLogSize.scss +12 -0
- package/src/components/PDiskInfo/PDiskLogSize.tsx +41 -0
- package/src/components/PDiskInfo/getPDiskDetails.tsx +37 -0
- package/src/components/PDiskInfo/i18n/en.json +69 -10
- package/src/components/PDiskInfo/statuses.ts +222 -0
- package/src/components/PDiskPopup/PDiskPopup.tsx +62 -147
- package/src/components/PDiskPopup/i18n/en.json +2 -12
- package/src/components/Search/Search.tsx +5 -2
- package/src/components/StorageGroupInfo/StorageGroupInfo.scss +21 -0
- package/src/components/StorageGroupInfo/StorageGroupInfo.tsx +119 -263
- package/src/components/StorageGroupInfo/i18n/en.json +1 -9
- package/src/components/VDisk/VDisk.tsx +34 -36
- 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/VDiskInfo.scss +19 -3
- package/src/components/VDiskInfo/VDiskInfo.tsx +119 -341
- package/src/components/VDiskInfo/getVDiskDetails.tsx +63 -0
- package/src/components/VDiskInfo/i18n/en.json +5 -21
- package/src/components/VDiskPopup/VDiskPopup.scss +3 -10
- package/src/components/VDiskPopup/VDiskPopup.tsx +192 -424
- package/src/components/VDiskPopup/i18n/en.json +4 -22
- package/src/components/VDiskStatus/VDiskReplicationStatus.tsx +77 -0
- package/src/components/VDiskStatus/VDiskStatus.scss +36 -0
- package/src/components/VDiskStatus/VDiskStatus.tsx +49 -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/components/nodesColumns/columns.tsx +26 -12
- package/src/containers/Cluster/ClusterDrawerHealthcheck.tsx +6 -0
- package/src/containers/Clusters/ClusterDrawerHealthcheck.tsx +1 -0
- package/src/containers/Clusters/Clusters.scss +24 -6
- package/src/containers/Clusters/Clusters.tsx +74 -5
- package/src/containers/Clusters/columns.tsx +36 -6
- package/src/containers/Clusters/i18n/en.json +6 -0
- package/src/containers/Header/Header.tsx +19 -3
- package/src/containers/Header/HeaderLeftControls.tsx +3 -1
- package/src/containers/Header/PDiskLeftControls.tsx +41 -0
- package/src/containers/Header/StorageGroupLeftControls.tsx +38 -0
- package/src/containers/Header/VDiskLeftControls.tsx +40 -0
- package/src/containers/Header/breadcrumbs.tsx +4 -2
- package/src/containers/Header/i18n/en.json +6 -1
- package/src/containers/Nodes/NodesControls/NodesControls.tsx +1 -0
- package/src/containers/Nodes/PaginatedNodes/GroupedNodesComponent.tsx +5 -3
- package/src/containers/Nodes/PaginatedNodes/NodesComponent.tsx +4 -2
- package/src/containers/Nodes/useDebouncedSearch.ts +13 -0
- package/src/containers/PDiskPage/PDiskPage.scss +22 -11
- package/src/containers/PDiskPage/PDiskPage.tsx +88 -56
- package/src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.tsx +16 -11
- package/src/containers/PDiskPage/PDiskStorageDetails.scss +51 -0
- package/src/containers/PDiskPage/PDiskStorageDetails.tsx +64 -0
- package/src/containers/PDiskPage/i18n/en.json +2 -0
- 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 +18 -12
- package/src/containers/StorageGroupPage/StorageGroupPage.tsx +63 -26
- package/src/containers/StorageGroupPage/i18n/en.json +2 -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/Diagnostics/TenantOverview/TenantOverview.tsx +5 -32
- package/src/containers/Tenant/Healthcheck/Healthcheck.scss +6 -1
- package/src/containers/Tenant/Healthcheck/components/HealthcheckDrawer.tsx +5 -2
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssue.tsx +18 -8
- package/src/containers/Tenant/TenantDrawerHealthcheck.tsx +24 -1
- package/src/containers/Tenants/DatabaseDrawerHealthcheck.tsx +10 -0
- package/src/containers/VDiskPage/VDiskPage.scss +21 -8
- package/src/containers/VDiskPage/VDiskPage.tsx +103 -64
- package/src/containers/VDiskPage/VDiskStorageDetails.scss +24 -93
- package/src/containers/VDiskPage/VDiskStorageDetails.tsx +50 -158
- package/src/containers/VDiskPage/i18n/en.json +3 -14
- package/src/lib.ts +1 -0
- package/src/store/reducers/cluster/parseFields.ts +1 -0
- package/src/store/reducers/clusters/clusters.ts +1 -0
- package/src/store/reducers/clusters/selectors.ts +4 -0
- package/src/store/reducers/clusters/types.ts +3 -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 +9 -22
- package/src/store/reducers/storage/utils.ts +17 -3
- package/src/store/reducers/streamingQuery/streamingQuery.ts +2 -4
- package/src/store/reducers/vdisk/types.ts +2 -1
- package/src/store/reducers/vdisk/utils.ts +4 -5
- package/src/styles/mixins.scss +22 -0
- package/src/types/api/meta.ts +1 -0
- package/src/types/api/nodesList.ts +3 -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/useDatabaseHealthcheckAvailable.ts +9 -0
- package/src/utils/hooks/useNodeMetadata.ts +21 -0
- package/src/utils/memory.ts +16 -0
- package/src/utils/nodes.ts +7 -1
- package/src/utils/storageMetrics.ts +38 -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
- package/dist/components/VDiskInfo/getVDiskCapacityColumns.d.ts +0 -11
- package/dist/components/VDiskInfo/getVDiskCapacityColumns.js +0 -52
- package/dist/components/VDiskInfo/getVDiskCapacityColumns.js.map +0 -1
- package/src/components/VDiskInfo/getVDiskCapacityColumns.tsx +0 -83
|
@@ -1,26 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"label_storage-pool": "StoragePool",
|
|
4
|
-
"label_donor": "Donor",
|
|
5
|
-
"label_node-id": "NodeId",
|
|
6
|
-
"label_pdisk-id": "PDiskId",
|
|
7
|
-
"label_vslot-id": "VSlotId",
|
|
8
|
-
"label_links": "Links",
|
|
2
|
+
"label_storage-pool": "Storage Pool Name",
|
|
9
3
|
"label_vdisk": "VDisk",
|
|
10
|
-
"
|
|
11
|
-
"label_level": "Level",
|
|
12
|
-
"label_space": "Space",
|
|
13
|
-
"label_front-queues": "FrontQueues",
|
|
14
|
-
"label_replicated": "Replicated",
|
|
15
|
-
"label_progress": "Progress",
|
|
16
|
-
"label_remaining": "Remaining",
|
|
17
|
-
"label_unsync-vdisks": "UnsyncVDisks",
|
|
18
|
-
"label_allocated": "Allocated",
|
|
19
|
-
"label_available": "Available",
|
|
20
|
-
"label_read": "Read",
|
|
21
|
-
"label_write": "Write",
|
|
22
|
-
"label_replication": "Replication",
|
|
23
|
-
"label_recipient": "Recipient",
|
|
4
|
+
"label_front-queues": "Front Queues",
|
|
24
5
|
"action_open-in-developer-ui": "Open in Developer UI",
|
|
25
|
-
"action_go-to-vdisk": "Go to VDisk"
|
|
6
|
+
"action_go-to-vdisk": "Go to VDisk",
|
|
7
|
+
"label_compaction": "Compaction"
|
|
26
8
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import type {LabelProps} from '@gravity-ui/uikit';
|
|
4
|
+
import {Flex, Progress} from '@gravity-ui/uikit';
|
|
5
|
+
|
|
6
|
+
import {EVDiskDetailedReplicationStatus} from '../../types/api/vdisk';
|
|
7
|
+
import {cn} from '../../utils/cn';
|
|
8
|
+
import {formatPercent} from '../../utils/dataFormatters/dataFormatters';
|
|
9
|
+
import type {PreparedVDisk} from '../../utils/disks/types';
|
|
10
|
+
import {formatDurationToShortTimeFormat} from '../../utils/timeParsers';
|
|
11
|
+
import {parseOptionalNonNegativeNumber} from '../../utils/utils';
|
|
12
|
+
import {DiskStatusLabel} from '../DiskStatus/DiskStatus';
|
|
13
|
+
|
|
14
|
+
import {vDiskStatusKeyset as i18n} from './i18n';
|
|
15
|
+
import {getVDiskReplicationLabel} from './statuses';
|
|
16
|
+
|
|
17
|
+
import './VDiskStatus.scss';
|
|
18
|
+
|
|
19
|
+
const b = cn('ydb-vdisk-status');
|
|
20
|
+
|
|
21
|
+
interface VDiskReplicationStatusProps extends Pick<LabelProps, 'size'> {
|
|
22
|
+
data: Pick<
|
|
23
|
+
PreparedVDisk,
|
|
24
|
+
| 'DetailedReplicationStatus'
|
|
25
|
+
| 'Replicated'
|
|
26
|
+
| 'ReplicationProgress'
|
|
27
|
+
| 'ReplicationSecondsRemaining'
|
|
28
|
+
>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function VDiskReplicationStatus({data, size}: VDiskReplicationStatusProps) {
|
|
32
|
+
const label = getVDiskReplicationLabel(data);
|
|
33
|
+
const showProgress =
|
|
34
|
+
data.DetailedReplicationStatus === EVDiskDetailedReplicationStatus.InProgress ||
|
|
35
|
+
(!data.DetailedReplicationStatus && data.Replicated === false);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<React.Fragment>
|
|
39
|
+
{label && <DiskStatusLabel {...label} size={size} iconSize={size === 'xs' ? 12 : 14} />}
|
|
40
|
+
{showProgress && <ReplicationProgress data={data} size={size} />}
|
|
41
|
+
</React.Fragment>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function ReplicationProgress({data, size}: VDiskReplicationStatusProps) {
|
|
46
|
+
const progress = parseOptionalNonNegativeNumber(data.ReplicationProgress);
|
|
47
|
+
const percentage =
|
|
48
|
+
progress !== undefined && progress <= 1 ? Math.round(progress * 100) : undefined;
|
|
49
|
+
const seconds = parseOptionalNonNegativeNumber(data.ReplicationSecondsRemaining);
|
|
50
|
+
const remaining =
|
|
51
|
+
seconds === undefined
|
|
52
|
+
? undefined
|
|
53
|
+
: formatDurationToShortTimeFormat(Math.ceil(seconds) * 1000, 2, {compact: true});
|
|
54
|
+
if (percentage === undefined && !remaining) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return (
|
|
58
|
+
<Flex alignItems="center" gap={2} className={b('replication-progress', {size})}>
|
|
59
|
+
{percentage !== undefined && (
|
|
60
|
+
<React.Fragment>
|
|
61
|
+
<span>{formatPercent(percentage / 100, 0)}</span>
|
|
62
|
+
<div
|
|
63
|
+
role="progressbar"
|
|
64
|
+
aria-label={i18n('label_replication-progress')}
|
|
65
|
+
aria-valuemin={0}
|
|
66
|
+
aria-valuemax={100}
|
|
67
|
+
aria-valuenow={percentage}
|
|
68
|
+
className={b('progress-bar')}
|
|
69
|
+
>
|
|
70
|
+
<Progress value={percentage} theme="info" size="xs" />
|
|
71
|
+
</div>
|
|
72
|
+
</React.Fragment>
|
|
73
|
+
)}
|
|
74
|
+
{remaining && <span>{i18n('context_remaining', {duration: remaining})}</span>}
|
|
75
|
+
</Flex>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use '../../styles/mixins';
|
|
2
|
+
|
|
3
|
+
.ydb-vdisk-status {
|
|
4
|
+
&__replication-progress {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
min-height: 24px;
|
|
7
|
+
padding: 0 10px;
|
|
8
|
+
|
|
9
|
+
color: var(--g-color-text-info-heavy);
|
|
10
|
+
border-radius: var(--g-border-radius-xs);
|
|
11
|
+
background-color: var(--g-color-base-selection);
|
|
12
|
+
@include mixins.text-body-short();
|
|
13
|
+
|
|
14
|
+
&_size_s {
|
|
15
|
+
border-radius: var(--g-border-radius-s);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&_size_xs {
|
|
19
|
+
min-height: 20px;
|
|
20
|
+
padding: 2px 6px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
> span {
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__progress-bar {
|
|
29
|
+
--g-progress-empty-background-color: var(--g-color-base-info-light);
|
|
30
|
+
--g-progress-filled-background-color: var(--g-color-base-info-heavy);
|
|
31
|
+
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
|
|
34
|
+
width: 103px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type {LabelProps} from '@gravity-ui/uikit';
|
|
2
|
+
|
|
3
|
+
import {EFlag} from '../../types/api/enums';
|
|
4
|
+
import type {EVDiskState} from '../../types/api/vdisk';
|
|
5
|
+
import {VDISK_LABEL_CONFIG} from '../../utils/disks/constants';
|
|
6
|
+
import {calculateFrontQueuesIcon} from '../../utils/disks/iconCalculators';
|
|
7
|
+
import {DiskFlagLabel, DiskStatusLabel} from '../DiskStatus/DiskStatus';
|
|
8
|
+
|
|
9
|
+
import {vDiskStatusKeyset as i18n} from './i18n';
|
|
10
|
+
import {getVDiskStateLabel} from './statuses';
|
|
11
|
+
|
|
12
|
+
export function VDiskStateLabel({state, size}: {state?: EVDiskState} & Pick<LabelProps, 'size'>) {
|
|
13
|
+
return (
|
|
14
|
+
<DiskStatusLabel
|
|
15
|
+
{...getVDiskStateLabel({VDiskState: state})}
|
|
16
|
+
size={size}
|
|
17
|
+
iconSize={size === 'xs' ? 12 : 14}
|
|
18
|
+
/>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function VDiskDonorLabel({
|
|
23
|
+
donorMode,
|
|
24
|
+
size,
|
|
25
|
+
}: {donorMode?: boolean} & Pick<LabelProps, 'size'>) {
|
|
26
|
+
return donorMode ? (
|
|
27
|
+
<DiskStatusLabel
|
|
28
|
+
value={i18n('label_donor')}
|
|
29
|
+
{...VDISK_LABEL_CONFIG.donor}
|
|
30
|
+
size={size}
|
|
31
|
+
iconSize={size === 'xs' ? 12 : 14}
|
|
32
|
+
/>
|
|
33
|
+
) : null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function VDiskFrontQueuesLabel({flag}: {flag?: EFlag}) {
|
|
37
|
+
return (
|
|
38
|
+
<DiskFlagLabel
|
|
39
|
+
flag={flag}
|
|
40
|
+
icon={calculateFrontQueuesIcon({FrontQueues: flag || EFlag.Grey})}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VDiskCompactionRankLabel({flag, rank}: {flag?: EFlag; rank: 'fresh' | 'level'}) {
|
|
46
|
+
return (
|
|
47
|
+
<DiskFlagLabel flag={flag} title={i18n(rank === 'fresh' ? 'label_fresh' : 'label_level')} />
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"label_donor": "Donor",
|
|
3
|
+
"label_fresh": "Fresh Rank",
|
|
4
|
+
"label_level": "Level Rank",
|
|
5
|
+
"label_replicated": "Replicated",
|
|
6
|
+
"label_replication": "Replication",
|
|
7
|
+
"label_replication-progress": "Replication progress",
|
|
8
|
+
"value_ok": "Ok",
|
|
9
|
+
"value_in-progress": "In progress",
|
|
10
|
+
"value_initial": "Initial",
|
|
11
|
+
"value_sync-guid-recovery": "Sync Guid Recovery",
|
|
12
|
+
"value_pdisk-error": "PDisk Error",
|
|
13
|
+
"value_local-recovery-error": "Local Recovery Error",
|
|
14
|
+
"value_sync-guid-recovery-error": "Sync Guid Recovery Error",
|
|
15
|
+
"value_no-data": "No data",
|
|
16
|
+
"value_waiting-for-token": "Waiting for token",
|
|
17
|
+
"value_phantoms-only": "Phantoms only",
|
|
18
|
+
"label_not-replicated": "Not replicated",
|
|
19
|
+
"value_no-detailed-status": "No detailed status",
|
|
20
|
+
"context_state-ok": "The VDisk is operating normally",
|
|
21
|
+
"context_state-initial": "The VDisk is starting",
|
|
22
|
+
"context_state-sync-guid-recovery": "The VDisk is synchronizing with other VDisks of the group",
|
|
23
|
+
"context_state-pdisk-error": "The VDisk cannot operate because its underlying PDisk reported an error",
|
|
24
|
+
"context_state-local-recovery-error": "The VDisk failed to restore its state from the PDisk",
|
|
25
|
+
"context_state-sync-guid-recovery-error": "The VDisk failed to complete synchronization identity with other VDisks in the group",
|
|
26
|
+
"context_state-no-data": "The VDisk state is unknown",
|
|
27
|
+
"context_replicated": "The VDisk is fully replicated",
|
|
28
|
+
"context_not-replicated": "The VDisk isn't replicated",
|
|
29
|
+
"context_replication-in-progress": "Replication is in progress, data is being transferred to VDisk",
|
|
30
|
+
"context_replication-waiting-for-token": "Replication is waiting for a token from the broker",
|
|
31
|
+
"context_replication-phantoms-only": "Replication cannot finish due to phantom blobs",
|
|
32
|
+
"context_remaining": "{{duration}} left"
|
|
33
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArrowsRotateLeft,
|
|
3
|
+
ArrowsRotateLeftSlash,
|
|
4
|
+
Check,
|
|
5
|
+
CirclePause,
|
|
6
|
+
CircleQuestionFill,
|
|
7
|
+
CircleStop,
|
|
8
|
+
} from '@gravity-ui/icons';
|
|
9
|
+
|
|
10
|
+
import {EVDiskDetailedReplicationStatus, EVDiskState} from '../../types/api/vdisk';
|
|
11
|
+
import {
|
|
12
|
+
NOT_AVAILABLE_SEVERITY,
|
|
13
|
+
NUMERIC_SEVERITY_TO_LABEL_VIEW,
|
|
14
|
+
VDISK_STATE_SEVERITY_FOR_STATE_MODE,
|
|
15
|
+
} from '../../utils/disks/constants';
|
|
16
|
+
import {calculateStateIcon} from '../../utils/disks/iconCalculators';
|
|
17
|
+
import type {PreparedVDisk} from '../../utils/disks/types';
|
|
18
|
+
import {parseOptionalNonNegativeNumber} from '../../utils/utils';
|
|
19
|
+
import type {DiskStatusLabelData} from '../DiskStatus/DiskStatus';
|
|
20
|
+
|
|
21
|
+
import {vDiskStatusKeyset as i18n} from './i18n';
|
|
22
|
+
|
|
23
|
+
export function getVDiskStateLabel(data: PreparedVDisk): DiskStatusLabelData {
|
|
24
|
+
const state = data.VDiskState;
|
|
25
|
+
const severity = state
|
|
26
|
+
? (VDISK_STATE_SEVERITY_FOR_STATE_MODE[state] ?? NOT_AVAILABLE_SEVERITY)
|
|
27
|
+
: NOT_AVAILABLE_SEVERITY;
|
|
28
|
+
if (!state || severity === NOT_AVAILABLE_SEVERITY) {
|
|
29
|
+
return {
|
|
30
|
+
value: i18n('value_no-data'),
|
|
31
|
+
theme: 'unknown',
|
|
32
|
+
icon: CircleQuestionFill,
|
|
33
|
+
tooltip: i18n('context_state-no-data'),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const labels: Record<EVDiskState, Pick<DiskStatusLabelData, 'value' | 'tooltip'>> = {
|
|
38
|
+
[EVDiskState.OK]: {
|
|
39
|
+
value: i18n('value_ok'),
|
|
40
|
+
tooltip: i18n('context_state-ok'),
|
|
41
|
+
},
|
|
42
|
+
[EVDiskState.Initial]: {
|
|
43
|
+
value: i18n('value_initial'),
|
|
44
|
+
tooltip: i18n('context_state-initial'),
|
|
45
|
+
},
|
|
46
|
+
[EVDiskState.SyncGuidRecovery]: {
|
|
47
|
+
value: i18n('value_sync-guid-recovery'),
|
|
48
|
+
tooltip: i18n('context_state-sync-guid-recovery'),
|
|
49
|
+
},
|
|
50
|
+
[EVDiskState.PDiskError]: {
|
|
51
|
+
value: i18n('value_pdisk-error'),
|
|
52
|
+
tooltip: i18n('context_state-pdisk-error'),
|
|
53
|
+
},
|
|
54
|
+
[EVDiskState.LocalRecoveryError]: {
|
|
55
|
+
value: i18n('value_local-recovery-error'),
|
|
56
|
+
tooltip: i18n('context_state-local-recovery-error'),
|
|
57
|
+
},
|
|
58
|
+
[EVDiskState.SyncGuidRecoveryError]: {
|
|
59
|
+
value: i18n('value_sync-guid-recovery-error'),
|
|
60
|
+
tooltip: i18n('context_state-sync-guid-recovery-error'),
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const labelView = NUMERIC_SEVERITY_TO_LABEL_VIEW[severity];
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
...labels[state],
|
|
68
|
+
theme: labelView.theme,
|
|
69
|
+
icon: state === EVDiskState.OK ? Check : calculateStateIcon(data),
|
|
70
|
+
dangerHeavy: Boolean(labelView.dangerHeavy),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function getVDiskReplicationLabel(data: PreparedVDisk): DiskStatusLabelData | undefined {
|
|
75
|
+
switch (data.DetailedReplicationStatus) {
|
|
76
|
+
case EVDiskDetailedReplicationStatus.Replicated:
|
|
77
|
+
return replicatedLabel();
|
|
78
|
+
case EVDiskDetailedReplicationStatus.InProgress:
|
|
79
|
+
return {
|
|
80
|
+
title: i18n('label_replication'),
|
|
81
|
+
value: i18n('value_in-progress'),
|
|
82
|
+
theme: 'info',
|
|
83
|
+
icon: ArrowsRotateLeft,
|
|
84
|
+
tooltip: i18n('context_replication-in-progress'),
|
|
85
|
+
};
|
|
86
|
+
case EVDiskDetailedReplicationStatus.WaitingForToken:
|
|
87
|
+
return {
|
|
88
|
+
title: i18n('label_replication'),
|
|
89
|
+
value: i18n('value_waiting-for-token'),
|
|
90
|
+
theme: 'info',
|
|
91
|
+
icon: CirclePause,
|
|
92
|
+
tooltip: i18n('context_replication-waiting-for-token'),
|
|
93
|
+
};
|
|
94
|
+
case EVDiskDetailedReplicationStatus.PhantomsOnly:
|
|
95
|
+
return {
|
|
96
|
+
title: i18n('label_replication'),
|
|
97
|
+
value: i18n('value_phantoms-only'),
|
|
98
|
+
theme: 'info',
|
|
99
|
+
icon: CircleStop,
|
|
100
|
+
tooltip: i18n('context_replication-phantoms-only'),
|
|
101
|
+
};
|
|
102
|
+
default:
|
|
103
|
+
if (data.DetailedReplicationStatus) {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
if (data.Replicated === true) {
|
|
107
|
+
return replicatedLabel();
|
|
108
|
+
}
|
|
109
|
+
if (data.Replicated === false) {
|
|
110
|
+
const progress = parseOptionalNonNegativeNumber(data.ReplicationProgress);
|
|
111
|
+
const seconds = parseOptionalNonNegativeNumber(data.ReplicationSecondsRemaining);
|
|
112
|
+
if ((progress !== undefined && progress <= 1) || seconds !== undefined) {
|
|
113
|
+
return {
|
|
114
|
+
title: i18n('label_replication'),
|
|
115
|
+
value: i18n('value_no-detailed-status'),
|
|
116
|
+
theme: 'info',
|
|
117
|
+
icon: ArrowsRotateLeft,
|
|
118
|
+
tooltip: i18n('context_not-replicated'),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
value: i18n('label_not-replicated'),
|
|
123
|
+
theme: 'normal',
|
|
124
|
+
icon: ArrowsRotateLeftSlash,
|
|
125
|
+
tooltip: i18n('context_not-replicated'),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function replicatedLabel(): DiskStatusLabelData {
|
|
133
|
+
return {
|
|
134
|
+
value: i18n('label_replicated'),
|
|
135
|
+
theme: 'success',
|
|
136
|
+
icon: Check,
|
|
137
|
+
tooltip: i18n('context_replicated'),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"field_normalized-occupancy": "Normalized Occupancy",
|
|
6
6
|
"field_capacity-alert": "Capacity Alert",
|
|
7
7
|
"value_implicit-unit-count": "1 (implicit)",
|
|
8
|
-
"context_pdisk-usage": "
|
|
9
|
-
"context_vdisk-slot-usage": "Percentage of VDisk space
|
|
10
|
-
"context_vdisk-raw-usage": "Percentage of VDisk space
|
|
8
|
+
"context_pdisk-usage": "The share of PDisk chunk space used by the residing VDisks. Doesn't include SysLog and CommonLog usage",
|
|
9
|
+
"context_vdisk-slot-usage": "Percentage of used VDisk space relative to the first low-space warning. Can exceed 100%.",
|
|
10
|
+
"context_vdisk-raw-usage": "Percentage of used VDisk space relative to its fair share on the PDisk. Can exceed 100%.",
|
|
11
11
|
"context_normalized-occupancy": "Internal score used for gently handling low-space cases.",
|
|
12
|
-
"context_capacity-alert": "
|
|
12
|
+
"context_capacity-alert": "The named status used for the graceful low space handling.",
|
|
13
13
|
"context_group-size-in-units": "Relative capacity of this group (1 = single, 2 = double, …). Affects VDisk space quota on the PDisk.",
|
|
14
14
|
"context_slot-size-in-units": "Relative size of this PDisk in the cluster (1 = single, 2 = double, …). Same units as Group Size In Units."
|
|
15
15
|
}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
formatStorageValuesToGb,
|
|
14
14
|
} from '../../utils/dataFormatters/dataFormatters';
|
|
15
15
|
import {getUsageSeverity} from '../../utils/generateEvaluator';
|
|
16
|
+
import {getNodeMemory} from '../../utils/memory';
|
|
16
17
|
import type {Column} from '../../utils/tableUtils/types';
|
|
17
18
|
import {formatToMs, parseUsToMs} from '../../utils/timeParsers';
|
|
18
19
|
import {bytesToSpeed, isNumeric} from '../../utils/utils';
|
|
@@ -169,22 +170,26 @@ export function getUptimeColumn<
|
|
|
169
170
|
};
|
|
170
171
|
}
|
|
171
172
|
|
|
172
|
-
export function getRAMColumn<
|
|
173
|
+
export function getRAMColumn<
|
|
174
|
+
T extends {MemoryStats?: TMemoryStats; MemoryUsed?: string; MemoryLimit?: string},
|
|
175
|
+
>(): Column<T> {
|
|
173
176
|
return {
|
|
174
177
|
name: NODES_COLUMNS_IDS.RAM,
|
|
175
178
|
header: NODES_COLUMNS_TITLES.RAM,
|
|
176
|
-
sortAccessor: (
|
|
179
|
+
sortAccessor: (row) => getNodeMemory(row).memoryUsed ?? 0,
|
|
177
180
|
defaultOrder: DataTable.DESCENDING,
|
|
178
181
|
render: ({row}) => {
|
|
182
|
+
const {memoryUsed: used, memoryLimit: limit} = getNodeMemory(row);
|
|
179
183
|
const [memoryUsed, memoryLimit] = formatStorageValues(
|
|
180
|
-
|
|
181
|
-
|
|
184
|
+
used,
|
|
185
|
+
limit,
|
|
182
186
|
'gb',
|
|
183
187
|
undefined,
|
|
184
188
|
true,
|
|
185
189
|
);
|
|
186
190
|
|
|
187
191
|
const hasData = memoryUsed || memoryLimit;
|
|
192
|
+
const memoryContent = used === undefined ? EMPTY_DATA_PLACEHOLDER : memoryUsed;
|
|
188
193
|
|
|
189
194
|
return (
|
|
190
195
|
<CellWithPopover
|
|
@@ -206,10 +211,10 @@ export function getRAMColumn<T extends {MemoryUsed?: string; MemoryLimit?: strin
|
|
|
206
211
|
</DefinitionList>
|
|
207
212
|
}
|
|
208
213
|
>
|
|
209
|
-
{
|
|
214
|
+
{used !== undefined && limit !== undefined ? (
|
|
210
215
|
<ProgressViewer
|
|
211
|
-
value={
|
|
212
|
-
capacity={
|
|
216
|
+
value={used}
|
|
217
|
+
capacity={limit}
|
|
213
218
|
formatValues={(value, total) =>
|
|
214
219
|
formatStorageValues(value, total, 'gb', undefined, true)
|
|
215
220
|
}
|
|
@@ -218,7 +223,7 @@ export function getRAMColumn<T extends {MemoryUsed?: string; MemoryLimit?: strin
|
|
|
218
223
|
hideCapacity
|
|
219
224
|
/>
|
|
220
225
|
) : (
|
|
221
|
-
|
|
226
|
+
memoryContent
|
|
222
227
|
)}
|
|
223
228
|
</CellWithPopover>
|
|
224
229
|
);
|
|
@@ -238,18 +243,27 @@ export function getMemoryColumn<
|
|
|
238
243
|
render: ({row}) => {
|
|
239
244
|
if (row.MemoryStats) {
|
|
240
245
|
return (
|
|
241
|
-
<MemoryViewer
|
|
246
|
+
<MemoryViewer
|
|
247
|
+
formatValues={formatStorageValuesToGb}
|
|
248
|
+
stats={row.MemoryStats}
|
|
249
|
+
memoryUsed={row.MemoryUsed}
|
|
250
|
+
memoryLimit={row.MemoryLimit}
|
|
251
|
+
/>
|
|
242
252
|
);
|
|
243
253
|
}
|
|
244
254
|
|
|
245
|
-
|
|
255
|
+
const {memoryUsed, memoryLimit} = getNodeMemory(row);
|
|
256
|
+
if (memoryUsed === undefined) {
|
|
246
257
|
return EMPTY_DATA_PLACEHOLDER;
|
|
247
258
|
}
|
|
259
|
+
if (memoryLimit === undefined) {
|
|
260
|
+
return formatStorageValuesToGb(memoryUsed)[0];
|
|
261
|
+
}
|
|
248
262
|
|
|
249
263
|
return (
|
|
250
264
|
<ProgressViewer
|
|
251
|
-
value={
|
|
252
|
-
capacity={
|
|
265
|
+
value={memoryUsed}
|
|
266
|
+
capacity={memoryLimit}
|
|
253
267
|
formatValues={formatStorageValuesToGb}
|
|
254
268
|
colorizeProgress={true}
|
|
255
269
|
/>
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
import {useTypedSelector} from '../../utils/hooks';
|
|
10
10
|
import {Healthcheck} from '../Tenant/Healthcheck/Healthcheck';
|
|
11
11
|
import {HealthcheckDrawer} from '../Tenant/Healthcheck/components/HealthcheckDrawer';
|
|
12
|
+
import {getDatabaseHealthcheckAssistantTarget} from '../Tenant/Healthcheck/utils';
|
|
12
13
|
|
|
13
14
|
import i18n from './i18n';
|
|
14
15
|
|
|
@@ -184,6 +185,11 @@ export function ClusterDrawerHealthcheck({
|
|
|
184
185
|
|
|
185
186
|
return (
|
|
186
187
|
<HealthcheckDrawer
|
|
188
|
+
target={getDatabaseHealthcheckAssistantTarget({
|
|
189
|
+
database,
|
|
190
|
+
clusterName,
|
|
191
|
+
scope: 'cluster',
|
|
192
|
+
})}
|
|
187
193
|
isDrawerVisible={Boolean(showHealthcheck) && Boolean(database)}
|
|
188
194
|
onCloseDrawer={handleCloseDrawer}
|
|
189
195
|
onTransitionInComplete={
|
|
@@ -48,6 +48,7 @@ export function ClusterDrawerHealthcheck({
|
|
|
48
48
|
|
|
49
49
|
return (
|
|
50
50
|
<HealthcheckDrawer
|
|
51
|
+
target={clusterName ? {scope: 'cluster', request: {clusterName}} : undefined}
|
|
51
52
|
isDrawerVisible={isVisible && Boolean(clusterName)}
|
|
52
53
|
onCloseDrawer={handleCloseDrawer}
|
|
53
54
|
renderDrawerContent={renderDrawerContent}
|
|
@@ -3,19 +3,37 @@
|
|
|
3
3
|
.ydb-clusters {
|
|
4
4
|
@include mixins.body-2-typography();
|
|
5
5
|
|
|
6
|
-
&
|
|
6
|
+
&__clusters-count {
|
|
7
7
|
padding-bottom: var(--g-spacing-2);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
&
|
|
11
|
-
|
|
10
|
+
&__availability-popup .g-select-list__option {
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
|
|
13
|
+
padding-block: var(--g-spacing-2);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__cluster-name-wrapper {
|
|
17
|
+
min-width: 0;
|
|
12
18
|
}
|
|
13
19
|
|
|
14
20
|
&__cluster-name {
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
text-overflow: ellipsis;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__unavailable-label {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
|
|
31
|
+
border-radius: var(--g-focus-border-radius);
|
|
17
32
|
|
|
18
|
-
|
|
33
|
+
&:focus-visible {
|
|
34
|
+
outline: 2px solid var(--g-color-line-focus);
|
|
35
|
+
outline-offset: 2px;
|
|
36
|
+
}
|
|
19
37
|
}
|
|
20
38
|
&__cluster-versions {
|
|
21
39
|
text-decoration: none;
|