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] [Search v2.1] Web - Search - App returns to Inbox after closing receipt view in Search #49887

Open
2 of 6 tasks
lanitochka17 opened this issue Sep 28, 2024 · 15 comments
Open
2 of 6 tasks
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Sep 28, 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: 9.0.41-2
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
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat
  3. Submit an expense with receipt
  4. Go to Search
  5. Click on the expense submitted in Step 3
  6. Click on the receipt
  7. Click X button

Expected Result:

App will return to search page with transaction thread RHP open

Actual Result:

App returns to transaction thread in Inbox

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

Bug6617905_1727473443637.20240928_054138.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021840734855215732913
  • Upwork Job ID: 1840734855215732913
  • Last Price Increase: 2024-09-30
Issue OwnerCurrent Issue Owner: @
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Sep 28, 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 Sep 28, 2024

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

@lanitochka17
Copy link
Author

Production:

bandicam.2024-09-28.00-26-21-579.mp4

@lanitochka17
Copy link
Author

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

@Nodebrute
Copy link
Contributor

Proposal

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

App returns to Inbox after closing receipt view in Search

What is the root cause of that problem?

We are dismissing modal here

onModalClose={() => {
Navigation.dismissModal(report?.reportID ?? '-1');
}}

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

We should use Navigation.goBack instead. We can do something like this

  Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(report?.reportID ?? '-1'));

onModalClose={() => {
Navigation.dismissModal(report?.reportID ?? '-1');
}}

What alternative solutions did you explore? (Optional)

@rijusougata13
Copy link

rijusougata13 commented Sep 28, 2024

Contributor details
Your Expensify account email: rijusougata13@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~014959001a9ba2085d

Copy link

melvin-bot bot commented Sep 28, 2024

📣 @rijusougata13! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@sumairq
Copy link

sumairq commented Sep 28, 2024

Edited by proposal-police: This proposal was edited at 2024-09-28 23:05:57 UTC.

Proposal

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

App returns to Inbox after closing receipt view in Search

What is the root cause of that problem?

We are dismissing modal here whereas we just need to close the open reciept and use a general purpose function .

onModalClose={() => {
Navigation.dismissModal(report?.reportID ?? '-1');
}}

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

We should use Navigation.goBack instead. We can do something like this

 onModalClose={() => { 
     Navigation.goBack(); 
 }} 

Video

Screencast.from.2024-09-29.04-19-43.mp4

What alternative solutions did you explore? (Optional)

Copy link
Contributor

thouwhaleu Your proposal will be dismissed because you did not follow the proposal template.

@roryabraham roryabraham removed the DeployBlocker Indicates it should block deploying the API label Sep 29, 2024
@Kicu
Copy link
Contributor

Kicu commented Sep 30, 2024

hey, I work for an expert agency and I would like to work on this issue. I have a lot of context since I worked on search a lot.

@Kicu
Copy link
Contributor

Kicu commented Sep 30, 2024

@luacmartins you can assign me, I have a bit of time while waiting on other open Search PRs to merge

@luacmartins
Copy link
Contributor

luacmartins commented Sep 30, 2024

Thanks @Kicu! Demoting to NAB as well since this bug doesn't really break any functionality

@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Sep 30, 2024
@luacmartins luacmartins changed the title Web - Search - App returns to Inbox after closing receipt view in Search [Search v2.1] Web - Search - App returns to Inbox after closing receipt view in Search Sep 30, 2024
@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Sep 30, 2024
@melvin-bot melvin-bot bot changed the title [Search v2.1] Web - Search - App returns to Inbox after closing receipt view in Search [$250] [Search v2.1] Web - Search - App returns to Inbox after closing receipt view in Search Sep 30, 2024
Copy link

melvin-bot bot commented Sep 30, 2024

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

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

melvin-bot bot commented Sep 30, 2024

Current assignee @rayane-djouah is eligible for the External assigner, not assigning anyone new.

@luacmartins luacmartins removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 30, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 30, 2024
@Kicu
Copy link
Contributor

Kicu commented Sep 30, 2024

PR ready #49915. I have not used any of the proposed suggestions, simply using goBack() might've broken some existing cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
Status: Polish
Development

No branches or pull requests

8 participants