ydb-embedded-ui 22.2.0 → 22.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.d.ts +10 -1
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.js +75 -13
- package/dist/components/DiskCapacityInfo/DiskCapacityInfo.js.map +1 -1
- package/dist/components/DiskCapacityInfo/i18n/index.d.ts +1 -1
- package/dist/components/DiskPopup/DiskPopup.d.ts +25 -0
- package/dist/components/DiskPopup/DiskPopup.js +44 -0
- package/dist/components/DiskPopup/DiskPopup.js.map +1 -0
- package/dist/components/DiskPopup/DiskPopup.scss +203 -0
- package/dist/components/DiskPopup/i18n/en.json +3 -0
- package/dist/components/DiskPopup/i18n/index.d.ts +2 -0
- package/dist/components/DiskPopup/i18n/index.js +4 -0
- package/dist/components/DiskPopup/i18n/index.js.map +1 -0
- package/dist/components/DiskStatus/DiskStatus.d.ts +31 -0
- package/dist/components/DiskStatus/DiskStatus.js +61 -0
- package/dist/components/DiskStatus/DiskStatus.js.map +1 -0
- package/dist/components/DiskStatus/DiskStatus.scss +59 -0
- package/dist/components/DiskStatus/i18n/en.json +6 -0
- package/dist/components/DiskStatus/i18n/index.d.ts +2 -0
- package/dist/components/DiskStatus/i18n/index.js +4 -0
- package/dist/components/DiskStatus/i18n/index.js.map +1 -0
- package/dist/components/EntityStatus/EntityStatus.d.ts +1 -0
- package/dist/components/EntityStatus/EntityStatus.js +1 -1
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/EvictVDiskButton/i18n/en.json +1 -1
- package/dist/components/FullNodeViewer/i18n/index.d.ts +1 -1
- package/dist/components/Graph/GravityGraph.js +9 -2
- package/dist/components/Graph/GravityGraph.js.map +1 -1
- package/dist/components/Graph/utils.d.ts +2 -1
- package/dist/components/Graph/utils.js +7 -0
- package/dist/components/Graph/utils.js.map +1 -1
- package/dist/components/HoverPopup/HoverPopup.d.ts +2 -1
- package/dist/components/HoverPopup/HoverPopup.js +49 -17
- package/dist/components/HoverPopup/HoverPopup.js.map +1 -1
- package/dist/components/HoverPopup/usePopupPriority.d.ts +4 -0
- package/dist/components/HoverPopup/usePopupPriority.js +30 -0
- package/dist/components/HoverPopup/usePopupPriority.js.map +1 -0
- package/dist/components/PDiskInfo/PDiskLogSize.d.ts +5 -0
- package/dist/components/PDiskInfo/PDiskLogSize.js +20 -0
- package/dist/components/PDiskInfo/PDiskLogSize.js.map +1 -0
- package/dist/components/PDiskInfo/PDiskLogSize.scss +12 -0
- package/dist/components/PDiskInfo/getPDiskDetails.d.ts +4 -0
- package/dist/components/PDiskInfo/getPDiskDetails.js +33 -0
- package/dist/components/PDiskInfo/getPDiskDetails.js.map +1 -0
- package/dist/components/PDiskInfo/i18n/en.json +64 -2
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskInfo/statuses.d.ts +7 -0
- package/dist/components/PDiskInfo/statuses.js +185 -0
- package/dist/components/PDiskInfo/statuses.js.map +1 -0
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +4 -7
- package/dist/components/PDiskPopup/PDiskPopup.js +28 -99
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PDiskPopup/i18n/en.json +2 -12
- package/dist/components/PDiskPopup/i18n/index.d.ts +1 -1
- package/dist/components/PaginatedTable/rowLookup.js +30 -9
- package/dist/components/PaginatedTable/rowLookup.js.map +1 -1
- package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +3 -3
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +78 -218
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/StorageGroupInfo.scss +21 -0
- package/dist/components/StorageGroupInfo/i18n/en.json +1 -9
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TableKeyboardNavigation/TableKeyboardNavigation.js +5 -1
- package/dist/components/TableKeyboardNavigation/TableKeyboardNavigation.js.map +1 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -1
- package/dist/components/VDisk/VDisk.js +23 -32
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.d.ts +1 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.js +2 -1
- package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
- package/dist/components/VDisk/getFlagStatusText.d.ts +2 -0
- package/dist/components/VDisk/getFlagStatusText.js +18 -0
- package/dist/components/VDisk/getFlagStatusText.js.map +1 -0
- package/dist/components/VDisk/i18n/en.json +1 -1
- package/dist/components/VDisk/i18n/index.d.ts +1 -1
- package/dist/components/VDiskInfo/getVDiskDetails.d.ts +5 -0
- package/dist/components/VDiskInfo/getVDiskDetails.js +29 -0
- package/dist/components/VDiskInfo/getVDiskDetails.js.map +1 -0
- package/dist/components/VDiskInfo/i18n/en.json +3 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +6 -8
- package/dist/components/VDiskPopup/VDiskPopup.js +106 -240
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.scss +3 -10
- package/dist/components/VDiskPopup/i18n/en.json +6 -22
- package/dist/components/VDiskPopup/i18n/index.d.ts +1 -1
- package/dist/components/VDiskStatus/VDiskReplicationStatus.d.ts +8 -0
- package/dist/components/VDiskStatus/VDiskReplicationStatus.js +32 -0
- package/dist/components/VDiskStatus/VDiskReplicationStatus.js.map +1 -0
- package/dist/components/VDiskStatus/VDiskStatus.d.ts +16 -0
- package/dist/components/VDiskStatus/VDiskStatus.js +20 -0
- package/dist/components/VDiskStatus/VDiskStatus.js.map +1 -0
- package/dist/components/VDiskStatus/VDiskStatus.scss +32 -0
- package/dist/components/VDiskStatus/i18n/en.json +33 -0
- package/dist/components/VDiskStatus/i18n/index.d.ts +1 -0
- package/dist/components/VDiskStatus/i18n/index.js +5 -0
- package/dist/components/VDiskStatus/i18n/index.js.map +1 -0
- package/dist/components/VDiskStatus/index.d.ts +2 -0
- package/dist/components/VDiskStatus/index.js +3 -0
- package/dist/components/VDiskStatus/index.js.map +1 -0
- package/dist/components/VDiskStatus/statuses.d.ts +4 -0
- package/dist/components/VDiskStatus/statuses.js +120 -0
- package/dist/components/VDiskStatus/statuses.js.map +1 -0
- package/dist/components/capacityMetricsColumns/i18n/en.json +4 -4
- package/dist/containers/Authentication/Authentication.js +29 -30
- package/dist/containers/Authentication/Authentication.js.map +1 -1
- package/dist/containers/Authentication/utils.d.ts +2 -2
- package/dist/containers/Authentication/utils.js +1 -1
- package/dist/containers/Authentication/utils.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/Header/Header.js +8 -2
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Header/StorageGroupLeftControls.d.ts +1 -0
- package/dist/containers/Header/StorageGroupLeftControls.js +23 -0
- package/dist/containers/Header/StorageGroupLeftControls.js.map +1 -0
- package/dist/containers/Header/i18n/en.json +3 -1
- package/dist/containers/Header/i18n/index.d.ts +1 -1
- package/dist/containers/Operations/constants.d.ts +1 -1
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +4 -4
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js.map +1 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/Disks/Disks.js +36 -9
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +2 -1
- package/dist/containers/Storage/PDisk/PDisk.js +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/columns.js +7 -2
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/columns.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageExpertModePanel/components/SpaceLegend.scss +14 -82
- package/dist/containers/Storage/StorageExpertModePanel/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroupStateLabel.d.ts +4 -0
- package/dist/containers/Storage/StorageGroupStateLabel.js +9 -0
- package/dist/containers/Storage/StorageGroupStateLabel.js.map +1 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.d.ts +2 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.js +35 -0
- package/dist/containers/Storage/utils/getStorageGroupStateLabel.js.map +1 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +17 -12
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +9 -13
- package/dist/containers/StorageGroupPage/i18n/en.json +3 -1
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +11 -2
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolInfo.scss +24 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolUsage.d.ts +8 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolUsage.js +34 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolUsage.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/en.json +4 -1
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.d.ts +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.js +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.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 +12 -3
- 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 +55 -33
- 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/i18n/en.json +4 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.js +4 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.js +4 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.js +41 -3
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.d.ts +7 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.js +38 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.scss +18 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/en.json +5 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/index.d.ts +1 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/index.js +2 -0
- package/dist/containers/Tenant/Diagnostics/StreamingQueryGraph/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/i18n/en.json +1 -0
- package/dist/containers/Tenant/Diagnostics/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/tabsContent.js +2 -0
- package/dist/containers/Tenant/Diagnostics/tabsContent.js.map +1 -1
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.d.ts +3 -1
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js +3 -3
- package/dist/containers/Tenant/Healthcheck/components/HealthcheckDrawer.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.js +8 -1
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.js.map +1 -1
- package/dist/containers/Tenant/TenantDrawerHealthcheck.js +8 -1
- package/dist/containers/Tenant/TenantDrawerHealthcheck.js.map +1 -1
- package/dist/containers/Tenants/DatabaseDrawerHealthcheck.js +8 -1
- package/dist/containers/Tenants/DatabaseDrawerHealthcheck.js.map +1 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/lib.d.ts +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +7 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +38 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/header/types.d.ts +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/pdisk/types.d.ts +1 -0
- package/dist/store/reducers/pdisk/utils.js +6 -1
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/query/parsers/prepareStreamingQueryPlan.d.ts +8 -0
- package/dist/store/reducers/query/parsers/prepareStreamingQueryPlan.js +53 -0
- package/dist/store/reducers/query/parsers/prepareStreamingQueryPlan.js.map +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.d.ts +1 -0
- package/dist/store/reducers/storage/prepareGroupsDisks.js +7 -18
- package/dist/store/reducers/storage/prepareGroupsDisks.js.map +1 -1
- package/dist/store/reducers/storage/utils.js +4 -0
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/streamingQuery/streamingQuery.d.ts +5 -1
- package/dist/store/reducers/streamingQuery/streamingQuery.js +36 -13
- package/dist/store/reducers/streamingQuery/streamingQuery.js.map +1 -1
- package/dist/store/reducers/tenant/constants.d.ts +1 -0
- package/dist/store/reducers/tenant/constants.js +1 -0
- package/dist/store/reducers/tenant/constants.js.map +1 -1
- package/dist/styles/mixins.scss +22 -0
- package/dist/types/api/pdisk.d.ts +4 -0
- package/dist/types/api/pdisk.js.map +1 -1
- package/dist/types/api/schema/columnEntity.d.ts +2 -1
- package/dist/types/api/schema/sysView.d.ts +59 -2
- package/dist/types/api/schema/sysView.js +53 -1
- package/dist/types/api/schema/sysView.js.map +1 -1
- package/dist/types/api/schema/table.d.ts +8 -0
- package/dist/types/api/schema/table.js.map +1 -1
- package/dist/types/api/vdisk.d.ts +8 -0
- package/dist/types/api/vdisk.js +7 -0
- package/dist/types/api/vdisk.js.map +1 -1
- package/dist/types/store/nodesList.d.ts +4 -2
- package/dist/uiFactory/types.d.ts +5 -2
- package/dist/utils/bytesParsers/formatBytes.d.ts +3 -1
- package/dist/utils/bytesParsers/formatBytes.js +12 -3
- package/dist/utils/bytesParsers/formatBytes.js.map +1 -1
- package/dist/utils/disks/constants.d.ts +1 -0
- package/dist/utils/disks/constants.js +4 -0
- package/dist/utils/disks/constants.js.map +1 -1
- package/dist/utils/disks/diskInfo/getDiskLocationItems.d.ts +16 -0
- package/dist/utils/disks/diskInfo/getDiskLocationItems.js +30 -0
- package/dist/utils/disks/diskInfo/getDiskLocationItems.js.map +1 -0
- package/dist/utils/disks/diskInfo/i18n/en.json +9 -0
- package/dist/utils/disks/diskInfo/i18n/index.d.ts +2 -0
- package/dist/utils/disks/diskInfo/i18n/index.js +4 -0
- package/dist/utils/disks/diskInfo/i18n/index.js.map +1 -0
- package/dist/utils/disks/iconCalculators.d.ts +5 -0
- package/dist/utils/disks/iconCalculators.js +1 -1
- package/dist/utils/disks/iconCalculators.js.map +1 -1
- package/dist/utils/disks/prepareDisks.d.ts +6 -2
- package/dist/utils/disks/prepareDisks.js +22 -35
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +9 -2
- package/dist/utils/hooks/useNodeMetadata.d.ts +2 -0
- package/dist/utils/hooks/useNodeMetadata.js +15 -0
- package/dist/utils/hooks/useNodeMetadata.js.map +1 -0
- package/dist/utils/nodes.js +6 -2
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +1 -0
- package/dist/utils/query.js +40 -0
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/schema.d.ts +6 -2
- package/dist/utils/schema.js +14 -4
- package/dist/utils/schema.js.map +1 -1
- package/dist/utils/storageMetrics.d.ts +2 -2
- package/dist/utils/storageMetrics.js +22 -10
- package/dist/utils/storageMetrics.js.map +1 -1
- package/dist/utils/timeParsers/formatDuration.d.ts +4 -1
- package/dist/utils/timeParsers/formatDuration.js +16 -1
- package/dist/utils/timeParsers/formatDuration.js.map +1 -1
- package/dist/utils/timeParsers/i18n/en.json +5 -1
- package/dist/utils/timeParsers/i18n/index.d.ts +1 -1
- package/dist/utils/timeParsers/i18n/ru.json +5 -1
- package/package.json +2 -2
- package/src/components/DiskCapacityInfo/DiskCapacityInfo.tsx +106 -15
- package/src/components/DiskPopup/DiskPopup.scss +203 -0
- package/src/components/DiskPopup/DiskPopup.tsx +123 -0
- package/src/components/DiskPopup/i18n/en.json +3 -0
- package/src/components/DiskPopup/i18n/index.ts +5 -0
- package/src/components/DiskStatus/DiskStatus.scss +59 -0
- package/src/components/DiskStatus/DiskStatus.tsx +149 -0
- package/src/components/DiskStatus/i18n/en.json +6 -0
- package/src/components/DiskStatus/i18n/index.ts +5 -0
- package/src/components/EntityStatus/EntityStatus.tsx +1 -1
- package/src/components/EvictVDiskButton/i18n/en.json +1 -1
- package/src/components/Graph/GravityGraph.tsx +9 -2
- package/src/components/Graph/utils.ts +9 -1
- package/src/components/HoverPopup/HoverPopup.tsx +67 -20
- package/src/components/HoverPopup/usePopupPriority.ts +39 -0
- package/src/components/PDiskInfo/PDiskLogSize.scss +12 -0
- package/src/components/PDiskInfo/PDiskLogSize.tsx +37 -0
- package/src/components/PDiskInfo/getPDiskDetails.tsx +37 -0
- package/src/components/PDiskInfo/i18n/en.json +64 -8
- package/src/components/PDiskInfo/statuses.ts +209 -0
- package/src/components/PDiskPopup/PDiskPopup.tsx +62 -147
- package/src/components/PDiskPopup/i18n/en.json +2 -12
- package/src/components/PaginatedTable/rowLookup.ts +35 -10
- package/src/components/StorageGroupInfo/StorageGroupInfo.scss +21 -0
- package/src/components/StorageGroupInfo/StorageGroupInfo.tsx +121 -260
- package/src/components/StorageGroupInfo/i18n/en.json +1 -9
- package/src/components/TableKeyboardNavigation/TableKeyboardNavigation.tsx +5 -1
- package/src/components/VDisk/VDisk.tsx +31 -34
- package/src/components/VDisk/VDiskWithDonorsStack.tsx +2 -0
- package/src/components/VDisk/getFlagStatusText.ts +19 -0
- package/src/components/VDisk/i18n/en.json +1 -1
- package/src/components/VDiskInfo/getVDiskDetails.tsx +41 -0
- package/src/components/VDiskInfo/i18n/en.json +3 -10
- package/src/components/VDiskPopup/VDiskPopup.scss +3 -10
- package/src/components/VDiskPopup/VDiskPopup.tsx +197 -421
- package/src/components/VDiskPopup/i18n/en.json +6 -22
- package/src/components/VDiskStatus/VDiskReplicationStatus.tsx +77 -0
- package/src/components/VDiskStatus/VDiskStatus.scss +32 -0
- package/src/components/VDiskStatus/VDiskStatus.tsx +38 -0
- package/src/components/VDiskStatus/i18n/en.json +33 -0
- package/src/components/VDiskStatus/i18n/index.ts +7 -0
- package/src/components/VDiskStatus/index.ts +7 -0
- package/src/components/VDiskStatus/statuses.ts +139 -0
- package/src/components/capacityMetricsColumns/i18n/en.json +4 -4
- package/src/containers/Authentication/Authentication.tsx +29 -34
- package/src/containers/Authentication/utils.ts +3 -3
- package/src/containers/Cluster/ClusterDrawerHealthcheck.tsx +6 -0
- package/src/containers/Clusters/ClusterDrawerHealthcheck.tsx +1 -0
- package/src/containers/Header/Header.tsx +11 -3
- package/src/containers/Header/StorageGroupLeftControls.tsx +38 -0
- package/src/containers/Header/i18n/en.json +3 -1
- package/src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.tsx +13 -2
- package/src/containers/Storage/Disks/Disks.tsx +66 -12
- package/src/containers/Storage/PDisk/PDisk.tsx +3 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/columns.tsx +24 -3
- package/src/containers/Storage/StorageExpertModePanel/components/SpaceLegend.scss +14 -82
- package/src/containers/Storage/StorageGroupStateLabel.tsx +22 -0
- package/src/containers/Storage/utils/getStorageGroupStateLabel.ts +49 -0
- package/src/containers/StorageGroupPage/StorageGroupPage.scss +9 -13
- package/src/containers/StorageGroupPage/StorageGroupPage.tsx +53 -25
- package/src/containers/StorageGroupPage/i18n/en.json +3 -1
- package/src/containers/Tenant/Diagnostics/DiagnosticsPages.ts +6 -1
- package/src/containers/Tenant/Diagnostics/Overview/Overview.tsx +22 -2
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolInfo.scss +24 -0
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/ResourcePoolUsage.tsx +53 -0
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/i18n/en.json +4 -1
- package/src/containers/Tenant/Diagnostics/Overview/ResourcePoolInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.tsx +19 -2
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.tsx +11 -10
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.tsx +79 -34
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/en.json +5 -1
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +4 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.tsx +11 -1
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.tsx +11 -1
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.ts +45 -3
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.scss +18 -0
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/StreamingQueryGraph.tsx +79 -0
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/en.json +5 -0
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/StreamingQueryGraph/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/i18n/en.json +1 -0
- package/src/containers/Tenant/Diagnostics/tabsContent.tsx +4 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckDrawer.tsx +5 -2
- package/src/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.tsx +8 -1
- package/src/containers/Tenant/TenantDrawerHealthcheck.tsx +10 -0
- package/src/containers/Tenants/DatabaseDrawerHealthcheck.tsx +10 -0
- package/src/lib.ts +1 -0
- package/src/store/reducers/executeTopQueries/executeTopQueries.ts +46 -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/query/parsers/prepareStreamingQueryPlan.ts +74 -0
- package/src/store/reducers/storage/prepareGroupsDisks.ts +7 -22
- package/src/store/reducers/storage/utils.ts +4 -0
- package/src/store/reducers/streamingQuery/streamingQuery.ts +44 -19
- package/src/store/reducers/tenant/constants.ts +1 -0
- package/src/styles/mixins.scss +22 -0
- package/src/types/api/pdisk.ts +4 -0
- package/src/types/api/schema/columnEntity.ts +2 -1
- package/src/types/api/schema/sysView.ts +60 -37
- package/src/types/api/schema/table.ts +7 -0
- package/src/types/api/vdisk.ts +9 -0
- package/src/types/store/nodesList.ts +7 -7
- package/src/uiFactory/types.ts +9 -2
- package/src/utils/bytesParsers/formatBytes.ts +23 -4
- package/src/utils/disks/constants.ts +5 -0
- package/src/utils/disks/diskInfo/getDiskLocationItems.ts +50 -0
- package/src/utils/disks/diskInfo/i18n/en.json +9 -0
- package/src/utils/disks/diskInfo/i18n/index.ts +5 -0
- package/src/utils/disks/iconCalculators.ts +1 -1
- package/src/utils/disks/prepareDisks.ts +21 -47
- package/src/utils/disks/types.ts +10 -2
- package/src/utils/hooks/useNodeMetadata.ts +21 -0
- package/src/utils/nodes.ts +6 -1
- package/src/utils/query.ts +55 -0
- package/src/utils/schema.ts +22 -5
- package/src/utils/storageMetrics.ts +27 -14
- package/src/utils/timeParsers/formatDuration.ts +22 -1
- package/src/utils/timeParsers/i18n/en.json +5 -1
- package/src/utils/timeParsers/i18n/ru.json +5 -1
|
@@ -7,314 +7,179 @@ import {isNil} from 'lodash';
|
|
|
7
7
|
import {useVDiskPagePath} from '../../routes';
|
|
8
8
|
import {api} from '../../store/reducers/api';
|
|
9
9
|
import {useBlobStorageCapacityMetricsEnabled} from '../../store/reducers/capabilities/hooks';
|
|
10
|
-
import {selectNodesMap} from '../../store/reducers/nodesList';
|
|
11
|
-
import {EFlag} from '../../types/api/enums';
|
|
12
10
|
import type {TVDiskID} from '../../types/api/vdisk';
|
|
13
|
-
import {
|
|
11
|
+
import type {NodeMetadata} from '../../types/store/nodesList';
|
|
12
|
+
import {formatBytes} from '../../utils/bytesParsers';
|
|
14
13
|
import {cn} from '../../utils/cn';
|
|
15
14
|
import {BRAND_BUTTON_CLASS, EMPTY_DATA_PLACEHOLDER} from '../../utils/constants';
|
|
16
|
-
import {
|
|
15
|
+
import {parseVdiskId} from '../../utils/dataFormatters/dataFormatters';
|
|
17
16
|
import {createVDiskDeveloperUILink, useHasDeveloperUi} from '../../utils/developerUI/developerUI';
|
|
18
|
-
import {getStateSeverity} from '../../utils/disks/calculateVDiskSeverity';
|
|
19
|
-
import {
|
|
20
|
-
DISK_COLOR_STATE_TO_NUMERIC_SEVERITY,
|
|
21
|
-
NUMERIC_SEVERITY_TO_LABEL_VIEW,
|
|
22
|
-
VDISK_LABEL_CONFIG,
|
|
23
|
-
} from '../../utils/disks/constants';
|
|
24
17
|
import {isFullVDiskData} from '../../utils/disks/helpers';
|
|
25
18
|
import type {PreparedVDisk, UnavailableDonor} from '../../utils/disks/types';
|
|
26
|
-
import {useTypedDispatch
|
|
27
|
-
import {useDatabaseFromQuery} from '../../utils/hooks/useDatabaseFromQuery';
|
|
19
|
+
import {useTypedDispatch} from '../../utils/hooks';
|
|
28
20
|
import {useIsViewerUser} from '../../utils/hooks/useIsUserAllowedToMakeChanges';
|
|
29
|
-
import {
|
|
21
|
+
import {useNodeMetadata} from '../../utils/hooks/useNodeMetadata';
|
|
22
|
+
import {parseOptionalNonNegativeNumber} from '../../utils/utils';
|
|
23
|
+
import {getVDiskCapacityItems} from '../DiskCapacityInfo/DiskCapacityInfo';
|
|
30
24
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
DiskPopup,
|
|
26
|
+
DiskPopupHeader,
|
|
27
|
+
DiskPopupLocation,
|
|
28
|
+
DiskPopupPanel,
|
|
29
|
+
DiskPopupText,
|
|
30
|
+
} from '../DiskPopup/DiskPopup';
|
|
34
31
|
import {EvictVDiskButton, isAllVdiskParamsDefined} from '../EvictVDiskButton/EvictVDiskButton';
|
|
35
|
-
import {InternalLink} from '../InternalLink';
|
|
36
32
|
import {InternalLinkButton} from '../InternalLinkButton';
|
|
37
33
|
import {LinkWithIcon} from '../LinkWithIcon/LinkWithIcon';
|
|
34
|
+
import {PDiskPopupContent} from '../PDiskPopup/PDiskPopup';
|
|
35
|
+
import {getVDiskIdentityItems, getVDiskLocationItems} from '../VDiskInfo/getVDiskDetails';
|
|
36
|
+
import {vDiskInfoKeyset} from '../VDiskInfo/i18n';
|
|
38
37
|
import {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
YDBDefinitionListItem,
|
|
47
|
-
} from '../YDBDefinitionList/YDBDefinitionList';
|
|
38
|
+
VDiskCompactionRankLabel,
|
|
39
|
+
VDiskDonorLabel,
|
|
40
|
+
VDiskFrontQueuesLabel,
|
|
41
|
+
VDiskReplicationStatus,
|
|
42
|
+
VDiskStateLabel,
|
|
43
|
+
} from '../VDiskStatus';
|
|
44
|
+
import type {YDBDefinitionListItem} from '../YDBDefinitionList/YDBDefinitionList';
|
|
48
45
|
import {YDBDefinitionList} from '../YDBDefinitionList/YDBDefinitionList';
|
|
49
46
|
|
|
50
47
|
import {vDiskPopupKeyset} from './i18n';
|
|
51
48
|
|
|
52
49
|
import './VDiskPopup.scss';
|
|
53
50
|
|
|
54
|
-
const b = cn('vdisk-
|
|
55
|
-
|
|
56
|
-
const prepareUnavailableVDiskData = (data: UnavailableDonor) => {
|
|
57
|
-
const {NodeId, PDiskId, VSlotId, StoragePoolName} = data;
|
|
58
|
-
|
|
59
|
-
const vdiskData: YDBDefinitionListItem[] = [];
|
|
60
|
-
|
|
61
|
-
if (StoragePoolName) {
|
|
62
|
-
vdiskData.push({
|
|
63
|
-
name: vDiskPopupKeyset('label_storage-pool'),
|
|
64
|
-
content: StoragePoolName,
|
|
65
|
-
copyText: StoragePoolName,
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
vdiskData.push(
|
|
70
|
-
{
|
|
71
|
-
name: vDiskPopupKeyset('label_node-id'),
|
|
72
|
-
content: NodeId ?? EMPTY_DATA_PLACEHOLDER,
|
|
73
|
-
copyText: NodeId,
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: vDiskPopupKeyset('label_pdisk-id'),
|
|
77
|
-
content: PDiskId ?? EMPTY_DATA_PLACEHOLDER,
|
|
78
|
-
copyText: PDiskId,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: vDiskPopupKeyset('label_vslot-id'),
|
|
82
|
-
content: VSlotId ?? EMPTY_DATA_PLACEHOLDER,
|
|
83
|
-
copyText: VSlotId,
|
|
84
|
-
},
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
return vdiskData;
|
|
88
|
-
};
|
|
51
|
+
const b = cn('ydb-vdisk-popup');
|
|
89
52
|
|
|
90
|
-
|
|
53
|
+
function buildUnavailableVDiskFooter(
|
|
91
54
|
data: UnavailableDonor,
|
|
92
|
-
withDeveloperUILink
|
|
93
|
-
): React.ReactNode | null
|
|
94
|
-
const {NodeId, PDiskId,
|
|
95
|
-
|
|
96
|
-
if (!withDeveloperUILink || isNil(NodeId) || isNil(PDiskId) || isNil(VSlotId)) {
|
|
55
|
+
withDeveloperUILink: boolean,
|
|
56
|
+
): React.ReactNode | null {
|
|
57
|
+
const {NodeId, PDiskId, VDiskSlotId} = data;
|
|
58
|
+
if (!withDeveloperUILink || isNil(NodeId) || isNil(PDiskId) || isNil(VDiskSlotId)) {
|
|
97
59
|
return null;
|
|
98
60
|
}
|
|
99
|
-
|
|
100
61
|
const vDiskInternalViewerPath = createVDiskDeveloperUILink({
|
|
101
62
|
nodeId: NodeId,
|
|
102
63
|
pDiskId: PDiskId,
|
|
103
|
-
vDiskSlotId:
|
|
64
|
+
vDiskSlotId: VDiskSlotId,
|
|
104
65
|
});
|
|
105
|
-
|
|
106
66
|
return (
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
/>
|
|
114
|
-
</div>
|
|
67
|
+
<LinkWithIcon
|
|
68
|
+
title={vDiskPopupKeyset('action_open-in-developer-ui')}
|
|
69
|
+
url={vDiskInternalViewerPath}
|
|
70
|
+
icon={Wrench}
|
|
71
|
+
hideEndIcon
|
|
72
|
+
/>
|
|
115
73
|
);
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
interface VDiskLinkProps {
|
|
119
|
-
nodeId?: string | number;
|
|
120
|
-
stringifiedId?: string;
|
|
121
|
-
getVDiskLinkFn?: (data: {
|
|
122
|
-
nodeId: string | number | undefined;
|
|
123
|
-
vDiskId: string | undefined;
|
|
124
|
-
}) => string | undefined;
|
|
125
74
|
}
|
|
126
75
|
|
|
127
|
-
|
|
128
|
-
if (isNil(stringifiedId)) {
|
|
129
|
-
return <span>{EMPTY_DATA_PLACEHOLDER}</span>;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const path = getVDiskLinkFn?.({nodeId, vDiskId: stringifiedId});
|
|
133
|
-
|
|
134
|
-
return path ? (
|
|
135
|
-
<InternalLink to={path}>
|
|
136
|
-
{vDiskPopupKeyset('label_vdisk')} {stringifiedId}
|
|
137
|
-
</InternalLink>
|
|
138
|
-
) : (
|
|
139
|
-
<span>{stringifiedId}</span>
|
|
140
|
-
);
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
// eslint-disable-next-line complexity
|
|
144
|
-
export const prepareVDiskData = (
|
|
76
|
+
function getRuntimeItems(
|
|
145
77
|
data: PreparedVDisk,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
VDiskState,
|
|
156
|
-
SatisfactionRank,
|
|
157
|
-
DiskSpace,
|
|
158
|
-
FrontQueues,
|
|
159
|
-
Replicated,
|
|
160
|
-
ReplicationProgress,
|
|
161
|
-
ReplicationSecondsRemaining,
|
|
162
|
-
UnsyncedVDisks,
|
|
163
|
-
AllocatedSize,
|
|
164
|
-
AvailableSize,
|
|
165
|
-
ReadThroughput,
|
|
166
|
-
WriteThroughput,
|
|
167
|
-
StoragePoolName,
|
|
168
|
-
Donors,
|
|
169
|
-
DonorMode,
|
|
170
|
-
Recipient,
|
|
171
|
-
} = data;
|
|
172
|
-
|
|
173
|
-
const vdiskData: YDBDefinitionListItem[] = [];
|
|
174
|
-
|
|
175
|
-
if (StoragePoolName) {
|
|
176
|
-
vdiskData.push({
|
|
177
|
-
name: vDiskPopupKeyset('label_storage-pool'),
|
|
178
|
-
content: StoragePoolName,
|
|
179
|
-
copyText: StoragePoolName,
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
// Show donors if they exist
|
|
184
|
-
if (Donors?.length) {
|
|
185
|
-
vdiskData.push({
|
|
186
|
-
name: vDiskPopupKeyset('label_donor'),
|
|
78
|
+
withUnreadableBlobs: boolean,
|
|
79
|
+
): YDBDefinitionListItem[] {
|
|
80
|
+
const items: YDBDefinitionListItem[] = [
|
|
81
|
+
{
|
|
82
|
+
name: vDiskPopupKeyset('label_front-queues'),
|
|
83
|
+
content: <VDiskFrontQueuesLabel flag={data.FrontQueues} />,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: vDiskPopupKeyset('label_compaction'),
|
|
187
87
|
content: (
|
|
188
|
-
<Flex
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
88
|
+
<Flex
|
|
89
|
+
direction="column"
|
|
90
|
+
gap={1}
|
|
91
|
+
alignItems="flex-start"
|
|
92
|
+
className={b('compaction')}
|
|
93
|
+
>
|
|
94
|
+
<VDiskCompactionRankLabel
|
|
95
|
+
flag={data.SatisfactionRank?.FreshRank?.Flag}
|
|
96
|
+
rank="fresh"
|
|
97
|
+
/>
|
|
98
|
+
<VDiskCompactionRankLabel
|
|
99
|
+
flag={data.SatisfactionRank?.LevelRank?.Flag}
|
|
100
|
+
rank="level"
|
|
101
|
+
/>
|
|
197
102
|
</Flex>
|
|
198
103
|
),
|
|
104
|
+
},
|
|
105
|
+
];
|
|
106
|
+
for (const [name, value] of [
|
|
107
|
+
[vDiskPopupKeyset('label_read'), data.ReadThroughput],
|
|
108
|
+
[vDiskPopupKeyset('label_write'), data.WriteThroughput],
|
|
109
|
+
] as const) {
|
|
110
|
+
const throughput = parseOptionalNonNegativeNumber(value);
|
|
111
|
+
items.push({
|
|
112
|
+
name,
|
|
113
|
+
content:
|
|
114
|
+
throughput === undefined
|
|
115
|
+
? EMPTY_DATA_PLACEHOLDER
|
|
116
|
+
: formatBytes({
|
|
117
|
+
value: throughput,
|
|
118
|
+
size: 'mb',
|
|
119
|
+
fixedDecimalPlaces: 2,
|
|
120
|
+
withSpeedLabel: true,
|
|
121
|
+
}),
|
|
199
122
|
});
|
|
200
123
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
nodeId={Recipient.NodeId}
|
|
208
|
-
stringifiedId={Recipient.StringifiedId}
|
|
209
|
-
getVDiskLinkFn={getVDiskLinkFn}
|
|
210
|
-
/>
|
|
211
|
-
),
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
if (SatisfactionRank && SatisfactionRank.FreshRank?.Flag !== EFlag.Green) {
|
|
216
|
-
vdiskData.push({
|
|
217
|
-
name: vDiskPopupKeyset('label_fresh'),
|
|
218
|
-
content: SatisfactionRank.FreshRank?.Flag,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
if (SatisfactionRank && SatisfactionRank.LevelRank?.Flag !== EFlag.Green) {
|
|
223
|
-
vdiskData.push({
|
|
224
|
-
name: vDiskPopupKeyset('label_level'),
|
|
225
|
-
content: SatisfactionRank.LevelRank?.Flag,
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (SatisfactionRank && SatisfactionRank.FreshRank?.RankPercent) {
|
|
230
|
-
vdiskData.push({
|
|
231
|
-
name: vDiskPopupKeyset('label_fresh'),
|
|
232
|
-
content: SatisfactionRank.FreshRank.RankPercent,
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (SatisfactionRank && SatisfactionRank.LevelRank?.RankPercent) {
|
|
237
|
-
vdiskData.push({
|
|
238
|
-
name: vDiskPopupKeyset('label_level'),
|
|
239
|
-
content: SatisfactionRank.LevelRank.RankPercent,
|
|
124
|
+
if (withUnreadableBlobs) {
|
|
125
|
+
items.push({
|
|
126
|
+
name: vDiskInfoKeyset('has-unreadable-blobs'),
|
|
127
|
+
content: isNil(data.HasUnreadableBlobs)
|
|
128
|
+
? EMPTY_DATA_PLACEHOLDER
|
|
129
|
+
: vDiskInfoKeyset(data.HasUnreadableBlobs ? 'yes' : 'no'),
|
|
240
130
|
});
|
|
241
131
|
}
|
|
132
|
+
return items;
|
|
133
|
+
}
|
|
242
134
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
name: vDiskPopupKeyset('
|
|
250
|
-
content: <
|
|
251
|
-
|
|
252
|
-
|
|
135
|
+
function getStorageItems(
|
|
136
|
+
data: PreparedVDisk,
|
|
137
|
+
capacityMetricsEnabled: boolean,
|
|
138
|
+
): YDBDefinitionListItem[] {
|
|
139
|
+
const items: YDBDefinitionListItem[] = [
|
|
140
|
+
{
|
|
141
|
+
name: vDiskPopupKeyset('label_storage-pool'),
|
|
142
|
+
content: <DiskPopupText value={data.StoragePoolName} />,
|
|
143
|
+
copyText: data.StoragePoolName,
|
|
144
|
+
},
|
|
145
|
+
];
|
|
146
|
+
return isFullVDiskData(data)
|
|
147
|
+
? [...items, ...getVDiskCapacityItems(data, {capacityMetricsEnabled})]
|
|
148
|
+
: items;
|
|
149
|
+
}
|
|
253
150
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
});
|
|
151
|
+
function getLocationItems(data: PreparedVDisk, nodeData: NodeMetadata, withPDiskPanel: boolean) {
|
|
152
|
+
const items = getVDiskLocationItems(data, nodeData);
|
|
153
|
+
if (!withPDiskPanel) {
|
|
154
|
+
return items;
|
|
259
155
|
}
|
|
156
|
+
return items.filter(({id}) => id !== 'pdisk-id' && id !== 'pdisk-path');
|
|
157
|
+
}
|
|
260
158
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
159
|
+
function DiskHeader({
|
|
160
|
+
data = {},
|
|
161
|
+
donorMode,
|
|
162
|
+
withPDiskType = true,
|
|
163
|
+
}: {
|
|
164
|
+
data?: PreparedVDisk;
|
|
165
|
+
donorMode?: boolean;
|
|
166
|
+
withPDiskType?: boolean;
|
|
167
|
+
}) {
|
|
168
|
+
return (
|
|
169
|
+
<DiskPopupHeader
|
|
170
|
+
title={vDiskPopupKeyset('label_vdisk')}
|
|
171
|
+
id={data.StringifiedId}
|
|
172
|
+
type={withPDiskType ? (data.PDiskType ?? data.PDisk?.Type) : undefined}
|
|
173
|
+
statuses={
|
|
174
|
+
<React.Fragment>
|
|
175
|
+
<VDiskStateLabel state={data.VDiskState} size="xs" />
|
|
176
|
+
<VDiskReplicationStatus data={data} size="xs" />
|
|
177
|
+
<VDiskDonorLabel donorMode={donorMode} size="xs" />
|
|
178
|
+
</React.Fragment>
|
|
280
179
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
if (UnsyncedVDisks) {
|
|
285
|
-
vdiskData.push({name: vDiskPopupKeyset('label_unsync-vdisks'), content: UnsyncedVDisks});
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
if (!capacityMetricsEnabled && Number(AllocatedSize)) {
|
|
289
|
-
vdiskData.push({
|
|
290
|
-
name: vDiskPopupKeyset('label_allocated'),
|
|
291
|
-
content: bytesToGB(AllocatedSize),
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
if (!capacityMetricsEnabled && Number(AvailableSize)) {
|
|
296
|
-
vdiskData.push({
|
|
297
|
-
name: vDiskPopupKeyset('label_available'),
|
|
298
|
-
content: bytesToGB(AvailableSize),
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
if (Number(ReadThroughput)) {
|
|
303
|
-
vdiskData.push({
|
|
304
|
-
name: vDiskPopupKeyset('label_read'),
|
|
305
|
-
content: bytesToSpeed(ReadThroughput),
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
if (Number(WriteThroughput)) {
|
|
310
|
-
vdiskData.push({
|
|
311
|
-
name: vDiskPopupKeyset('label_write'),
|
|
312
|
-
content: bytesToSpeed(WriteThroughput),
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
return vdiskData;
|
|
317
|
-
};
|
|
180
|
+
/>
|
|
181
|
+
);
|
|
182
|
+
}
|
|
318
183
|
|
|
319
184
|
/**
|
|
320
185
|
* Resolve VDiskId from PreparedVDisk data.
|
|
@@ -329,44 +194,32 @@ const resolveVDiskId = (data: PreparedVDisk): Required<TVDiskID> | undefined =>
|
|
|
329
194
|
return isAllVdiskParamsDefined(parsed) ? parsed : undefined;
|
|
330
195
|
};
|
|
331
196
|
|
|
332
|
-
|
|
197
|
+
function buildVDiskFooter(
|
|
333
198
|
data: PreparedVDisk,
|
|
334
|
-
withDeveloperUILink
|
|
335
|
-
getVDiskLinkFn
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
onSuccess?: () => void,
|
|
340
|
-
): React.ReactNode | null => {
|
|
199
|
+
withDeveloperUILink: boolean,
|
|
200
|
+
getVDiskLinkFn: ReturnType<typeof useVDiskPagePath>,
|
|
201
|
+
onSuccess: VoidFunction,
|
|
202
|
+
withActions: boolean,
|
|
203
|
+
): React.ReactNode | null {
|
|
341
204
|
const {NodeId, PDiskId, VDiskSlotId, StringifiedId, DonorMode} = data;
|
|
342
|
-
|
|
343
205
|
const vDiskInternalViewerPath =
|
|
344
|
-
withDeveloperUILink && !isNil(
|
|
206
|
+
withDeveloperUILink && !isNil(NodeId) && !isNil(PDiskId) && !isNil(VDiskSlotId)
|
|
345
207
|
? createVDiskDeveloperUILink({
|
|
346
208
|
nodeId: NodeId,
|
|
347
209
|
pDiskId: PDiskId,
|
|
348
210
|
vDiskSlotId: VDiskSlotId,
|
|
349
211
|
})
|
|
350
212
|
: undefined;
|
|
351
|
-
|
|
352
213
|
const vDiskPagePath =
|
|
353
|
-
withDeveloperUILink && !isNil(NodeId) &&
|
|
354
|
-
? getVDiskLinkFn
|
|
355
|
-
nodeId: NodeId,
|
|
356
|
-
vDiskId: StringifiedId,
|
|
357
|
-
})
|
|
214
|
+
withActions && withDeveloperUILink && !isNil(NodeId) && StringifiedId
|
|
215
|
+
? getVDiskLinkFn({nodeId: NodeId, vDiskId: StringifiedId})
|
|
358
216
|
: undefined;
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
const resolvedVDiskId = resolveVDiskId(data);
|
|
363
|
-
|
|
364
|
-
if (!hasLinks && !resolvedVDiskId) {
|
|
217
|
+
const resolvedVDiskId = withActions ? resolveVDiskId(data) : undefined;
|
|
218
|
+
if (!vDiskInternalViewerPath && !vDiskPagePath && !resolvedVDiskId) {
|
|
365
219
|
return null;
|
|
366
220
|
}
|
|
367
|
-
|
|
368
221
|
return (
|
|
369
|
-
<
|
|
222
|
+
<React.Fragment>
|
|
370
223
|
{vDiskInternalViewerPath && (
|
|
371
224
|
<LinkWithIcon
|
|
372
225
|
title={vDiskPopupKeyset('action_open-in-developer-ui')}
|
|
@@ -376,7 +229,7 @@ const buildVDiskFooter = (
|
|
|
376
229
|
/>
|
|
377
230
|
)}
|
|
378
231
|
{(vDiskPagePath || resolvedVDiskId) && (
|
|
379
|
-
<Flex wrap="wrap"
|
|
232
|
+
<Flex gap={2} wrap="wrap" className={b('actions')}>
|
|
380
233
|
{vDiskPagePath && (
|
|
381
234
|
<InternalLinkButton
|
|
382
235
|
href={vDiskPagePath}
|
|
@@ -396,154 +249,77 @@ const buildVDiskFooter = (
|
|
|
396
249
|
)}
|
|
397
250
|
</Flex>
|
|
398
251
|
)}
|
|
399
|
-
</
|
|
252
|
+
</React.Fragment>
|
|
400
253
|
);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
const prepareHeaderLabels = (data: PreparedVDisk): YDBDefinitionListHeaderLabel[] => {
|
|
404
|
-
const labels: YDBDefinitionListHeaderLabel[] = [];
|
|
405
|
-
|
|
406
|
-
const {VDiskState, DonorMode, Severity} = data;
|
|
407
|
-
|
|
408
|
-
const isReplicatingColor = Severity === DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Blue;
|
|
409
|
-
|
|
410
|
-
if (DonorMode) {
|
|
411
|
-
const donorConfig = VDISK_LABEL_CONFIG.donor;
|
|
412
|
-
|
|
413
|
-
labels.push({
|
|
414
|
-
id: 'donor',
|
|
415
|
-
value: vDiskPopupKeyset('label_donor'),
|
|
416
|
-
theme: donorConfig.theme,
|
|
417
|
-
icon: donorConfig.icon,
|
|
418
|
-
});
|
|
419
|
-
} else if (isReplicatingColor) {
|
|
420
|
-
const replicaConfig = VDISK_LABEL_CONFIG.replica;
|
|
421
|
-
|
|
422
|
-
labels.push({
|
|
423
|
-
id: 'replication',
|
|
424
|
-
value: vDiskPopupKeyset('label_replication'),
|
|
425
|
-
theme: replicaConfig.theme,
|
|
426
|
-
icon: replicaConfig.icon,
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
const severity = getStateSeverity(VDiskState);
|
|
431
|
-
|
|
432
|
-
const {theme: stateTheme, icon: stateIcon} = NUMERIC_SEVERITY_TO_LABEL_VIEW[severity];
|
|
433
|
-
|
|
434
|
-
const value = VDiskState ?? vDiskPopupKeyset('context_not-available');
|
|
435
|
-
|
|
436
|
-
labels.push({
|
|
437
|
-
id: 'state',
|
|
438
|
-
value,
|
|
439
|
-
theme: stateTheme,
|
|
440
|
-
icon: stateIcon,
|
|
441
|
-
});
|
|
442
|
-
|
|
443
|
-
return labels;
|
|
444
|
-
};
|
|
254
|
+
}
|
|
445
255
|
|
|
446
256
|
interface VDiskPopupProps {
|
|
447
|
-
data: PreparedVDisk
|
|
257
|
+
data: PreparedVDisk;
|
|
258
|
+
nodeData?: NodeMetadata;
|
|
448
259
|
onClose?: VoidFunction;
|
|
260
|
+
view?: 'default' | 'space-distribution';
|
|
449
261
|
}
|
|
450
262
|
|
|
451
|
-
export
|
|
263
|
+
export function VDiskPopup({
|
|
264
|
+
data,
|
|
265
|
+
nodeData: parentNodeData,
|
|
266
|
+
onClose,
|
|
267
|
+
view = 'default',
|
|
268
|
+
}: VDiskPopupProps) {
|
|
452
269
|
const dispatch = useTypedDispatch();
|
|
453
|
-
const
|
|
270
|
+
const nodeData = useNodeMetadata(data.NodeId, parentNodeData);
|
|
454
271
|
const isViewerUser = useIsViewerUser();
|
|
455
272
|
const capacityMetricsEnabled = useBlobStorageCapacityMetricsEnabled();
|
|
456
|
-
|
|
457
273
|
const hasDeveloperUi = useHasDeveloperUi();
|
|
458
274
|
const getVDiskLink = useVDiskPagePath();
|
|
459
|
-
|
|
460
|
-
const
|
|
461
|
-
|
|
462
|
-
const vdiskInfo = React.useMemo(
|
|
463
|
-
() =>
|
|
464
|
-
isFullData
|
|
465
|
-
? prepareVDiskData(data, getVDiskLink, capacityMetricsEnabled)
|
|
466
|
-
: prepareUnavailableVDiskData(data),
|
|
467
|
-
[data, isFullData, getVDiskLink, capacityMetricsEnabled],
|
|
468
|
-
);
|
|
469
|
-
|
|
470
|
-
const handleAfterEvictVDisk = React.useCallback(() => {
|
|
471
|
-
// Use StringifiedId directly — it matches the cache key used by getVDiskData
|
|
472
|
-
const vDiskId = isFullData ? data.StringifiedId : undefined;
|
|
275
|
+
const fullData = isFullVDiskData(data) ? data : undefined;
|
|
276
|
+
const vdiskId = fullData?.StringifiedId;
|
|
277
|
+
const handleAfterEvictVDisk = () => {
|
|
473
278
|
dispatch(
|
|
474
279
|
api.util.invalidateTags([
|
|
475
280
|
'TableData',
|
|
476
281
|
'StorageData',
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
id: vDiskId,
|
|
480
|
-
},
|
|
282
|
+
'PDiskData',
|
|
283
|
+
{type: 'VDiskData', id: vdiskId},
|
|
481
284
|
]),
|
|
482
285
|
);
|
|
483
286
|
onClose?.();
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
const
|
|
500
|
-
const nodeData = isNil(data.NodeId) ? undefined : nodesMap?.get(data.NodeId);
|
|
501
|
-
const pdiskInfo = React.useMemo(
|
|
502
|
-
() =>
|
|
503
|
-
isFullData &&
|
|
504
|
-
data.PDisk &&
|
|
505
|
-
preparePDiskData(data.PDisk, nodeData, capacityMetricsEnabled),
|
|
506
|
-
[data, nodeData, isFullData, capacityMetricsEnabled],
|
|
507
|
-
);
|
|
508
|
-
const pdiskHeaderLabels = React.useMemo(
|
|
509
|
-
() => (isFullData && data.PDisk ? preparePDiskHeaderLabels(data.PDisk) : []),
|
|
510
|
-
[data, isFullData],
|
|
511
|
-
);
|
|
512
|
-
|
|
513
|
-
const pdiskFooter = React.useMemo(
|
|
514
|
-
() => (isFullData && data.PDisk ? buildPDiskFooter(data.PDisk, hasDeveloperUi) : null),
|
|
515
|
-
[data, isFullData, hasDeveloperUi],
|
|
516
|
-
);
|
|
517
|
-
|
|
518
|
-
const vdiskId = isFullData ? data.StringifiedId : undefined;
|
|
519
|
-
const pdiskId = isFullData ? data.PDisk?.StringifiedId : undefined;
|
|
520
|
-
const nameMaxWidth = isFullData && capacityMetricsEnabled ? 220 : 100;
|
|
521
|
-
|
|
287
|
+
};
|
|
288
|
+
const isSpaceDistribution = view === 'space-distribution';
|
|
289
|
+
const runtimeItems = fullData ? getRuntimeItems(fullData, isSpaceDistribution) : [];
|
|
290
|
+
const identityItems = isSpaceDistribution ? getVDiskIdentityItems(fullData) : [];
|
|
291
|
+
const storageItems = getStorageItems(data, capacityMetricsEnabled);
|
|
292
|
+
const pdisk = !isSpaceDistribution && isViewerUser ? fullData?.PDisk : undefined;
|
|
293
|
+
const vdiskFooter = isFullVDiskData(data)
|
|
294
|
+
? buildVDiskFooter(
|
|
295
|
+
data,
|
|
296
|
+
hasDeveloperUi,
|
|
297
|
+
getVDiskLink,
|
|
298
|
+
handleAfterEvictVDisk,
|
|
299
|
+
!isSpaceDistribution,
|
|
300
|
+
)
|
|
301
|
+
: buildUnavailableVDiskFooter(data, hasDeveloperUi);
|
|
302
|
+
const locationItems = getLocationItems(data, nodeData, Boolean(pdisk));
|
|
522
303
|
return (
|
|
523
|
-
<
|
|
524
|
-
<
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
<
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
nameMaxWidth={nameMaxWidth}
|
|
544
|
-
/>
|
|
545
|
-
</React.Fragment>
|
|
546
|
-
)}
|
|
547
|
-
</div>
|
|
304
|
+
<DiskPopup combined={Boolean(pdisk)} className={b(null, 'vdisk-storage-popup')}>
|
|
305
|
+
{pdisk && <PDiskPopupContent data={pdisk} nodeData={nodeData} />}
|
|
306
|
+
<DiskPopupPanel footer={vdiskFooter}>
|
|
307
|
+
<DiskHeader data={fullData} donorMode={data.DonorMode} withPDiskType={!pdisk} />
|
|
308
|
+
<DiskPopupLocation items={locationItems} />
|
|
309
|
+
{runtimeItems.length > 0 && (
|
|
310
|
+
<YDBDefinitionList items={runtimeItems} nameMaxWidth={150} />
|
|
311
|
+
)}
|
|
312
|
+
{runtimeItems.length > 0 && storageItems.length > 0 && <Divider />}
|
|
313
|
+
{storageItems.length > 0 && (
|
|
314
|
+
<YDBDefinitionList items={storageItems} nameMaxWidth={150} />
|
|
315
|
+
)}
|
|
316
|
+
{identityItems.length > 0 && (
|
|
317
|
+
<React.Fragment>
|
|
318
|
+
<Divider />
|
|
319
|
+
<YDBDefinitionList items={identityItems} nameMaxWidth={150} />
|
|
320
|
+
</React.Fragment>
|
|
321
|
+
)}
|
|
322
|
+
</DiskPopupPanel>
|
|
323
|
+
</DiskPopup>
|
|
548
324
|
);
|
|
549
|
-
}
|
|
325
|
+
}
|