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-03-26] [$250] [Wave Collect] [More Features] WS features - App returns to the same WS settings page after toggling on a feature #38185

Closed
3 of 6 tasks
lanitochka17 opened this issue Mar 12, 2024 · 36 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 NewFeature Something to build that is a new item.

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 12, 2024

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.4.51-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #37441

Action Performed:

Precondition:

  • User is an owner of Collect workspace
  • The Collect workspace has enabled categories
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Collect workspace
  3. Go to More features
  4. Toggle on any feature (toggle off first if there is disabled feature)
  5. Return to previous page via device back navigation

Expected Result:

App will not return to the same page. App will return to workspace list

Actual Result:

App returns to the same workspace settings page

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

Bug6411552_1710276925761.Screen_Recording_20240313_044608_Chrome.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012238c91ec26d9e5d
  • Upwork Job ID: 1768644608825819136
  • Last Price Increase: 2024-03-15
  • Automatic offers:
    • ishpaul777 | Contributor | 0
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Mar 12, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Mar 12, 2024

Triggered auto assignment to @marcaaron (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave-control
CC @jason

@lanitochka17
Copy link
Author

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented Mar 12, 2024

Proposal

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

WS features - App returns to the same WS settings page after toggling on a feature

What is the root cause of that problem?

We use CONST.NAVIGATION.TYPE.FORCED_UP as type when navigating to WORKSPACE_INITIAL route and this replaces current route with new route instead of adding new one to the stack.

App/src/libs/actions/Policy.ts

Lines 2920 to 2930 in 92bbd8b

function navigateWhenEnableFeature(policyID: string, featureRoute: Route) {
const isNarrowLayout = getIsNarrowLayout();
if (isNarrowLayout) {
Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(policyID), CONST.NAVIGATION.TYPE.FORCED_UP);
return;
}
Navigation.navigate(featureRoute);
}

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

Remove the second parameter CONST.NAVIGATION.TYPE.FORCED_UP or use Navigation.goBack(ROUTES.WORKSPACE_INITIAL.getRoute(policyID)); instead.

Optional: use Navigation.goBack() without fallback route.

Edit: Removing the second parameter CONST.NAVIGATION.TYPE.FORCED_UP won't work as expected but Navigation.goBack() does.

Result

@marcaaron
Copy link
Contributor

Looks connected to #37441 cc @mountiny @rezkiy37 @luacmartins

The above proposal looks like it will work. But maybe we are already looking into this?

@luacmartins
Copy link
Contributor

This is not a blocker since the feature is still WIP and very few people have access to Collect workspaces on NewDot. cc @rezkiy37 can you work on a fix for this one as well?

@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 Engineering labels Mar 12, 2024
@luacmartins luacmartins self-assigned this Mar 12, 2024
@mountiny
Copy link
Contributor

Head up, just merged the ideal nav v2 so it might influence the solution a bit regarding routes

@marcaaron marcaaron removed their assignment Mar 13, 2024
@rezkiy37
Copy link
Contributor

Hi, I’m Michael (Mykhailo) from Callstack and I would like to work on this issue.

@rezkiy37
Copy link
Contributor

I've tested the bug. The bug is not replicable after the "Ideal Nav V2" merging. I tested on a real Android Device and macOS Chrome. Can you retest also, please?

cc @lanitochka17

Android.Chorme.mp4

@rezkiy37
Copy link
Contributor

However, I agree that the goBack looks better and natural. I would create a PR to use Navigation.goBack(ROUTES.WORKSPACE_INITIAL.getRoute(policyID));. When we deep-link to the "More features" page for the 1st time, it calls navigate with CONST.NAVIGATION.TYPE.FORCED_UP, but after the navigation history has been initiated and goBack works smoothly.

WDYT, @mountiny?

Nav.mp4

@rezkiy37
Copy link
Contributor

One more thing I see is that the app uses a legacy route for the "More features" page.

Screenshot 2024-03-14 at 17 06 43

@mountiny mountiny added the NewFeature Something to build that is a new item. label Mar 15, 2024
@mountiny mountiny changed the title WS features - App returns to the same WS settings page after toggling on a feature [Wave Collect] [More Features] WS features - App returns to the same WS settings page after toggling on a feature Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

@zanyrenney zanyrenney removed their assignment Mar 21, 2024
@zanyrenney zanyrenney added the Bug Something is broken. Auto assigns a BugZero manager. label Mar 21, 2024
Copy link

melvin-bot bot commented Mar 21, 2024

Triggered auto assignment to @abekkala (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 21, 2024
@zanyrenney zanyrenney self-assigned this Mar 21, 2024
@zanyrenney
Copy link
Contributor

Hi @abekkala Just a note to say, I am OOO now until April 2nd, reassigning BZ team member to help while I am OOO.

@abekkala
Copy link
Contributor

abekkala commented Mar 21, 2024

@zanyrenney I'm going to be ooo as well. It's best practice to check the ooo calendar and reapply if needed. and provide a summary comment

@abekkala
Copy link
Contributor

PAYMENT SUMMARY FOR MAR 26

@abekkala abekkala removed their assignment Mar 21, 2024
@abekkala abekkala added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Mar 21, 2024
Copy link

melvin-bot bot commented Mar 21, 2024

Current assignee @zanyrenney is eligible for the Bug assigner, not assigning anyone new.

@abekkala abekkala added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Mar 21, 2024
Copy link

melvin-bot bot commented Mar 21, 2024

Triggered auto assignment to @bfitzexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@abekkala
Copy link
Contributor

abekkala commented Mar 21, 2024

@bfitzexpensify - @zanyrenney was the original assignment. She is going ooo.

I've provided the Payment summary above and reapplied the label. I verified that you were not currently on the ooo calendar for Mar 26

Thanks!

@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@luacmartins
Copy link
Contributor

Just pending payment

@melvin-bot melvin-bot bot removed the Overdue label Mar 27, 2024
@bfitzexpensify
Copy link
Contributor

All done!

@ishpaul777
Copy link
Contributor

Hii @bfitzexpensify I think payment is still pending for this one i haven't accepted the offer it links me to a invalid link and also i couldnt find this issue in my transaction history, could you please check

@bfitzexpensify
Copy link
Contributor

Hey @ishpaul777 - looks like payment was issued March 27th for Expensify GH #38185 - Contributor - [$500] [Wave Collect] [More Features] WS features - App returns to the same WS settings page after toggling on a feature

Can you check that on your end?

@ishpaul777
Copy link
Contributor

oh i see i found it, it got lost in the history, sorry and Thank you!

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 NewFeature Something to build that is a new item.
Projects
Archived in project
Development

No branches or pull requests