Skip to content
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

[HOLD for payment 2024-08-14] [$250] mWeb - Workpace - Creating workspace via plus icon shows inconsistent behavior in mweb and Android #46383

Closed
2 of 6 tasks
lanitochka17 opened this issue Jul 28, 2024 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 28, 2024

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.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:

  1. Login both mweb and Android app
  2. Tap on expensify selector
  3. 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?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6554877_1722102546869.srlector.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016ada2399e173f08f
  • Upwork Job ID: 1818305792283231533
  • Last Price Increase: 2024-07-30
  • Automatic offers:
    • huult | Contributor | 103365224
Issue OwnerCurrent Issue Owner: @abekkala
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 28, 2024
Copy link

melvin-bot bot commented 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
Copy link
Author

We think that this bug might be related to #vip-vsp

@lanitochka17
Copy link
Author

@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

@abekkala abekkala added the External Added to denote the issue can be worked on by a contributor label Jul 30, 2024
@melvin-bot melvin-bot bot 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 Jul 30, 2024
Copy link

melvin-bot bot commented Jul 30, 2024

Job added to Upwork: https://www.upwork.com/jobs/~016ada2399e173f08f

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 30, 2024
Copy link

melvin-bot bot commented Jul 30, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (External)

@huult
Copy link
Contributor

huult commented 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:

  • 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.

onPress={() => {
Navigation.goBack();
interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt());
}}

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());
                    }}
POC
Screen.Recording.2024-08-01.at.23.39.37.mp4

@jayeshmangwani
Copy link
Contributor

@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?

@huult
Copy link
Contributor

huult commented Aug 1, 2024

Proposal updated

  • Update code changes
  • Update POC

Hi @jayeshmangwani, After double-checking, it looks like simply removing goBack is enough to fix the issue. Thanks!

@jayeshmangwani
Copy link
Contributor

@huult's Proposal looks good to me.

We can remove the Navigation.goBack() from onPress, as it was added to solve this issue #35680 and removing it will not cause the issue to reoccur. I've tested it, so we're good to proceed with the goBack removal

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Aug 1, 2024

Triggered auto assignment to @marcaaron, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 2, 2024
Copy link

melvin-bot bot commented Aug 2, 2024

📣 @huult 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 2, 2024
@huult
Copy link
Contributor

huult commented Aug 2, 2024

Here is my PR

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 7, 2024
@melvin-bot melvin-bot bot 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 Aug 7, 2024
Copy link

melvin-bot bot commented Aug 7, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 7, 2024
Copy link

melvin-bot bot commented 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:

Copy link

melvin-bot bot commented 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:

  • [@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:

@abekkala
Copy link
Contributor

abekkala commented Aug 8, 2024

PAYMENT SUMMARY FOR AUG 14, if no regressions

@jayeshmangwani
Copy link
Contributor

Regression Test Proposal

  1. Log in to both the mobile web (mWeb) and Android app.
  2. Tap on the Expensify selector.
  3. Tap the plus icon to create a new workspace.
  4. The LHN should not be briefly shown before directing to the workspace page

Do we agree 👍 or 👎

@abekkala
Copy link
Contributor

@huult payment sent and contract ended - thank you! 🎉

@abekkala
Copy link
Contributor

@jayeshmangwani [$250] payment via NewDot

@jayeshmangwani
Copy link
Contributor

Requested on ND as per #46383 (comment)

@JmillsExpensify
Copy link

$250 approved for @jayeshmangwani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants