diff --git a/web/features/deployments/detail/index.tsx b/web/features/deployments/detail/index.tsx index ca25ecdbdd..f787934615 100644 --- a/web/features/deployments/detail/index.tsx +++ b/web/features/deployments/detail/index.tsx @@ -12,10 +12,9 @@ import { useRouter, useSelectedLayoutSegment } from '@/next/navigation' import DeployDrawer from '../components/deploy-drawer' import RollbackModal from '../components/rollback-modal' import { - deploymentEnvironmentDeploymentsQueryOptions, deploymentOverviewQueryOptions, } from '../queries' -import { deployedRows, deploymentStatus, toAppInfoFromOverview } from '../utils' +import { toAppInfoFromOverview } from '../utils' import { DeploymentSidebar } from './deployment-sidebar' import { isInstanceDetailTabKey } from './tabs' @@ -32,17 +31,13 @@ const InstanceDetail: FC = ({ instanceId, children }) => { const selectedTab = selectedSegment ?? undefined const activeTab: InstanceDetailTabKey = isInstanceDetailTabKey(selectedTab) ? selectedTab : 'overview' const overviewQuery = useQuery(deploymentOverviewQueryOptions(instanceId)) - const { data: environmentDeployments } = useQuery(deploymentEnvironmentDeploymentsQueryOptions(instanceId)) + useDocumentTitle(t('documentTitle.detail')) const app = useMemo( () => toAppInfoFromOverview(overviewQuery.data?.instance), [overviewQuery.data?.instance], ) - const deploymentRows = useMemo( - () => deployedRows(environmentDeployments?.data), - [environmentDeployments?.data], - ) if (!app && overviewQuery.isLoading) { return ( @@ -63,10 +58,6 @@ const InstanceDetail: FC = ({ instanceId, children }) => { ) } - - const deployingCount = deploymentRows.filter(row => deploymentStatus(row) === 'deploying').length - const failedCount = deploymentRows.filter(row => deploymentStatus(row) === 'deploy_failed').length - const envCount = deploymentRows.length const appModeLabel = app ? getAppModeLabel(app.mode, tCommon) : t('detail.sourceAppDeleted') return ( @@ -89,25 +80,6 @@ const InstanceDetail: FC = ({ instanceId, children }) => {
{t(`tabs.${activeTab}.description`)}
-
- {t('detail.envCount', { count: envCount })} - {deployingCount > 0 && ( - <> - · - - {t('detail.deployingCount', { count: deployingCount })} - - - )} - {failedCount > 0 && ( - <> - · - - {t('detail.failedCount', { count: failedCount })} - - - )} -
{children}