-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore: Optimize/10528 remove generated svgs #10535
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Bitrise✅✅✅ Commit hash: b2842ef Note
|
E2E passed on last commit with functional changes |
Quality Gate passedIssues Measures |
SVGs are not commited to the repo and is generated during a release build. The SVGs will not longer be generated |
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.
tracking usage of this assetIcon I found app/components/UI/AssetList/index.js that doesn't seem to be used either. Dead code or mistake?
@NicolasMassart I believe the logic of contract metadata within AssetIcon is dead code, which was removed |
Description
These changes removes the generated SVGs for contract-metadata. In addition to it taking ~7MB of the JS bundle size, it was also most likely no longer used.
Related issues
Fixes:
#10528
Manual testing steps
Navigate around where tokens appear and ensure that the tokens still render properly. Some areas to test:
Screenshots/Recordings
Before
JS bundle size on
main
After
JS bundle size after removal
Spot check
https://github.com/user-attachments/assets/83579c20-82d9-45c0-bf9a-826cebce18df
Pre-merge author checklist
Pre-merge reviewer checklist