Skip to content

feat: update import SRP UI #31098

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

Merged
merged 4 commits into from
Mar 19, 2025
Merged

feat: update import SRP UI #31098

merged 4 commits into from
Mar 19, 2025

Conversation

vinnyhoward
Copy link
Contributor

@vinnyhoward vinnyhoward commented Mar 18, 2025

Description

Cleaned up and simplified import SRP flow according to @yanrong-chen specifications:

  • Simplified import SRP UI by removing redundant "Type your Secret Recovery Phrase" title. The input boxes as well as page description already infer what the use needs to do
  • Removed extra margins
  • Left aligned section description
  • Extended SRP dropdown word amount dropdown length
  • Changed circle encompassing step 2 at the top from gray to black (tested in both light and dark mode)
  • Moved SRP on change handler into useCallback

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Install fresh app
  2. Goto import flow
  3. Observe updated UI changes for SRP import

Screenshots/Recordings

NA

Before

Screenshot 2025-03-18 at 1 56 31 PM

After

Dark Mode

step-1

Light Mode

step-1-light

With Errors

Screenshot 2025-03-18 at 4 17 03 PM

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.

@vinnyhoward vinnyhoward requested a review from a team as a code owner March 18, 2025 22:08
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.

/>
<Dropdown
className="import-srp__number-of-words-dropdown"
onChange={(newSelectedOption) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this out of an inline function into a useCallback usage?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great suggestion! I'll do it now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@metamaskbot
Copy link
Collaborator

Builds ready [69602d9]
Page Load Metrics (5600 ± 2553 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint31221136524352512521
domContentLoaded204120994500450632431
load207221066560053162553
domInteractive321107152234112
backgroundConnect342036564549264
firstReactRender272401025225
getState18848222234112
initialActions017142
loadScripts154820382422349602382
setupStore1553213513565
uiStartup245323927848561312944
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 78 Bytes (0.00%)
  • common: -57 Bytes (-0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [ead672e]
Page Load Metrics (2546 ± 315 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint37838722234699336
domContentLoaded151134811992446214
load169141382546655315
domInteractive248535168
backgroundConnect1711351496317152
firstReactRender412391054924
getState751128304259124
initialActions01000
loadScripts110220281353228110
setupStore303141239144
uiStartup280911211530624411172
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 115 Bytes (0.00%)
  • common: -57 Bytes (-0.00%)

1 similar comment
@metamaskbot
Copy link
Collaborator

Builds ready [ead672e]
Page Load Metrics (2546 ± 315 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint37838722234699336
domContentLoaded151134811992446214
load169141382546655315
domInteractive248535168
backgroundConnect1711351496317152
firstReactRender412391054924
getState751128304259124
initialActions01000
loadScripts110220281353228110
setupStore303141239144
uiStartup280911211530624411172
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 115 Bytes (0.00%)
  • common: -57 Bytes (-0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [fa2714c]
Page Load Metrics (2545 ± 324 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint163037672292513246
domContentLoaded152630651930367176
load167543202545675324
domInteractive25182654220
backgroundConnect1481300554324155
firstReactRender792711204421
getState74872303217104
initialActions01000
loadScripts11181810132319895
setupStore353171537436
uiStartup266113872571628611374
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 115 Bytes (0.00%)
  • common: -57 Bytes (-0.00%)

@vinnyhoward vinnyhoward added this pull request to the merge queue Mar 19, 2025
Merged via the queue into main with commit 01b57c9 Mar 19, 2025
76 checks passed
@vinnyhoward vinnyhoward deleted the feat-update-import-srp-ui branch March 19, 2025 18:43
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2025
@metamaskbot metamaskbot added the release-12.16.0 Issue or pull request that will be included in release 12.16.0 label Mar 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.16.0 Issue or pull request that will be included in release 12.16.0 team-wallet-ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants