refactor(snap-keyring): refactor confirmation dialogs#23007
refactor(snap-keyring): refactor confirmation dialogs#23007
Conversation
|
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. |
e262a6e to
72a75f2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #23007 +/- ##
===========================================
- Coverage 68.65% 68.65% -0.00%
===========================================
Files 1098 1100 +2
Lines 43185 43197 +12
Branches 11532 11532
===========================================
+ Hits 29647 29655 +8
- Misses 13538 13542 +4 ☔ View full report in Codecov by Sentry. |
Builds ready [72a75f2]
Page Load Metrics (1011 ± 39 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
|
I have read the CLA Document and I hereby sign the CLA |
72a75f2 to
7504d02
Compare
Builds ready [7504d02]
Page Load Metrics (954 ± 64 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
ed50d2f to
ac743a4
Compare
Builds ready [ac743a4]
Page Load Metrics (1787 ± 56 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
ui/pages/confirmations/components/snap-account-error-message/snap-account-error-message.tsx
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/snap-account-error-message/snap-account-error-message.tsx
Outdated
Show resolved
Hide resolved
owencraston
left a comment
There was a problem hiding this comment.
Overall this change is looking really good and I am in favour of the idea. I think this gives us a good opportunity to extract more logic out of the main snap-keyring.ts file as that file is getting chaotic. Let me know if you have any questions or if you need another pass.
3a9266b to
5124640
Compare
Builds ready [5124640]
Page Load Metrics (1937 ± 88 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
5124640 to
f9f11e8
Compare
Builds ready [f9f11e8]
Page Load Metrics (1845 ± 68 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
owencraston
left a comment
There was a problem hiding this comment.
Looks amazing. Thank you for breaking up the snap-keyring file 🙏
Builds ready [d29b107]
Page Load Metrics (1300 ± 381 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [d4fa44b]
Page Load Metrics (1054 ± 422 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [67ee5de]
Page Load Metrics (1036 ± 378 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
gantunesr
left a comment
There was a problem hiding this comment.
Looks good! Just left a final comment
67ee5de to
f6a843f
Compare
danroc
left a comment
There was a problem hiding this comment.
LGTM, but I'll leave this minor observation from our contributor doc:
Do not use "should" at the beginning of the test name. The official Jest documentation omits this word from their examples, and it creates noise when reviewing the list of tests printed after a run.
|
Interesting, I was not aware of that convention. Now that I think about it, having a more imperative tone in the test name does have a better ring to it. I'd push to take @danroc suggestion but I don't see it as blocker for this PR |
Builds ready [2137ce4]
Page Load Metrics (1220 ± 355 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Refactor and generalize success/error messages being used in the Snap-Keyring "adapter". This refactoring will ease additions of new metrics for Snap account management (future PR).
Related issues
Fixes: N/A
Manual testing steps
yarn start:flaskScreenshots/Recordings
No changes to the UI/UX.
Pre-merge author checklist
Pre-merge reviewer checklist