-
Notifications
You must be signed in to change notification settings - Fork 79
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(dapps): Add connector badge to WC and BC dapps #16816
feat(dapps): Add connector badge to WC and BC dapps #16816
Conversation
Jenkins Builds
|
@alexjba what's the first ui in the video you used to test this please? |
|
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.
LGTM
Just some minor stuff
@@ -220,7 +220,7 @@ SQUtils.QObject { | |||
|
|||
onConnectDApp: (chains, dAppUrl, dAppName, dAppIcon, key) => { | |||
siwePlugin.connectionRequests.set(key.toString(), {chains, dAppUrl, dAppName, dAppIcon}) | |||
root.connectDApp(chains, dAppUrl, dAppName, dAppIcon, key) | |||
root.connectDApp(chains, dAppUrl, dAppName, dAppIcon, Constants.WalletConnect, key) |
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.
root.connectDApp(chains, dAppUrl, dAppName, dAppIcon, Constants.WalletConnect, key) | |
root.connectDApp(chains, dAppUrl, dAppName, dAppIcon, Constants.DAppConnectors.WalletConnect, key) |
@@ -140,7 +140,7 @@ SQUtils.QObject { | |||
function onSessionProposal(sessionProposal) { | |||
const key = sessionProposal.id | |||
d.activeProposals.set(key.toString(), { context: sessionProposal, promise: bcConnectionPromise }) | |||
root.newConnectionProposed(key, [1], sessionProposal.params.proposer.metadata.url, sessionProposal.params.proposer.metadata.name, sessionProposal.params.proposer.metadata.icons[0]) | |||
root.newConnectionProposed(key, [1], sessionProposal.params.proposer.metadata.url, sessionProposal.params.proposer.metadata.name, sessionProposal.params.proposer.metadata.icons[0], Constants.StatusConnect) |
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.
root.newConnectionProposed(key, [1], sessionProposal.params.proposer.metadata.url, sessionProposal.params.proposer.metadata.name, sessionProposal.params.proposer.metadata.icons[0], Constants.StatusConnect) | |
root.newConnectionProposed(key, [1], sessionProposal.params.proposer.metadata.url, sessionProposal.params.proposer.metadata.name, sessionProposal.params.proposer.metadata.icons[0], Constants.DAppConnectors.StatusConnect) |
Adding connector badge to the dapps list and connect modal Updating the RoundImageWithBadge to support custom badge size and margins Updating the RoundImageWithBadge to support both SVG and PNG as source Polish the dapps sign modal badge to match the design
dcf84a4
to
4c915e3
Compare
What does the PR do
Closes #16815
Affected areas
Wallet connect
Browser connect
Architecture compliance
My PR is consistent with this document: Status Desktop Architecture Guide
Screenshot of functionality (including design for comparison)
Screen.Recording.2024-11-26.at.12.52.56.mov