Skip to content

Commit 9d5ef18

Browse files
committed
Dashboard: Move assets page, rename assets > tokens in UI
1 parent 71d3dff commit 9d5ef18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+27
-27
lines changed

apps/dashboard/src/@/analytics/report.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { Team } from "../api/team";
1010
* ### Why do we need to report this event?
1111
* - To track the number of contracts deployed
1212
* - To track the number of contracts deployed on each chain
13-
* - To track if the contract was deployed on the asset page vs on the deploy page
13+
* - To track if the contract was deployed on the token page vs on the deploy page
1414
*
1515
* ### Who is responsible for this event?
1616
* @jnsdls
@@ -230,7 +230,7 @@ type AssetContractType = "DropERC20" | "DropERC1155" | "DropERC721";
230230

231231
/**
232232
* ### Why do we need to report this event?
233-
* - To track number of successful asset purchases from the asset page
233+
* - To track number of successful asset purchases from the token page
234234
* - To track which asset and contract types are being purchased the most
235235
*
236236
* ### Who is responsible for this event?
@@ -250,7 +250,7 @@ export function reportAssetBuySuccessful(properties: {
250250

251251
/**
252252
* ### Why do we need to report this event?
253-
* - To track number of failed asset purchases from the asset page
253+
* - To track number of failed asset purchases from the token page
254254
* - To track the errors that users encounter when trying to purchase an asset
255255
*
256256
* ### Who is responsible for this event?

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/_layout/primary-dashboard-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const PrimaryDashboardButton: React.FC<AddToDashboardCardProps> = ({
8787
rel="noopener noreferrer"
8888
className="gap-2"
8989
>
90-
View Asset Page <ExternalLinkIcon className="size-3.5" />
90+
View Token Page <ExternalLinkIcon className="size-3.5" />
9191
</Link>
9292
</Button>
9393
);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export const ContractOverviewPage: React.FC<ContractOverviewPageProps> = ({
4545
<div className="flex grow flex-col gap-10 overflow-hidden">
4646
{isErc20 && (
4747
<UpsellBannerCard
48-
title="Public asset page available"
49-
description="A public page is available for this contract for anyone to buy this asset"
48+
title="Public token page available"
49+
description="A public page is available for this contract for anyone to buy this token"
5050
cta={{
51-
text: "View asset page",
51+
text: "View token page",
5252
icon: <ExternalLinkIcon className="size-4" />,
5353
target: "_blank",
5454
link: `/${chainSlug}/${contract.address}`,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function Cards(props: {
4040
<CardLink
4141
title="Create Coin"
4242
description="Launch your own ERC-20 coin"
43-
href={`/team/${props.teamSlug}/${props.projectSlug}/assets/create/token`}
43+
href={`/team/${props.teamSlug}/${props.projectSlug}/tokens/create/token`}
4444
icon={CoinsIcon}
4545
onClick={() => {
4646
reportAssetCreationStarted({
@@ -52,7 +52,7 @@ export function Cards(props: {
5252
<CardLink
5353
title="Create NFT Collection"
5454
description="Launch your own NFT collection"
55-
href={`/team/${props.teamSlug}/${props.projectSlug}/assets/create/nft`}
55+
href={`/team/${props.teamSlug}/${props.projectSlug}/tokens/create/nft`}
5656
icon={ImagesIcon}
5757
onClick={() => {
5858
reportAssetCreationStarted({
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export function CreateAssetPageHeader(props: {
2424
<BreadcrumbItem>
2525
<BreadcrumbLink asChild>
2626
<Link
27-
href={`/team/${props.teamSlug}/${props.projectSlug}/assets`}
27+
href={`/team/${props.teamSlug}/${props.projectSlug}/tokens`}
2828
>
29-
Assets
29+
Tokens
3030
</Link>
3131
</BreadcrumbLink>
3232
</BreadcrumbItem>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)