1- import { ArrowPathIcon , ArrowUturnLeftIcon , BookOpenIcon } from "@heroicons/react/20/solid" ;
2- import { type MetaFunction , Outlet , useLocation , useParams , useNavigate } from "@remix-run/react" ;
1+ import { ArrowUturnLeftIcon , BookOpenIcon } from "@heroicons/react/20/solid" ;
2+ import { type MetaFunction , Outlet , useLocation , useNavigate , useParams } from "@remix-run/react" ;
33import { type LoaderFunctionArgs } from "@remix-run/server-runtime" ;
4+ import { useEffect } from "react" ;
45import { typedjson , useTypedLoaderData } from "remix-typedjson" ;
56import { z } from "zod" ;
67import { PromoteIcon } from "~/assets/icons/PromoteIcon" ;
78import { DeploymentsNone , DeploymentsNoneDev } from "~/components/BlankStatePanels" ;
9+ import { GitMetadata } from "~/components/GitMetadata" ;
810import { UserAvatar } from "~/components/UserProfilePhoto" ;
911import { MainCenteredContainer , PageBody , PageContainer } from "~/components/layout/AppLayout" ;
1012import { Badge } from "~/components/primitives/Badge" ;
@@ -34,7 +36,6 @@ import {
3436 deploymentStatusDescription ,
3537 deploymentStatuses ,
3638} from "~/components/runs/v3/DeploymentStatus" ;
37- import { RetryDeploymentIndexingDialog } from "~/components/runs/v3/RetryDeploymentIndexingDialog" ;
3839import {
3940 PromoteDeploymentDialog ,
4041 RollbackDeploymentDialog ,
@@ -52,8 +53,6 @@ import { EnvironmentParamSchema, docsPath, v3DeploymentPath } from "~/utils/path
5253import { createSearchParams } from "~/utils/searchParams" ;
5354import { deploymentIndexingIsRetryable } from "~/v3/deploymentStatus" ;
5455import { compareDeploymentVersions } from "~/v3/utils/deploymentVersions" ;
55- import { useEffect } from "react" ;
56- import { GitMetadata } from "~/components/GitMetadata" ;
5756
5857export const meta : MetaFunction = ( ) => {
5958 return [
@@ -388,26 +387,6 @@ function DeploymentActionsCell({
388387 />
389388 </ Dialog >
390389 ) }
391- { canRetryIndexing && (
392- < Dialog >
393- < DialogTrigger asChild >
394- < Button
395- variant = "small-menu-item"
396- LeadingIcon = { ArrowPathIcon }
397- leadingIconClassName = "text-blue-500"
398- fullWidth
399- textAlignLeft
400- >
401- Retry indexing…
402- </ Button >
403- </ DialogTrigger >
404- < RetryDeploymentIndexingDialog
405- projectId = { project . id }
406- deploymentShortCode = { deployment . shortCode }
407- redirectPath = { `${ location . pathname } ${ location . search } ` }
408- />
409- </ Dialog >
410- ) }
411390 </ >
412391 }
413392 />
0 commit comments