MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
709 stars 546 forks source link

Add metadata to interface state #2503

Closed Mrtenz closed 1 week ago

Mrtenz commented 1 week ago

This refactors the SnapInterfaceController's state to include metadata together with the state value. Currently the only metadata is the type, i.e., Dropdown, FileInput, Form, Input. Right now this is mainly required to properly map state to an object with files and values, which is required for #2494.

Mrtenz commented 1 week ago

@metamaskbot update-pr

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.38%. Comparing base (ea36386) to head (8b92da6).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2503 +/- ## ========================================== + Coverage 94.36% 94.38% +0.01% ========================================== Files 441 441 Lines 9068 9095 +27 Branches 1396 1402 +6 ========================================== + Hits 8557 8584 +27 Misses 511 511 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Mrtenz commented 1 week ago

We decided to not do this for now.