Skip to content

[$500] Opens report instead of LHN on Native apps for new users when invited to a workspace #29207

Closed

Description

@m-natarajan

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: 1.3.80-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @c3024
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696954351917789

Action Performed:

  1. Create a workspace from User A
  2. Invite a User B who is not an Expensify member yet to this workspace
  3. Login with User B (the new user who does not have an Expensify account yet) from iOS or Android app

Expected Result:

LHN should open on the app

Actual Result:

The workspace chat opens on the app

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

Android: Native
AndroidUnavailableWorkspace.mp4
Android: mWeb Chrome
AndroidUnavailableWorkspace.1.mp4
iOS: Native
rpreplay-final1696953027_Rdb3DKBX.mp4
iOS: mWeb Safari
iossafari_tlxmIu3D.mp4
MacOS: Chrome / Safari
web_NrW4jzHh.mp4
new.user.mp4
MacOS: Desktop
desktop.1.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0174b94be9389d33ad
  • Upwork Job ID: 1711788460798902272
  • Last Price Increase: 2024-03-13
  • Automatic offers:
    • dukenv0307 | Contributor | 0

Activity

  1. added
    External
    on Oct 10, 2023
  2. changed the title [-]Opens report instead of LHN on Native apps for new users when invited to a workspace[/-] [+][$500] Opens report instead of LHN on Native apps for new users when invited to a workspace[/+] on Oct 10, 2023
  3. melvin-bot commented on Oct 10, 2023

    @melvin-bot
  4. added
    Help Wanted
    on Oct 10, 2023
  5. melvin-bot commented on Oct 10, 2023

    @melvin-bot

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

  6. deoidh commented on Oct 12, 2023

    @deoidh

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    The onboarding process of a newly invited user - specificially to a workspace - is misaligned to the intended logic.

    What is the root cause of that problem?

    There is pre-coded logic to in Welcome.js to enforce this behaviour, it is not a result of a bug.

    Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(workspaceChatReport.reportID));

    What changes do you think we should make in order to solve the problem?

    The conditional parameter shouldNavigateToWorkspaceChat and if statement to enforce the redirect should be redacted.

    if (shouldNavigateToWorkspaceChat && workspaceChatReport) {
    Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(workspaceChatReport.reportID));
    // If showPopoverMenu exists and returns true then it opened the Popover Menu successfully, and we can update isFirstTimeNewExpensifyUser
    // so the Welcome logic doesn't run again
    if (showPopoverMenu()) {
    isFirstTimeNewExpensifyUser = false;
    }
    return;
    }

  7. melvin-bot commented on Oct 16, 2023

    @melvin-bot

    @0xmiroslav Eep! 4 days overdue now. Issues have feelings too...

  8. melvin-bot commented on Oct 17, 2023

    @melvin-bot

    📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

  9. melvin-bot commented on Oct 18, 2023

    @melvin-bot

    @0xmiroslav Still overdue 6 days?! Let's take care of this!

  10. 0xmiroslav commented on Oct 18, 2023

    @0xmiroslav
    Contributor

    This is tagged as native only issue. If that's true, the root cause should explain why issue doesn't happen on mWeb.

    Awaiting more proposals

  11. deoidh commented on Oct 18, 2023

    @deoidh

    This is tagged as native only issue. If that's true, the root cause should explain why issue doesn't happen on web.

    It occurs on web also would you know, so what are the next steps? Eager to submit a PR and waiting on your words.

  12. 77 remaining items

  13. iwiznia commented on Mar 19, 2024

    @iwiznia
    Contributor

    Why you say that? From a quick look seems like that is already implemented what I said above?

  14. DylanDylann commented on Mar 19, 2024

    @DylanDylann
    Contributor
    • In this comment, we only open welcome banner if there is only personal policy (user is not invited to any workspace, allPolicy.length === 1).
    • In your comment: When user is invited to any workspace, the welcome banner still appears (allPolicy.length > 1)
  15. iwiznia commented on Mar 19, 2024

    @iwiznia
    Contributor

    Ohhhh 🤔 you are correct and I was wrong... in this flow we are already invited to a policy, so we don't need to show the welcome card.

  16. DylanDylann commented on Mar 19, 2024

    @DylanDylann
    Contributor

    @iwiznia Based on this C+ comment, my proposal will fix the original issue

  17. ikevin127 commented on Mar 19, 2024

    @ikevin127
    Contributor

    Reverted proposal

    • reverted to previous solution according to latest decision from #29207 (comment)

    Note

    The other proposal is not using the correct methods for implementing the proposed solution.

    I think a 50/50 split is fair if @DylanDylann will handle the issue using the correct logic mentioned in my proposal's solution.

    cc @iwiznia

  18. DylanDylann commented on Mar 19, 2024

    @DylanDylann
    Contributor

    @ikevin127 Why did you say: "The other proposal is not using the correct methods for implementing the proposed solution."?

  19. ikevin127 commented on Mar 19, 2024

    @ikevin127
    Contributor

    Because isSmallScreenWidth (suggested in your solution) comes from the useWindowDimensions hook which we cannot use within action files like @libs/actions/Welcome.ts.

  20. DylanDylann commented on Mar 19, 2024

    @DylanDylann
    Contributor

    @ikevin127 We can create a 3rd param in show function, named isSmallScreenWidth and then when calling show in BottomTabBar component, we can use useWindowDimensions to get the isSmallScreenWidth. I think it is very straightforward

  21. ikevin127 commented on Mar 19, 2024

    @ikevin127
    Contributor

    These details are missing from your proposal, but sure - no problem if you're gonna do it like that.
    I'll keep an eye on the PR and will make sure to ask for that split if my solution's implementation will be used ✌

  22. dukenv0307 commented on Mar 20, 2024

    @dukenv0307
    Contributor

    Based on this comment. proposal from @DylanDylann looks good to me cc @iwiznia

  23. iwiznia commented on Mar 20, 2024

    @iwiznia
    Contributor

    I am confused, isn't that proposal making it so that we do not navigate to the report?

  24. ikevin127 commented on Mar 20, 2024

    @ikevin127
    Contributor

    @iwiznia Yes it is, as per this issue's expected result.

    To recap, the options here are either of the two:

    1. Don't navigate to workapace report on first login on narrow layout devices.
    2. Do navigate (current behaviour).

    If we want to keep option 2, then this issue can be closed.

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

Metadata

Metadata

Labels

BugDailyExternal

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions