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,11 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import {Label} from '@gravity-ui/uikit';
|
|
4
|
-
|
|
5
1
|
import type {PreparedStorageGroup} from '../../store/reducers/storage/types';
|
|
6
|
-
import {
|
|
7
|
-
import {getCapacityAlertTheme, normalizeCapacityAlert} from '../../utils/capacityAlerts';
|
|
2
|
+
import {normalizeCapacityAlert} from '../../utils/capacityAlerts';
|
|
8
3
|
import {EMPTY_DATA_PLACEHOLDER} from '../../utils/constants';
|
|
4
|
+
import type {DiskDetailItem} from '../../utils/disks/diskInfo/getDiskLocationItems';
|
|
9
5
|
import type {PreparedPDisk, PreparedVDisk} from '../../utils/disks/types';
|
|
10
6
|
import {
|
|
11
7
|
formatMetricCountPair,
|
|
@@ -13,9 +9,9 @@ import {
|
|
|
13
9
|
formatNormalizedMetricPercent,
|
|
14
10
|
formatStorageMetricPair,
|
|
15
11
|
} from '../../utils/storageMetrics';
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
12
|
+
import {DiskCapacityAlertLabel} from '../DiskStatus/DiskStatus';
|
|
13
|
+
import {pDiskInfoKeyset} from '../PDiskInfo/i18n';
|
|
14
|
+
import {vDiskInfoKeyset} from '../VDiskInfo/i18n';
|
|
19
15
|
import {
|
|
20
16
|
CAPACITY_CONFIGURATION_HELP_TEXT,
|
|
21
17
|
CAPACITY_METRICS_COLUMN_TITLES,
|
|
@@ -25,160 +21,110 @@ import {formatCapacityUnitCount} from '../capacityMetricsColumns/formatters';
|
|
|
25
21
|
|
|
26
22
|
import i18n from './i18n';
|
|
27
23
|
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const capacityAlert = normalizeCapacityAlert(capacityAlertValue);
|
|
45
|
-
const theme = isCapacityAlert(capacityAlert) ? getCapacityAlertTheme(capacityAlert) : 'normal';
|
|
46
|
-
|
|
47
|
-
return <Label theme={theme}>{value}</Label>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function getVDiskCapacityInfoItems(
|
|
51
|
-
data: PreparedVDisk | undefined,
|
|
52
|
-
{withRawUsage}: {withRawUsage: boolean},
|
|
53
|
-
): DiskCapacityInfoItem[] {
|
|
54
|
-
const sizeData = data?.WhiteboardSize ?? data;
|
|
55
|
-
const items: DiskCapacityInfoItem[] = [
|
|
24
|
+
export function getVDiskCapacityItems(
|
|
25
|
+
data: PreparedVDisk,
|
|
26
|
+
{capacityMetricsEnabled}: {capacityMetricsEnabled: boolean},
|
|
27
|
+
): DiskDetailItem[] {
|
|
28
|
+
const size =
|
|
29
|
+
(capacityMetricsEnabled ? data.WhiteboardSize : undefined) ?? data.DisplaySize ?? data;
|
|
30
|
+
const items: DiskDetailItem[] = [
|
|
31
|
+
{
|
|
32
|
+
id: 'group-size-in-units',
|
|
33
|
+
name: vDiskInfoKeyset('field_group-size-in-units'),
|
|
34
|
+
content: formatCapacityUnitCount(data.GroupSizeInUnits),
|
|
35
|
+
note: CAPACITY_CONFIGURATION_HELP_TEXT.GroupSizeInUnits,
|
|
36
|
+
},
|
|
56
37
|
{
|
|
57
38
|
id: 'size',
|
|
58
|
-
|
|
59
|
-
|
|
39
|
+
name: vDiskInfoKeyset('size'),
|
|
40
|
+
content: formatStorageMetricPair(size.AllocatedSize, size.SizeLimit, 2),
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 'capacity-alert',
|
|
44
|
+
name: vDiskInfoKeyset('field_capacity-alert'),
|
|
45
|
+
content: <DiskCapacityAlertLabel value={data.CapacityAlert} />,
|
|
46
|
+
note: CAPACITY_METRICS_HELP_TEXT.CapacityAlert,
|
|
60
47
|
},
|
|
61
48
|
{
|
|
62
49
|
id: 'vdisk-slot-usage',
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
formatMetricPercent(data?.VDiskSlotUsage),
|
|
66
|
-
data?.CapacityAlert,
|
|
67
|
-
),
|
|
50
|
+
name: CAPACITY_METRICS_COLUMN_TITLES.MaxVDiskSlotUsage,
|
|
51
|
+
content: formatMetricPercent(data.VDiskSlotUsage, 2),
|
|
68
52
|
note: CAPACITY_METRICS_HELP_TEXT.MaxVDiskSlotUsage,
|
|
69
53
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (withRawUsage) {
|
|
73
|
-
items.push({
|
|
54
|
+
{
|
|
74
55
|
id: 'vdisk-raw-usage',
|
|
75
|
-
|
|
76
|
-
|
|
56
|
+
name: CAPACITY_METRICS_COLUMN_TITLES.MaxVDiskRawUsage,
|
|
57
|
+
content: formatMetricPercent(data.VDiskRawUsage, 2),
|
|
77
58
|
note: CAPACITY_METRICS_HELP_TEXT.MaxVDiskRawUsage,
|
|
78
|
-
}
|
|
79
|
-
|
|
59
|
+
},
|
|
60
|
+
];
|
|
61
|
+
return items.filter(({id}) => capacityMetricsEnabled || id === 'size');
|
|
62
|
+
}
|
|
80
63
|
|
|
81
|
-
|
|
64
|
+
export function getPDiskCapacityItems(
|
|
65
|
+
data: PreparedPDisk,
|
|
66
|
+
{useWhiteboardSize = true}: {useWhiteboardSize?: boolean} = {},
|
|
67
|
+
): DiskDetailItem[] {
|
|
68
|
+
const size = useWhiteboardSize ? (data.WhiteboardSize ?? data) : data;
|
|
69
|
+
return [
|
|
82
70
|
{
|
|
83
|
-
id: '
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
note: CAPACITY_CONFIGURATION_HELP_TEXT.
|
|
71
|
+
id: 'slot-size-in-units',
|
|
72
|
+
name: i18n('field_slot-size-in-units'),
|
|
73
|
+
content: formatCapacityUnitCount(data.SlotSizeInUnits),
|
|
74
|
+
note: CAPACITY_CONFIGURATION_HELP_TEXT.SlotSizeInUnits,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 'space',
|
|
78
|
+
name: i18n('field_space'),
|
|
79
|
+
content: formatStorageMetricPair(size.AllocatedSize, size.TotalSize, 2),
|
|
87
80
|
},
|
|
88
81
|
{
|
|
89
82
|
id: 'capacity-alert',
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
name: CAPACITY_METRICS_COLUMN_TITLES.CapacityAlert,
|
|
84
|
+
content: <DiskCapacityAlertLabel value={data.PDiskCapacityAlert} />,
|
|
92
85
|
note: CAPACITY_METRICS_HELP_TEXT.CapacityAlert,
|
|
93
86
|
},
|
|
94
|
-
);
|
|
95
|
-
|
|
96
|
-
return items;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function getPDiskCapacityInfoItems(
|
|
100
|
-
data: PreparedPDisk | undefined,
|
|
101
|
-
{withUsage, withCapacityAlert}: {withUsage: boolean; withCapacityAlert: boolean},
|
|
102
|
-
): DiskCapacityInfoItem[] {
|
|
103
|
-
const sizeData = data?.WhiteboardSize ?? data;
|
|
104
|
-
const items: DiskCapacityInfoItem[] = [
|
|
105
87
|
{
|
|
106
|
-
id: 'space',
|
|
107
|
-
title: i18n('field_space'),
|
|
108
|
-
value: formatStorageMetricPair(sizeData?.AllocatedSize, sizeData?.TotalSize),
|
|
109
|
-
},
|
|
110
|
-
];
|
|
111
|
-
|
|
112
|
-
if (withUsage) {
|
|
113
|
-
items.push({
|
|
114
88
|
id: 'pdisk-usage',
|
|
115
|
-
|
|
116
|
-
|
|
89
|
+
name: CAPACITY_METRICS_COLUMN_TITLES.MaxPDiskUsage,
|
|
90
|
+
content: formatMetricPercent(data.PDiskUsage, 2),
|
|
117
91
|
note: CAPACITY_METRICS_HELP_TEXT.MaxPDiskUsage,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
items.push(
|
|
122
|
-
{
|
|
123
|
-
id: 'slots',
|
|
124
|
-
title: i18n('field_slots'),
|
|
125
|
-
value: formatMetricCountPair(data?.NumActiveSlots, data?.ExpectedSlotCount),
|
|
126
92
|
},
|
|
127
93
|
{
|
|
128
|
-
id: '
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
note:
|
|
94
|
+
id: 'slots',
|
|
95
|
+
name: i18n('field_slots'),
|
|
96
|
+
content: formatMetricCountPair(data.NumActiveSlots, data.ExpectedSlotCount),
|
|
97
|
+
note: pDiskInfoKeyset('context_slots'),
|
|
132
98
|
},
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (withCapacityAlert) {
|
|
136
|
-
items.push({
|
|
137
|
-
id: 'capacity-alert',
|
|
138
|
-
title: CAPACITY_METRICS_COLUMN_TITLES.CapacityAlert,
|
|
139
|
-
value: getCapacityAlertValue(data?.PDiskCapacityAlert),
|
|
140
|
-
note: CAPACITY_METRICS_HELP_TEXT.CapacityAlert,
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return items;
|
|
99
|
+
];
|
|
145
100
|
}
|
|
146
101
|
|
|
147
102
|
export function getStorageGroupCapacityInfoItems(
|
|
148
103
|
data: PreparedStorageGroup | undefined,
|
|
149
|
-
):
|
|
104
|
+
): DiskDetailItem[] {
|
|
105
|
+
const capacityAlert = normalizeCapacityAlert(data?.CapacityAlert);
|
|
150
106
|
return [
|
|
151
107
|
{
|
|
152
|
-
id: '
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
108
|
+
id: 'capacity-alert',
|
|
109
|
+
name: CAPACITY_METRICS_COLUMN_TITLES.CapacityAlert,
|
|
110
|
+
content: capacityAlert ? (
|
|
111
|
+
<DiskCapacityAlertLabel value={capacityAlert} />
|
|
112
|
+
) : (
|
|
113
|
+
EMPTY_DATA_PLACEHOLDER
|
|
157
114
|
),
|
|
115
|
+
note: CAPACITY_METRICS_HELP_TEXT.CapacityAlert,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: 'vdisk-slot-usage',
|
|
119
|
+
name: CAPACITY_METRICS_COLUMN_TITLES.MaxVDiskSlotUsage,
|
|
120
|
+
content: formatNormalizedMetricPercent(data?.MaxVDiskSlotUsage),
|
|
158
121
|
note: CAPACITY_METRICS_HELP_TEXT.MaxVDiskSlotUsage,
|
|
159
122
|
},
|
|
160
123
|
{
|
|
161
124
|
id: 'vdisk-raw-usage',
|
|
162
|
-
|
|
163
|
-
|
|
125
|
+
name: CAPACITY_METRICS_COLUMN_TITLES.MaxVDiskRawUsage,
|
|
126
|
+
content: formatNormalizedMetricPercent(data?.MaxVDiskRawUsage),
|
|
164
127
|
note: CAPACITY_METRICS_HELP_TEXT.MaxVDiskRawUsage,
|
|
165
128
|
},
|
|
166
|
-
{
|
|
167
|
-
id: 'capacity-alert',
|
|
168
|
-
title: CAPACITY_METRICS_COLUMN_TITLES.CapacityAlert,
|
|
169
|
-
value: getCapacityAlertValue(data?.CapacityAlert),
|
|
170
|
-
note: CAPACITY_METRICS_HELP_TEXT.CapacityAlert,
|
|
171
|
-
},
|
|
172
129
|
];
|
|
173
130
|
}
|
|
174
|
-
|
|
175
|
-
export function toDefinitionListItems(items: DiskCapacityInfoItem[]): YDBDefinitionListItem[] {
|
|
176
|
-
return items.map(({title, value, note}) => ({name: title, content: value, note}));
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export function toInfoViewerItems(items: DiskCapacityInfoItem[]): InfoViewerItem[] {
|
|
180
|
-
return items.map(({title, value, note}) => ({
|
|
181
|
-
label: note ? <TitleWithHelpMark header={title} note={note} /> : title,
|
|
182
|
-
value,
|
|
183
|
-
}));
|
|
184
|
-
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
.ydb-disk-popup {
|
|
2
|
+
--ydb-disk-popup-base-width: 368px;
|
|
3
|
+
--ydb-disk-popup-width-growth: 50px;
|
|
4
|
+
|
|
5
|
+
width: max-content;
|
|
6
|
+
min-width: min(var(--ydb-disk-popup-base-width), calc(100vw - 64px));
|
|
7
|
+
max-width: min(
|
|
8
|
+
calc(var(--ydb-disk-popup-base-width) + var(--ydb-disk-popup-width-growth)),
|
|
9
|
+
calc(100vw - 64px)
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
font-size: var(--g-text-body-1-font-size);
|
|
13
|
+
line-height: var(--g-text-body-1-line-height);
|
|
14
|
+
overflow-wrap: anywhere;
|
|
15
|
+
|
|
16
|
+
&_combined {
|
|
17
|
+
--ydb-disk-popup-base-width: 593px;
|
|
18
|
+
--ydb-disk-popup-width-growth: 120px;
|
|
19
|
+
--ydb-pdisk-log-size-progress-width: 50px;
|
|
20
|
+
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__panel {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex: 1;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: var(--g-spacing-2);
|
|
30
|
+
|
|
31
|
+
min-width: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&_combined &__panel:first-child {
|
|
35
|
+
padding-right: var(--g-spacing-3);
|
|
36
|
+
|
|
37
|
+
border-right: 1px solid var(--g-color-line-generic);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&_combined &__panel + &__panel {
|
|
41
|
+
padding-left: var(--g-spacing-3);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__body,
|
|
45
|
+
&__footer {
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
gap: var(--g-spacing-2);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Only Compaction contributes to the intrinsic width; other sections fit the card.
|
|
52
|
+
&__body > :not(:has(.ydb-vdisk-popup__compaction)),
|
|
53
|
+
&__footer,
|
|
54
|
+
.g-definition-list__item:not(:has(.ydb-vdisk-popup__compaction)) {
|
|
55
|
+
contain: inline-size;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ydb-vdisk-popup__compaction {
|
|
59
|
+
width: max-content;
|
|
60
|
+
max-width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.g-definition-list__item:has(.ydb-vdisk-popup__compaction) {
|
|
64
|
+
.g-definition-list__term-container {
|
|
65
|
+
flex-shrink: 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.g-definition-list__definition {
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__footer {
|
|
74
|
+
margin-top: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__id {
|
|
78
|
+
min-width: 0;
|
|
79
|
+
overflow-wrap: anywhere;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.g-definition-list {
|
|
83
|
+
--g-definition-list-item-gap: var(--g-spacing-1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.g-definition-list__definition {
|
|
87
|
+
min-width: 0;
|
|
88
|
+
overflow-wrap: anywhere;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.g-definition-list__copy-container {
|
|
92
|
+
min-width: 0;
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.g-definition-list__dots {
|
|
97
|
+
flex-basis: 0;
|
|
98
|
+
|
|
99
|
+
min-width: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ydb-disk-status__tooltip {
|
|
103
|
+
min-width: 0;
|
|
104
|
+
max-width: 100%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ydb-disk-status__label {
|
|
108
|
+
min-width: 0;
|
|
109
|
+
max-width: 100%;
|
|
110
|
+
height: auto;
|
|
111
|
+
min-height: var(--_--height);
|
|
112
|
+
|
|
113
|
+
.g-label__text {
|
|
114
|
+
display: block;
|
|
115
|
+
overflow: visible;
|
|
116
|
+
|
|
117
|
+
min-width: 0;
|
|
118
|
+
|
|
119
|
+
text-align: start;
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.g-label__content,
|
|
124
|
+
.g-label__value,
|
|
125
|
+
.g-label__key,
|
|
126
|
+
.g-label__separator {
|
|
127
|
+
display: inline;
|
|
128
|
+
overflow: visible;
|
|
129
|
+
|
|
130
|
+
text-overflow: clip;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ydb-pdisk-log-size,
|
|
135
|
+
.ydb-vdisk-status__replication-progress {
|
|
136
|
+
flex-wrap: wrap;
|
|
137
|
+
|
|
138
|
+
max-width: 100%;
|
|
139
|
+
|
|
140
|
+
white-space: normal;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__location {
|
|
144
|
+
contain: inline-size;
|
|
145
|
+
|
|
146
|
+
padding: var(--g-spacing-1) var(--g-spacing-2);
|
|
147
|
+
|
|
148
|
+
border-radius: var(--g-border-radius-m);
|
|
149
|
+
background-color: var(--g-color-base-generic);
|
|
150
|
+
|
|
151
|
+
.g-definition-list__dots {
|
|
152
|
+
display: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.g-definition-list__definition {
|
|
156
|
+
flex: 1;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&__text {
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
|
|
163
|
+
min-width: 0;
|
|
164
|
+
|
|
165
|
+
cursor: default;
|
|
166
|
+
white-space: nowrap;
|
|
167
|
+
text-overflow: ellipsis;
|
|
168
|
+
|
|
169
|
+
&_with-left-trim {
|
|
170
|
+
text-align: end;
|
|
171
|
+
direction: rtl;
|
|
172
|
+
|
|
173
|
+
> span {
|
|
174
|
+
unicode-bidi: plaintext;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&__text-tooltip {
|
|
180
|
+
overflow-wrap: anywhere;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@media (max-width: 700px) {
|
|
184
|
+
&_combined {
|
|
185
|
+
--ydb-disk-popup-base-width: 368px;
|
|
186
|
+
|
|
187
|
+
grid-template-columns: minmax(0, 1fr);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&_combined &__panel:first-child {
|
|
191
|
+
padding-right: 0;
|
|
192
|
+
padding-bottom: var(--g-spacing-3);
|
|
193
|
+
|
|
194
|
+
border-right: none;
|
|
195
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&_combined &__panel + &__panel {
|
|
199
|
+
padding-top: var(--g-spacing-3);
|
|
200
|
+
padding-left: 0;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {ClipboardButton, Flex, Text, Tooltip} from '@gravity-ui/uikit';
|
|
4
|
+
import {isNil} from 'lodash';
|
|
5
|
+
|
|
6
|
+
import {cn} from '../../utils/cn';
|
|
7
|
+
import {EMPTY_DATA_PLACEHOLDER} from '../../utils/constants';
|
|
8
|
+
import type {DiskDetailItem} from '../../utils/disks/diskInfo/getDiskLocationItems';
|
|
9
|
+
import {DiskTypeLabel} from '../DiskStatus/DiskStatus';
|
|
10
|
+
import {YDBDefinitionList} from '../YDBDefinitionList/YDBDefinitionList';
|
|
11
|
+
|
|
12
|
+
import i18n from './i18n';
|
|
13
|
+
|
|
14
|
+
import './DiskPopup.scss';
|
|
15
|
+
|
|
16
|
+
const b = cn('ydb-disk-popup');
|
|
17
|
+
|
|
18
|
+
export function DiskPopup({
|
|
19
|
+
children,
|
|
20
|
+
combined = false,
|
|
21
|
+
className,
|
|
22
|
+
}: {
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
combined?: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
}) {
|
|
27
|
+
return <div className={b({combined}, className)}>{children}</div>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function DiskPopupPanel({
|
|
31
|
+
children,
|
|
32
|
+
footer,
|
|
33
|
+
}: {
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
footer?: React.ReactNode;
|
|
36
|
+
}) {
|
|
37
|
+
return (
|
|
38
|
+
<div className={b('panel')}>
|
|
39
|
+
<div className={b('body')}>{children}</div>
|
|
40
|
+
{footer && <div className={b('footer')}>{footer}</div>}
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DiskPopupHeader({
|
|
46
|
+
title,
|
|
47
|
+
id,
|
|
48
|
+
type,
|
|
49
|
+
statuses,
|
|
50
|
+
}: {
|
|
51
|
+
title: string;
|
|
52
|
+
id?: string;
|
|
53
|
+
type?: string;
|
|
54
|
+
statuses: React.ReactNode;
|
|
55
|
+
}) {
|
|
56
|
+
return (
|
|
57
|
+
<React.Fragment>
|
|
58
|
+
<Flex gap={1} alignItems="center" wrap="wrap">
|
|
59
|
+
<Text variant="subheader-2">{title}</Text>
|
|
60
|
+
<Text color="secondary">•</Text>
|
|
61
|
+
<Text variant="body-2" color="secondary" className={b('id')}>
|
|
62
|
+
{id || EMPTY_DATA_PLACEHOLDER}
|
|
63
|
+
</Text>
|
|
64
|
+
{id && (
|
|
65
|
+
<ClipboardButton
|
|
66
|
+
text={id}
|
|
67
|
+
size="s"
|
|
68
|
+
view="flat-secondary"
|
|
69
|
+
aria-label={i18n('action_copy-field', {field: title})}
|
|
70
|
+
/>
|
|
71
|
+
)}
|
|
72
|
+
<DiskTypeLabel type={type} size="xs" />
|
|
73
|
+
</Flex>
|
|
74
|
+
<Flex gap={1} wrap="wrap" alignItems="center">
|
|
75
|
+
{statuses}
|
|
76
|
+
</Flex>
|
|
77
|
+
</React.Fragment>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function DiskPopupText({
|
|
82
|
+
value,
|
|
83
|
+
withLeftTrim = false,
|
|
84
|
+
}: {
|
|
85
|
+
value?: string | number;
|
|
86
|
+
withLeftTrim?: boolean;
|
|
87
|
+
}) {
|
|
88
|
+
const hasValue = !isNil(value) && value !== '';
|
|
89
|
+
const text = hasValue ? value : EMPTY_DATA_PLACEHOLDER;
|
|
90
|
+
return (
|
|
91
|
+
<Tooltip content={text} disabled={!hasValue} className={b('text-tooltip')}>
|
|
92
|
+
<span
|
|
93
|
+
className={b('text', {'with-left-trim': withLeftTrim})}
|
|
94
|
+
tabIndex={hasValue ? 0 : undefined}
|
|
95
|
+
>
|
|
96
|
+
{withLeftTrim ? <span>{text}</span> : text}
|
|
97
|
+
</span>
|
|
98
|
+
</Tooltip>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function DiskPopupLocation({items}: {items: DiskDetailItem[]}) {
|
|
103
|
+
if (!items.length) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
const locationItems = items.map((item) => {
|
|
107
|
+
if (['fqdn', 'rack', 'datacenter'].includes(item.id)) {
|
|
108
|
+
return {...item, content: <DiskPopupText value={item.copyText} />};
|
|
109
|
+
}
|
|
110
|
+
if (item.id === 'pdisk-path' && typeof item.copyText === 'string') {
|
|
111
|
+
return {
|
|
112
|
+
...item,
|
|
113
|
+
content: <DiskPopupText value={item.copyText} withLeftTrim />,
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
return item;
|
|
117
|
+
});
|
|
118
|
+
return (
|
|
119
|
+
<div className={b('location')}>
|
|
120
|
+
<YDBDefinitionList items={locationItems} nameMaxWidth={100} />
|
|
121
|
+
</div>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use '../../styles/mixins';
|
|
2
|
+
|
|
3
|
+
.ydb-disk-status {
|
|
4
|
+
&__type_hdd {
|
|
5
|
+
color: var(--g-color-text-utility);
|
|
6
|
+
background-color: var(--g-color-base-utility-light);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&__type_ssd {
|
|
10
|
+
color: var(--g-color-text-misc);
|
|
11
|
+
background-color: var(--g-color-base-misc-medium);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__type_nvme {
|
|
15
|
+
color: var(--g-color-text-info);
|
|
16
|
+
background-color: var(--g-color-base-info-light);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__capacity-alert {
|
|
20
|
+
$space-colors: (
|
|
21
|
+
'green': 'green',
|
|
22
|
+
'yellow': 'yellow',
|
|
23
|
+
'red': 'red',
|
|
24
|
+
'spacecyan': 'cyan',
|
|
25
|
+
'spacelightyellow': 'light-yellow',
|
|
26
|
+
'spacelightorange': 'light-orange',
|
|
27
|
+
'spacepreorange': 'pre-orange',
|
|
28
|
+
'spaceorange': 'orange',
|
|
29
|
+
'spaceblack': 'black',
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
@each $color, $token in $space-colors {
|
|
33
|
+
&_color_#{$color} {
|
|
34
|
+
@include mixins.capacity-alert-label-colors($token);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__label,
|
|
40
|
+
&__tooltip {
|
|
41
|
+
cursor: default;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__label_danger-heavy {
|
|
45
|
+
color: var(--g-color-text-light-primary);
|
|
46
|
+
background-color: var(--g-color-base-danger-heavy);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__tooltip {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
|
|
52
|
+
border-radius: var(--g-border-radius-s);
|
|
53
|
+
|
|
54
|
+
&:focus-visible {
|
|
55
|
+
outline: 2px solid var(--g-color-line-focus);
|
|
56
|
+
outline-offset: 2px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|