Skip to content

Commit b20e941

Browse files
banner update
1 parent d9082d5 commit b20e941

File tree

2 files changed

+47
-10
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]

2 files changed

+47
-10
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/engine/(general)/layout.tsx

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import type { SidebarLink } from "@/components/blocks/Sidebar";
22
import { SidebarLayout } from "@/components/blocks/SidebarLayout";
3+
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
4+
import { Badge } from "@/components/ui/badge";
5+
import { Button } from "@/components/ui/button";
36
import { CloudIcon } from "lucide-react";
47
import Link from "next/link";
5-
import { Badge } from "../../../../../../../../@/components/ui/badge";
6-
import { Button } from "../../../../../../../../@/components/ui/button";
78
import { ImportEngineLink } from "./_components";
89

910
export default async function Layout(props: {
@@ -42,17 +43,16 @@ export default async function Layout(props: {
4243
</p>
4344
</div>
4445
<div className="flex items-center gap-3">
45-
<Link href={`/team/${params.team_slug}`}>
46-
<Button variant={"upsell"}>
47-
<CloudIcon className="mr-2 h-4 w-4" /> Try Engine Cloud for Free
48-
</Button>
49-
</Link>
5046
<ImportEngineLink
5147
label="Import Engine"
5248
engineLinkPrefix={linkPrefix}
5349
/>
5450
</div>
5551
</div>
52+
<div className="h-6" />
53+
<div className="container">
54+
<EngineLegacyBannerUI teamSlug={params.team_slug} />
55+
</div>
5656
</header>
5757

5858
{/* sidebar layout */}
@@ -62,3 +62,39 @@ export default async function Layout(props: {
6262
</div>
6363
);
6464
}
65+
66+
function EngineLegacyBannerUI(props: {
67+
teamSlug: string;
68+
}) {
69+
return (
70+
<Alert variant="info">
71+
<CloudIcon className="size-5" />
72+
<AlertTitle>Engine Cloud (Beta)</AlertTitle>
73+
<AlertDescription>
74+
<div className="h-2" />
75+
<p className="text-primary-foreground text-sm">
76+
Try Engine Cloud (Beta) - now included for free in every thirdweb
77+
project.
78+
</p>
79+
<div className="h-2" />
80+
<ul className="list-disc pl-4 text-muted-foreground text-sm">
81+
<li>No recurring monthly cost, pay-per-request model</li>
82+
<li>Powered by Vault: our new TEE based key management system</li>
83+
<li>Improved performance and simplified transaction API</li>
84+
</ul>
85+
<div className="h-4" />
86+
<div className="flex justify-end gap-2">
87+
<Link
88+
href={`https://portal.thirdweb.com/engine/cloud`}
89+
target="_blank"
90+
>
91+
<Button variant="outline">Learn More</Button>
92+
</Link>
93+
<Link href={`/team/${props.teamSlug}`}>
94+
<Button variant={"primary"}>Create a Project</Button>
95+
</Link>
96+
</div>
97+
</AlertDescription>
98+
</Alert>
99+
);
100+
}

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/analytics/ftux.client.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
"use client";
22
import type { Project } from "@/api/projects";
3+
import { CopyTextButton } from "@/components/ui/CopyTextButton";
34
import { type Step, StepsCard } from "components/dashboard/StepsCard";
45
import Link from "next/link";
56
import { useMemo, useState } from "react";
67
import { Button } from "../../../../../../../@/components/ui/button";
8+
import { maskSecret } from "../lib/vault.client";
79
import CreateServerWallet from "../server-wallets/components/create-server-wallet.client";
810
import type { Wallet } from "../server-wallets/wallet-table/types";
911
import CreateVaultAccountButton from "../vault/components/create-vault-account.client";
1012
import { SendTestTransaction } from "./send-test-tx.client";
11-
import { CopyTextButton } from "@/components/ui/CopyTextButton";
12-
import { maskSecret } from "../lib/vault.client";
1313

1414
interface Props {
1515
managementAccessToken: string | undefined;
@@ -143,7 +143,8 @@ function CreateServerWalletStep(props: {
143143
</p>
144144
<div className="h-2" />
145145
<p className="text-muted-foreground text-sm">
146-
Your server wallet will be used to send transactions to the Engine.
146+
Server wallets are smart wallets, they don't require any gas funds to
147+
send transactions.
147148
</p>
148149
<div className="h-6" />
149150
<div className="flex flex-row justify-end gap-4">

0 commit comments

Comments
 (0)