-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] mWeb - Onboarding - Onboarding can be dismissed with device back button and website freezes #54473
Comments
Triggered auto assignment to @MitchExpensify ( |
Edited by proposal-police: This proposal was edited at 2024-12-24 01:39:35 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The issue occurs when a user is on the onboarding screen, and the onboarding modal is dismissed after pressing the device back button. What is the root cause of that problem?We did not handle the back button in the onboarding flow in the
What changes do you think we should make in order to solve the problem?To resolve this issue, we should intercept the back button press while the onboarding modal is displayed. This can be done by using the same code as use in the native for web as well
add the same code: // To block android native back button behavior
useFocusEffect(
useCallback(() => {
// Return true to indicate that the back button press is handled here
const backAction = () => true;
const backHandler = BackHandler.addEventListener('hardwareBackPress', backAction);
return () => backHandler.remove();
}, []),
); We may need to apply a similar change in the OnboardingEmployees if the signupQualifier is VSB, because the BaseOnboardingPurpose is skipped when the signupQualifier is VSB. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?NA |
Event listeners like |
Removing the blocker label since it's related to frontend only. |
Job added to Upwork: https://www.upwork.com/jobs/~021872156796368987725 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The issue occurs when a user is on the onboarding screen, and the onboarding modal is dismissed after pressing the device back button. What is the root cause of that problem?We did not handle the back button pressing event for the web, What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
Proposal Please re-state the problem that we are trying to solve in this issue. The onboarding modal on Expensify’s mWeb interface is dismissed when the back button is pressed, causing the website to freeze on the inbox page. What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future? NA |
📣 @Senninseyi! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Warning Warning for modal users: given that on narrow layout devices we display stack navigator screens like To further reinforce this point, here's a commit I spent some time trying to consistently reproduce the issue and was not able to on Android: mWeb Chrome, since most of the times if I press the hardware back button, it usually either goes back to empty page (no URL) or it closes the browser app altogether, then when I reopen it and navigate to the app, only then, in some cases I will be stuck on home page which is frozen with URL being android.webmI think we need more datailed steps in order to consistently reproduce the issue as without that we cannot properly debug and propose a fix, it'd only be guesswork. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.77-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome
App Component: Other
Action Performed:
Expected Result:
Onboarding modal shouldn´t be dismissed when using device back button.
Actual Result:
Onboarding modal is dismissed after using device back button and the website freezes on inbox after this action.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: