Skip to content

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

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com 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

Activity

  1. added
    Daily
    Bug
    on Jul 28, 2024
  2. melvin-bot commented on Jul 28, 2024

    @melvin-bot

    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.

  3. lanitochka17 commented on Jul 28, 2024

    @lanitochka17
    Author

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

  4. lanitochka17 commented on Jul 28, 2024

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

  5. added
    External
    on Jul 30, 2024
  6. 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
  7. melvin-bot commented on Jul 30, 2024

    @melvin-bot
  8. added
    Help Wanted
    on Jul 30, 2024
  9. melvin-bot commented on Jul 30, 2024

    @melvin-bot

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

  10. huult commented on Aug 1, 2024

    @huult
    Contributor

    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());
                        }}
    DetailsPOC
    Screen.Recording.2024-08-01.at.23.39.37.mp4
  11. jayeshmangwani commented on Aug 1, 2024

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

  12. 11 remaining items

  13. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Aug 7, 2024
  14. 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
  15. melvin-bot commented on Aug 7, 2024

    @melvin-bot

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

  16. removed
    Reviewing
    on Aug 7, 2024
  17. melvin-bot commented on Aug 7, 2024

    @melvin-bot

    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:

  18. melvin-bot commented on Aug 7, 2024

    @melvin-bot

    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:
  19. abekkala commented on Aug 8, 2024

    @abekkala
    Contributor

    PAYMENT SUMMARY FOR AUG 14, if no regressions

  20. jayeshmangwani commented on Aug 13, 2024

    @jayeshmangwani
    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 👎

  21. abekkala commented on Aug 14, 2024

    @abekkala
    Contributor

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

  22. abekkala commented on Aug 14, 2024

    @abekkala
    Contributor

    @jayeshmangwani [$250] payment via NewDot

  23. jayeshmangwani commented on Aug 15, 2024

    @jayeshmangwani
    Contributor

    Requested on ND as per #46383 (comment)

  24. JmillsExpensify commented on Aug 21, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @jayeshmangwani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions