Skip to content

Commit b14c95f

Browse files
committed
Added a permenant button at the end of the integrations list to request an integration
1 parent 566d483 commit b14c95f

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

apps/webapp/app/routes/__app/orgs/$organizationSlug/__org/integrations.tsx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import { SquaresPlusIcon } from "@heroicons/react/24/outline";
12
import { PlusCircleIcon } from "@heroicons/react/24/solid";
23
import type { LoaderArgs } from "@remix-run/server-runtime";
34
import type { CatalogIntegration } from "internal-catalog";
45
import { typedjson, useTypedLoaderData } from "remix-typedjson";
56
import invariant from "tiny-invariant";
6-
import { ConnectButton, Status } from "~/components/integrations/ConnectButton";
7+
import type { Status } from "~/components/integrations/ConnectButton";
8+
import { ConnectButton } from "~/components/integrations/ConnectButton";
79
import { Container } from "~/components/layout/Container";
810
import { List } from "~/components/layout/List";
911
import { Body } from "~/components/primitives/text/Body";
@@ -104,6 +106,20 @@ export default function Integrations() {
104106
)}
105107
</ConnectButton>
106108
))}
109+
<a
110+
href="mailto:hello@trigger.dev"
111+
className="flex flex-col group max-w-[160px] rounded-md bg-slate-800 border border-slate-800 gap-4 text-sm text-slate-200 items-center overflow-hidden hover:bg-slate-800/30 transition shadow-md disabled:opacity-50"
112+
>
113+
<div className="relative flex items-center justify-center w-full py-6 bg-black/20 border-b border-slate-800">
114+
<SquaresPlusIcon className="h-20 w-20 text-slate-400" />
115+
</div>
116+
<div className="flex flex-col items-center justify-center text-center leading-relaxed text-slate-400">
117+
<span className="px-2.5">Need an integration?</span>
118+
<span className="px-6 text-slate-200 text-base">
119+
Let us know!
120+
</span>
121+
</div>
122+
</a>
107123
</div>
108124
</div>
109125
</Container>
@@ -129,7 +145,10 @@ function AddButtonContent({
129145
</div>
130146

131147
{status === "loading" ? (
132-
<span className="px-6 pb-4">Connecting…</span>
148+
<span className="px-6 pb-4 leading-relaxed text-green-500 animate-pulse">
149+
Connecting to{" "}
150+
<span className="text-slate-200 text-base">{integration.name}</span>
151+
</span>
133152
) : (
134153
<span className="px-6 pb-4 leading-relaxed text-slate-400">
135154
Connect to{" "}

0 commit comments

Comments
 (0)