diff --git a/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.scss b/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.scss index f5b75ce77..e278f0ced 100644 --- a/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.scss +++ b/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.scss @@ -1,12 +1,6 @@ .ydb-healthcheck-preview { $block: &; - &__icon-wrapper { - display: inline-flex; - - color: var(--g-color-text-warning); - } - &__skeleton { width: 100%; height: 60px; diff --git a/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx b/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx index 87f15901a..3acc5e77d 100644 --- a/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx +++ b/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx @@ -1,8 +1,7 @@ import type {AlertProps} from '@gravity-ui/uikit'; -import {Alert, Button, Flex, Icon, Popover, Skeleton} from '@gravity-ui/uikit'; +import {Alert, Button, Flex, Icon, Skeleton} from '@gravity-ui/uikit'; import {ResponseError} from '../../../../../components/Errors/ResponseError'; -import {useClusterBaseInfo} from '../../../../../store/reducers/cluster/cluster'; import {healthcheckApi} from '../../../../../store/reducers/healthcheckInfo/healthcheckInfo'; import {SelfCheckResult} from '../../../../../types/api/healthcheck'; import {cn} from '../../../../../utils/cn'; @@ -12,8 +11,6 @@ import {useTenantQueryParams} from '../../../useTenantQueryParams'; import i18n from './i18n'; -import CircleExclamationIcon from '@gravity-ui/icons/svgs/circle-exclamation.svg'; - import './HealthcheckPreview.scss'; const b = cn('ydb-healthcheck-preview'); @@ -35,12 +32,8 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) { const {tenantName} = props; const [autoRefreshInterval] = useAutoRefreshInterval(); - const {name} = useClusterBaseInfo(); - const {handleShowHealthcheckChange} = useTenantQueryParams(); - const healthcheckPreviewDisabled = name === 'ydb_ru'; - const { currentData: data, isFetching, @@ -48,8 +41,7 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) { } = healthcheckApi.useGetHealthcheckInfoQuery( {database: tenantName}, { - //FIXME https://github.com/ydb-platform/ydb-embedded-ui/issues/1889 - pollingInterval: healthcheckPreviewDisabled ? undefined : autoRefreshInterval, + pollingInterval: autoRefreshInterval, }, ); @@ -81,15 +73,6 @@ export function HealthcheckPreview(props: HealthcheckPreviewProps) { {HEALTHCHECK_RESULT_TO_TEXT[selfCheckResult]} {issuesText ? ` ${issuesText}` : ''} - {healthcheckPreviewDisabled ? ( - - {() => } - - ) : null} {issuesCount && (