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
|
@@ -3,24 +3,83 @@
|
|
|
3
3
|
"path": "Path",
|
|
4
4
|
"guid": "GUID",
|
|
5
5
|
"serial-number": "Serial Number",
|
|
6
|
-
"shared-with-os": "SharedWithOs",
|
|
7
|
-
|
|
8
6
|
"drive-status": "Drive Status",
|
|
9
7
|
"state": "State",
|
|
10
8
|
"device": "Device",
|
|
11
9
|
"realtime": "Realtime",
|
|
12
|
-
|
|
13
|
-
"value_no-data": "No data",
|
|
14
|
-
|
|
10
|
+
"value_no-data": "Not Available",
|
|
15
11
|
"space": "Space",
|
|
16
12
|
"usage": "Usage",
|
|
17
13
|
"slots": "Slots",
|
|
18
14
|
"log-size": "Log Size",
|
|
19
15
|
"system-size": "System Size",
|
|
20
|
-
|
|
21
|
-
"links": "Links",
|
|
22
|
-
|
|
23
16
|
"developer-ui": "Developer UI",
|
|
24
|
-
|
|
25
|
-
"
|
|
17
|
+
"context_slots": "The number of VDisks residing on this PDisk",
|
|
18
|
+
"context_log-size": "The size of the Common Log shared by the residing VDisks",
|
|
19
|
+
"context_system-size": "The size reserved for the PDisk system components. Includes SysLog",
|
|
20
|
+
"field_drive": "Drive status",
|
|
21
|
+
"field_decommit": "Decommission",
|
|
22
|
+
"value_not-available": "N/A",
|
|
23
|
+
"context_drive-not-available": "Drive is not available",
|
|
24
|
+
"context_decommit-not-available": "Decommission status is not available",
|
|
25
|
+
"context_maintenance-not-available": "Maintenance status is not available",
|
|
26
|
+
"value_unknown": "Unknown",
|
|
27
|
+
"value_ok": "Ok",
|
|
28
|
+
"value_initial": "Initial",
|
|
29
|
+
"value_initial-format-read": "Initial Format Read",
|
|
30
|
+
"value_initial-sys-log-read": "Initial Sys Log Read",
|
|
31
|
+
"value_initial-common-log-read": "Initial Common Log Read",
|
|
32
|
+
"value_open-file-error": "Open File Error",
|
|
33
|
+
"value_device-io-error": "Device Io Error",
|
|
34
|
+
"value_stopped": "Stopped",
|
|
35
|
+
"value_initial-format-read-error": "Initial Format Read Error",
|
|
36
|
+
"value_initial-sys-log-read-error": "Initial Sys Log Read Error",
|
|
37
|
+
"value_initial-sys-log-parse-error": "Initial Sys Log Parse Error",
|
|
38
|
+
"value_common-logger-init-error": "Common Logger Init Error",
|
|
39
|
+
"value_initial-common-log-read-error": "Initial Common Log Read Error",
|
|
40
|
+
"value_initial-common-log-parse-error": "Initial Common Log Parse Error",
|
|
41
|
+
"value_chunk-quota-error": "Chunk Quota Error",
|
|
42
|
+
"value_active": "Active",
|
|
43
|
+
"value_inactive": "Inactive",
|
|
44
|
+
"value_to-be-removed": "To be removed",
|
|
45
|
+
"value_faulty": "Faulty",
|
|
46
|
+
"value_broken": "Broken",
|
|
47
|
+
"value_decommit-none": "No decommission",
|
|
48
|
+
"value_decommit-pending": "Decommission pending",
|
|
49
|
+
"value_decommit-rejected": "Decommission rejected",
|
|
50
|
+
"value_decommit-imminent": "Decommission imminent",
|
|
51
|
+
"label_maintenance": "Maintenance",
|
|
52
|
+
"value_maintenance-none": "None",
|
|
53
|
+
"value_maintenance-unset": "Unset",
|
|
54
|
+
"value_maintenance-no-new-vdisks": "No new VDisks",
|
|
55
|
+
"value_maintenance-long-term": "Long term",
|
|
56
|
+
"context_unknown": "Value of status is unknown (default)",
|
|
57
|
+
"context_state-normal": "The PDisk is operating normally",
|
|
58
|
+
"context_state-initial": "The PDisk actor is starting and has not yet begun reading disk metadata",
|
|
59
|
+
"context_initial-format-read": "The PDisk is reading and validating its format record",
|
|
60
|
+
"context_initial-sys-log-read": "The PDisk is reading its system log during startup",
|
|
61
|
+
"context_initial-common-log-read": "The PDisk is reading VDisk common log during startup",
|
|
62
|
+
"context_open-file-error": "The PDisk could not open its backing device",
|
|
63
|
+
"context_device-io-error": "The PDisk encountered a fatal physical device I/O error",
|
|
64
|
+
"context_stopped": "The PDisk was explicitly stopped by a control request",
|
|
65
|
+
"context_initial-format-read-error": "The format record could not be read or validated",
|
|
66
|
+
"context_initial-sys-log-read-error": "The system log could not be read",
|
|
67
|
+
"context_initial-sys-log-parse-error": "The system log was read but could not be parsed",
|
|
68
|
+
"context_common-logger-init-error": "The PDisk failed to initialize the VDisk common log writer",
|
|
69
|
+
"context_initial-common-log-read-error": "VDisk common log could not be read",
|
|
70
|
+
"context_initial-common-log-parse-error": "VDisk common log was read but could not be parsed",
|
|
71
|
+
"context_chunk-quota-error": "The PDisk failed to calculate or initialize chunk quotas",
|
|
72
|
+
"context_active": "Working as expected",
|
|
73
|
+
"context_inactive": "New groups are not created over this drive, but existing ones continue to work as expected",
|
|
74
|
+
"context_to-be-removed": "Same as INACTIVE, but drive is counted in fault model as not working",
|
|
75
|
+
"context_faulty": "Drive is expected to become BROKEN soon, new groups are not created, old groups are asynchronously moved out from this drive",
|
|
76
|
+
"context_broken": "Drive is not working, groups are automatically moved out of this drive upon reception of this status",
|
|
77
|
+
"context_decommit-none": "The PDisk is not being decommissioned",
|
|
78
|
+
"context_decommit-pending": "Decommissioning is planned; allocation of new VDisks is blocked, existing VDisks are not moved",
|
|
79
|
+
"context_decommit-rejected": "The PDisk is operational but cannot receive VDisks moved from the other decommitted PDisks",
|
|
80
|
+
"context_decommit-imminent": "Active phase of decommissioning, existing VDisks are moved from the PDisk asynchronously",
|
|
81
|
+
"context_maintenance-none": "There is no active maintenance request for this PDisk",
|
|
82
|
+
"context_maintenance-unset": "No maintenance status has been explicitly provided",
|
|
83
|
+
"context_maintenance-no-new-vdisks": "Allocation of new VDisks is blocked, existing VDisks are not moved",
|
|
84
|
+
"context_maintenance-long-term": "Device is requested for a long-term maintenance, existing VDisks are moved from the PDisk asynchronously"
|
|
26
85
|
}
|
|
@@ -0,0 +1,222 @@
|
|
|
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 unavailableLabel(title: string, tooltip: string): DiskStatusLabelData {
|
|
28
|
+
return {
|
|
29
|
+
title,
|
|
30
|
+
value: i18n('value_not-available'),
|
|
31
|
+
tooltip,
|
|
32
|
+
theme: 'unknown',
|
|
33
|
+
icon: CircleQuestionFill,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function getLabelView({
|
|
38
|
+
severity,
|
|
39
|
+
icon,
|
|
40
|
+
}: ReturnType<typeof getPDiskStateDisplayState>): Pick<
|
|
41
|
+
DiskStatusLabelData,
|
|
42
|
+
'theme' | 'icon' | 'dangerHeavy'
|
|
43
|
+
> {
|
|
44
|
+
const labelView = NUMERIC_SEVERITY_TO_LABEL_VIEW[severity];
|
|
45
|
+
|
|
46
|
+
return {
|
|
47
|
+
theme: severity === NOT_AVAILABLE_SEVERITY ? 'unknown' : labelView?.theme,
|
|
48
|
+
icon,
|
|
49
|
+
dangerHeavy: Boolean(labelView?.dangerHeavy),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function getPDiskStateLabel(state?: TPDiskState): DiskStatusLabelData {
|
|
54
|
+
const labels: Partial<Record<TPDiskState, StatusText>> = {
|
|
55
|
+
[TPDiskState.Normal]: {value: i18n('value_ok'), tooltip: i18n('context_state-normal')},
|
|
56
|
+
[TPDiskState.Initial]: {
|
|
57
|
+
value: i18n('value_initial'),
|
|
58
|
+
tooltip: i18n('context_state-initial'),
|
|
59
|
+
},
|
|
60
|
+
[TPDiskState.InitialFormatRead]: {
|
|
61
|
+
value: i18n('value_initial-format-read'),
|
|
62
|
+
tooltip: i18n('context_initial-format-read'),
|
|
63
|
+
},
|
|
64
|
+
[TPDiskState.InitialSysLogRead]: {
|
|
65
|
+
value: i18n('value_initial-sys-log-read'),
|
|
66
|
+
tooltip: i18n('context_initial-sys-log-read'),
|
|
67
|
+
},
|
|
68
|
+
[TPDiskState.InitialCommonLogRead]: {
|
|
69
|
+
value: i18n('value_initial-common-log-read'),
|
|
70
|
+
tooltip: i18n('context_initial-common-log-read'),
|
|
71
|
+
},
|
|
72
|
+
[TPDiskState.OpenFileError]: {
|
|
73
|
+
value: i18n('value_open-file-error'),
|
|
74
|
+
tooltip: i18n('context_open-file-error'),
|
|
75
|
+
},
|
|
76
|
+
[TPDiskState.DeviceIoError]: {
|
|
77
|
+
value: i18n('value_device-io-error'),
|
|
78
|
+
tooltip: i18n('context_device-io-error'),
|
|
79
|
+
},
|
|
80
|
+
[TPDiskState.Stopped]: {value: i18n('value_stopped'), tooltip: i18n('context_stopped')},
|
|
81
|
+
[TPDiskState.InitialFormatReadError]: {
|
|
82
|
+
value: i18n('value_initial-format-read-error'),
|
|
83
|
+
tooltip: i18n('context_initial-format-read-error'),
|
|
84
|
+
},
|
|
85
|
+
[TPDiskState.InitialSysLogReadError]: {
|
|
86
|
+
value: i18n('value_initial-sys-log-read-error'),
|
|
87
|
+
tooltip: i18n('context_initial-sys-log-read-error'),
|
|
88
|
+
},
|
|
89
|
+
[TPDiskState.InitialSysLogParseError]: {
|
|
90
|
+
value: i18n('value_initial-sys-log-parse-error'),
|
|
91
|
+
tooltip: i18n('context_initial-sys-log-parse-error'),
|
|
92
|
+
},
|
|
93
|
+
[TPDiskState.CommonLoggerInitError]: {
|
|
94
|
+
value: i18n('value_common-logger-init-error'),
|
|
95
|
+
tooltip: i18n('context_common-logger-init-error'),
|
|
96
|
+
},
|
|
97
|
+
[TPDiskState.InitialCommonLogReadError]: {
|
|
98
|
+
value: i18n('value_initial-common-log-read-error'),
|
|
99
|
+
tooltip: i18n('context_initial-common-log-read-error'),
|
|
100
|
+
},
|
|
101
|
+
[TPDiskState.InitialCommonLogParseError]: {
|
|
102
|
+
value: i18n('value_initial-common-log-parse-error'),
|
|
103
|
+
tooltip: i18n('context_initial-common-log-parse-error'),
|
|
104
|
+
},
|
|
105
|
+
[TPDiskState.ChunkQuotaError]: {
|
|
106
|
+
value: i18n('value_chunk-quota-error'),
|
|
107
|
+
tooltip: i18n('context_chunk-quota-error'),
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
const label = state && Object.hasOwn(labels, state) ? labels[state] : undefined;
|
|
111
|
+
if (!label) {
|
|
112
|
+
return unknownLabel();
|
|
113
|
+
}
|
|
114
|
+
const {theme, icon, dangerHeavy} = getLabelView(getPDiskStateDisplayState(state));
|
|
115
|
+
return {
|
|
116
|
+
...label,
|
|
117
|
+
theme,
|
|
118
|
+
icon: state === TPDiskState.Normal ? Check : icon,
|
|
119
|
+
dangerHeavy,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function getPDiskDriveLabel(status?: EDriveStatus): DiskStatusLabelData | undefined {
|
|
124
|
+
if (!status || status === 'UNKNOWN') {
|
|
125
|
+
return unavailableLabel(i18n('field_drive'), i18n('context_drive-not-available'));
|
|
126
|
+
}
|
|
127
|
+
const labels: Record<Exclude<EDriveStatus, 'UNKNOWN'>, StatusText> = {
|
|
128
|
+
ACTIVE: {value: i18n('value_active'), tooltip: i18n('context_active')},
|
|
129
|
+
INACTIVE: {value: i18n('value_inactive'), tooltip: i18n('context_inactive')},
|
|
130
|
+
TO_BE_REMOVED: {value: i18n('value_to-be-removed'), tooltip: i18n('context_to-be-removed')},
|
|
131
|
+
FAULTY: {value: i18n('value_faulty'), tooltip: i18n('context_faulty')},
|
|
132
|
+
BROKEN: {value: i18n('value_broken'), tooltip: i18n('context_broken')},
|
|
133
|
+
};
|
|
134
|
+
if (!Object.hasOwn(labels, status)) {
|
|
135
|
+
return undefined;
|
|
136
|
+
}
|
|
137
|
+
const {theme, icon: defaultIcon} = getLabelView(getPDiskDriveDisplayState(status));
|
|
138
|
+
let icon = defaultIcon;
|
|
139
|
+
if (status === 'ACTIVE') {
|
|
140
|
+
icon = Check;
|
|
141
|
+
} else if (status === 'BROKEN') {
|
|
142
|
+
icon = CircleXmarkFill;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
...labels[status],
|
|
146
|
+
theme,
|
|
147
|
+
icon,
|
|
148
|
+
dangerHeavy: status === 'BROKEN',
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function getPDiskDecommitLabel(status?: EDecommitStatus): DiskStatusLabelData | undefined {
|
|
153
|
+
if (!status || status === 'DECOMMIT_UNSET') {
|
|
154
|
+
return unavailableLabel(i18n('field_decommit'), i18n('context_decommit-not-available'));
|
|
155
|
+
}
|
|
156
|
+
const labels: Record<Exclude<EDecommitStatus, 'DECOMMIT_UNSET'>, StatusText> = {
|
|
157
|
+
DECOMMIT_NONE: {value: i18n('value_decommit-none'), tooltip: i18n('context_decommit-none')},
|
|
158
|
+
DECOMMIT_PENDING: {
|
|
159
|
+
value: i18n('value_decommit-pending'),
|
|
160
|
+
tooltip: i18n('context_decommit-pending'),
|
|
161
|
+
},
|
|
162
|
+
DECOMMIT_REJECTED: {
|
|
163
|
+
value: i18n('value_decommit-rejected'),
|
|
164
|
+
tooltip: i18n('context_decommit-rejected'),
|
|
165
|
+
},
|
|
166
|
+
DECOMMIT_IMMINENT: {
|
|
167
|
+
value: i18n('value_decommit-imminent'),
|
|
168
|
+
tooltip: i18n('context_decommit-imminent'),
|
|
169
|
+
},
|
|
170
|
+
};
|
|
171
|
+
if (!Object.hasOwn(labels, status)) {
|
|
172
|
+
return undefined;
|
|
173
|
+
}
|
|
174
|
+
const {theme, icon, dangerHeavy} = getLabelView(getPDiskDecommitDisplayState(status));
|
|
175
|
+
return {
|
|
176
|
+
...labels[status],
|
|
177
|
+
theme,
|
|
178
|
+
icon: status === 'DECOMMIT_NONE' ? Ban : icon,
|
|
179
|
+
dangerHeavy,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function getPDiskMaintenanceLabel(
|
|
184
|
+
status?: EMaintenanceStatus,
|
|
185
|
+
): DiskStatusLabelData | undefined {
|
|
186
|
+
if (!status) {
|
|
187
|
+
return unavailableLabel(
|
|
188
|
+
i18n('label_maintenance'),
|
|
189
|
+
i18n('context_maintenance-not-available'),
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
const labels: Record<EMaintenanceStatus, StatusText> = {
|
|
193
|
+
NO_REQUEST: {
|
|
194
|
+
value: i18n('value_maintenance-none'),
|
|
195
|
+
tooltip: i18n('context_maintenance-none'),
|
|
196
|
+
},
|
|
197
|
+
NOT_SET: {
|
|
198
|
+
value: i18n('value_maintenance-unset'),
|
|
199
|
+
tooltip: i18n('context_maintenance-unset'),
|
|
200
|
+
},
|
|
201
|
+
NO_NEW_VDISKS: {
|
|
202
|
+
value: i18n('value_maintenance-no-new-vdisks'),
|
|
203
|
+
tooltip: i18n('context_maintenance-no-new-vdisks'),
|
|
204
|
+
},
|
|
205
|
+
LONG_TERM_MAINTENANCE_PLANNED: {
|
|
206
|
+
value: i18n('value_maintenance-long-term'),
|
|
207
|
+
tooltip: i18n('context_maintenance-long-term'),
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
if (!Object.hasOwn(labels, status)) {
|
|
211
|
+
return undefined;
|
|
212
|
+
}
|
|
213
|
+
const {theme, icon, dangerHeavy} = getLabelView(getPDiskMaintenanceDisplayState(status));
|
|
214
|
+
return {
|
|
215
|
+
...labels[status],
|
|
216
|
+
title: i18n('label_maintenance'),
|
|
217
|
+
// An explicitly unset status is shown as a normal state in the popup design.
|
|
218
|
+
theme: status === 'NOT_SET' ? 'success' : theme,
|
|
219
|
+
icon: status === 'NOT_SET' ? undefined : icon,
|
|
220
|
+
dangerHeavy,
|
|
221
|
+
};
|
|
222
|
+
}
|
|
@@ -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
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import type {TextInputProps} from '@gravity-ui/uikit';
|
|
4
|
+
import {TextInput} from '@gravity-ui/uikit';
|
|
4
5
|
|
|
5
6
|
import {cn} from '../../utils/cn';
|
|
6
7
|
import {DebouncedTextInput} from '../DebouncedInput/DebouncedTextInput';
|
|
@@ -40,9 +41,11 @@ export const Search = ({
|
|
|
40
41
|
[onChange],
|
|
41
42
|
);
|
|
42
43
|
|
|
44
|
+
const Input = debounce === 0 ? TextInput : DebouncedTextInput;
|
|
45
|
+
|
|
43
46
|
return (
|
|
44
|
-
<
|
|
45
|
-
debounce
|
|
47
|
+
<Input
|
|
48
|
+
{...(debounce === 0 ? {} : {debounce})}
|
|
46
49
|
hasClear
|
|
47
50
|
autoFocus
|
|
48
51
|
controlRef={controlRef}
|
|
@@ -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
|
+
}
|