diff --git a/apps/wallet/src/shared/analytics/ampli/index.ts b/apps/wallet/src/shared/analytics/ampli/index.ts index 7ee9b2b62b694..4717efe4ceddc 100644 --- a/apps/wallet/src/shared/analytics/ampli/index.ts +++ b/apps/wallet/src/shared/analytics/ampli/index.ts @@ -139,6 +139,17 @@ export interface ClickedCollectibleCardProperties { objectId: string; } +export interface ClickedHideAssetProperties { + /** + * The object type of a collectible. + */ + collectibleType: string; + /** + * The ID of an object on Sui. + */ + objectId: string; +} + export interface ClickedStakeSuiProperties { /** * Whether or not the user is already staking some SUI. @@ -389,6 +400,14 @@ export class ClickedGetStarted implements BaseEvent { event_type = 'clicked get started'; } +export class ClickedHideAsset implements BaseEvent { + event_type = 'clicked hide asset'; + + constructor(public event_properties: ClickedHideAssetProperties) { + this.event_properties = event_properties; + } +} + export class ClickedImportExistingWallet implements BaseEvent { event_type = 'clicked import existing wallet'; } @@ -760,6 +779,23 @@ export class Ampli { return this.track(new ClickedGetStarted(), options); } + /** + * clicked hide asset + * + * [View in Tracking Plan](https://data.amplitude.com/mystenlabs/Sui%20Wallet/events/main/latest/clicked%20hide%20asset) + * + * Event has no description in tracking plan. + * + * @param properties The event's properties (e.g. collectibleType) + * @param options Amplitude event options. + */ + clickedHideAsset( + properties: ClickedHideAssetProperties, + options?: EventOptions, + ) { + return this.track(new ClickedHideAsset(properties), options); + } + /** * clicked import existing wallet * diff --git a/apps/wallet/src/ui/app/pages/home/nfts/index.tsx b/apps/wallet/src/ui/app/pages/home/nfts/index.tsx index c3048256dede9..0f3edf260d0d5 100644 --- a/apps/wallet/src/ui/app/pages/home/nfts/index.tsx +++ b/apps/wallet/src/ui/app/pages/home/nfts/index.tsx @@ -189,7 +189,10 @@ function NftsPage() {