diff --git a/apps/dashboard/src/@/analytics/report.ts b/apps/dashboard/src/@/analytics/report.ts index c898ff45932..737aeb30070 100644 --- a/apps/dashboard/src/@/analytics/report.ts +++ b/apps/dashboard/src/@/analytics/report.ts @@ -269,22 +269,6 @@ export function reportAssetBuyFailed(properties: { // Assets Landing Page ---------------------------- -/** - * ### Why do we need to report this event? - * - To track number of asset creation started from the assets page - * - To track which asset types are being created the most - * - * ### Who is responsible for this event? - * @MananTank - */ -export function reportAssetCreationStarted(properties: { - assetType: "nft" | "coin"; -}) { - posthog.capture("asset creation started", { - assetType: properties.assetType, - }); -} - /** * ### Why do we need to report this event? * - To track number of assets imported successfully from the assets page @@ -386,9 +370,35 @@ export function reportAssetCreationFailed( }); } +/** + * ### Why do we need to report this event? + * - To track number of successful asset creations + * - To track which asset types are being created the most + * + * ### Who is responsible for this event? + * @MananTank + */ +export function reportMarketCreationSuccessful() { + posthog.capture("market creation successful"); +} + +/** + * ### Why do we need to report this event? + * - To track number of failed marketplace creations + * - To track the errors that users encounter when trying to create a marketplace + * + * ### Who is responsible for this event? + * @MananTank + */ +export function reportMarketCreationFailed(properties: { error: string }) { + posthog.capture("market creation failed", { + error: properties.error, + }); +} + type UpsellParams = { content: "storage-limit"; - campaign: "create-coin" | "create-nft"; + campaign: "create-coin" | "create-nft" | "create-marketplace"; sku: Exclude; }; diff --git a/apps/dashboard/src/@/components/contract-components/tables/contract-table.tsx b/apps/dashboard/src/@/components/contract-components/tables/contract-table.tsx index 84f8e6e8f02..22be6c86e16 100644 --- a/apps/dashboard/src/@/components/contract-components/tables/contract-table.tsx +++ b/apps/dashboard/src/@/components/contract-components/tables/contract-table.tsx @@ -48,7 +48,7 @@ export function ContractTable(props: { teamId: string; projectId: string; client: ThirdwebClient; - variant: "asset" | "contract"; + variant: "token" | "contract" | "marketplace"; teamSlug: string; projectSlug: string; }) { @@ -76,7 +76,7 @@ export function ContractTableUI(props: { pageSize: number; removeContractFromProject: (contractId: string) => Promise; client: ThirdwebClient; - variant: "asset" | "contract"; + variant: "token" | "contract" | "marketplace"; teamSlug: string; projectSlug: string; }) { @@ -143,7 +143,7 @@ export function ContractTableUI(props: { Name - Type + {props.variant !== "marketplace" && Type} Contract Address )} - {props.variant === "asset" && Token Page} + {props.variant === "token" && Token Page} Actions @@ -188,23 +188,25 @@ export function ContractTableUI(props: { /> - - {contract.contractType && - props.variant === "asset" && - contractTypeToAssetTypeRecord[contract.contractType] ? ( - - ) : ( - - )} - + {props.variant !== "marketplace" && ( + + {contract.contractType && + props.variant === "token" && + contractTypeToAssetTypeRecord[contract.contractType] ? ( + + ) : ( + + )} + + )} )} - {props.variant === "asset" && ( + {props.variant === "token" && (