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

[$250] When going to workspace list from Subscription, back button returns to Account settings #56997

Open
6 of 8 tasks
IuliiaHerets opened this issue Feb 18, 2025 · 8 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Feb 18, 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.0.99-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: Exp #56840
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: iPhone 15 Pro Max / iOS 18.3
App Component: User Settings

Action Performed:

Precondition:

  • User has at least two Collect workspaces.
  1. Launch ND or hybrid app.
  2. Go to Account settings > Subscription.
  3. Tap Control.
  4. Tap Go to workspaces.
  5. Tap app back button.

Expected Result:

App will return to the previous page which is the subscription page.

Actual Result:

App returns to Account settings.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6746467_1739867988626.ScreenRecording_02-18-2025_16-34-52_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021891960074172485749
  • Upwork Job ID: 1891960074172485749
  • Last Price Increase: 2025-02-18
  • Automatic offers:
    • daledah | Contributor | 106209369
Issue OwnerCurrent Issue Owner: @Ollyws
@IuliiaHerets IuliiaHerets added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Feb 18, 2025
Copy link

melvin-bot bot commented Feb 18, 2025

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

@daledah
Copy link
Contributor

daledah commented Feb 18, 2025

🚨 Edited by proposal-police: This proposal was edited at 2025-02-18 09:07:28 UTC.

Proposal

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

App returns to Account settings.

What is the root cause of that problem?

We are using navigate with forceReplace: true here

<Button
text={translate('workspace.common.goToWorkspaces')}
success
onPress={() => Navigation.navigate(ROUTES.SETTINGS_WORKSPACES, {forceReplace: true})}
large
/>

And using goBack when user clicks back button

onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS)}

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

  1. We should add new variable backTo for route SETTINGS_WORKSPACES

  2. And add backTo as Navigation.getActiveRoute() or subscription route in here

onPress={() => Navigation.navigate(ROUTES.SETTINGS_WORKSPACES, {forceReplace: true})}

  1. Update function when we click the back button, if we have routes.params.backTo then we will navigate to backTo instead of ROUTES.SETTINGS

onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS)}

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

None

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@isabelastisser isabelastisser added External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Feb 18, 2025
@melvin-bot melvin-bot bot changed the title When going to workspace list from Subscription, back button returns to Account settings [$250] When going to workspace list from Subscription, back button returns to Account settings Feb 18, 2025
Copy link

melvin-bot bot commented Feb 18, 2025

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

Copy link

melvin-bot bot commented Feb 18, 2025

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

@Ollyws
Copy link
Contributor

Ollyws commented Feb 20, 2025

@daledah's proposal LGTM.
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 20, 2025

Triggered auto assignment to @tgolen, 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 Feb 20, 2025
Copy link

melvin-bot bot commented Feb 20, 2025

📣 @daledah 🎉 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 Feb 21, 2025
@daledah
Copy link
Contributor

daledah commented Feb 21, 2025

@Ollyws PR is ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
Status: LOW
Development

No branches or pull requests

5 participants