-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
fix(suite-native): return to Onboarding from DeviceCompromisedModal #16964
base: develop
Are you sure you want to change the base?
fix(suite-native): return to Onboarding from DeviceCompromisedModal #16964
Conversation
WalkthroughThe change updates the navigation logic in the modal screen component for device compromise. Previously, closing the modal always triggered a navigation to the Home screen. The updated implementation now checks if backward navigation is possible by using the 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
Description
When closing
DeviceCompromisedModalScreen
, first let's try to navigate back, and only use the Home route as fallback.There are three cases depending from where you enter the modal (
Actually, the FW revision check is done async by Connect (sometimes it may await http fetch), so basically the modal can be entered from anywhere. But it seems to me there are three typical cases from where you enter the modal:
HomeStack.Home
: behaves the sameAuthorizeDeviceStackRoutes.ConnectingDevice
: that worked, but with a glitch, because it'd first send you Home, butuseHandleDeviceConnection
would immediately redirect to ConnectingDevice, with disruptive animations. Now goes straight to ConnectingDevice (smoother)OnboardingStack
that was broken ❌ if modal was entered from onboarding, onboarding was effectively aborted (couldn't reenter it from Home), but now you are sent back to continue onboarding ✔️Related Issue
Part of #16448
Screenshots
wipe app to reproduce:
Screencast from 2025-02-12 18-29-35.webm