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 - App returns to expense report on Inbox after editing report field in Search #47554

Closed
2 of 6 tasks
IuliiaHerets opened this issue Aug 16, 2024 · 13 comments
Closed
2 of 6 tasks
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

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 16, 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.21-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

Precondition:

  • Workspace has report fields.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit two expenses.
  4. Go to Search.
  5. Go to Drafts.
  6. Click on the View button next to the report title.
  7. Click on any report field.
  8. Edit the report field and save it.

Expected Result:

App will remain on the expense report RHP on Search after editing report field.

Actual Result:

App returns to the expense report on Inbox after editing report field in Search.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6573632_1723790005962.20240816_142832.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018b90139d632f76bb
  • Upwork Job ID: 1826366986418491339
  • Last Price Increase: 2024-08-21
Issue OwnerCurrent Issue Owner: @s77rt
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 16, 2024
@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@bernhardoj
Copy link
Contributor

Proposal

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

App return to the expense report after updating money report fields.

What is the root cause of that problem?

When we submit the report fields edit, dismiss the modal with the expense report ID if it's not a report title.

if (isReportFieldTitle) {
ReportActions.updateReportName(report.reportID, value, report.reportName ?? '');
Navigation.goBack();
} else {
ReportActions.updateReportField(report.reportID, {...reportField, value: value === '' ? null : value}, reportField);
Navigation.dismissModal(report?.reportID);
}

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

Use goBack instead.

@nkdengineer
Copy link
Contributor

Proposal

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

App returns to the expense report on Inbox after editing report field in Search.

What is the root cause of that problem?

After we edit the report field, we dismiss the modal with reportID as the expense report then we will close the edit report field page and move to the report screen.

Navigation.dismissModal(report?.reportID);

The same problem with the delete case

Navigation.dismissModal(report?.reportID);

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

We should just use go back as we do in the money request flow here

OPTIONAL: we can add the fallback route to the expense report

Navigation.dismissModal(report?.reportID);

Navigation.dismissModal(report?.reportID);

What alternative solutions did you explore? (Optional)

@mvtglobally mvtglobally added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Aug 16, 2024
Copy link

melvin-bot bot commented Aug 16, 2024

Triggered auto assignment to @greg-schroeder (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 Overdue label Aug 19, 2024
Copy link

melvin-bot bot commented Aug 19, 2024

@greg-schroeder Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Aug 21, 2024

@greg-schroeder Huh... This is 4 days overdue. Who can take care of this?

@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Aug 21, 2024
@melvin-bot melvin-bot bot changed the title Search - App returns to expense report on Inbox after editing report field in Search [$250] Search - App returns to expense report on Inbox after editing report field in Search Aug 21, 2024
Copy link

melvin-bot bot commented Aug 21, 2024

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

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

melvin-bot bot commented Aug 21, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Aug 21, 2024
@s77rt
Copy link
Contributor

s77rt commented Aug 22, 2024

Looks like a dupe #47179

@ikevin127
Copy link
Contributor

✅ Issue was addressed in already opened PR #47721 (comment) that is soon to be merged.

@s77rt
Copy link
Contributor

s77rt commented Aug 22, 2024

@greg-schroeder Let's close this

@greg-schroeder
Copy link
Contributor

done

@bernhardoj
Copy link
Contributor

@greg-schroeder after updating the report fields, it doesn't navigate to the large expense report screen, but it still closes the report RHP.

web.mp4

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
Status: Done
Development

No branches or pull requests

7 participants