Skip to content

Commit 11f491b

Browse files
committed
Improved the tooltip information
1 parent 98b14b6 commit 11f491b

File tree

1 file changed

+21
-10
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions

1 file changed

+21
-10
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.regions/route.tsx

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { ArrowRightIcon, ChatBubbleLeftEllipsisIcon, MapPinIcon } from "@heroicons/react/20/solid";
1+
import {
2+
ArrowRightIcon,
3+
BookOpenIcon,
4+
ChatBubbleLeftEllipsisIcon,
5+
MapPinIcon,
6+
} from "@heroicons/react/20/solid";
27
import { Form } from "@remix-run/react";
38
import { type ActionFunctionArgs, type LoaderFunctionArgs } from "@remix-run/server-runtime";
49
import { tryCatch } from "@trigger.dev/core";
@@ -13,7 +18,7 @@ import { V4Title } from "~/components/V4Badge";
1318
import { AdminDebugTooltip } from "~/components/admin/debugTooltip";
1419
import { MainCenteredContainer, PageBody, PageContainer } from "~/components/layout/AppLayout";
1520
import { Badge } from "~/components/primitives/Badge";
16-
import { Button } from "~/components/primitives/Buttons";
21+
import { Button, LinkButton } from "~/components/primitives/Buttons";
1722
import { ClipboardField } from "~/components/primitives/ClipboardField";
1823
import { CopyableText } from "~/components/primitives/CopyableText";
1924
import {
@@ -161,14 +166,20 @@ export default function Page() {
161166
<TableHeaderCell
162167
alignment="right"
163168
tooltip={
164-
<Paragraph variant="small">
165-
When you trigger a run it will execute in your default region, unless
166-
you{" "}
167-
<TextLink to={docsPath("triggering#region")}>
168-
specify a region when triggering
169-
</TextLink>
170-
.
171-
</Paragraph>
169+
<div className="max-w-[12rem]">
170+
<Paragraph variant="small">
171+
When you trigger a run it will execute in your default region, unless
172+
you override the region when triggering.
173+
</Paragraph>
174+
<LinkButton
175+
variant="docs/small"
176+
LeadingIcon={BookOpenIcon}
177+
to={docsPath("triggering#region")}
178+
className="mb-1 mt-3"
179+
>
180+
Read docs
181+
</LinkButton>
182+
</div>
172183
}
173184
>
174185
Default region

0 commit comments

Comments
 (0)