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

Workspace - From category GL code page, tapping back button directs to Hhm not here page #49048

Closed
3 of 6 tasks
IuliiaHerets opened this issue Sep 12, 2024 · 11 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Hourly KSv2 Reviewing Has a PR in review

Comments

@IuliiaHerets
Copy link

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.33-1
Reproducible in staging?: Y
Reproducible in production?: N
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Tap fab -- new workspace
  3. Tap categories
  4. Tap on a category
  5. Tap GL code
  6. Tap app back button

Expected Result:

From GL code page, tapping back button must not direct to hhm not here page.

Actual Result:

From category GL code page, tapping back button directs to hhm not here page.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6600597_1726114693300.Screenrecorder-2024-09-12-09-41-27-469_compress_1.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

Copy link

melvin-bot bot commented Sep 12, 2024

Triggered auto assignment to @trjExpensify (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 added the Daily KSv2 label Sep 12, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 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.

@nkdengineer
Copy link
Contributor

nkdengineer commented Sep 12, 2024

Edited by proposal-police: This proposal was edited at 2024-09-12 09:47:48 UTC.

Proposal

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

From category GL code page, tapping back button directs to hhm not here page.

What is the root cause of that problem?

in here we are navigating twice at this back button handle

After navigating go back, we also call the goBack function to navigate to backTo => not found page

onBackButtonPress={() => {
if (isUpgraded) {
Navigation.dismissModal();
} else {
Navigation.goBack();
}
goBack();

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

when should have early return when navigate go back here

                onBackButtonPress={() => {
                    if (isUpgraded) {
                        Navigation.dismissModal();
                    } else {
                        Navigation.goBack();
                        return;
                    }
                    goBack();
                }}

What alternative solutions did you explore? (Optional)

@nkdengineer
Copy link
Contributor

updated proposal

@ChavdaSachin
Copy link
Contributor

Proposal

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

  • From GL code page, tapping back button must not direct to hmm not here page.

What is the root cause of that problem?

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

  • change fallback route
ROUTES.WORKSPACE_CATEGORY_SETTINGS.getRoute(policyID, policyCategory.name),

ROUTES.WORKSPACE_CATEGORY_GL_CODE.getRoute(policyID, policyCategory.name),

  • so app will navigate to category page when clicking back button from upgrade page.

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.

@MariaHCD
Copy link
Contributor

I think this will be fixed in this PR: #49076

@rayane-djouah
Copy link
Contributor

I think this will be fixed in this PR: #49076

Correct!

Screen.Recording.2024-09-12.at.2.02.34.PM.mov

@MariaHCD
Copy link
Contributor

Nice, thanks for confirming, @rayane-djouah!

(I was just about to ask in the Slack thread but you were faster! 🚀 )

@MariaHCD MariaHCD added the Reviewing Has a PR in review label Sep 12, 2024
@rlinoz
Copy link
Contributor

rlinoz commented Sep 12, 2024

This is fixed on staging

@rlinoz rlinoz removed the DeployBlockerCash This issue or pull request should block deployment label Sep 12, 2024
@luacmartins
Copy link
Contributor

No payments due since this was a regression. Closing.

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. Engineering Hourly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

8 participants