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(multichain-connect-ui): Add UI preparation changes for multichain connection flow #30164

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

david0xd
Copy link
Contributor

@david0xd david0xd commented Feb 6, 2025

Description

This PR updates connection flow to prepare it for multichain connection/permission/account requests.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3899

Epic: https://github.com/MetaMask/MetaMask-planning/issues/3660

Design: https://www.figma.com/design/TVuSsLlBQGypLamTsjN1hG/Connection?node-id=286-3221&p=f&t=FkFfpgICtIpA2WBY-0

Notes

Manual testing steps

  1. Go to test-dapp.
  2. Request permissions / request to connect.
  3. Check UI functionality and designs.
  4. Check edge cases.
  5. Confirm functionality of the entire flow.

Screenshots/Recordings

Before

Screenshot 2025-02-11 at 17 26 59
Screenshot 2025-02-11 at 17 27 27
Screenshot 2025-02-11 at 17 27 57

After

Screen.Recording.2025-02-13.at.20.15.27.mov

Regular flows

Screenshot 2025-02-13 at 20 20 04
Screenshot 2025-02-13 at 20 20 18
Screenshot 2025-02-13 at 20 20 31
Screenshot 2025-02-13 at 20 21 41

IP address as a hostname and missing icon handling

Screenshot 2025-02-13 at 23 19 41
Screenshot 2025-02-13 at 23 19 19
Screenshot 2025-02-13 at 23 19 59

Empty state edge case handling

Screen.Recording.2025-02-14.at.13.28.54.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.

@david0xd david0xd added the team-snaps-platform Snaps Platform team label Feb 6, 2025
@david0xd david0xd self-assigned this Feb 6, 2025
Copy link
Contributor

github-actions bot commented Feb 6, 2025

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.

@david0xd david0xd force-pushed the dd/permission-connect-multichain branch 4 times, most recently from e825630 to 7e061c5 Compare February 12, 2025 12:09
@metamaskbot
Copy link
Collaborator

Builds ready [83a0e29]
Page Load Metrics (1927 ± 87 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16162185192517986
domContentLoaded16052170190417282
load16172184192718087
domInteractive24116543014
backgroundConnect107024178
firstReactRender1781352411
getState55418188
initialActions01000
loadScripts11241629138914168
setupStore862252110
uiStartup18712515220718288
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 1.76 KiB (0.02%)
  • common: 176 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/permission-connect-multichain branch from cf87783 to ce45bd4 Compare February 13, 2025 15:25
@metamaskbot
Copy link
Collaborator

Builds ready [ce45bd4]
Page Load Metrics (1713 ± 72 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint26720221628343165
domContentLoaded15192006169214570
load15282023171315172
domInteractive219533157
backgroundConnect973262110
firstReactRender1571422411
getState45913147
initialActions01000
loadScripts10371499122713263
setupStore766232110
uiStartup17052477196220498
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 2.11 KiB (0.03%)
  • common: 176 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [d2ed13f]
Page Load Metrics (1754 ± 58 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint26120871685352169
domContentLoaded15612001173011455
load15702009175412158
domInteractive23120412512
backgroundConnect783272612
firstReactRender1781452311
getState45916178
initialActions00000
loadScripts11081505126710852
setupStore86519199
uiStartup17562298204113967
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.11 KiB (0.04%)
  • common: 177 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [10aad1a]
Page Load Metrics (1631 ± 52 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14691816163111254
domContentLoaded14491760160910751
load14591778163110752
domInteractive2396442512
backgroundConnect105823157
firstReactRender1575332411
getState547994
initialActions01000
loadScripts1053131711708742
setupStore665232211
uiStartup16692125185813163
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.11 KiB (0.04%)
  • common: 177 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/permission-connect-multichain branch 2 times, most recently from e9f7f9a to 4c77367 Compare February 14, 2025 10:39
@eriknson
Copy link
Member

Summoning @hesterbruikman for visibility

@metamaskbot
Copy link
Collaborator

Builds ready [113dfc0]
Page Load Metrics (1746 ± 101 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint152721241746210101
domContentLoaded14742107172120699
load152721161746209101
domInteractive21143392713
backgroundConnect1073312210
firstReactRender1583432613
getState55410105
initialActions00000
loadScripts10371554123416378
setupStore86319178
uiStartup169924171988237114
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.23 KiB (0.04%)
  • common: 343 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [af112ec]
Page Load Metrics (1555 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14211777156010349
domContentLoaded1390176615389948
load14191780155510450
domInteractive198636189
backgroundConnect96222178
firstReactRender1495382914
getState45210136
initialActions01000
loadScripts972126610948440
setupStore76013147
uiStartup15492379180519895
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.56 KiB (0.05%)
  • common: 407 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/permission-connect-multichain branch from 80d0006 to b81d586 Compare February 14, 2025 15:34
@david0xd david0xd marked this pull request as ready for review February 14, 2025 15:41
@david0xd david0xd requested a review from a team as a code owner February 14, 2025 15:41
@metamaskbot
Copy link
Collaborator

Builds ready [b81d586]
Page Load Metrics (1933 ± 142 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint26026741695645310
domContentLoaded156026471906295142
load160826681933296142
domInteractive27147523115
backgroundConnect987332311
firstReactRender1589432612
getState55618168
initialActions01000
loadScripts110618891371213102
setupStore96517168
uiStartup186229012246308148
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.56 KiB (0.05%)
  • common: 407 Bytes (0.00%)

Copy link
Member

@eriknson eriknson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Design lgtm!

@david0xd david0xd force-pushed the dd/permission-connect-multichain branch from b81d586 to 50d30a0 Compare February 17, 2025 13:44
@metamaskbot
Copy link
Collaborator

Builds ready [50d30a0]
Page Load Metrics (1732 ± 102 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint36022281649363174
domContentLoaded146222101714209100
load147422241732213102
domInteractive2492412110
backgroundConnect98822199
firstReactRender14101412713
getState45614157
initialActions01000
loadScripts10251676124718589
setupStore786272512
uiStartup171225242001240115
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.56 KiB (0.05%)
  • common: 407 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/permission-connect-multichain branch from 50d30a0 to b4e4be9 Compare February 18, 2025 09:43
@metamaskbot
Copy link
Collaborator

Builds ready [b4e4be9]
Page Load Metrics (2007 ± 117 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint24723211644677325
domContentLoaded158323881970242116
load159823992007243117
domInteractive21136503216
backgroundConnect1086432311
firstReactRender14171413718
getState55316136
initialActions01000
loadScripts11501809145720297
setupStore66018168
uiStartup186530402319336162
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.56 KiB (0.05%)
  • common: 407 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/permission-connect-multichain branch from b4e4be9 to ae5ddc0 Compare February 20, 2025 11:10
@metamaskbot
Copy link
Collaborator

Builds ready [ae5ddc0]
Page Load Metrics (1932 ± 123 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint150726621932259124
domContentLoaded150025661905249120
load150926511932257123
domInteractive25197584622
backgroundConnect983322311
firstReactRender1674412311
getState56615168
initialActions01000
loadScripts106119951398212102
setupStore76420209
uiStartup173429362206289139
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 3.56 KiB (0.05%)
  • common: 407 Bytes (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-snaps-platform Snaps Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants