Skip to content

[Due for payment 2025-10-01] [$250] iOS - Reports - Filter buttons are no longer responsive after deleting expense #70209

Closed

Description

@lanitochka17

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.2.3-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/test-runs/TR-721/41237509/885762997?q=advanced+filter&issue_type=jira
Email or phone of affected tester (no customers): dsjionsjosdijdso@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch Expensify app
  2. Go to workspace chat
  3. Create two expenses in workspace chat
  4. Go to Reports > Menu > Submit
  5. Expand the report row
  6. Long tap on the report row > Select
  7. Unselect one of the expenses
  8. Tap dropdown button > Delete
  9. Delete the expense
  10. Tap app back button to exit selection mode
  11. Tap on any filter button (Type, Status, Date, From)

Expected Result:

The filter buttons should be responsive after deleting expense

Actual Result:

The filter buttons are no longer responsive after deleting expense

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Bug6939638_1757425010746.ScreenRecording_09-09-2025_21-32-18_1.1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021968064923574859982
  • Upwork Job ID: 1968064923574859982
  • Last Price Increase: 2025-09-16
  • Automatic offers:
    • huult | Contributor | 108859364
Issue OwnerCurrent Issue Owner: @CortneyOfstad

Activity

  1. added
    Daily
    Bug
    on Sep 9, 2025
  2. melvin-bot commented on Sep 9, 2025

    @melvin-bot

    Triggered auto assignment to @CortneyOfstad (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. melvin-bot commented on Sep 12, 2025

    @melvin-bot

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

  4. added
    External
    on Sep 16, 2025
  5. changed the title [-]iOS - Reports - Filter buttons are no longer responsive after deleting expense[/-] [+][$250] iOS - Reports - Filter buttons are no longer responsive after deleting expense[/+] on Sep 16, 2025
  6. melvin-bot commented on Sep 16, 2025

    @melvin-bot
  7. added
    Help Wanted
    on Sep 16, 2025
  8. melvin-bot commented on Sep 16, 2025

    @melvin-bot

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

  9. huult commented on Sep 17, 2025

    @huult
    Contributor

    🚨 Edited by proposal-police: This proposal was edited at 2025-09-17 03:24:37 UTC.

    Proposal

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

    Filter buttons are no longer responsive after deleting expense

    What is the root cause of that problem?

    After we delete an expense, willAlertModalBecomeVisible is always true. That’s why we can’t update the state to true to display the popover.

    if (!previousValue && willAlertModalBecomeVisible) {

    We attempt to reset willAlertModalBecomeVisible to false when hiding the modal, but due to a timing issue in the iOS modal lifecycle, the reset is skipped and the flag remains stuck as true.

    willAlertModalBecomeVisible(false);

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

    We should clear the flag earlier in the modal hide lifecycle to ensure it is reset before other components check its value.

    1 Add willAlertModalBecomeVisible in onModalWillHide

    onModalWillHide={onModalWillHide}

    update to:

      onModalWillHide={() => {
          // Reset willAlertModalBecomeVisible when modal is about to hide
          // This ensures it's cleared before any other components check its value
          if (areAllModalsHidden()) {
              willAlertModalBecomeVisible(false);
          }
          onModalWillHide?.();
      }}

    2 Remove willAlertModalBecomeVisible in hideModal func

    const hideModal = useCallback(

        const hideModal = useCallback(
            (callHideCallback = true) => {
                shouldCallHideModalOnUnmount.current = false;
                if (shouldSetModalVisibility && !Navigation.isTopmostRouteModalScreen()) {
                    setModalVisibility(false);
                }
                if (callHideCallback) {
                    onModalHide();
                }
                onModalDidClose();
                ComposerFocusManager.refocusAfterModalFullyClosed(uniqueModalId, restoreFocusType);
            },
            [shouldSetModalVisibility, onModalHide, restoreFocusType, uniqueModalId],
        );
    
    Screen.Recording.2025-09-17.at.10.21.16.mov

    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.

    Or we can use some delay here (requestAnimationFrame, setTimeOut....)

    willAlertModalBecomeVisible(false);

  10. 17 remaining items

  11. removed
    Reviewing
    on Sep 24, 2025
  12. melvin-bot commented on Sep 24, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  13. melvin-bot commented on Sep 24, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.17-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-10-01. 🎊

    For reference, here are some details about the assignees on this issue:

  14. melvin-bot commented on Sep 24, 2025

    @melvin-bot

    @c3024 @CortneyOfstad The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  15. CortneyOfstad commented on Sep 30, 2025

    @CortneyOfstad
    Contributor

    Payment set for tomorrow! @c3024 can you please complete the checklist to make sure there is not a delay? Thank you!

  16. c3024 commented on Oct 1, 2025

    @c3024
    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: iOS specific bug. No PR can be held responsible.

    • [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: Not a critical bug.

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

    Regression Test Proposal Template
    • [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:

    • None

    Test:

    1. Launch the Expensify app.
    2. Navigate to workspace chat.
    3. Create the first expense in workspace chat.
    4. Create the second expense in workspace chat.
    5. Go to Reports > Menu > Submit.
    6. Expand a report row.
    7. Long tap on the report row and select it.
    8. Unselect one of the expenses in the report.
    9. Tap the dropdown button and choose Delete.
    10. Confirm deletion of the expense.
    11. Tap the app back button to exit selection mode.
    12. Tap any filter button (Type, Status, Date, From).
    13. Verify that the filter buttons are responsive after deleting the expense.

    Do we agree 👍 or 👎

  17. added
    Daily
    and removed
    Weekly
    on Oct 1, 2025
  18. CortneyOfstad commented on Oct 2, 2025

    @CortneyOfstad
    Contributor

    Payment Summary

    @huult — paid $250 via Upwork
    @c3024 — to be paid $250 via NewDot

    Regression Test

    https://github.com/Expensify/Expensify/issues/553517

  19. added
    Reviewing
    Weekly
    and removed
    Daily
    on Oct 8, 2025
  20. JmillsExpensify commented on Oct 28, 2025

    @JmillsExpensify
    Contributor

    $250 approved for @c3024

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

Metadata

Metadata

Labels

Awaiting PaymentBugExternalReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions