You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-08-14] [$250] mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android #46383
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: 9.0.13 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Login both mweb and Android app
Tap on expensify selector
Tap plus icon to create new workspace
Expected Result:
Creating workspace via plus icon must not show inconsistent behavior in mweb and Android
Actual Result:
Creating workspace via plus icon directs to workspace list page briefly before directing to workspace page in mweb. In Android, LHN shown briefly before directing to workspace page. Creating workspace via plus icon shows inconsistent behavior in mweb and Android
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@abekkala FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
changed the title [-]mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android[/-][+][$250] mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android[/+]on Jul 30, 2024
Please re-state the problem that we are trying to solve in this issue.
Creating workspace via plus icon shows inconsistent behavior in mweb and Android
What is the root cause of that problem?
Web Behavior:
Home -> LeftModalNavigator -> Click on Plus Icon -> Workspace
Android Native:
Home -> LeftModalNavigator -> Click on Plus Icon -> Home -> Workspace
Web browsers might skip intermediate screens due to history optimization, while Android native apps with React Navigation manage each transition explicitly without skipping.
@huult Thanks for the proposal. Could you please explain why we need to pass transitionFromOldDot as true in the createWorkspaceWithPolicyDraftAndNavigateToIt method? Will the current call to createWorkspaceWithPolicyDraftAndNavigateToIt cause any issues?
changed the title [-][$250] mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android[/-][+][HOLD for payment 2024-08-14] [$250] mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android[/+]on Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@jayeshmangwani] The PR that introduced the bug has been identified. Link to the PR:
[@jayeshmangwani] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@jayeshmangwani] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@jayeshmangwani] Determine if we should create a regression test for this bug.
[@jayeshmangwani] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@jayeshmangwani] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
[@jayeshmangwani] Determine if we should create a regression test for this bug. Yes
[@jayeshmangwani] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Regression Test Proposal
Log in to both the mobile web (mWeb) and Android app.
Tap on the Expensify selector.
Tap the plus icon to create a new workspace.
The LHN should not be briefly shown before directing to the workspace page
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Jul 28, 2024
Triggered auto assignment to @abekkala (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Jul 28, 2024
We think that this bug might be related to #vip-vsp
lanitochka17 commentedon Jul 28, 2024
@abekkala FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
[-]mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android[/-][+][$250] mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android[/+]melvin-bot commentedon Jul 30, 2024
Job added to Upwork: https://www.upwork.com/jobs/~016ada2399e173f08f
melvin-bot commentedon Jul 30, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (
External)huult commentedon Aug 1, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Creating workspace via plus icon shows inconsistent behavior in mweb and Android
What is the root cause of that problem?
Web Behavior:
Android Native:
Web browsers might skip intermediate screens due to history optimization, while Android native apps with React Navigation manage each transition explicitly without skipping.
App/src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx
Lines 35 to 38 in d69b203
What changes do you think we should make in order to solve the problem?
To ensure consistent behavior between the web browser and native app, we should redirect directly to the Workspace.
Here is my update:
// src/pages/WorkspaceSwitcherPage/WorkspacesSectionHeader.tsx#L35 onPress={() => { - Navigation.goBack(); interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()); }}Details
POCScreen.Recording.2024-08-01.at.23.39.37.mp4
jayeshmangwani commentedon Aug 1, 2024
@huult Thanks for the proposal. Could you please explain why we need to pass
transitionFromOldDotas true in thecreateWorkspaceWithPolicyDraftAndNavigateToItmethod? Will the current call tocreateWorkspaceWithPolicyDraftAndNavigateToItcause any issues?11 remaining items
[-][$250] mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android[/-][+][HOLD for payment 2024-08-14] [$250] mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android[/+]melvin-bot commentedon Aug 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-08-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 7, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
abekkala commentedon Aug 8, 2024
PAYMENT SUMMARY FOR AUG 14, if no regressions
Please complete checklist
jayeshmangwani commentedon Aug 13, 2024
Regression Test Proposal
Do we agree 👍 or 👎
abekkala commentedon Aug 14, 2024
@huult payment sent and contract ended - thank you! 🎉
abekkala commentedon Aug 14, 2024
@jayeshmangwani [$250] payment via NewDot
jayeshmangwani commentedon Aug 15, 2024
Requested on ND as per #46383 (comment)
JmillsExpensify commentedon Aug 21, 2024
$250 approved for @jayeshmangwani