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

Add image component #1783

Merged
merged 13 commits into from
Oct 4, 2023
Merged

Add image component #1783

merged 13 commits into from
Oct 4, 2023

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Sep 26, 2023

Add image component for showing images as part of snaps custom UI. Also adds support for this feature in the snaps simulator. This PR will need follow-up work in the extension.

Progresses https://github.com/MetaMask/MetaMask-planning/issues/1345

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (eeab196) 95.92% compared to head (3b7a8c9) 95.93%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1783   +/-   ##
=======================================
  Coverage   95.92%   95.93%           
=======================================
  Files         239      239           
  Lines        5494     5504   +10     
  Branches      858      860    +2     
=======================================
+ Hits         5270     5280   +10     
  Misses        224      224           
Files Coverage Δ
packages/snaps-simulator/src/components/index.ts 100.00% <100.00%> (ø)
...ages/snaps-simulator/src/features/builder/utils.ts 79.24% <100.00%> (+0.39%) ⬆️
...imulator/src/features/renderer/components/index.ts 100.00% <100.00%> (ø)
packages/snaps-ui/src/builder.ts 100.00% <100.00%> (ø)
packages/snaps-ui/src/nodes.ts 100.00% <100.00%> (ø)

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

@FrederikBolding
Copy link
Member Author

@metamaskbot update-pr

1 similar comment
@FrederikBolding
Copy link
Member Author

@metamaskbot update-pr

@FrederikBolding
Copy link
Member Author

@metamaskbot update-pr

@FrederikBolding FrederikBolding marked this pull request as ready for review October 4, 2023 10:15
@FrederikBolding FrederikBolding requested a review from a team as a code owner October 4, 2023 10:15
packages/snaps-ui/src/builder.test.ts Outdated Show resolved Hide resolved
@FrederikBolding
Copy link
Member Author

@metamaskbot update-pr

Mrtenz
Mrtenz previously approved these changes Oct 4, 2023
Mrtenz
Mrtenz previously approved these changes Oct 4, 2023
@FrederikBolding
Copy link
Member Author

@metamaskbot update-pr

@FrederikBolding FrederikBolding merged commit 50ce7fd into main Oct 4, 2023
134 checks passed
@FrederikBolding FrederikBolding deleted the fb/custom-ui-image branch October 4, 2023 15:06
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