-
Notifications
You must be signed in to change notification settings - Fork 16
fix attach to pin issue #367
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
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
WalkthroughThe changes add calls to Changes
Estimated code review effort3 (~40 minutes) 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting
📒 Files selected for processing (3)
core/src/apps/base.py(3 hunks)core/src/boot.py(2 hunks)core/src/trezor/lvglui/scrs/lockscreen.py(2 hunks)
🪛 Ruff (0.12.2)
core/src/boot.py
21-21: SyntaxError: Expected an identifier
🚧 Files skipped from review as they are similar to previous changes (1)
- core/src/apps/base.py
🧰 Additional context used
🪛 Ruff (0.12.2)
core/src/boot.py
21-21: SyntaxError: Expected an identifier
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Gen check
- GitHub Check: Defs check
- GitHub Check: Style check
🔇 Additional comments (3)
core/src/trezor/lvglui/scrs/lockscreen.py (2)
193-196: LGTM - session start after unlock workflow.Correctly adds session initialization after spawning unlock workflow.
208-211: LGTM - consistent session handling.Same pattern applied to slide-up gesture handler.
core/src/boot.py (1)
39-39: LGTM - proper session start placement.Correctly positioned after PIN verification and before storage unlock.
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
core/src/apps/management/change_wipe_code.py (1)
34-34: Missing space after comma.
salt,PinType.USER_CHECKshould besalt, PinType.USER_CHECK.- if config.has_pin() and not config.check_pin(pin, salt,PinType.USER_CHECK)[0]: + if config.has_pin() and not config.check_pin(pin, salt, PinType.USER_CHECK)[0]:core/src/apps/management/change_pin.py (1)
113-133: Remove dead code.These commented blocks should be deleted.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting
📒 Files selected for processing (3)
core/src/apps/management/change_pin.py(1 hunks)core/src/apps/management/change_wipe_code.py(1 hunks)core/src/trezor/ui/layouts/lvgl/attach_to_pin.py(0 hunks)
💤 Files with no reviewable changes (1)
- core/src/trezor/ui/layouts/lvgl/attach_to_pin.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Defs check
- GitHub Check: Gen check
- GitHub Check: Style check
🔇 Additional comments (1)
core/src/apps/management/change_pin.py (1)
53-55: Good clarification of PIN type usage.The change from
PinType.PASSPHRASE_PINtoPinType.PASSPHRASE_PIN_CHECKimproves semantic clarity.
Summary by CodeRabbit
New Features
Bug Fixes