Skip to content

[Due for payment 2025-04-17] [$250] Android - Devices back button has to be tapped twice to return to the chat #58954

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

Closed
2 of 8 tasks
mitarachim opened this issue Mar 23, 2025 · 24 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@mitarachim
Copy link

mitarachim commented Mar 23, 2025

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.1.17-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: #58676
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: Samsung Galaxy A52s 5G / Android 14
App Component: Other

Action Performed:

Precondition: A WS join link from a different account is copied to the clipboard.

  1. Open the app
  2. Log in with a new Gmail account
  3. Choose the "Track" onboarding option
  4. Track a manual expense in the self DM chat
  5. Send the WS join link to the chat
  6. Tap on the link
  7. Tap on the Android "<" button on the bottom of the page
  8. Tap on the Android "<" button on the bottom of the page again
  9. Tap on the Android "<" button on the bottom of the page again

Expected Result:

I should be returned to the self DM.

Actual Result:

Devices back button has to be tapped twice to return to the chat at the settings page after tapping on a WS join link.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6779004_1742643455785.az_recorder_20250322_122032.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021905590808062421178
  • Upwork Job ID: 1905590808062421178
  • Last Price Increase: 2025-03-28
  • Automatic offers:
    • allgandalf | Reviewer | 106749641
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @allgandalf
@mitarachim mitarachim added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Mar 23, 2025
Copy link

melvin-bot bot commented Mar 23, 2025

Triggered auto assignment to @sonialiap (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.

@bernhardoj
Copy link
Contributor

bernhardoj commented Mar 24, 2025

Proposal

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

Need to press back twice to arrives back at chat after opening a ws join link.

What is the root cause of that problem?

After we open the WS join link, we will call navigateAfterJoinRequest which navigates to SETTINGS (the bottom tab) and SETTINGS_WORKSPACES (the WS list).

const navigateAfterJoinRequest = () => {
Navigation.goBack(undefined, {shouldPopToTop: true});
Navigation.navigate(ROUTES.SETTINGS);
Navigation.navigate(ROUTES.SETTINGS_WORKSPACES.route);
};
export default navigateAfterJoinRequest;

However, both routes will push a SETTINGS_SPLIT_NAVIGATOR to the stack, so we have 2 settings navigator.
Image

Image

That's why we need to press back twice.

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

We don't need to navigate to ROUTES.SETTINGS anymore, so we need to remove it.

We can apply it to the .web and .desktop platform files too.

(btw, looks like they all have the same implementation, so we can just merge it into 1 file)

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

N/A

@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2025
Copy link

melvin-bot bot commented Mar 26, 2025

@sonialiap Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Mar 28, 2025

@sonialiap Huh... This is 4 days overdue. Who can take care of this?

@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label Mar 28, 2025
@melvin-bot melvin-bot bot changed the title Android - Devices back button has to be tapped twice to return to the chat [$250] Android - Devices back button has to be tapped twice to return to the chat Mar 28, 2025
Copy link

melvin-bot bot commented Mar 28, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 28, 2025
Copy link

melvin-bot bot commented Mar 28, 2025

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

@melvin-bot melvin-bot bot removed the Overdue label Mar 28, 2025
@sonialiap sonialiap moved this to Bugs and Follow Up Issues in #expensify-bugs Mar 28, 2025
Copy link

melvin-bot bot commented Apr 1, 2025

@allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Apr 1, 2025
@allgandalf
Copy link
Contributor

Proposal from @bernhardoj LGTM

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Apr 1, 2025

Triggered auto assignment to @aldo-expensify, 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 Apr 1, 2025
Copy link

melvin-bot bot commented Apr 1, 2025

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

Offer link
Upwork job

@melvin-bot melvin-bot bot added the Overdue label Apr 4, 2025
@aldo-expensify
Copy link
Contributor

aldo-expensify commented Apr 4, 2025

Friendly bump @allgandalf @bernhardoj , when do you think we can have a PR?

@aldo-expensify
Copy link
Contributor

I'll try to reassign this, I'm going OOO next week.

@aldo-expensify aldo-expensify removed their assignment Apr 4, 2025
@aldo-expensify aldo-expensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Apr 4, 2025
Copy link

melvin-bot bot commented Apr 4, 2025

Triggered auto assignment to @laurenreidexpensify (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.

@melvin-bot melvin-bot bot removed the Overdue label Apr 4, 2025
@aldo-expensify
Copy link
Contributor

I failed, I try to do a label dance to reassign to another engineer, but got @laurenreidexpensify . Sorry for the noise, I'll ask in engineering chat.

@bernhardoj
Copy link
Contributor

Oops, I missed this. PR is ready

cc: @allgandalf

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 10, 2025
@melvin-bot melvin-bot bot changed the title [$250] Android - Devices back button has to be tapped twice to return to the chat [Due for payment 2025-04-17] [$250] Android - Devices back button has to be tapped twice to return to the chat Apr 10, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 10, 2025
Copy link

melvin-bot bot commented Apr 10, 2025

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

Copy link

melvin-bot bot commented Apr 10, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.25-4 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 2025-04-17. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Apr 10, 2025

@allgandalf @sonialiap @allgandalf The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 16, 2025
@sonialiap
Copy link
Contributor

sonialiap commented Apr 17, 2025

Payment summary:

@allgandalf
Copy link
Contributor

allgandalf commented Apr 18, 2025

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other: Change of requirenment

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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: No offending PR, over time the requirement changed and we didn't update the navigation

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:https://github.com/Expensify/Expensify/issues/492183

Regression Test Proposal

Precondition:

Test:

  1. Open any chat > Send a workspace join link
  2. Press the link to open it
  3. (Web/mWeb) Press the back browser button once (Android) Press the device back button twice

Verify you arrive at the chat back

NOTE: iOS can't go back using swipe

Do we agree 👍 or 👎

@bernhardoj
Copy link
Contributor

Requested in ND.

@sonialiap
Copy link
Contributor

@allgandalf thanks! Paid

@github-project-automation github-project-automation bot moved this from Bugs and Follow Up Issues to Done in #expensify-bugs Apr 18, 2025
@JmillsExpensify
Copy link

$250 approved for @bernhardoj

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. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests

8 participants