metamask-extension
metamask-extension copied to clipboard
feat: Integrate JSX into snap notifications
Description
Adds an expanded view for snaps notifications, using JSX content returned from the snap to populate the expanded view.
Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions:
- What is the reason for the change? Allow for richer snaps notifications
- What is the improvement/solution? Add expanded view for snaps, allowing a snap to return jsx content in the expanded view.
Screenshots/Recordings
After
https://github.com/user-attachments/assets/a6ee1723-6ab0-4277-bf47-17ec40870c4b
Pre-merge author checklist
- [x] I've followed MetaMask Contributor Docs and MetaMask Extension Coding Standards.
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using JSDoc format if applicable
- [x] I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
Pre-merge reviewer checklist
- [x] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.