-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analytics: track tx creations and safe views #2787
Conversation
Branch preview✅ Deploy successful! |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success1098 tests passing in 154 suites. Report generated by 🧪jest coverage report action from cad088c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -12,14 +12,20 @@ export type SafeAppsTxParams = { | |||
params?: SendTransactionRequestParams | |||
} | |||
|
|||
const SafeAppsTxFlow = ({ data }: { data: SafeAppsTxParams }) => { | |||
const SafeAppsTxFlow = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why but I didn't see a Transaction created
event when I created one via CSV Airdrop safe app. Only Propose Transaction
and On-chain interaction
. Do we need to add it to the App Frame?
ESLint Summary View Full Report
Report generated by eslint-plus-action |
📦 Next.js Bundle Analysis for safe-wallet-webThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
Page | Size (compressed) |
---|---|
global |
1.39 MB (🟡 +609 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Six Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/addOwner |
3.59 KB (🟡 +37 B) |
1.4 MB |
/balances/nfts |
18.68 KB (🟡 +48 B) |
1.41 MB |
/home |
23.61 KB (🟢 -19 B) |
1.41 MB |
/settings/modules |
9.9 KB (🟡 +63 B) |
1.4 MB |
/settings/setup |
24.3 KB (🟡 +93 B) |
1.42 MB |
/settings/spending-limits |
22.78 KB (🟡 +63 B) |
1.41 MB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link
is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
ESLint Summary View Full Report
Report generated by eslint-plus-action |
This PR doesn't include the new naming scheme, this will be done later. I'm only adding Fixed the
You don't have to execute them, this new event tracks tx creation. |
* Fix: remove deprecated mobile pairing (#2794) * Fix: remove deprecated mobile pairing * Fix accounts[0] and Delete Account * Update onboard package * Update env vars * Fix: add help link in footer (#2822) * Fix: add help link in footer * External link * Fix: double scroll bar in safe apps (#2829) * Feat: track app version in all events * Tests
ESLint Summary View Full Report
Report generated by eslint-plus-action |
@francovenica thanks! Fixed for both safeapps and walletconnect. ✅ |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
What it solves
As per this doc, we want to track key events in a new way, and for that we were missing a
transaction_created
andsafe_opened
events.So I've instrumented all of our tx flows to emit a new CREATED event + the corresponding tx type from a pre-defined list.
Also, a few changes:
Simulate tx
event that we lost in the tx flow redesignProposed tx
Execute transaction
toToggle execute transaction
because it's actually triggered on the Execute checkboxHow to test it
Safe viewed
eventTransaction created
event