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

feat: Integrate JSX into snap notifications #27407

Open
wants to merge 92 commits into
base: develop
Choose a base branch
from

Conversation

hmalik88
Copy link
Contributor

@hmalik88 hmalik88 commented Sep 25, 2024

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:

  1. What is the reason for the change? Allow for richer snaps notifications
  2. What is the improvement/solution? Add expanded view for snaps, allowing a snap to return jsx content in the expanded view.

Screenshots/Recordings

After

Screen.Recording.2024-11-29.at.4.45.06.AM.mov

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • 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.

Copy link
Contributor

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.

@github-actions github-actions bot added the team-snaps-platform Snaps Platform team label Sep 25, 2024
@hmalik88 hmalik88 changed the base branch from mrtenz/bump-snaps-packages to develop September 25, 2024 19:42
Copy link

socket-security bot commented Sep 25, 2024

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

Mrtenz and others added 11 commits September 27, 2024 17:16
## **Description**


Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change? Previously, developers couldn't
navigate to parts of the extension with the existing functionality
provided to them through snaps UI
2. What is the improvement/solution? The Snaps `Link` component now
checks for if the url is a MetaMask url and navigates to the proper path
accordingly.


## **Screenshots/Recordings**

### **After**


## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] 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.
@hmalik88 hmalik88 changed the base branch from develop to mrtenz/bump-snaps-packages October 8, 2024 03:54
@hmalik88 hmalik88 marked this pull request as ready for review November 29, 2024 09:39
@hmalik88 hmalik88 removed request for a team and kumavis November 29, 2024 09:41
@metamaskbot
Copy link
Collaborator

Builds ready [a650335]
Page Load Metrics (1794 ± 98 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint27323441720386185
domContentLoaded14982251176318991
load15462333179420398
domInteractive24181403416
backgroundConnect881302311
firstReactRender15491974
getState44106792110
initialActions01000
loadScripts11181828135817584
setupStore65512126
uiStartup175726702031236113
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 197 Bytes (0.00%)
  • ui: 6.11 KiB (0.08%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [1365918]
Page Load Metrics (2466 ± 187 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint336314516411019489
domContentLoaded184530412427379182
load185531342466389187
domInteractive37131763115
backgroundConnect10105432713
firstReactRender16180533818
getState25146743115
initialActions01000
loadScripts139725041914331159
setupStore85423178
uiStartup208742102877547262
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 208 Bytes (0.00%)
  • ui: 6.11 KiB (0.08%)
  • common: 0 Bytes (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template team-snaps-platform Snaps Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants