Skip to content

[Due for payment 2025-06-12] [Due for payment 2025-06-11] Expense - Expense is clickable when deleted offline which leads to infinite loading page #63273

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.55-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
Email or phone of affected tester (no customers): sdjoisdjosdijsod@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.4 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Account has self DM.
  1. Go to staging.new.expensify.com
  2. Go to self DM.
  3. Track a manual expense.
  4. Go offline.
  5. Click on the expense preview.
  6. Click More > Delete.
  7. Delete the expense.
  8. Click on the preview of the deleted expense.

Expected Result:

  • Expense preview will gray out.
  • The deleted expense will not be clickable.

Actual Result:

  • Expense preview does not gray out.
  • The deleted expense is clickable which leads to infinite loading page. It becomes not here page after going online.

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

Bug6849066_1748897234904.delete_expense_offline.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

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

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (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. github-actions commented on Jun 2, 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.
  4. melvin-bot commented on Jun 2, 2025

    @melvin-bot

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

  5. melvin-bot commented on Jun 2, 2025

    @melvin-bot

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

  6. BlameGPT commented on Jun 2, 2025

    @BlameGPT
    Contributor

    Possible culprit PRs for this issue

    • fix: track expense disappears after delete offline #62470: This PR specifically tests deleting an expense offline in self DM and verifies the expense does not disappear, matching the issue's offline delete and click flow.
    • Fix delete conditions #62997: This PR fixes delete conditions for expenses including offline scenarios and deletion permissions, directly related to deleting expenses and their clickable state.
    • Split expense flow fix bugs #63160: This PR involves expense preview interactions and 'More' menu actions including offline expense handling, which relates to UI flow after expense deletion.
  7. removed
    DeployBlocker
    on Jun 3, 2025
  8. 28 remaining items

  9. eh2077 commented on Jun 12, 2025

    @eh2077
    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: Fix delete conditions #62997 (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: NA

    • [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:

    Regression Test Proposal

    Precondition:

    • Account has self DM.

    Test:

    1. Go to staging.new.expensify.com
    2. Go to self DM.
    3. Track a manual expense.
    4. Go offline.
    5. Click on the expense preview.
    6. Click More > Delete.
    7. Delete the expense.
    8. You are returned to the DM chat and the expense has been deleted

    Do we agree 👍 or 👎

  10. ikevin127 commented on Jun 12, 2025

    @ikevin127
    Contributor

    @mallenexpensify The PR for this issue led to the following regression due to missing an offline test case related to draft message -> delete while offline using the header More button. Dropped a comment on the PR line causing the issue, and here's a detailed breakdown of the root cause and approved proposal to fix the issue.

  11. mallenexpensify commented on Jun 13, 2025

    @mallenexpensify
    Contributor

    Contributor+: @eh2077 due $125 via NewDot (per regression comment above)

    Test case

  12. mallenexpensify commented on Jun 18, 2025

    @mallenexpensify
    Contributor

    @eh2077 eyes plz on the regression test steps

    1. Go to staging.new.expensify.com
    2. Go to self DM.
    3. Track a manual expense.
    4. Go offline.
    5. Click on the expense preview.
    6. Click More > Delete.
    7. Delete the expense.
    8. You are returned to the DM chat and the expense has been deleted

    For #8, the expense isn't deleted, is that a bug? This is how it shows after deleting the expense while offline

    Image
  13. eh2077 commented on Jun 18, 2025

    @eh2077
    Contributor

    @mallenexpensify Thanks for check this. I retested in staging and both online and offline work for me

    Screen.Recording.2025-06-19.at.12.17.08.AM.mov
    Screen.Recording.2025-06-19.at.12.18.45.AM.mov
  14. aldo-expensify commented on Jun 20, 2025

    @aldo-expensify
    Contributor

    Should we close, or do you want to retest @mallenexpensify ?

  15. mallenexpensify commented on Jun 21, 2025

    @mallenexpensify
    Contributor

    I think we should be good, posted on the test case with screenshots. Thx

  16. JmillsExpensify commented on Jun 26, 2025

    @JmillsExpensify
    Contributor

    $125 approved for @eh2077

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineering

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions