1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-18 05:49:11 +00:00
Commit Graph

13785 Commits

Author SHA1 Message Date
obrusvit
48797d925f fix(tests): fix T3B1 persistance test 2024-10-17 22:31:27 +02:00
obrusvit
1eb80fb9f2 fixup! feat(core): unify RustLayout, implement single global layout 2024-10-17 16:08:20 +02:00
obrusvit
41477db982 fixup! feat(core): unify RustLayout, implement single global layout 2024-10-17 16:00:15 +02:00
obrusvit
b3aee35e45 fixup! refactor(core/rust): create a single code path allowed to modify SwipeFlow state 2024-10-17 15:54:58 +02:00
obrusvit
8157645351 fixup! fixup! docs(core): Layout lifecycle documentation 2024-10-17 15:26:24 +02:00
obrusvit
dfd23b0341 fix(tests): fix click tests race condition 2024-10-17 15:26:24 +02:00
obrusvit
4727cace79 fix(tests): assert multiple in slip39 checklist 2024-10-14 12:38:44 +02:00
matejcik
a0eea2633b fixup! fixup! docs(core): Layout lifecycle documentation 2024-10-10 16:05:02 +02:00
matejcik
4446ce0aec fixup! feat(core): unify RustLayout, implement single global layout 2024-10-10 16:03:49 +02:00
matejcik
c9ac73b96d fix(tests): fix persistence tests, enable T3B1 2024-10-10 16:01:18 +02:00
matejcik
5d9d97eb86 fixup! chore: update fixtures 2024-10-09 12:35:08 +02:00
matejcik
ccbdd2d359 fixup! docs(core): Layout lifecycle documentation 2024-10-09 12:35:08 +02:00
matejcik
1f8ee59d75 style: make style_check passing 2024-10-09 12:35:08 +02:00
matejcik
bb353e0670 chore: update fixtures 2024-10-09 12:35:08 +02:00
matejcik
6a77a7e5c7 style(core/rust): fix linter complaints 2024-10-09 12:34:22 +02:00
matejcik
585411b9ce fix(core): restore ellipsis functionality on TR 2024-10-09 12:34:22 +02:00
matejcik
9cdf4be1e7 fix(tests): correctly check that backup flow was aborted 2024-10-09 12:34:22 +02:00
matejcik
98d99afdaf fix(tests): do not place recorded.zip into the destdir
instead, download it to a temp location, as the Prophecy (and authors of
urlretrieve) foretold
2024-10-09 12:34:22 +02:00
matejcik
2272b86e5a fix(core): fix cancel behavior in SignMessage 2024-10-09 12:34:22 +02:00
matejcik
f8f84de4b6 fix(tests): do not trip deadlock detection in autolock test 2024-10-09 12:34:22 +02:00
matejcik
0158d4e8c3 chore: update fixtures 2024-10-09 12:34:22 +02:00
matejcik
9d2064fa53 chore(core/rust): add uDebug capability to more places 2024-10-09 12:34:22 +02:00
matejcik
b30eaf6324 fix(python): opportunistically catch a debuglink desync
In certain cases a DebugLinkState response can get stalled and debuglink
will not read it -- i.e., a situation analogous to wirelink de-sync.
There doesn't seem to be a good way to force-sync debuglink the same way
wirelink does it, but we can detect a wrong response to a
DebugLinkGetState and skip it.
2024-10-09 12:34:22 +02:00
matejcik
bc7c34eac1 style: fix style problems 2024-10-09 12:34:22 +02:00
matejcik
3343c60168 style(core/rust): avoid unused warning 2024-10-09 12:34:22 +02:00
matejcik
ca9f352fcd fix(tests): stop waiting for background task after a timeout
Otherwise a test can hang if the result is not returned. This is not
even covered by pytest-timeout because if a test fails, the call to
task.kill() happens during teardown, and pytest-timeout doesn't cover
that.
2024-10-09 12:34:22 +02:00
matejcik
dba0469528 chore(python): improve recovery type deprecation warning 2024-10-09 12:34:22 +02:00
matejcik
9191ddeecf fix(python): improve robustness of TrezorClientDebugLink setup
* improve sync_responses to work on uninitialized instance
* sync responses at construction time
2024-10-09 12:34:22 +02:00
matejcik
2721813812 fix(core): allow Ping while locked
same behavior as on Trezor One
2024-10-09 12:34:22 +02:00
matejcik
05ad481ca5 feat(core): drop support for after-step-hook
This was necessary for hooking display.refresh() with the old UI toolkit.
With the new one, we explicitly refresh the display after every paint, so
implicit after-step refresh seems no longer necessary.
2024-10-09 12:34:22 +02:00
matejcik
b221c9e797 refactor(core/ui): reusable timers 2024-10-09 12:34:22 +02:00
matejcik
3e36290462 fix(tests): restore test functionality on legacy
The global layout related changes were wrong for T1 where debuglink
behavior is significantly different; in particular, it is not always
possible to communicate over debuglink.

This change reverts to the old behavior for T1B1 and keeps the new one
only for core-based models.
2024-10-09 12:33:18 +02:00
matejcik
010784135d feat(tests): sync received responses
to prevent "unexpected response to Initialize" errors
2024-10-09 12:33:18 +02:00
matejcik
f9a983d0be docs(core): add changelog 2024-10-09 12:33:18 +02:00
matejcik
672d436c59 style: fix complaining lints & formatters 2024-10-09 12:33:18 +02:00
matejcik
758452a431 fix(core): correctly repaint ShowMore component when requested 2024-10-09 12:33:18 +02:00
matejcik
1e86c96e8c tests: fix small irregularities 2024-10-09 12:33:18 +02:00
matejcik
79b8e455c6 refactor(core): improve recovery_enter_share 2024-10-09 12:33:18 +02:00
matejcik
45ea3ee8ee tests: use read_layout everywhere 2024-10-09 12:33:18 +02:00
matejcik
1c9d446c35 docs(core): Layout lifecycle documentation 2024-10-09 12:33:18 +02:00
matejcik
dba99c0be3 feat(core): show progress before starting to wipe device
This doesn't actually advance the progress while device erase is ongoing, but at least the user sees a loader.
2024-10-09 12:33:18 +02:00
matejcik
92a9164ead fix(core/ui): repaint the title of Progress layout when requested 2024-10-09 12:33:18 +02:00
matejcik
1d5e197039 feat(core): unify RustLayout, implement single global layout 2024-10-09 12:33:18 +02:00
matejcik
45aa1d47e0 refactor(core/rust): introduce layout lifecycle states on Rust side 2024-10-09 12:33:18 +02:00
matejcik
1c9b7779a5 refactor(core/ui): improve LayoutObj initialization
* RequestPaint message is sent at construction time to force calculation
  of number of pages
* given that Attach corresponds to "start the layout" message, Child now
  responds to Attach the same way it responds to RequestPaint, by
  force-repainting everything.
2024-10-09 12:33:18 +02:00
matejcik
5fd9d47423 build(core): fix random order seed when using zsh 2024-10-09 12:33:18 +02:00
matejcik
3e39530d65 fix(core): set default value for do_not_restart
otherwise if _handle_single_message raises an exception (which is
fortunately not something that should generally happen), the
finally-block would fail on "referenced before assignment"
2024-10-09 12:33:18 +02:00
matejcik
36ba25500a feat(core): add mailbox as a simplified version of chan 2024-10-09 12:33:18 +02:00
matejcik
b585c495ff refactor(core): remove debuglink support from main handle_session
It is being moved into a custom handler for the debug app.
2024-10-09 12:33:18 +02:00
matejcik
866a34d5d0 refactor(core): remove unused features from loop.race 2024-10-09 12:33:18 +02:00