Skip to content

Commit 030c522

Browse files
committed
Dashboard: Add missing asset creation successs tracking for nft (#7494)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the NFT launch functionality by adding a successful asset creation report feature. It imports a new reporting function and invokes it upon successful NFT launch, improving analytics tracking. ### Detailed summary - Added import for `reportAssetCreationSuccessful` from `@/analytics/report`. - Called `reportAssetCreationSuccessful` with parameters indicating asset type and contract type upon successful NFT launch. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a success reporting step after completing the NFT launch process, providing improved feedback for successful NFT creation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent c356813 commit 030c522

File tree

1 file changed

+9
-1
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch

1 file changed

+9
-1
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch/launch-nft.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import Link from "next/link";
99
import { useMemo, useRef, useState } from "react";
1010
import { defineChain, type ThirdwebClient } from "thirdweb";
1111
import { TokenProvider, TokenSymbol, useActiveWallet } from "thirdweb/react";
12-
import { reportAssetCreationFailed } from "@/analytics/report";
12+
import {
13+
reportAssetCreationFailed,
14+
reportAssetCreationSuccessful,
15+
} from "@/analytics/report";
1316
import type { MultiStepState } from "@/components/blocks/multi-step-status/multi-step-status";
1417
import { MultiStepStatus } from "@/components/blocks/multi-step-status/multi-step-status";
1518
import { WalletAddress } from "@/components/blocks/wallet-address";
@@ -222,6 +225,11 @@ export function LaunchNFT(props: {
222225
}
223226
}
224227

228+
reportAssetCreationSuccessful({
229+
assetType: "nft",
230+
contractType: ercType === "erc721" ? "DropERC721" : "DropERC1155",
231+
});
232+
225233
props.onLaunchSuccess();
226234
batchesProcessedRef.current = 0;
227235
}

0 commit comments

Comments
 (0)