1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00
Commit Graph

14017 Commits

Author SHA1 Message Date
obrusvit
5d009d8587 refactor(core): move confirm_value
- model_t ConfirmBlobParams removed from layout.rs
2024-11-21 13:37:41 +01:00
obrusvit
8d08341adc refactor(core): move confirm_blob
- model_t `ConfirmBlobParams` copied for now and the return type of
`into_layout` changed to `Result<Gc<LayoutObj>>`
2024-11-21 13:07:08 +01:00
obrusvit
04f6d779e2 refactor(core): move show_info_with_cancel
- not implemented for model_r
2024-11-21 13:07:07 +01:00
obrusvit
926b91cb66 refactor(core): move confirm_with_info
- decided to import stuff from micropython so that I don't have to write
`crate::micropython::yadayada` everywhere. I'll remove that from other
functions later during squash.
2024-11-21 13:07:07 +01:00
obrusvit
9bff86142d refactor(core): move and cleanup show_share_words
- model_t version was moved from using plain Paragraph to a dedicated
component `ShareWords` so that it's consistent with other models. This
allowed to move formatting to Rust and allowed the trait function to
have `words` parameter of type `Vec<TString, 33>`
- model_r ShareWords::render slightly refactored to be consistent with
the new model_t version
- mercury uses a unique version. The reason is that mercury SwipeFlow
contains also the initial screen with instructions and prompt screen at
the end.
2024-11-21 13:07:07 +01:00
obrusvit
a7a12cf898 refactor(core): move confirm_fido to UiFeatures
- still uses Gc<List> for now
2024-11-21 13:07:07 +01:00
obrusvit
0bc5dfac6a refactor(core): cleanup continue_recovery
- `confirm_recovery` of model_t and model_r merged with
`flow_continue_recovery` of mercury into a `continue_recovery_homepage`
trait function
- parameters were renamed to be more descriptive
- model_t has also the remaining shares info passed in, but not used
2024-11-21 13:07:07 +01:00
obrusvit
46a98b937e refactor(core): move show_simple to UiFeatures
- replace `show_passphrase` of model_r with `show_simple`
2024-11-19 16:41:42 +01:00
obrusvit
84ca196f35 refactor(core): move show_success/warning/error
- return type is Gc<LayoutObj>
- new_show_modal removed from model_t layout.rs
2024-11-19 16:41:42 +01:00
obrusvit
e551a61e39 refactor(core): move show_remaining_shares
- only supported for model_t
- dependence on Obj
2024-11-19 16:39:14 +01:00
obrusvit
6bb6ce401c refactor(core): move show_group_share_success 2024-11-19 16:39:14 +01:00
obrusvit
99b450545a refactor(core): move confirm_modify_output/fee 2024-11-19 16:38:51 +01:00
obrusvit
664597374b refactor(core): move confirm_coinjoin 2024-11-19 16:38:41 +01:00
obrusvit
36f4c46389 refactor(core): move tutorial to UiFeatures
- unsupported on model_t
2024-11-19 16:36:42 +01:00
obrusvit
d4fa752709 refactor(core): move confirm_reset to UiFeatures
- unify param to just one bool `recovery`
- title and button is determined in Rust based on the argument
2024-11-19 16:36:42 +01:00
obrusvit
2692743608 refactor(core): move show_mismatch to UiFeatures 2024-11-19 16:36:42 +01:00
obrusvit
c4bd129ddc refactor(core): move show_checklist to UiFeatures
- checklist is now fixed to 3 items as they are not used in other way,
it can be switched to use heapless::Vec if the need for more items
appears.
2024-11-19 16:36:42 +01:00
obrusvit
91a9f5f3a0 refactor(core): move request_number to UiFeatures
- in addition, to unify the trait function arguments, ButtonRequest was
moved from Rust side to uPy side for mercury
2024-11-19 16:36:31 +01:00
obrusvit
83e0b23ad1 refactor(core): move show_progress to UiFeatures 2024-11-19 16:35:56 +01:00
obrusvit
160e6be4b9 refactor(core): move show_wait_text to UiFeatures 2024-11-19 16:33:48 +01:00
obrusvit
e82988665c refactor(core): move set_brightness to UiFeatures
- this is a first commit where a trait function is not implemented for
particular model, namely `set_brightness` for `model_r`
2024-11-19 16:33:30 +01:00
obrusvit
f202ea2703 refactor(core/mercury): confirm_homescreen
- implement Confirm Homescreen for mercury according to Figma
- implementation as SwipeFlow also allows using it as `impl
LayoutMaybeTrace` return type for the UiFeatures
2024-11-19 16:33:30 +01:00
obrusvit
765507b9e3 refactor(core): move confirm_homescreen
- this commit does not compile for mercury
2024-11-19 16:33:20 +01:00
obrusvit
634d30b165 refactor(core): move show_homescreen/lockscreen 2024-11-19 16:29:47 +01:00
obrusvit
88c5466288 refactor(core): move confirm_firmware_update 2024-11-19 16:29:47 +01:00
obrusvit
5aeab55429 refactor(core): move selectors to UiFeatures 2024-11-19 16:29:46 +01:00
obrusvit
34c374b3bc refactor(core): move confirm_action to UiFeatures 2024-11-19 16:27:27 +01:00
obrusvit
af4c3dc69c refactor(core): move functions to trezorui_api
- disable_animations
- check_homescreen_format
2024-11-19 16:26:15 +01:00
obrusvit
dab0b7f3cc refactor(core): move keyboards to UiFeatures
Make layouts utilizing keyboards a part of UiFeaturesFirmware
2024-11-19 16:26:15 +01:00
obrusvit
f354a3d6ba feat(core): introdue UiFeaturesFirmware
This commit introduces a trait defining high level UI building blocks.
The trait is common for all models.

trezorui_api module exposes these functions to MicroPython world.

`show_info` is implemented as a first function.
2024-11-19 16:24:23 +01:00
obrusvit
c51f51d233 feat(core): introduce trezorui_api
The new module is the place for type definitions of the interface
between rust and micropython world.

The goal is to replace `trezorui2` with `trezorui_api` without
duplicated definitions.
2024-11-19 16:24:23 +01:00
obrusvit
af554458b5 refactor(core/mercury): use params structs
Supply the rust layout with dedicated paremeter type instead of plain
micropython::Obj. The types used are ConfirmBlobParams and
ShowInfoParams.

[no changelog]
2024-11-19 16:19:31 +01:00
obrusvit
7cf38ec4c5 refactor(core/mercury): separate upy args parsing
[no changelog]
2024-11-19 16:19:31 +01:00
obrusvit
12388ed24a refactor(core/mercury): remove duplicated struct
- removes 2nd definition of ConfirmBlobParams, the choice of fields and
what supplied in ctor and what in `with_` methods should be thought
through again.

[no changelog]
2024-11-19 16:19:31 +01:00
Ioan Bizău
f69a0f6d7d chore(core): update fixtures 2024-11-19 13:36:01 +02:00
Ioan Bizău
7f19166c83 refactor(core): get rid of description_font_green
[no changelog]
2024-11-19 13:36:01 +02:00
Ioan Bizău
777907ab3b refactor(core): drop confirm_blob_with_optional_pagination
Commit c300576d6c introduced
`confirm_blob_with_optional_pagination` which proved to be unpopular and
impractical. This commit brings back the old behaviour of having the
`ask_pagination` parameter on `confirm_blob`. It also reverts back to
using the old way of paginating `confirm_blob` on model R, which the
aforementioned commit ignored and re-implemented from scratch.

[no changelog]
2024-11-19 13:36:01 +02:00
Ioan Bizău
30717bc5c4 fix(core): fix crash caused by marquee
request_anim_frame will register a timer for RequestPaint, which will
then cause a crash. This commit fixes the crash, but makes the marquee
component not work.

[no changelog]
2024-11-19 13:36:01 +02:00
Ioan Bizău
487d7c4776 refactor(core): use warning_hi_prio in ETH flow
Commit c300576d6c introduced the
`default_cancel` parameter to `show_warning` and `confirm_blob` rather
using the already existing `flow_warning_hi_prio` which was doing the
same thing. This commit reverts all the nonsense.

[no changelog]
2024-11-19 13:36:01 +02:00
M1nd3r
487a5cbc17 build: bump autoflake version to 2.3.1
[no changelog]
2024-11-19 11:02:23 +01:00
M1nd3r
2ef0071611 fix(python): remove unused type ignore after click version bump
[no changelog]
2024-11-19 11:02:23 +01:00
M1nd3r
9bd6e760da build(python): bump click to 8.1.7
[no changelog]
2024-11-19 11:02:23 +01:00
Lukas Bielesch
b9f5e2b409 chore(core): show the last pin digit for a while 2024-11-18 14:05:04 +01:00
cepetr
5c8edfaac6 fix(core): fix reflash utility build
[no changelog]
2024-11-18 09:41:02 +01:00
cepetr
089db2cadf refactor(core): restructure embed folder
[no changelog]
2024-11-18 09:41:02 +01:00
cepetr
82bc0ef186 refactor(core): define USE_xxx consistently with feature flags
[no changelog]
2024-11-18 09:41:02 +01:00
Martin Milata
7fc226258e style(common): fix cointool.py 2024-11-15 18:37:33 +01:00
Martin Milata
c101cdfcbe Merge branch 'release/24.11.01' 2024-11-15 18:37:16 +01:00
M1nd3r
f5100cd3e1 docs(core): update event-loop docs
[no changelog]
2024-11-15 16:29:52 +01:00
M1nd3r
780d41e27f chore(core): remove loop.chan
[no changelog]
2024-11-15 16:29:52 +01:00