-
-
Notifications
You must be signed in to change notification settings - Fork 670
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
ETH send flow - unify button requests #3393
Conversation
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 good, would like to see UI diffs before approving.
tools/check-bitcoin-only
Outdated
@@ -10,7 +10,7 @@ EXCEPTIONS+=( "mnemonic" ) # has NEM in it | |||
EXCEPTIONS+=( "workflow" "overflow" ) # has Flo in it | |||
EXCEPTIONS+=( "SyntaxError" ) # has Axe in it | |||
EXCEPTIONS+=( "DKDNEM" ) # has NEM in it, some sort of weird coincidence | |||
EXCEPTIONS+=( "confirm_ethereum_tx" ) # is model-specific, so is in layout/__init__.py instead of ethereum/layout.py | |||
EXCEPTIONS+=( "confirm_ethereum_tx ethereum_tx_summary" ) # is model-specific, so is in layout/__init__.py instead of ethereum/layout.py |
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.
EXCEPTIONS+=( "confirm_ethereum_tx ethereum_tx_summary" ) # is model-specific, so is in layout/__init__.py instead of ethereum/layout.py | |
EXCEPTIONS+=( "confirm_ethereum_tx" "ethereum_tx_summary" ) # is model-specific, so is in layout/__init__.py instead of ethereum/layout.py |
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.
Done in a5d3e2f
ButtonRequestType.ConfirmOutput, | ||
modify_layout.page_count(), | ||
) | ||
result = await ctx_wait(modify_layout) |
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.
I'm afraid you'll have to call .request_complete_repaint()
on the two layouts otherwise they'll paint over each other.
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.
Is this situation different in TR
than in TT
? This is the same exact code as in confirm_modify_output
's code in core/src/trezor/ui/layouts/tt/__init__.py
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.
Seems to be the same & in both cases there is garbage on screen when you go back from the MODIFY AMOUNT screen in test_p2wpkh_in_p2sh_fee_bump_from_external
.
TBH this should be handled automagically somewhere in class Layout
, not sure if it's worth spending time on fixing it or rewriting to rust ...
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.
Good catch. I did the quick fix in 4970a6b --- requesting repaint in all while True:
cases where we define the layout in front of the loop
c51f5f2
to
a5d3e2f
Compare
Rebased on |
Can we somehow easily fix it? |
Easily - no |
Then leave it like that for now. I'd like to give higher prio for the whole centering task in the near future. |
is this ready to merge (after fixing the conflict)? |
From my side yes. Feel free to take over the PR |
Makes sure T2B1 will send the same ButtonRequests as T2T1. Does it by splitting the Rust layout into two separate dialogs. [no changelog]
[no changelog]
[no changelog]
…n strings [no changelog]
[no changelog]
9b5e4ec
to
05df37c
Compare
QA OK already released via 2.6.4 firmware version |
Fixes #3392: