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,6 +1,20 @@
|
|
|
1
|
+
@use '../../../../styles/mixins';
|
|
2
|
+
|
|
1
3
|
.ydb-storage-expert-mode-panel {
|
|
2
4
|
--label-checkbox-size: 14px;
|
|
3
5
|
|
|
6
|
+
@each $color in 'green', 'cyan', 'light-yellow', 'yellow', 'light-orange', 'pre-orange',
|
|
7
|
+
'orange', 'red', 'black'
|
|
8
|
+
{
|
|
9
|
+
&__label_#{$color} {
|
|
10
|
+
@include mixins.capacity-alert-label-colors($color);
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
background-color: var(--ydb-capacity-alert-label-background) !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
4
18
|
&__label {
|
|
5
19
|
border-radius: var(--g-border-radius-s);
|
|
6
20
|
.g-label__addon_side_start {
|
|
@@ -30,86 +44,4 @@
|
|
|
30
44
|
border: none;
|
|
31
45
|
background-color: var(--g-color-base-generic-medium);
|
|
32
46
|
}
|
|
33
|
-
|
|
34
|
-
// Custom color labels
|
|
35
|
-
&__label_green {
|
|
36
|
-
color: var(--g-color-text-positive-heavy);
|
|
37
|
-
background-color: var(--g-color-base-positive-light);
|
|
38
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
background-color: var(--g-color-base-positive-light) !important;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&__label_cyan {
|
|
45
|
-
color: var(--ydb-space-cyan-text);
|
|
46
|
-
background-color: var(--ydb-space-cyan-bg);
|
|
47
|
-
|
|
48
|
-
&:hover {
|
|
49
|
-
background-color: var(--ydb-space-cyan-bg) !important;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__label_light-yellow {
|
|
54
|
-
color: var(--ydb-space-light-yellow-text);
|
|
55
|
-
background-color: var(--ydb-space-light-yellow-bg);
|
|
56
|
-
|
|
57
|
-
&:hover {
|
|
58
|
-
background-color: var(--ydb-space-light-yellow-bg) !important;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&__label_yellow {
|
|
63
|
-
color: var(--g-color-text-warning-heavy);
|
|
64
|
-
background-color: var(--g-color-base-warning-light);
|
|
65
|
-
|
|
66
|
-
&:hover {
|
|
67
|
-
background-color: var(--g-color-base-warning-light) !important;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__label_light-orange {
|
|
72
|
-
color: var(--ydb-space-light-orange-text);
|
|
73
|
-
background-color: var(--ydb-space-light-orange-bg);
|
|
74
|
-
|
|
75
|
-
&:hover {
|
|
76
|
-
background-color: var(--ydb-space-light-orange-bg) !important;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&__label_pre-orange {
|
|
81
|
-
color: var(--ydb-space-pre-orange-text);
|
|
82
|
-
background-color: var(--ydb-space-pre-orange-bg);
|
|
83
|
-
|
|
84
|
-
&:hover {
|
|
85
|
-
background-color: var(--ydb-space-pre-orange-bg) !important;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
&__label_orange {
|
|
90
|
-
color: var(--ydb-space-orange-text);
|
|
91
|
-
background-color: var(--ydb-space-orange-bg);
|
|
92
|
-
|
|
93
|
-
&:hover {
|
|
94
|
-
background-color: var(--ydb-space-orange-bg) !important;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&__label_red {
|
|
99
|
-
color: var(--g-color-base-danger-heavy);
|
|
100
|
-
background-color: var(--g-color-base-danger-light);
|
|
101
|
-
|
|
102
|
-
&:hover {
|
|
103
|
-
background-color: var(--g-color-base-danger-light) !important;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&__label_black {
|
|
108
|
-
color: var(--g-color-text-primary);
|
|
109
|
-
background-color: var(--g-color-text-dark-hint);
|
|
110
|
-
|
|
111
|
-
&:hover {
|
|
112
|
-
background-color: var(--g-color-text-dark-hint) !important;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
47
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {Check} from '@gravity-ui/icons';
|
|
2
|
+
import type {LabelProps} from '@gravity-ui/uikit';
|
|
3
|
+
|
|
4
|
+
import {DiskStatusLabel} from '../../components/DiskStatus/DiskStatus';
|
|
5
|
+
|
|
6
|
+
import {getStorageGroupStateLabel} from './utils/getStorageGroupStateLabel';
|
|
7
|
+
|
|
8
|
+
export function StorageGroupStateLabel({
|
|
9
|
+
state,
|
|
10
|
+
size = 's',
|
|
11
|
+
}: {state?: string} & Pick<LabelProps, 'size'>) {
|
|
12
|
+
const label = getStorageGroupStateLabel(state);
|
|
13
|
+
|
|
14
|
+
return label ? (
|
|
15
|
+
<DiskStatusLabel
|
|
16
|
+
{...label}
|
|
17
|
+
size={size}
|
|
18
|
+
iconSize={size === 'xs' ? 12 : 14}
|
|
19
|
+
icon={label.theme === 'success' ? Check : undefined}
|
|
20
|
+
/>
|
|
21
|
+
) : null;
|
|
22
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type {TitledDiskStatusLabelData} from '../../../components/DiskStatus/DiskStatus';
|
|
2
|
+
import {
|
|
3
|
+
DATA_SEVERITY,
|
|
4
|
+
NUMERIC_SEVERITY_TO_LABEL_VIEW,
|
|
5
|
+
SOLID_RED_SEVERITY,
|
|
6
|
+
} from '../../../utils/disks/constants';
|
|
7
|
+
import type {DisplaySeverity} from '../../../utils/disks/types';
|
|
8
|
+
|
|
9
|
+
const stateSeverities = new Map<string, DisplaySeverity>([
|
|
10
|
+
['ok', DATA_SEVERITY.GREEN],
|
|
11
|
+
['replicating', DATA_SEVERITY.BLUE],
|
|
12
|
+
['starting', DATA_SEVERITY.YELLOW],
|
|
13
|
+
['degraded', DATA_SEVERITY.YELLOW],
|
|
14
|
+
['dead', SOLID_RED_SEVERITY],
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
export function getStorageGroupStateLabel(
|
|
18
|
+
state?: string | null,
|
|
19
|
+
): TitledDiskStatusLabelData | undefined {
|
|
20
|
+
const normalizedState = state?.trim();
|
|
21
|
+
|
|
22
|
+
if (!normalizedState) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const match = normalizedState.match(/^([^:]+)(?::\s*(.+))?$/);
|
|
27
|
+
const status = (match?.[1] ?? normalizedState).trim();
|
|
28
|
+
const value = match?.[2]?.trim();
|
|
29
|
+
let severity = stateSeverities.get(status) ?? DATA_SEVERITY.GREY;
|
|
30
|
+
|
|
31
|
+
if (status === 'degraded') {
|
|
32
|
+
const count = value?.split('(', 1)[0].trim();
|
|
33
|
+
|
|
34
|
+
if (count === '2') {
|
|
35
|
+
severity = DATA_SEVERITY.RED;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const labelView = NUMERIC_SEVERITY_TO_LABEL_VIEW[severity];
|
|
40
|
+
const title = status[0].toUpperCase() + status.slice(1);
|
|
41
|
+
const formattedValue = value?.replace(/\s*\(/g, ' (');
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
title,
|
|
45
|
+
value: formattedValue,
|
|
46
|
+
theme: labelView.theme,
|
|
47
|
+
dangerHeavy: Boolean(labelView.dangerHeavy),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@use '../../styles/mixins.scss';
|
|
2
|
-
|
|
3
1
|
.ydb-storage-group-page {
|
|
4
2
|
position: relative;
|
|
5
3
|
|
|
@@ -8,9 +6,7 @@
|
|
|
8
6
|
height: 100%;
|
|
9
7
|
padding: 0 20px;
|
|
10
8
|
|
|
11
|
-
&
|
|
12
|
-
&__title,
|
|
13
|
-
&__info,
|
|
9
|
+
&__summary,
|
|
14
10
|
&__storage-title {
|
|
15
11
|
position: sticky;
|
|
16
12
|
left: 0;
|
|
@@ -18,20 +14,30 @@
|
|
|
18
14
|
margin-bottom: 20px;
|
|
19
15
|
}
|
|
20
16
|
|
|
17
|
+
&__summary {
|
|
18
|
+
margin-top: var(--g-spacing-4);
|
|
19
|
+
margin-bottom: var(--g-spacing-6);
|
|
20
|
+
}
|
|
21
|
+
|
|
21
22
|
&__meta {
|
|
22
|
-
margin-
|
|
23
|
+
margin-bottom: var(--g-spacing-4);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
&__title {
|
|
26
|
-
margin-bottom:
|
|
27
|
+
margin-bottom: var(--g-spacing-4);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
&
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
&__title-content {
|
|
31
|
+
flex: 1;
|
|
32
|
+
|
|
33
|
+
min-width: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__refresh-control {
|
|
37
|
+
flex-shrink: 0;
|
|
32
38
|
}
|
|
33
39
|
|
|
34
|
-
&
|
|
35
|
-
margin
|
|
40
|
+
&__storage-title {
|
|
41
|
+
margin: 0;
|
|
36
42
|
}
|
|
37
43
|
}
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import {ArrowLeft} from '@gravity-ui/icons';
|
|
4
|
+
import {Button, Flex, Icon, Text} from '@gravity-ui/uikit';
|
|
3
5
|
import {skipToken} from '@reduxjs/toolkit/query';
|
|
4
6
|
import {Helmet} from 'react-helmet-async';
|
|
7
|
+
import {useHistory} from 'react-router-dom';
|
|
5
8
|
import {StringParam, useQueryParams} from 'use-query-params';
|
|
6
9
|
|
|
7
|
-
import {
|
|
10
|
+
import {AutoRefreshControl} from '../../components/AutoRefreshControl/AutoRefreshControl';
|
|
11
|
+
import {CopyableValue} from '../../components/CopyableValue/CopyableValue';
|
|
8
12
|
import {ResponseError} from '../../components/Errors/ResponseError';
|
|
9
13
|
import {InfoViewerSkeleton} from '../../components/InfoViewerSkeleton/InfoViewerSkeleton';
|
|
10
|
-
import {PageMetaWithAutorefresh} from '../../components/PageMeta/PageMeta';
|
|
11
14
|
import {StorageGroupInfo} from '../../components/StorageGroupInfo/StorageGroupInfo';
|
|
12
15
|
import {useCapabilitiesLoaded} from '../../store/reducers/capabilities/hooks';
|
|
13
16
|
import {setHeaderBreadcrumbs} from '../../store/reducers/header/header';
|
|
14
17
|
import {storageApi} from '../../store/reducers/storage/storage';
|
|
15
|
-
import {EFlag} from '../../types/api/enums';
|
|
16
18
|
import {valueIsDefined} from '../../utils';
|
|
17
19
|
import {cn} from '../../utils/cn';
|
|
20
|
+
import {EMPTY_DATA_PLACEHOLDER} from '../../utils/constants';
|
|
18
21
|
import {useAutoRefreshInterval, useTypedDispatch} from '../../utils/hooks';
|
|
19
22
|
import {useDatabaseFromQuery} from '../../utils/hooks/useDatabaseFromQuery';
|
|
20
23
|
import {useAppTitle} from '../App/AppTitleContext';
|
|
21
24
|
import {PaginatedStorage} from '../Storage/PaginatedStorage';
|
|
25
|
+
import {StorageGroupStateLabel} from '../Storage/StorageGroupStateLabel';
|
|
22
26
|
|
|
23
27
|
import {storageGroupPageKeyset} from './i18n';
|
|
24
28
|
|
|
@@ -28,14 +32,13 @@ const storageGroupPageCn = cn('ydb-storage-group-page');
|
|
|
28
32
|
|
|
29
33
|
export function StorageGroupPage() {
|
|
30
34
|
const dispatch = useTypedDispatch();
|
|
35
|
+
const history = useHistory();
|
|
31
36
|
const database = useDatabaseFromQuery();
|
|
32
37
|
const containerRef = React.useRef<HTMLDivElement>(null);
|
|
33
38
|
|
|
34
39
|
const [{groupId}] = useQueryParams({groupId: StringParam});
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
dispatch(setHeaderBreadcrumbs('storageGroup', {groupId, database}));
|
|
38
|
-
}, [dispatch, groupId, database]);
|
|
40
|
+
const showBackButton = Boolean(groupId) && history.length > 1;
|
|
41
|
+
const showRefreshInTitle = Boolean(groupId) && !showBackButton;
|
|
39
42
|
|
|
40
43
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
|
41
44
|
const capabilitiesLoaded = useCapabilitiesLoaded();
|
|
@@ -49,7 +52,12 @@ export function StorageGroupPage() {
|
|
|
49
52
|
},
|
|
50
53
|
);
|
|
51
54
|
|
|
52
|
-
const storageGroupData = groupQuery.
|
|
55
|
+
const storageGroupData = groupQuery.currentData?.groups?.[0];
|
|
56
|
+
const state = storageGroupData?.State;
|
|
57
|
+
|
|
58
|
+
React.useEffect(() => {
|
|
59
|
+
dispatch(setHeaderBreadcrumbs('storageGroup', {groupId: groupId ?? undefined, database}));
|
|
60
|
+
}, [dispatch, groupId, database]);
|
|
53
61
|
|
|
54
62
|
const loading = groupQuery.isFetching && storageGroupData === undefined;
|
|
55
63
|
const {appTitle} = useAppTitle();
|
|
@@ -68,29 +76,56 @@ export function StorageGroupPage() {
|
|
|
68
76
|
};
|
|
69
77
|
|
|
70
78
|
const renderPageMeta = () => {
|
|
71
|
-
if (!
|
|
79
|
+
if (!showBackButton) {
|
|
72
80
|
return null;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
|
-
const items = [`${storageGroupPageKeyset('pool-name')}: ${storageGroupData?.PoolName}`];
|
|
76
|
-
|
|
77
83
|
return (
|
|
78
|
-
<
|
|
84
|
+
<Flex
|
|
79
85
|
className={storageGroupPageCn('meta')}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
alignItems="center"
|
|
87
|
+
justifyContent="space-between"
|
|
88
|
+
gap={2}
|
|
89
|
+
>
|
|
90
|
+
<Button view="outlined" onClick={() => history.goBack()}>
|
|
91
|
+
<Icon data={ArrowLeft} />
|
|
92
|
+
{storageGroupPageKeyset('action_back')}
|
|
93
|
+
</Button>
|
|
94
|
+
<AutoRefreshControl className={storageGroupPageCn('refresh-control')} />
|
|
95
|
+
</Flex>
|
|
83
96
|
);
|
|
84
97
|
};
|
|
85
98
|
|
|
86
99
|
const renderPageTitle = () => {
|
|
87
100
|
return (
|
|
88
|
-
<
|
|
101
|
+
<Flex
|
|
89
102
|
className={storageGroupPageCn('title')}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
103
|
+
alignItems="flex-start"
|
|
104
|
+
gap={2}
|
|
105
|
+
wrap="nowrap"
|
|
106
|
+
>
|
|
107
|
+
<Flex
|
|
108
|
+
className={storageGroupPageCn('title-content')}
|
|
109
|
+
alignItems="center"
|
|
110
|
+
gap={2}
|
|
111
|
+
wrap="wrap"
|
|
112
|
+
>
|
|
113
|
+
<Text variant="header-1">{storageGroupPageKeyset('storage-group')}</Text>
|
|
114
|
+
<CopyableValue
|
|
115
|
+
copyText={groupId}
|
|
116
|
+
fieldName={storageGroupPageKeyset('storage-group')}
|
|
117
|
+
copyButtonLabel={storageGroupPageKeyset('action_copy-group-id-from-title')}
|
|
118
|
+
>
|
|
119
|
+
<Text variant="header-1" color="hint">
|
|
120
|
+
{groupId || EMPTY_DATA_PLACEHOLDER}
|
|
121
|
+
</Text>
|
|
122
|
+
</CopyableValue>
|
|
123
|
+
<StorageGroupStateLabel state={state} />
|
|
124
|
+
</Flex>
|
|
125
|
+
{showRefreshInTitle && (
|
|
126
|
+
<AutoRefreshControl className={storageGroupPageCn('refresh-control')} />
|
|
127
|
+
)}
|
|
128
|
+
</Flex>
|
|
94
129
|
);
|
|
95
130
|
};
|
|
96
131
|
|
|
@@ -107,9 +142,9 @@ export function StorageGroupPage() {
|
|
|
107
142
|
}
|
|
108
143
|
return (
|
|
109
144
|
<React.Fragment>
|
|
110
|
-
<
|
|
145
|
+
<Text as="h2" variant="subheader-3" className={storageGroupPageCn('storage-title')}>
|
|
111
146
|
{storageGroupPageKeyset('storage')}
|
|
112
|
-
</
|
|
147
|
+
</Text>
|
|
113
148
|
<PaginatedStorage
|
|
114
149
|
database={database}
|
|
115
150
|
groupId={groupId}
|
|
@@ -132,10 +167,12 @@ export function StorageGroupPage() {
|
|
|
132
167
|
return (
|
|
133
168
|
<div className={storageGroupPageCn(null)} ref={containerRef}>
|
|
134
169
|
{renderHelmet()}
|
|
135
|
-
{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
170
|
+
<div className={storageGroupPageCn('summary')}>
|
|
171
|
+
{renderPageMeta()}
|
|
172
|
+
{renderPageTitle()}
|
|
173
|
+
{renderError()}
|
|
174
|
+
{renderInfo()}
|
|
175
|
+
</div>
|
|
139
176
|
{renderStorage()}
|
|
140
177
|
</div>
|
|
141
178
|
);
|
|
@@ -110,7 +110,7 @@ function Overview({type, path, database, databaseFullPath}: OverviewProps) {
|
|
|
110
110
|
/>
|
|
111
111
|
),
|
|
112
112
|
[EPathType.EPathTypeStreamingQuery]: () => (
|
|
113
|
-
<StreamingQueryInfo path={path} database={database} />
|
|
113
|
+
<StreamingQueryInfo path={path} database={database} data={data} />
|
|
114
114
|
),
|
|
115
115
|
};
|
|
116
116
|
|
|
@@ -129,6 +129,10 @@ function Overview({type, path, database, databaseFullPath}: OverviewProps) {
|
|
|
129
129
|
|
|
130
130
|
const content = pathTypeToComponent[type]?.();
|
|
131
131
|
|
|
132
|
+
if (isStreamingQuery) {
|
|
133
|
+
return content;
|
|
134
|
+
}
|
|
135
|
+
|
|
132
136
|
const commonInfo = (
|
|
133
137
|
<SchemaObjectInfoContainer data={currentData ?? undefined} type={type} path={path} />
|
|
134
138
|
);
|
|
@@ -18,6 +18,7 @@ export interface SchemaObjectInfoProps {
|
|
|
18
18
|
path: string;
|
|
19
19
|
itemsAfterType?: YDBDefinitionListItem[];
|
|
20
20
|
additionalItems?: YDBDefinitionListItem[];
|
|
21
|
+
createdContent?: YDBDefinitionListItem['content'];
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export function SchemaObjectInfo({
|
|
@@ -26,6 +27,7 @@ export function SchemaObjectInfo({
|
|
|
26
27
|
path,
|
|
27
28
|
itemsAfterType,
|
|
28
29
|
additionalItems,
|
|
30
|
+
createdContent,
|
|
29
31
|
}: SchemaObjectInfoProps) {
|
|
30
32
|
const showAdministrativeFields = useUserPermissions()?.IsAdministrationAllowed === true;
|
|
31
33
|
const items = React.useMemo(
|
|
@@ -37,8 +39,17 @@ export function SchemaObjectInfo({
|
|
|
37
39
|
itemsAfterType,
|
|
38
40
|
additionalItems,
|
|
39
41
|
showAdministrativeFields,
|
|
42
|
+
createdContent,
|
|
40
43
|
}),
|
|
41
|
-
[
|
|
44
|
+
[
|
|
45
|
+
additionalItems,
|
|
46
|
+
createdContent,
|
|
47
|
+
data,
|
|
48
|
+
fallbackType,
|
|
49
|
+
itemsAfterType,
|
|
50
|
+
path,
|
|
51
|
+
showAdministrativeFields,
|
|
52
|
+
],
|
|
42
53
|
);
|
|
43
54
|
|
|
44
55
|
return (
|
package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.tsx
CHANGED
|
@@ -40,6 +40,7 @@ interface PrepareSchemaObjectInfoItemsParams {
|
|
|
40
40
|
itemsAfterType?: YDBDefinitionListItem[];
|
|
41
41
|
additionalItems?: YDBDefinitionListItem[];
|
|
42
42
|
showAdministrativeFields?: boolean;
|
|
43
|
+
createdContent?: YDBDefinitionListItem['content'];
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
function isPresent(value: string | number | undefined): value is string | number {
|
|
@@ -83,6 +84,7 @@ export function prepareSchemaObjectInfoItems({
|
|
|
83
84
|
itemsAfterType = [],
|
|
84
85
|
additionalItems = [],
|
|
85
86
|
showAdministrativeFields = false,
|
|
87
|
+
createdContent,
|
|
86
88
|
}: PrepareSchemaObjectInfoItemsParams): YDBDefinitionListItem[] {
|
|
87
89
|
const self = data?.PathDescription?.Self;
|
|
88
90
|
let pathId = self?.PathId;
|
|
@@ -116,21 +118,20 @@ export function prepareSchemaObjectInfoItems({
|
|
|
116
118
|
);
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
|
|
121
|
+
items.push({
|
|
122
|
+
name: schemaObjectInfoKeyset('field_full-path'),
|
|
123
|
+
content: isPresent(fullPath) ? fullPath : EMPTY_DATA_PLACEHOLDER,
|
|
124
|
+
copyText: isPresent(fullPath) ? fullPath : undefined,
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
if (createdContent || Number(createStep)) {
|
|
120
128
|
items.push({
|
|
121
129
|
name: tenantKeyset('field_created'),
|
|
122
|
-
content: formatDateTime(createStep),
|
|
130
|
+
content: createdContent || formatDateTime(createStep),
|
|
123
131
|
});
|
|
124
132
|
}
|
|
125
133
|
|
|
126
|
-
items.push(
|
|
127
|
-
{
|
|
128
|
-
name: schemaObjectInfoKeyset('field_full-path'),
|
|
129
|
-
content: isPresent(fullPath) ? fullPath : EMPTY_DATA_PLACEHOLDER,
|
|
130
|
-
copyText: isPresent(fullPath) ? fullPath : undefined,
|
|
131
|
-
},
|
|
132
|
-
...additionalItems,
|
|
133
|
-
);
|
|
134
|
+
items.push(...additionalItems);
|
|
134
135
|
|
|
135
136
|
return items.filter(({content}) => content !== undefined && content !== null && content !== '');
|
|
136
137
|
}
|
package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import {dateTimeParse} from '@gravity-ui/date-utils';
|
|
3
4
|
import {Label} from '@gravity-ui/uikit';
|
|
4
5
|
|
|
5
6
|
import {Loader} from '../../../../../components/Loader';
|
|
@@ -7,8 +8,11 @@ import type {YDBDefinitionListItem} from '../../../../../components/YDBDefinitio
|
|
|
7
8
|
import {YDBDefinitionList} from '../../../../../components/YDBDefinitionList/YDBDefinitionList';
|
|
8
9
|
import {YQLCodePreview} from '../../../../../components/YQLCodePreview/YQLCodePreview';
|
|
9
10
|
import {streamingQueriesApi} from '../../../../../store/reducers/streamingQuery/streamingQuery';
|
|
11
|
+
import type {TEvDescribeSchemeResult} from '../../../../../types/api/schema';
|
|
12
|
+
import {EPathType} from '../../../../../types/api/schema';
|
|
10
13
|
import type {IQueryResult} from '../../../../../types/store/query';
|
|
11
14
|
import {cn} from '../../../../../utils/cn';
|
|
15
|
+
import {EMPTY_DATA_PLACEHOLDER} from '../../../../../utils/constants';
|
|
12
16
|
import {
|
|
13
17
|
getStringifiedData,
|
|
14
18
|
stripIndentByFirstLine,
|
|
@@ -16,6 +20,7 @@ import {
|
|
|
16
20
|
} from '../../../../../utils/dataFormatters/dataFormatters';
|
|
17
21
|
import {parseIssuesData} from '../../../../../utils/query';
|
|
18
22
|
import {ResultIssuesModal} from '../../../Query/Issues/Issues';
|
|
23
|
+
import {SchemaObjectInfo} from '../SchemaObjectInfo/SchemaObjectInfo';
|
|
19
24
|
|
|
20
25
|
import i18n from './i18n';
|
|
21
26
|
|
|
@@ -24,26 +29,37 @@ import './StreamingQueryInfo.scss';
|
|
|
24
29
|
interface StreamingQueryProps {
|
|
25
30
|
database: string;
|
|
26
31
|
path: string;
|
|
32
|
+
data?: TEvDescribeSchemeResult;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
const b = cn('ydb-streaming-query-info');
|
|
30
36
|
|
|
31
|
-
export function StreamingQueryInfo({database, path}: StreamingQueryProps) {
|
|
32
|
-
const {
|
|
37
|
+
export function StreamingQueryInfo({database, path, data}: StreamingQueryProps) {
|
|
38
|
+
const {currentData: sysData, isFetching} = streamingQueriesApi.useGetStreamingQueryInfoQuery(
|
|
33
39
|
{database, path},
|
|
34
40
|
{skip: !database || !path},
|
|
35
41
|
);
|
|
36
42
|
const loading = isFetching && sysData === undefined;
|
|
37
43
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const {items, queryText} = prepareStreamingQueryItems(sysData);
|
|
44
|
+
const {items, queryText, createdContent, stateItems} = prepareStreamingQueryInfo(
|
|
45
|
+
sysData,
|
|
46
|
+
data?.PathDescription?.Self?.CreateStep,
|
|
47
|
+
);
|
|
43
48
|
|
|
44
49
|
return (
|
|
45
50
|
<React.Fragment>
|
|
46
|
-
<
|
|
51
|
+
<SchemaObjectInfo
|
|
52
|
+
data={data}
|
|
53
|
+
fallbackType={EPathType.EPathTypeStreamingQuery}
|
|
54
|
+
path={path}
|
|
55
|
+
createdContent={createdContent}
|
|
56
|
+
itemsAfterType={stateItems}
|
|
57
|
+
/>
|
|
58
|
+
{loading ? (
|
|
59
|
+
<Loader size="s" className={b('loader')} />
|
|
60
|
+
) : items.length ? (
|
|
61
|
+
<YDBDefinitionList items={items} />
|
|
62
|
+
) : null}
|
|
47
63
|
{queryText ? (
|
|
48
64
|
<YQLCodePreview title={i18n('field_query-text')} text={queryText} />
|
|
49
65
|
) : null}
|
|
@@ -73,27 +89,40 @@ function StateLabel({state}: {state?: string}) {
|
|
|
73
89
|
return <Label theme={theme}>{state}</Label>;
|
|
74
90
|
}
|
|
75
91
|
|
|
76
|
-
function
|
|
92
|
+
export function prepareStreamingQueryInfo(sysData?: IQueryResult, createStep?: string | number) {
|
|
77
93
|
if (!sysData) {
|
|
78
|
-
return {items: [], queryText: undefined};
|
|
94
|
+
return {items: [], queryText: undefined, createdContent: undefined, stateItems: []};
|
|
79
95
|
}
|
|
80
96
|
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
const row = sysData.resultSets?.[0]?.result?.[0];
|
|
98
|
+
const createdContent =
|
|
99
|
+
formatLifecycleValue(row?.CreatedAt, row?.CreatedBy, createStep) ??
|
|
100
|
+
(row && 'CreatedAt' in row ? EMPTY_DATA_PLACEHOLDER : undefined);
|
|
101
|
+
const lifecycleFields = [
|
|
102
|
+
{name: i18n('field_started'), timestamp: 'StartedAt', user: 'StartedBy'},
|
|
103
|
+
{name: i18n('field_modified'), timestamp: 'ModifiedAt', user: 'ModifiedBy'},
|
|
104
|
+
{name: i18n('field_stopped'), timestamp: 'FinishedAt', user: 'StoppedBy'},
|
|
105
|
+
];
|
|
106
|
+
const info: YDBDefinitionListItem[] = lifecycleFields
|
|
107
|
+
.filter(({timestamp}) => row && timestamp in row)
|
|
108
|
+
.map(({name, timestamp, user}) => ({
|
|
109
|
+
name,
|
|
110
|
+
content: formatLifecycleValue(row?.[timestamp], row?.[user]) ?? EMPTY_DATA_PLACEHOLDER,
|
|
111
|
+
}));
|
|
112
|
+
const state = getStringifiedData(row?.Status);
|
|
113
|
+
|
|
114
|
+
const queryText = getStringifiedData(row?.Text);
|
|
85
115
|
let normalizedQueryText = trimOuterEmptyLines(queryText);
|
|
86
116
|
normalizedQueryText = stripIndentByFirstLine(normalizedQueryText);
|
|
87
117
|
|
|
88
|
-
const errorRaw =
|
|
118
|
+
const errorRaw = row?.Issues;
|
|
89
119
|
|
|
90
120
|
// We use custom error check, because error type can be non-standard
|
|
91
121
|
const errorData = parseIssuesData(errorRaw);
|
|
92
122
|
|
|
93
|
-
|
|
94
|
-
name: i18n('field_query-state'),
|
|
95
|
-
|
|
96
|
-
});
|
|
123
|
+
const stateItems: YDBDefinitionListItem[] = [
|
|
124
|
+
{name: i18n('field_query-state'), content: <StateLabel state={state} />},
|
|
125
|
+
];
|
|
97
126
|
|
|
98
127
|
if (errorData) {
|
|
99
128
|
info.push({
|
|
@@ -102,5 +131,39 @@ function prepareStreamingQueryItems(sysData?: IQueryResult) {
|
|
|
102
131
|
});
|
|
103
132
|
}
|
|
104
133
|
|
|
105
|
-
return {items: info, queryText: normalizedQueryText};
|
|
134
|
+
return {items: info, queryText: normalizedQueryText, createdContent, stateItems};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function formatLifecycleValue(
|
|
138
|
+
timestamp: string | number | null | undefined,
|
|
139
|
+
user: string | number | null | undefined,
|
|
140
|
+
fallback?: string | number,
|
|
141
|
+
) {
|
|
142
|
+
let milliseconds = NaN;
|
|
143
|
+
if (typeof timestamp === 'number') {
|
|
144
|
+
milliseconds = timestamp;
|
|
145
|
+
} else if (typeof timestamp === 'string') {
|
|
146
|
+
milliseconds = Date.parse(timestamp);
|
|
147
|
+
}
|
|
148
|
+
const dateMilliseconds =
|
|
149
|
+
Number.isFinite(milliseconds) && milliseconds > 0 ? milliseconds : Number(fallback);
|
|
150
|
+
const date =
|
|
151
|
+
Number.isFinite(dateMilliseconds) && dateMilliseconds > 0
|
|
152
|
+
? dateTimeParse(dateMilliseconds)?.format('YYYY-MM-DD HH:mm:ss')
|
|
153
|
+
: undefined;
|
|
154
|
+
|
|
155
|
+
if (!date && !user) {
|
|
156
|
+
return undefined;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (!user) {
|
|
160
|
+
return date;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return (
|
|
164
|
+
<React.Fragment>
|
|
165
|
+
{i18n('value_date-by-user', {date: date || EMPTY_DATA_PLACEHOLDER})}{' '}
|
|
166
|
+
<Label theme="normal">{String(user)}</Label>
|
|
167
|
+
</React.Fragment>
|
|
168
|
+
);
|
|
106
169
|
}
|