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

[$500] Clicking the back button on the Merchant page for an expense takes to a blank page with just the LHN #35965

Closed
1 of 6 tasks
m-natarajan opened this issue Feb 6, 2024 · 10 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 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

Comments

@m-natarajan
Copy link

m-natarajan commented Feb 6, 2024

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: 1.4.37-1
Reproducible in staging?: y
Reproducible in production?: y
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: @yuwenmemon
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1707249292907579

Action Performed:

  1. Smartscan a receipt in a workspace chat
  2. Open the expense report details page
  3. Click on the merchant field
  4. Click on back button

Expected Result:

Should land in the expense details page

Actual Result:

Blank page opens

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

Recording.2700.mp4
Kapture.2024-02-06.at.11.53.39.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0199b6cdb65097259b
  • Upwork Job ID: 1754982516276056064
  • Last Price Increase: 2024-02-06
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor labels Feb 6, 2024
@melvin-bot melvin-bot bot changed the title Clicking the back button on the Merchant page for an expense takes to a blank page with just the LHN [$500] Clicking the back button on the Merchant page for an expense takes to a blank page with just the LHN Feb 6, 2024
Copy link

melvin-bot bot commented Feb 6, 2024

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

Copy link

melvin-bot bot commented Feb 6, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 6, 2024
Copy link

melvin-bot bot commented Feb 6, 2024

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

@muas19
Copy link

muas19 commented Feb 6, 2024

Proposal

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

Clicking the back button on the Merchant page for an expense takes to a blank page with just the LHN

What is the root cause of that problem?

We are not passing the onBackButtonPress prop to the HeaderWithBackButton component.

<HeaderWithBackButton title={translate('common.merchant')} />

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

Pass the prop with Navigation.dismissModal()
<HeaderWithBackButton onBackButtonPress={() => Navigation.dismissModal()} title={translate('common.merchant')} />

What alternative solutions did you explore? (Optional)

n/a

@neonbhai
Copy link
Contributor

neonbhai commented Feb 6, 2024

Proposal

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

Clicking the back button on the Merchant page for an expense takes to a blank page with just the LHN

What is the root cause of that problem?

We are missing the back button logic in EditRequestMerchantPage

<HeaderWithBackButton title={translate('common.merchant')} />

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

We shoud pass onBackButtonPress={Navigation.goBack} as the prop, like we do in similar pages.

@muas19
Copy link

muas19 commented Feb 6, 2024

#35965 (comment) Updated with formatting and typo.

@allgandalf
Copy link
Contributor

Maybe related to: #35626

@trjExpensify
Copy link
Contributor

@adamgrzybowski is going to sense check whether his solution on the main issue addressing goBack bugs will fix this. Let's hold on making a PR until then!

@adamgrzybowski
Copy link
Contributor

@trjExpensify should be fixed by #36050

@hayata-suenaga
Copy link
Contributor

The issue is tracked in #35626. Closing this in favor of that one 🙇

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. Daily KSv2 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
Projects
None yet
Development

No branches or pull requests

9 participants