diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4f69fd5..15704d2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6164,6 +6164,14 @@ packages: pkg-types: 1.0.3 ufo: 1.3.2 + /mlly@1.6.1: + resolution: {integrity: sha512-vLgaHvaeunuOXHSmEbZ9izxPx3USsk8KCQ8iC+aTlp5sKRSoZvwhHh5L9VbKSaVC6sJDqbyohIS76E2VmHIPAA==} + dependencies: + acorn: 8.11.3 + pathe: 1.1.2 + pkg-types: 1.0.3 + ufo: 1.5.3 + /mobx-vue-lite@0.4.2(mobx@6.12.0)(vue@3.4.15): resolution: {integrity: sha512-Xx5blLWvbH8S+XZqBkQ+5RKUyFmtJZ1r//vQo/Npol3h0ByCbCaxRcf2Icnj2CGt8h/9jPdTLjJEkezoo/OHzw==} peerDependencies: @@ -6627,7 +6635,7 @@ packages: resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} dependencies: jsonc-parser: 3.2.1 - mlly: 1.5.0 + mlly: 1.6.1 pathe: 1.1.2 /playwright-core@1.44.0-alpha-2024-04-05: @@ -7702,6 +7710,9 @@ packages: /ufo@1.3.2: resolution: {integrity: sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==} + /ufo@1.5.3: + resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} + /unc-path-regex@0.1.2: resolution: {integrity: sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==} engines: {node: '>=0.10.0'} diff --git a/src/components/popups/ProposalDeposit.vue b/src/components/popups/ProposalDeposit.vue index c35c4d9..eaae4a9 100644 --- a/src/components/popups/ProposalDeposit.vue +++ b/src/components/popups/ProposalDeposit.vue @@ -14,6 +14,8 @@ import CommonButton from "@/components/ui/CommonButton.vue"; import { useWallet } from "@/composables/useWallet"; import { useClipboard } from "@vueuse/core"; import { useProposals } from "@/composables/useProposals"; +import { useTelemetry } from "@/composables/useTelemetry"; + import { formatAmount } from "@/utility"; interface Props { @@ -49,6 +51,7 @@ const toggleModal = (dir: boolean) => { resetDeposit(); }; +const { logEvent } = useTelemetry(); const { depositProposal } = useProposals(); const { address } = useWallet(); @@ -72,6 +75,10 @@ const signDeposit = async (isCLI = false) => { cliDepositInput.value = (isCLI ? depot : "") as string; displayState.value = isCLI ? "CLI" : "deposited"; + + logEvent("Sign Popup ProposalDeposit", { + signOption: isCLI ? "CLI" : "GUI", + }); }; const { copy, copied, isSupported: isClipboardSupported } = useClipboard(); @@ -82,7 +89,7 @@ const { copy, copied, isSupported: isClipboardSupported } = useClipboard();
diff --git a/src/components/popups/ProposalVote.vue b/src/components/popups/ProposalVote.vue index 1027398..39cb895 100644 --- a/src/components/popups/ProposalVote.vue +++ b/src/components/popups/ProposalVote.vue @@ -17,6 +17,7 @@ import UiInfo from "@/components/ui/UiInfo.vue"; import { useWallet } from "@/composables/useWallet"; import { useProposals } from "@/composables/useProposals"; import { useClipboard } from "@vueuse/core"; +import { useTelemetry } from "@/composables/useTelemetry"; interface Props { proposalId?: number; @@ -70,6 +71,7 @@ const checkVoteWeighted = computed( const { voteProposal, voteWeightedProposal } = useProposals(); const { address } = useWallet(); +const { logEvent } = useTelemetry(); const signVote = async (isCLI = false) => { if (!props.proposalId) return; @@ -121,6 +123,8 @@ const signVote = async (isCLI = false) => { cliVoteInput.value = (isCLI ? vote : "") as string; displayState.value = isCLI ? "CLI" : "voted"; + + logEvent("Sign Popup ProposalVote", { signOption: isCLI ? "CLI" : "GUI" }); }; const { copy, copied, isSupported: isClipboardSupported } = useClipboard(); @@ -131,7 +135,7 @@ const { copy, copied, isSupported: isClipboardSupported } = useClipboard();
diff --git a/src/components/popups/WalletConnect.vue b/src/components/popups/WalletConnect.vue index ad40bc6..a886a48 100644 --- a/src/components/popups/WalletConnect.vue +++ b/src/components/popups/WalletConnect.vue @@ -5,6 +5,7 @@ import { Ref, computed, ref } from "vue"; import { shorten } from "@/utility"; import UserBalance from "@/components/helper/UserBalance.vue"; import { bus } from "@/bus"; +import { useTelemetry } from "@/composables/useTelemetry"; const isOpen = ref(false); const isConnecting = ref(false); @@ -64,6 +65,8 @@ const cancelConnect = () => { bus.on("open", () => { isOpen.value = true; }); + +const { logEvent } = useTelemetry();