-
Notifications
You must be signed in to change notification settings - Fork 337
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
Feat: show balances in the Safe List #3546
Conversation
Branch preview✅ Deploy successful! Storybook: |
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 |
1010.45 KB (🟡 +2.17 KB) |
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!
Thirteen Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/apps |
46.54 KB (🟢 -46 B) |
1.03 MB |
/apps/custom |
38.17 KB (🟢 -42 B) |
1.02 MB |
/apps/open |
74.03 KB (🟢 -1.09 KB) |
1.06 MB |
/balances |
29.87 KB (🟢 -46 B) |
1.02 MB |
/balances/nfts |
20.26 KB (🟢 -172 B) |
1.01 MB |
/home |
59.7 KB (🟢 -67 B) |
1.05 MB |
/new-safe/create |
32.22 KB (🟡 +6 B) |
1.02 MB |
/new-safe/load |
18.35 KB (🟡 +6 B) |
1 MB |
/transactions |
101.46 KB (🟢 -205 B) |
1.09 MB |
/transactions/history |
101.42 KB (🟢 -205 B) |
1.09 MB |
/transactions/messages |
61.24 KB (🟢 -198 B) |
1.05 MB |
/transactions/queue |
56.55 KB (🟢 -533 B) |
1.04 MB |
/transactions/tx |
46.38 KB (🟢 -40 B) |
1.03 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.
Coverage report
Show files with reduced coverage 🔻
Test suite run success1426 tests passing in 198 suites. Report generated by 🧪jest coverage report action from 33debac |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
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.
ESLint Summary View Full Report
Report generated by eslint-plus-action |
@jmealy fixed, thank you! |
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 ✨
ESLint Summary View Full Report
Report generated by eslint-plus-action |
Fixed the cached list on disconnect, figuring out the "1 to confirm" thing with Aaron. |
@francovenica Aaron has fixed it on the CGW side. 👍 |
The List of safes being unloaded when the user disconnected looks good The other issue still persist: Since the tx is fully confirmed, neither owner1 or owner2 should see the "1 to confirm". Only the "1 pending tx" tag should show |
I am looking into this issue from the backend perspective now. Edit: a fix has been put into review on our end. I've tested it as per your reproduction steps and it solves the issue. I'll inform you when it's live. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
@francovenica, the "1 to confirm" issue appears to be solved now that we've merged the fix on our end. |
@iamacook Yes. It works fine now. LGTM |
What it solves
Resolves #3610
How this PR fixes it
I've added @iamacook's new endpoint for balances and pending transaction counts (the counts aren't displayed yet), as well as an infinite scroll pagination for the safe list.
Gateway SDK PR: safe-global/safe-gateway-typescript-sdk#161
Fiat formatting
I've also adjusted the currency formatting function a bit: it will now not show cents for amounts greater than 1k.