Adding option to set Custom Nonce to Confirm Approve Page#10595
Adding option to set Custom Nonce to Confirm Approve Page#10595NiranjanaBinoy merged 16 commits intodevelopfrom
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. |
9cca8ef to
d785737
Compare
Builds ready [d785737]
Page Load Metrics (680 ± 39 ms)
|
|
Wow @NiranjanaBinoy, this is awesome, super useful! Two quick comments:
ErrorMadness.mp4
|
|
Thanks, @darkwing. Regarding your questions:
|
d785737 to
a11627d
Compare
Builds ready [a11627d]
Page Load Metrics (608 ± 31 ms)
|
ui/app/pages/confirm-approve/confirm-approve-content/confirm-approve-content.component.js
Outdated
Show resolved
Hide resolved
ui/app/pages/confirm-approve/confirm-approve-content/confirm-approve-content.component.js
Outdated
Show resolved
Hide resolved
ui/app/pages/confirm-approve/confirm-approve-content/index.scss
Outdated
Show resolved
Hide resolved
Builds ready [60d47d4]
Page Load Metrics (609 ± 36 ms)
|
60d47d4 to
c7a7653
Compare
Builds ready [c7a7653]
Page Load Metrics (627 ± 28 ms)
|
Builds ready [efebbcc]
Page Load Metrics (583 ± 27 ms)
|
Builds ready [c1e6ae5]
Page Load Metrics (635 ± 27 ms)
|
brad-decker
left a comment
There was a problem hiding this comment.
Took my first pass on this, in addition, i'd say as a challenge to see how many of your custom classes and styles can be eliminated by making use of the Typography component as per one of my request comments.
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Show resolved
Hide resolved
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
ui/app/pages/confirm-approve/confirm-approve-content/index.scss
Outdated
Show resolved
Hide resolved
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
Builds ready [5dd3463]
Page Load Metrics (654 ± 29 ms)
|
Builds ready [4ec500a]
Page Load Metrics (610 ± 26 ms)
|
Builds ready [db224e6]
Page Load Metrics (638 ± 18 ms)
|
2e4a5b7 to
c6527f0
Compare
Builds ready [c6527f0]
Page Load Metrics (664 ± 25 ms)
|
Builds ready [20da7f8]
Page Load Metrics (1032 ± 72 ms)
|
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
ui/app/pages/confirm-approve/confirm-approve-content/confirm-approve-content.component.js
Outdated
Show resolved
Hide resolved
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
Builds ready [b68233d]
Page Load Metrics (612 ± 33 ms)
|
brad-decker
left a comment
There was a problem hiding this comment.
Getting close :D. My goal with this review was to help reduce overhead of maintaining this feature in the future. This really focused on:
- Eliminating as much custom css as possible to achieve the effect.
- Looking at CSS patterns to make sure that known maintenance issues like using absolute positioning are not used.
- Semantic HTML
Let me know if I can help in anyway!
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
ui/app/components/app/modals/customize-nonce/customize-nonce.component.js
Outdated
Show resolved
Hide resolved
ui/app/pages/confirm-approve/confirm-approve-content/confirm-approve-content.component.js
Outdated
Show resolved
Hide resolved
Builds ready [6d5d9ee]
Page Load Metrics (578 ± 31 ms)
|
…depreciating .container
6d5d9ee to
4734776
Compare
Builds ready [4734776]
Page Load Metrics (647 ± 39 ms)
|
Fixes: #10129
Explanation:
The option to set custom nonce was not available in Confirm Approve Page when the
Customize transaction nonceisON.This was because
<ConfirmApproveContent/>is passed as thecontentComponentpropertery of<ConfirmTransactionBase/>which prevents rendering ofrenderDetails()(method inConfirm-Transaction-Base.component.js), which contains the code for Custom Nonce settings.The new changes includes a section to display the
nextNoncenumber in the approve screen afterTransaction Feeand before the collapsing section withEditbutton. Upon clicking theedita new modal will open enabling the user to update the nonce number.Manual testing steps:
Customize transaction nonceto 'ON'Create TokenApprove token.Approve Token windowclick theeditbutton the nonce section , a new modal will appear where the user can customize the nonce value.Screen.Recording.2021-04-16.at.5.28.42.PM.mov