@@ -11,12 +11,14 @@ import { BookOpenIcon } from "@heroicons/react/24/solid";
1111import { DialogClose } from "@radix-ui/react-dialog" ;
1212import { Form , useActionData , useSearchParams } from "@remix-run/react" ;
1313import { type ActionFunctionArgs , json , type LoaderFunctionArgs } from "@remix-run/server-runtime" ;
14+ import { GitMeta } from "@trigger.dev/core/v3" ;
1415import { useCallback } from "react" ;
1516import { typedjson , useTypedLoaderData } from "remix-typedjson" ;
1617import { z } from "zod" ;
1718import { BranchEnvironmentIconSmall } from "~/assets/icons/EnvironmentIcons" ;
1819import { BranchesNoBranchableEnvironment , BranchesNoBranches } from "~/components/BlankStatePanels" ;
1920import { Feedback } from "~/components/Feedback" ;
21+ import { GitMetadata } from "~/components/GitMetadata" ;
2022import { V4Title } from "~/components/V4Badge" ;
2123import { AdminDebugTooltip } from "~/components/admin/debugTooltip" ;
2224import { InlineCode } from "~/components/code/InlineCode" ;
@@ -63,23 +65,13 @@ import { useProject } from "~/hooks/useProject";
6365import { useThrottle } from "~/hooks/useThrottle" ;
6466import { redirectWithErrorMessage , redirectWithSuccessMessage } from "~/models/message.server" ;
6567import { BranchesPresenter } from "~/presenters/v3/BranchesPresenter.server" ;
68+ import { logger } from "~/services/logger.server" ;
6669import { requireUserId } from "~/services/session.server" ;
6770import { UpsertBranchService } from "~/services/upsertBranch.server" ;
6871import { cn } from "~/utils/cn" ;
69- import {
70- branchesPath ,
71- docsPath ,
72- ProjectParamSchema ,
73- v3BillingPath ,
74- v3EnvironmentPath ,
75- } from "~/utils/pathBuilder" ;
72+ import { branchesPath , docsPath , ProjectParamSchema , v3BillingPath } from "~/utils/pathBuilder" ;
7673import { useCurrentPlan } from "../_app.orgs.$organizationSlug/route" ;
7774import { ArchiveButton } from "../resources.branches.archive" ;
78- import { GitMeta } from "@trigger.dev/core/v3" ;
79- import { logger } from "~/services/logger.server" ;
80- import { TextLink } from "~/components/primitives/TextLink" ;
81- import { GitBranchIcon , GitCommitIcon , GitPullRequestIcon } from "lucide-react" ;
82- import { GitMetadata } from "~/components/GitMetadata" ;
8375
8476export const BranchesOptions = z . object ( {
8577 search : z . string ( ) . optional ( ) ,
@@ -214,7 +206,11 @@ export default function Page() {
214206 </ Property . Table >
215207 </ AdminDebugTooltip >
216208
217- < LinkButton variant = { "docs/small" } LeadingIcon = { BookOpenIcon } to = { docsPath ( "branches" ) } >
209+ < LinkButton
210+ variant = { "docs/small" }
211+ LeadingIcon = { BookOpenIcon }
212+ to = { docsPath ( "deployment/preview-branches" ) }
213+ >
218214 Branches docs
219215 </ LinkButton >
220216
0 commit comments