Skip to content

feat: Add clear functionality to SRP import error banner #30673

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 2 commits into from
Apr 3, 2025

Conversation

PatrykLucka
Copy link
Contributor

@PatrykLucka PatrykLucka commented Mar 3, 2025

Description

Adds an option to clear the SRP input and error message, so user can easily paste another SRP.

Related issues

Manual testing steps

  1. Go to Import SRP page
  2. Paste SRP that has been already imported (you can try to import the same SRP 2nd time)
  3. Error message should appear with a "Clear" option

Screenshots/Recordings

Before

Screenshot 2025-03-07 at 12 22 56

After

Screenshot 2025-03-07 at 12 29 37

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.

@PatrykLucka PatrykLucka self-assigned this Mar 3, 2025
Copy link
Contributor

github-actions bot commented Mar 3, 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.

@metamaskbot metamaskbot added the team-mmi PRs from the MMI team label Mar 3, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [4339c06]
Page Load Metrics (1937 ± 79 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint44924151864366176
domContentLoaded16942336190516077
load17112357193716479
domInteractive28139532914
backgroundConnect1179332110
firstReactRender1793322411
getState670242211
initialActions01000
loadScripts12541796143514168
setupStore971242311
uiStartup199027372235209100

Base automatically changed from feat/multi-srp-import-srp to main March 5, 2025 14:15
@PatrykLucka PatrykLucka force-pushed the add-clear-to-srp-input-error branch from 4339c06 to 61b6755 Compare March 7, 2025 11:18
@PatrykLucka PatrykLucka marked this pull request as ready for review March 7, 2025 11:31
@PatrykLucka PatrykLucka requested a review from a team as a code owner March 7, 2025 11:31
@metamaskbot
Copy link
Collaborator

Builds ready [61b6755]
Page Load Metrics (1666 ± 107 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint51419951511352169
domContentLoaded143924061642224108
load144924131666222107
domInteractive24107402211
backgroundConnect96321178
firstReactRender147022157
getState46013168
initialActions01000
loadScripts10591831123418288
setupStore75021189
uiStartup166026311895237114
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

shane-t
shane-t previously approved these changes Mar 28, 2025
@metamaskbot
Copy link
Collaborator

✨ Files requiring CODEOWNER review ✨

🖥️ @MetaMask/wallet-ux

  • ui/components/multichain/multi-srp/import-srp/import-srp.test.tsx
  • ui/components/multichain/multi-srp/import-srp/import-srp.tsx

@darkwing
Copy link
Contributor

I think the failing tests are a result of requiring a rebase

@PatrykLucka PatrykLucka force-pushed the add-clear-to-srp-input-error branch 2 times, most recently from 35226af to bf730e9 Compare April 1, 2025 09:46
@metamaskbot
Copy link
Collaborator

Builds ready [35226af]
UI Startup Metrics (1193 ± 67 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1193107013816712361328
load1040912121964934989
domContentLoaded1033896121565935985
domInteractive16123341527
firstPaint7311561220403267974
backgroundConnect106507910
firstReactRender19135262033
getState10429767
initialActions001001
loadScripts818684100564853947
setupStore8523379
WebpackHomeuiStartup1016892138077971996
load862604104561880942
domContentLoaded856593104160876945
domInteractive15124071435
firstPaint35557102833883193
backgroundConnect18135181641
firstReactRender16124251628
getState5317357
initialActions001000
loadScripts853582104060875943
setupStore8422389
FirefoxBrowserifyHomeuiStartup13661174189215513841787
load12301029175015112621649
domContentLoaded12301029175015112621649
domInteractive10041198249097
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23164362535
firstReactRender22194852431
getState7420278
initialActions001001
loadScripts12091011173114812341604
setupStore6424367
WebpackHomeuiStartup9498151371151867983
load8317101190135777891
domContentLoaded8317101190135777891
domInteractive113482332315898
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect191377102136
firstReactRender18162521823
getState94651179
initialActions001001
loadScripts8156971164131763872
setupStore8554678
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@PatrykLucka PatrykLucka force-pushed the add-clear-to-srp-input-error branch from bf730e9 to 22d849a Compare April 1, 2025 09:54
@metamaskbot
Copy link
Collaborator

Builds ready [22d849a]
UI Startup Metrics (1172 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1172106113925712081274
load1020929119050956993
domContentLoaded1013916118751955993
domInteractive16124051527
firstPaint7641291126384270993
backgroundConnect13613716910
firstReactRender20135972036
getState11531768
initialActions002001
loadScripts79569397252828883
setupStore8519278
WebpackHomeuiStartup1006796122477968994
load85061796564898947
domContentLoaded84561096263894942
domInteractive15124871435
firstPaint33954947331838933
backgroundConnect17134171639
firstReactRender16123351629
getState5319356
initialActions001001
loadScripts84260796063892940
setupStore8424379
FirefoxBrowserifyHomeuiStartup13531200198614213791706
load12201061183313512511536
domContentLoaded12201061183213512501535
domInteractive10436184268798
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect22166262333
firstReactRender22183442430
getState6421378
initialActions001001
loadScripts11991043180013212261498
setupStore6425368
WebpackHomeuiStartup9768011572198878976
load8517021355172783896
domContentLoaded8507021355172783895
domInteractive115471872013492
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2313106192179
firstReactRender18162821922
getState8462779
initialActions001001
loadScripts8346891337169770880
setupStore105841578
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@PatrykLucka PatrykLucka requested a review from darkwing April 1, 2025 12:07
@PatrykLucka PatrykLucka added this pull request to the merge queue Apr 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 2, 2025
@PatrykLucka PatrykLucka added this pull request to the merge queue Apr 3, 2025
Merged via the queue into main with commit 103a3ec Apr 3, 2025
147 checks passed
@PatrykLucka PatrykLucka deleted the add-clear-to-srp-input-error branch April 3, 2025 10:26
@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2025
@metamaskbot metamaskbot added the release-12.17.0 Issue or pull request that will be included in release 12.17.0 label Apr 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.17.0 Issue or pull request that will be included in release 12.17.0 team-mmi PRs from the MMI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants