Skip to content

Commit 4d378d5

Browse files
committed
Dashboard Project sidebar changes
1 parent 5492331 commit 4d378d5

File tree

32 files changed

+151
-919
lines changed

32 files changed

+151
-919
lines changed

apps/dashboard/src/@/components/blocks/UpsellBannerCard.stories.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ function Story() {
1515
icon: <ArrowRightIcon className="size-4" />,
1616
link: "#",
1717
}}
18-
trackingCategory="storybook"
19-
trackingLabel="green"
2018
icon={<RocketIcon className="size-5" />}
2119
accentColor="green"
2220
/>
@@ -31,8 +29,6 @@ function Story() {
3129
icon: <ArrowRightIcon className="size-4" />,
3230
link: "#",
3331
}}
34-
trackingCategory="storybook"
35-
trackingLabel="blue"
3632
icon={<StarIcon className="size-5" />}
3733
accentColor="blue"
3834
/>
@@ -47,8 +43,6 @@ function Story() {
4743
icon: <ArrowRightIcon className="size-4" />,
4844
link: "#",
4945
}}
50-
trackingCategory="storybook"
51-
trackingLabel="purple"
5246
accentColor="purple"
5347
/>
5448
</BadgeContainer>

apps/dashboard/src/@/components/blocks/UpsellBannerCard.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ type UpsellBannerCardProps = {
4444
target?: "_blank";
4545
link: string;
4646
};
47-
trackingCategory: string;
48-
trackingLabel: string;
4947
accentColor?: keyof typeof ACCENT;
5048
icon?: React.ReactNode;
5149
};

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/overview/ContractOverviewPage.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ export const ContractOverviewPage: React.FC<ContractOverviewPageProps> = ({
5353
target: "_blank",
5454
link: `/${chainSlug}/${contract.address}`,
5555
}}
56-
trackingCategory="erc20-contract"
57-
trackingLabel="view-asset-page"
5856
accentColor="blue"
5957
/>
6058
)}

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/_components/FreePlanUpsellBannerUI.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ export function FreePlanUpsellBannerUI(props: {
2424
props.highlightPlan || "growth"
2525
}`,
2626
}}
27-
trackingCategory="billingBanner"
28-
trackingLabel="freePlan_viewPlans"
2927
icon={<RocketIcon className="size-5" />}
3028
accentColor="green"
3129
/>

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/cards.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export function Cards(props: {
6262
/>
6363

6464
<CardLink
65-
title="Import Existing Asset"
66-
description="Import tokens or NFTs you own to the project"
65+
title="Import Existing Token"
66+
description="Import coins or NFTs you own to the project"
6767
href={undefined}
6868
icon={ArrowDownToLineIcon}
6969
onClick={() => {

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ export default async function Page(props: {
5353
/>
5454

5555
<div className="mt-10 mb-3">
56-
<h2 className="font-semibold text-2xl tracking-tight">Your assets</h2>
56+
<h2 className="font-semibold text-2xl tracking-tight">Your Tokens</h2>
5757
<p className="text-muted-foreground">
58-
List of all assets created or imported into this project
58+
List of all tokens created or imported into this project
5959
</p>
6060
</div>
6161

@@ -79,7 +79,7 @@ function AssetsHeader() {
7979
<div className="border-b">
8080
<div className="container max-w-7xl py-10">
8181
<h1 className="font-semibold text-2xl tracking-tight lg:text-3xl">
82-
Assets
82+
Tokens
8383
</h1>
8484
<p className="text-muted-foreground">
8585
Create and Manage tokens for your project

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectSidebarLayout.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
import { FullWidthSidebarLayout } from "@/components/blocks/SidebarLayout";
33
import { Badge } from "@/components/ui/badge";
44
import {
5+
ArrowLeftRightIcon,
56
BellIcon,
67
BookTextIcon,
78
BoxIcon,
89
CoinsIcon,
910
HomeIcon,
11+
LockIcon,
1012
SettingsIcon,
1113
WalletIcon,
1214
} from "lucide-react";
1315
import { ContractIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/ContractIcon";
14-
import { EngineIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/EngineIcon";
1516
import { InsightIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/InsightIcon";
16-
import { NebulaIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/NebulaIcon";
1717
import { PayIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/PayIcon";
1818
import { SmartAccountIcon } from "../../../../../(dashboard)/(chain)/components/server/icons/SmartAccountIcon";
1919

@@ -33,7 +33,7 @@ export function ProjectSidebarLayout(props: {
3333
icon: HomeIcon,
3434
},
3535
{
36-
label: "In-App Wallets",
36+
label: "Wallets",
3737
href: `${layoutPath}/connect/in-app-wallets`,
3838
icon: WalletIcon,
3939
},
@@ -53,29 +53,31 @@ export function ProjectSidebarLayout(props: {
5353
icon: ContractIcon,
5454
},
5555
{
56-
href: `${layoutPath}/assets`,
56+
href: `${layoutPath}/tokens`,
5757
label: (
5858
<span className="flex items-center gap-2">
59-
Assets <Badge>New</Badge>
59+
Tokens <Badge>New</Badge>
6060
</span>
6161
),
6262
icon: CoinsIcon,
6363
},
6464
{
6565
href: `${layoutPath}/engine`,
66-
label: "Engine",
67-
icon: EngineIcon,
66+
label: "Transactions",
67+
icon: ArrowLeftRightIcon,
6868
},
6969
{
7070
href: `${layoutPath}/insight`,
7171
label: "Insight",
7272
icon: InsightIcon,
7373
},
7474
{
75-
href: `${layoutPath}/nebula`,
76-
label: "Nebula",
77-
icon: NebulaIcon,
75+
href: `${layoutPath}/vault`,
76+
label: "Vault",
77+
icon: LockIcon,
7878
},
79+
]}
80+
footerSidebarLinks={[
7981
{
8082
href: `${layoutPath}/webhooks`,
8183
label: (
@@ -85,8 +87,6 @@ export function ProjectSidebarLayout(props: {
8587
),
8688
icon: BellIcon,
8789
},
88-
]}
89-
footerSidebarLinks={[
9090
{
9191
href: `${layoutPath}/settings`,
9292
label: "Project Settings",

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/in-app-wallets/_components/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export async function InAppWalletsHeader() {
44
return (
55
<div className="">
66
<h1 className="mb-2 font-semibold text-2xl tracking-tighter lg:text-3xl">
7-
In-App Wallets
7+
Wallets
88
</h1>
99
<p className="max-w-2xl text-muted-foreground text-sm leading-relaxed">
1010
A wallet infrastructure that enables apps to create, manage, and control
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
export const TRACKING_CATEGORY = "team/in-app-wallets";

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/in-app-wallets/users/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { InAppWalletUsersPageContent } from "components/embedded-wallets/Users";
44
import { redirect } from "next/navigation";
55
import { getAuthToken } from "../../../../../../../api/lib/getAuthToken";
66
import { loginRedirect } from "../../../../../../../login/loginRedirect";
7-
import { TRACKING_CATEGORY } from "../_constants";
87

98
export default async function Page(props: {
109
params: Promise<{ team_slug: string; project_slug: string }>;
@@ -33,7 +32,6 @@ export default async function Page(props: {
3332
return (
3433
<InAppWalletUsersPageContent
3534
projectClientId={project.publishableKey}
36-
trackingCategory={TRACKING_CATEGORY}
3735
authToken={authToken}
3836
client={client}
3937
/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { type Step, StepsCard } from "components/dashboard/StepsCard";
55
import Link from "next/link";
66
import { useMemo, useState } from "react";
77
import type { ThirdwebClient } from "thirdweb";
8+
import { CreateVaultAccountButton } from "../../../vault/components/create-vault-account.client";
89
import CreateServerWallet from "../server-wallets/components/create-server-wallet.client";
910
import type { Wallet } from "../server-wallets/wallet-table/types";
10-
import CreateVaultAccountButton from "../vault/components/create-vault-account.client";
1111
import { SendTestTransaction } from "./send-test-tx.client";
1212
import { deleteUserAccessToken } from "./utils";
1313

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/analytics/tx-chart/tx-chart-ui.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function EmptyChartContent(props: {
185185
variant="primary"
186186
onClick={() => {
187187
router.push(
188-
`/team/${props.teamSlug}/${props.project.slug}/engine/cloud/vault`,
188+
`/team/${props.teamSlug}/${props.project.slug}/vault`,
189189
);
190190
}}
191191
>

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/layout.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ function TransactionsLayout(props: {
3535
<div className="flex flex-row items-center justify-between">
3636
<div className="flex flex-col">
3737
<h1 className="mb-0.5 flex items-center gap-2 font-semibold text-3xl tracking-tight">
38-
Engine{" "}
38+
Transactions{" "}
3939
<Badge
4040
variant="success"
4141
className="mt-0.5 flex items-center gap-2 text-sm"
4242
>
43-
<EngineIcon className="size-4" /> Cloud
43+
<EngineIcon className="size-4" /> Engine Cloud
4444
</Badge>
4545
<Badge
4646
variant="outline"
@@ -85,10 +85,6 @@ function TransactionsLayout(props: {
8585
name: "Server Wallets",
8686
path: `${engineLayoutSlug}/server-wallets`,
8787
},
88-
{
89-
name: "Vault",
90-
path: `${engineLayoutSlug}/vault`,
91-
},
9288
]}
9389
/>
9490
</div>

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/server-wallets/components/create-server-wallet.client.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ export default function CreateServerWallet(props: {
8686

8787
const handleCreateServerWallet = async () => {
8888
if (!props.managementAccessToken) {
89-
router.push(
90-
`/team/${props.teamSlug}/${props.project.slug}/engine/cloud/vault`,
91-
);
89+
router.push(`/team/${props.teamSlug}/${props.project.slug}/vault`);
9290
} else {
9391
await createEoaMutation.mutateAsync({
9492
managementAccessToken: props.managementAccessToken,
@@ -106,9 +104,7 @@ export default function CreateServerWallet(props: {
106104
onClick={() =>
107105
props.managementAccessToken
108106
? setModalOpen(true)
109-
: router.push(
110-
`/team/${props.teamSlug}/${props.project.slug}/engine/cloud/vault`,
111-
)
107+
: router.push(`/team/${props.teamSlug}/${props.project.slug}/vault`)
112108
}
113109
className="flex flex-row items-center gap-2"
114110
>

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/cloud/vault/components/key-management.tsx

Lines changed: 0 additions & 104 deletions
This file was deleted.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export default async function Layout(props: {
2525
<div className="flex flex-col justify-between gap-4 lg:flex-row lg:items-center">
2626
<div className="flex flex-col gap-2">
2727
<h1 className="flex items-center gap-2 font-semibold text-3xl tracking-tight">
28-
Engine{" "}
28+
Transactions{" "}
2929
<Badge
3030
variant="warning"
3131
className="flex items-center gap-2 text-sm"
3232
>
33-
<DatabaseIcon className="size-4" /> Dedicated
33+
<DatabaseIcon className="size-4" /> Dedicated Engine
3434
</Badge>
3535
</h1>
3636
<p className="flex flex-col text-muted-foreground text-sm">

0 commit comments

Comments
 (0)