-
Notifications
You must be signed in to change notification settings - Fork 5k
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(23946): Add advanced details component #24833
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. |
7fcec54
to
3c0c7ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! Stories make it very easy for me to review for UI it makes a huge difference. Made a couple small suggestions
ui/pages/confirmations/components/confirm/info/shared/advanced-details/advanced-details.tsx
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/advanced-details/advanced-details.tsx
Show resolved
Hide resolved
ebe5a36
to
4b39e28
Compare
Not sure how it is expected to work:
https://jam.dev/c/4c831549-d1da-4638-935c-d64d0de6e6c7 Screen.Recording.2024-05-29.at.13.04.13.mov |
test/e2e/tests/confirmations/contract-interaction-redesign.spec.js
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/contract-interaction/contract-interaction.tsx
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/advanced-details/advanced-details.tsx
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/advanced-details/advanced-details.tsx
Outdated
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/advanced-details/advanced-details.tsx
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/advanced-details/advanced-details.tsx
Show resolved
Hide resolved
ui/pages/confirmations/components/confirm/info/shared/advanced-details/advanced-details.tsx
Show resolved
Hide resolved
e07bb4c
to
0d3f22e
Compare
@sleepytanya Thanks for reviewing.
This should be fixed now
I believe this behaviour is by default. You cannot submit a tx with a higher nonce than the current one, or a lower nonce if a tx with that nonce has been already approved. The only way I can think of for testing this, is to submit a transaction with very low gas and immediately send another transaction with the same nonce with higher gas to replace it. However, this cannot currently be tested as the Gas controls are not yet available on this PR. I suggest we take note of this scenario and revisit it once that work is merged.
I wasn't able to reproduce it and couldn't see the video |
fe1811f
to
2d0bd9d
Compare
Sorry, I may have deleted the video accidentally. New link: https://jam.dev/c/ce1b802b-5620-42d7-a5d7-4c25665b3336 Nonce is non-editable when the nonce customization is off: https://jam.dev/c/2b5280e8-b231-4360-bdb1-638f31c27adc Not sure if using higher nonce was addressed yet but I checked just in case (doesn't work): https://jam.dev/c/7720eaea-b518-4047-bf21-b08c46af2a0b Looks like custom nonce is being ignored altogether- here the transaction with the low custom nonce is sent with the subsequent nonce value: https://jam.dev/c/7eb917b8-d6dc-49de-92c1-ab7e659747d9 Expected behavior - attempt to send a tx with the low nonce results in the warning 'nonce is too low' and failed tx (unless user is trying to cancel pending tx with the same nonce). |
5e07f2b
to
1f71796
Compare
Looks beautiful!
Video: https://jam.dev/c/32aecd57-ddd8-454d-8049-4262d48238b4 |
907f591
to
9cc859b
Compare
bf323c5
to
cc91236
Compare
@@ -90,6 +104,27 @@ const HeaderInfo = () => { | |||
}} | |||
/> | |||
</Tooltip> | |||
{isShowAdvancedDetailsToggle && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-blocking: would be good to have a story that shows this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI LGTM!
7159a89
ui/pages/confirmations/confirm-transaction-base/confirm-transaction-base.container.js
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #24833 +/- ##
===========================================
+ Coverage 64.93% 64.94% +0.01%
===========================================
Files 1385 1386 +1
Lines 54870 54947 +77
Branches 14408 14428 +20
===========================================
+ Hits 35625 35681 +56
- Misses 19245 19266 +21 ☔ View full report in Codecov by Sentry. |
Builds ready [0b51574]
Page Load Metrics (48 ± 4 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Adds an advanced details subsection. This component is conditionally rendered when the button is selected in the header.
It includes nonce information that may be edited if the setting has been toggled. It also includes hex data and the function signature from 4bytes (if this 3rd party has been enabled).
Related issues
Fixes: #23946
Manual testing steps
Screenshots/Recordings
After
Pre-merge author checklist
Pre-merge reviewer checklist