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: MMS-1872 destination account picker for sol-evm (standalone component and story) #30282

Merged

Conversation

ghgoodreau
Copy link
Contributor

@ghgoodreau ghgoodreau commented Feb 12, 2025

Description

new account picker component and child components for solana crosschain swaps

integration blocked by dependencies, separate integration PR will come in the future, probably next week, to add it to the prepare-bridge page.

Open in GitHub Codespaces

Related issues

Fixes:

https://consensyssoftware.atlassian.net/browse/MMS-1872

Manual testing steps

Not relevant. Only on storybook for now. Component is not rendered anywhere in the app.

Screenshots/Recordings

Before

After

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.

Copy link
Contributor

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.

@metamaskbot
Copy link
Collaborator

Builds ready [c10abf4]
Page Load Metrics (1698 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15101914170010751
domContentLoaded14671896167911053
load15081919169811053
domInteractive268937157
backgroundConnect124719115
firstReactRender16102402713
getState55818199
initialActions00000
loadScripts1046139412178842
setupStore769232311
uiStartup17492514198317383
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@ghgoodreau ghgoodreau changed the title draft: MMS-1872 destination account picker for sol-evm (standalone component and story) feat: MMS-1872 destination account picker for sol-evm (standalone component and story) Feb 12, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [d0e7d70]
Page Load Metrics (1836 ± 84 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25021801672498239
domContentLoaded15192076181016579
load15282175183617684
domInteractive21141503517
backgroundConnect9129383316
firstReactRender17103552713
getState58217199
initialActions01000
loadScripts10871572132514670
setupStore987222110
uiStartup180026112157222107
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

</Text>
<Box display={Display.Flex} gap={2}>
{/* // TODO: not working - troubleshoot. */}
{/* {chainAvatars.length > 0 && (
Copy link
Member

Choose a reason for hiding this comment

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

Would getImageForChainId work here? Just merged my PR for adding support for multichain images


type DestinationAccountPickerProps = {
onAccountSelect: (account: InternalAccount | null) => void;
selectedSwapToAccount: InternalAccount | null;
Copy link
Member

Choose a reason for hiding this comment

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

Minor: use a more generic prop name for flexibility

micaelae
micaelae previously approved these changes Feb 13, 2025
micaelae
micaelae previously approved these changes Feb 13, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [4397845]
Page Load Metrics (1611 ± 43 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1411180016098842
domContentLoaded1403177015838239
load1412180616118943
domInteractive237532115
backgroundConnect976342211
firstReactRender1592392612
getState57515189
initialActions01000
loadScripts983127211377033
setupStore66016167
uiStartup15992290184713766
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 478 Bytes (0.01%)

@ghgoodreau ghgoodreau marked this pull request as ready for review February 13, 2025 19:57
@ghgoodreau ghgoodreau requested a review from a team as a code owner February 13, 2025 19:57
@metamaskbot
Copy link
Collaborator

Builds ready [41e6c24]
Page Load Metrics (1775 ± 106 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint17321691668388186
domContentLoaded150722921742216104
load152623181775221106
domInteractive247437157
backgroundConnect1379392211
firstReactRender147226189
getState65526209
initialActions01000
loadScripts10921641128017283
setupStore65720189
uiStartup166425802015261126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 478 Bytes (0.01%)

@ghgoodreau ghgoodreau requested a review from a team as a code owner February 14, 2025 01:00
@ghgoodreau ghgoodreau force-pushed the MMS-1872-destination-account-picker-standalone-component branch from 38c290d to 41e6c24 Compare February 14, 2025 01:06
@ghgoodreau ghgoodreau removed the request for review from a team February 14, 2025 01:07
@metamaskbot
Copy link
Collaborator

Builds ready [41e6c24]
Page Load Metrics (1775 ± 106 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint17321691668388186
domContentLoaded150722921742216104
load152623181775221106
domInteractive247437157
backgroundConnect1379392211
firstReactRender147226189
getState65526209
initialActions01000
loadScripts10921641128017283
setupStore65720189
uiStartup166425802015261126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 478 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [4c86d20]
Page Load Metrics (1778 ± 73 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23121031702368177
domContentLoaded15442034175315172
load15772098177815273
domInteractive208036157
backgroundConnect96126168
firstReactRender147423178
getState659252010
initialActions01000
loadScripts11041560128013163
setupStore667212010
uiStartup17792435205418488
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 478 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [d02fc73]
Page Load Metrics (1895 ± 75 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint28021871739500240
domContentLoaded15712132186314871
load16382187189515675
domInteractive28141493517
backgroundConnect869322211
firstReactRender1576332210
getState55620199
initialActions01000
loadScripts11301601136712660
setupStore86315157
uiStartup19072445217015072
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 227 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [38fab12]
Page Load Metrics (1577 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14371822157210952
domContentLoaded14271782155110048
load14361826157711254
domInteractive23139382713
backgroundConnect978292210
firstReactRender1494282311
getState46614178
initialActions00000
loadScripts1004133911208842
setupStore75415157
uiStartup16292298185419996
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 227 Bytes (0.00%)

micaelae
micaelae previously approved these changes Feb 14, 2025
Comment on lines 52 to 53
? account.type === 'solana:data-account'
: account.type !== 'solana:data-account';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there some constant we can use instead?

@ghgoodreau ghgoodreau enabled auto-merge February 14, 2025 21:57
@ghgoodreau ghgoodreau added this pull request to the merge queue Feb 14, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [366986a]
Page Load Metrics (1830 ± 133 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21328801538641308
domContentLoaded152027731800263127
load156428841830278133
domInteractive23132503316
backgroundConnect8119383115
firstReactRender1476322110
getState46218178
initialActions01000
loadScripts109922041331241116
setupStore75922199
uiStartup177731602110312150
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 227 Bytes (0.00%)

Merged via the queue into main with commit 8be74f3 Feb 14, 2025
73 checks passed
@ghgoodreau ghgoodreau deleted the MMS-1872-destination-account-picker-standalone-component branch February 14, 2025 22:45
@github-actions github-actions bot locked and limited conversation to collaborators Feb 14, 2025
@metamaskbot metamaskbot added the release-12.14.0 Issue or pull request that will be included in release 12.14.0 label Feb 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.14.0 Issue or pull request that will be included in release 12.14.0 team-swaps
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants