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
Added QR code #23428
Added QR code #23428
Conversation
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. |
Builds ready [36ec5f6]
Page Load Metrics (1056 ± 406 ms)
Bundle size diffs
|
# Conflicts: # ui/pages/institutional/custody/custody.js
…sk-extension into MMI-4693-QR-code
@metamaskbot update-policies |
Policies updated |
# Conflicts: # package.json # yarn.lock
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: npm/@metamask-institutional/transaction-update@0.1.38 |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
onClose(); | ||
}, [dispatch, mmiActions, onClose]); | ||
|
||
const handleError = useCallback((message, e) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could extract this as a util function. wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that in this case it doesn't provide any benefit as it's only being used inside this component and it's just for MMI context.
setQrConnectionRequest(decryptedMessage); | ||
handleClose(); | ||
} catch (e) { | ||
handleError('An error occurred while updating connection requests.', e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you test this error handling as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To test the error handling inside the catch block when updating connection requests in the component, I need to simulate a scenario where setQrConnectionRequest fails. I don't think this will benefit us. Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason behind this one was i saw you have tests covering all other error catching scenario, if it is covered somewhere else we can leave this as an exception 🙏🏻
Builds ready [2e65fbe]
Page Load Metrics (1229 ± 686 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [87761a1]
Page Load Metrics (1384 ± 712 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Develop and implement a QR code-based system to enable secure and efficient connections between custodian accounts and the web extension, leveraging advanced encryption methods and API communication.
https://www.loom.com/share/5968d1ab02894f88a1b4155cd1c55fe1?sid=58fc6793-4a82-4e79-b2ab-6bd81377d5df
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist