-
-
Notifications
You must be signed in to change notification settings - Fork 675
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
Model R - smaller screen #2610
Model R - smaller screen #2610
Conversation
4ea394e
to
6141ca7
Compare
5d5309b
to
e1f7d34
Compare
1ea7e79
to
3abb737
Compare
e4e3d92
to
d5db922
Compare
a4eb5c9
to
0d4db93
Compare
dd1777a
to
eb4075f
Compare
Rebased on |
Let's just cancel the whole wallet creation. This is the original behaviour how it was meant to be. |
Big, // O | ||
Middle, // o | ||
Small, // . | ||
} |
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.
Nit: Model T uses the same style of scrollbars, feel free to reuse the simpler rendering algorithm in ui/model_tt/component/scroll.rs
.
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.
Overall the PR looks alright and seems to work, my comments are mostly re: style and code dupliction. Done for now, might give it once-over after the comments are addressed.
core/embed/rust/src/ui/model_tr/component/input_methods/choice.rs
Outdated
Show resolved
Hide resolved
core/embed/rust/src/ui/model_tr/component/flow_pages_helpers.rs
Outdated
Show resolved
Hide resolved
core/embed/rust/src/ui/model_tr/component/input_methods/wordlist.rs
Outdated
Show resolved
Hide resolved
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.
few minor things with intention to make adding new models as easy and clean as possible
Thanks for the suggestions. I did all the changes in cd2b55c so we see how they look like. I am not sure I like the empty functions more than conditionals in the main code, but have no problem with that if we all agree. Maybe name these functions "XXX_possibly_empty" so we see on first glance they can be unsupported for some models? This is my little worry that it will look like they are called everywhere even if they are not |
It looks better to me, but lets see what others think. I don't really see the need for a suffix, as the implementation is one click away, but i don't mind it either. Btw. Is there some technical limitation why passphrase on device would not be supported on T1? Since its using TR gui in core we might as well get rid of these conditions too, unless there is another reason which i dont know of. |
The "click to see the implementation" is not so straightforward in case of model-specific UI functions, as there is multiple of them. In my case, it always gets the
I think the |
👍 from me,
Or a comment at the call site. |
let's not forget that things like "confirm reenter pin" we discussed at standup. let's leave them in layout as-is, there's a bunch of things that shouldn't be there either but that's going to happen Soon(tm) anyway as part of the big layout unification. please move the homescreen validation back to apply_settings -- it's clearly not a layout function, but there is currently no better place for it. |
Done in cf99167 |
e1f2d1b
to
bda3e17
Compare
CI is nicely green just with changelog check. BTW, should we put the changelog into For the |
From where these changes come from for model T? |
Coming from changes we did to TR but are common. Should I revert some of those (3) changes? (the last one is just UI test change, the screen was already there) |
) -> None: | ||
from ubinascii import hexlify | ||
|
||
def handle_bytes(prop: PropertyType): |
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.
@grdddj please create a separate issue so we can resolve this
df70201
to
f1a7970
Compare
f1a7970
to
f8e3ce1
Compare
Replaces #2277 as the main
PR
formodel R
- this one already contains the smaller screen.Below are the current screens for the user onboarding and input methods.
It does not completely correspond to
Figma
, some screens are missing - based on #2609 - we may want to add these toTT
's design as well.It also doesn't yet have the "arrow signaling content continues from the previous page". I am not even sure we want to have this, together with the "arrow signalling content continues" - the scrollbars could be enough (scrollbar is just not yet implemented for the tutorial).
All screens to be seen under https://satoshilabs.gitlab.io/-/trezor/trezor-firmware/-/jobs/3279593101/artifacts/test_ui_report/all_unique_screens.html
Tutorial:
Seed backup:
PIN:
Num of words + recovery:
Passphrase