Skip to content
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

Re-introduce expanded view notifications via snap_notify #2881

Merged
merged 16 commits into from
Dec 3, 2024

Conversation

hmalik88
Copy link
Contributor

@hmalik88 hmalik88 commented Nov 12, 2024

This PR reverses the revert that was made to previous snap_notify changes that enabled an expanded view for snap notifications (see #2706). Additional adjustments were made for including the content type of the interface being created in the snap_notify call. These changes are being introduced post-introduction of interface persistence in the SnapInterfaceController (see #2856), which without, the expanded view feature was broken.

@hmalik88 hmalik88 requested a review from a team as a code owner November 12, 2024 11:19
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.49%. Comparing base (c66e562) to head (7dd44f5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2881   +/-   ##
=======================================
  Coverage   94.48%   94.49%           
=======================================
  Files         487      487           
  Lines       10428    10442   +14     
  Branches     1598     1600    +2     
=======================================
+ Hits         9853     9867   +14     
  Misses        575      575           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Mrtenz
Mrtenz previously requested changes Nov 12, 2024
packages/snaps-rpc-methods/src/restricted/notify.ts Outdated Show resolved Hide resolved
packages/snaps-rpc-methods/src/restricted/notify.ts Outdated Show resolved Hide resolved
@hmalik88 hmalik88 changed the title Re-introduce expanded view notifications via snap_notify **BREAKING**: Re-introduce expanded view notifications via snap_notify Dec 2, 2024
@FrederikBolding
Copy link
Member

Is there an extension PR where this has been integrated?

@hmalik88
Copy link
Contributor Author

hmalik88 commented Dec 3, 2024

Is there an extension PR where this has been integrated?

Yes: MetaMask/metamask-extension#27407

@hmalik88 hmalik88 changed the title **BREAKING**: Re-introduce expanded view notifications via snap_notify Re-introduce expanded view notifications via snap_notify Dec 3, 2024
@hmalik88 hmalik88 requested a review from Mrtenz December 3, 2024 15:44
@hmalik88 hmalik88 removed the request for review from Mrtenz December 3, 2024 15:48
@NicholasEllul NicholasEllul requested a review from Mrtenz December 3, 2024 16:17
@FrederikBolding FrederikBolding merged commit 6bd6fd8 into main Dec 3, 2024
166 checks passed
@FrederikBolding FrederikBolding deleted the hm/reverse-snap-notify-revert branch December 3, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants