Skip to content

[Due for payment 2025-07-15] [$250] Reports - App background changes to Inbox after opening report details page on Reports page #64893

Closed

Description

@mitarachim

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.1.71-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp https://expensify.testrail.io/index.php?/tests/view/6353911
Email or phone of affected tester (no customers): dsnsjdoiiojsodj3o@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit two expenses to the workspace chat.
  4. Go to Reports > Expenses.
  5. Open any expense.
  6. Close the RHP.
  7. Go to Reports > Reports.
  8. Click View on any expense row.
  9. Click the arrow next button.
  10. Click on the header avatar.

Expected Result:

App background will remain in Reports page.

Actual Result:

App background changes to Inbox after opening report details page on Reports page.

On small screen, LHN opens.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6869216_1750833332071.20250625_143441.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021937838807694712513
  • Upwork Job ID: 1937838807694712513
  • Last Price Increase: 2025-06-25
Issue OwnerCurrent Issue Owner: @twisterdotcom

Activity

  1. added
    Daily
    Bug
    on Jun 25, 2025
  2. melvin-bot commented on Jun 25, 2025

    @melvin-bot

    Triggered auto assignment to @twisterdotcom (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.

  3. added
    DeployBlockerCash
    DeployBlocker
    on Jun 25, 2025
  4. melvin-bot commented on Jun 25, 2025

    @melvin-bot

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

  5. melvin-bot commented on Jun 25, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. github-actions commented on Jun 25, 2025

    @github-actions
    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.
  7. Eskalifer1 commented on Jun 25, 2025

    @Eskalifer1
    Contributor

    Proposal

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

    Reports - App background changes to Inbox after opening report details page on Reports page

    What is the root cause of that problem?

    The main problem is in this component, namely in this line:

    The situation is as follows: The component saves the value it received during rendering, even if the value has changed

    And the initial value is as follows: initial=true&screen=SearchReport&params=%5Bobject%20Object%5D

    Accordingly, when you press the backTo button, it will be set to this value, as a result of which the screen behind will change

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

    The simplest solution is to add this line

     const backTo = Navigation.getActiveRoute();

    directly to the onNext and onPrevious functions, that is, it will look like this:

    onNext={(e) => {
     const backTo = Navigation.getActiveRoute();
     e?.preventDefault();
     Navigation.navigate(ROUTES.SEARCH_REPORT.getRoute({reportID: nextReportID, backTo}), {forceReplace: true});
     }}
     onPrevious={(e) => {
     const backTo = Navigation. getActiveRoute();
     e?.preventDefault();
     Navigation.navigate(ROUTES.SEARCH_REPORT.getRoute({reportID: prevReportID, backTo}), {forceReplace: true});
     }}

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    None

    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.

  8. twisterdotcom commented on Jun 25, 2025

    @twisterdotcom
    Contributor

    I can't recreate this.

  9. 45 remaining items

  10. melvin-bot commented on Jul 15, 2025

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@twisterdotcom)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1937838807694712513/hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  11. Eskalifer1 commented on Jul 17, 2025

    @Eskalifer1
    Contributor

    Hi, i should get payment here

  12. DylanDylann commented on Jul 17, 2025

    @DylanDylann
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment:

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion:

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue: https://github.com/Expensify/Expensify/issues/528222

    Regression Test Proposal

    Test:

    1. Go to workspace chat.
    2. Submit two expenses to the workspace chat.
    3. Go to Reports > Expenses.
    4. Open any expense.
    5. Close the RHP.
    6. Go to Reports > Reports.
    7. Click View on any expense row.
    8. Click the arrow next button.
    9. Click on the header avatar.
    10. Verify the App background will remain in the Search Report page

    Do we agree 👍 or 👎

  13. melvin-bot commented on Jul 18, 2025

    @melvin-bot

    @twisterdotcom Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  14. Eskalifer1 commented on Jul 21, 2025

    @Eskalifer1
    Contributor

    I don't know who is responsible for the payment, so I can't tag them

    But anyway gentle bump for payment

  15. DylanDylann commented on Jul 21, 2025

    @DylanDylann
    Contributor

    @twisterdotcom Bump for payment

  16. melvin-bot commented on Jul 22, 2025

    @melvin-bot

    @twisterdotcom 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  17. twisterdotcom commented on Jul 22, 2025

    @twisterdotcom
    Contributor

    Hello, back from OOO. Handling these now.

  18. twisterdotcom commented on Jul 22, 2025

    @twisterdotcom
    Contributor

    Payment Summary:

  19. JmillsExpensify commented on Oct 14, 2025

    @JmillsExpensify
    Contributor

    $250 approved for @DylanDylann

  20. quinthar commented on Oct 16, 2025

    @quinthar
    Contributor

    $250 approved to @DylanDylann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions