Closed katspaugh closed 2 months ago
✅ Deploy successful!
Website: https://wc_tx--walletweb.review.5afe.dev/home?safe=eth:0xA77DE01e157f9f57C7c4A326eeE9C4874D0598b6
Storybook: https://wc_tx--walletweb.review.5afe.dev/storybook/
Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.
Type | Occurrences | Fixable |
---|---|---|
Errors | 0 | 0 |
Warnings | 0 | 0 |
Ignored | 0 | N/A |
Report generated by eslint-plus-action
This analysis was generated by the Next.js Bundle Analysis action. 🤖
Page | Size (compressed) |
---|---|
global |
950.07 KB (-88 B) |
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!
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/apps/open |
50.9 KB (🟢 -46 B) |
1000.97 KB |
/transactions |
73.9 KB (🟡 +20 B) |
1023.97 KB |
/transactions/history |
73.86 KB (🟡 +20 B) |
1023.94 KB |
/transactions/messages |
34.74 KB (🟡 +893 B) |
984.81 KB |
/transactions/queue |
29.14 KB (🟡 +20 B) |
979.21 KB |
/transactions/tx |
18.88 KB (🟡 +21 B) |
968.96 KB |
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.
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
🟡 | Statements | 79.45% (-0.02% 🔻) |
11298/14220 |
🔴 | Branches | 58.4% (-0.03% 🔻) |
2700/4623 |
🟡 | Functions | 66.56% (-0.01% 🔻) |
1819/2733 |
🟢 | Lines | 80.84% (-0.02% 🔻) |
10191/12607 |
1438 tests passing in 197 suites.
Report generated by 🧪jest coverage report action from 4baccedd1edcb999b34de2c7118199a685c97210
Looks like Usame has partially reviewed it, so I'll provisionally move it to QA but happy to make any requested changes later.
Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.
Type | Occurrences | Fixable |
---|---|---|
Errors | 0 | 0 |
Warnings | 0 | 0 |
Ignored | 0 | N/A |
Report generated by eslint-plus-action
I think these are ok when the tx name are generic like "Contract interaction" or "WalletConnect" , but if the name is the specific dapp I'd leave that one:
For example in this one, I think the "CowSwap" name says more than Wrapped ETH
The safe these were taken: sep:0x8f4A19C85b39032A37f7a6dCc65234f966F72551
Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.
Type | Occurrences | Fixable |
---|---|---|
Errors | 0 | 0 |
Warnings | 0 | 0 |
Ignored | 0 | N/A |
Report generated by eslint-plus-action
I've also adjusted the Messages to display the EIP712 domain name and primaryType if available.
I think these are ok when the tx name are generic like "Contract interaction" or "WalletConnect" , but if the name is the specific dapp I'd leave that one: For example in this one, I think the "CowSwap" name says more than Wrapped ETH
@francovenica the example you gave me has different txs on prod and staging. Nonce 378 on staging is not a Cow tx, and it's the same tx as nonce 380 with the prod CGW. So there's no issue there.
@katspaugh Check in both snapshots the TxHash, is the same, so it is the same transaction
@francovenica I see, true! Still, the issue there is a prod/dev mismatch. Safe App ids are different across these environments, so a tx made in one env won't match with the same (if any) Safe App in another. If you switch the prod CGW toggle, tx 378 gets the correct icon.
What it solves
For transactions made via WalletConnect, show the contract name instead of just WalletConnect in the tx summary.
How this PR fixes it
I've changed the
appUrl
or these txs from a hard-coded WalletConnect Safe App URL to the original dapp URL. Since our backend doesn't know anything about arbitrary dapp origins, it will not be able to annotate these txs as WalletConnect txs anymore, so we'll display a generic contract name instead. If the contract isn't verified, it will just say Contract interaction as usual.How to test it
Screenshots
Before
After