Repository navigation
Description
If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.
Version Number: 9.5.4-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #101651
Email or phone of affected tester (no customers): applausetester+en@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Macbook Pro 2023 / Tahoe 26.4.1
App Component: Search
Action Performed:
- Login to staging.new.expensify.com
- Open Spend > Any suggested search (Expenses, Report, etc.)
- Open a saved search (Saved search should have a filter saved already)
- Change the filter of the saved search (The issues tends to reproduce when you switch the filter to Chat/invoice)
- Verify a Reset and Save button is shown
- Verify pressing the Reset button resets to the original saved search filters
- Press the Save button
Expected Result:
According to the PR, there should be a decision modal to create a new saved search or update the current one
Actual Result:
No decision module is shown. Also, after reseting, sometimes the save button shows and sometimes it does not appear at all
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome Safari
Screenshots/Videos
Bug7279539_1791354599965.second_video_.mp4
Bug7279539_1791335190601.No_decision_module.mp4
Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7279539
Issue Owner
Current Issue Owner: @bernhardojMetadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
applause-bot commentedon Oct 7, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/7cdc961e53b0584e6a1364dfa55dbcd13fd4009c8377009dde15f2bdf40be2cc
https://platform.applause.com/services/links/v1/external/9553ae72b7485a2961fa7e2255ebe75e9887286607ce6a095a79dd2bdb2bb2a7
melvin-bot commentedon Oct 7, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #101651
melvin-bot commentedon Oct 7, 2026
@JS00001 @aimane-chnaif you have been assigned to this deploy blocker because you reviewed the offending PR: #101651
melvin-bot commentedon Oct 7, 2026
@bernhardoj you have been assigned to this deploy blocker because you authored the offending PR: #101651
melvin-bot commentedon Oct 7, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Oct 7, 2026
👋 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:
MelvinBot commentedon Oct 7, 2026
Deploy Blocker Analysis
Causing PR: Show save filters button when the current filters is no longer the default filters (
Expensify/App#101651). This is a frontend bug and I'm highly confident in the cause. Production isn't affected because the feature is new.Root cause: The new "save edits" decision modal only opens when the page still has a saved-search
searchKey. An existing code path, which the PR didn't change, replaces that key every time the search type changes. Pressing Save then skips the modal and goes straight to the Save Search page.Recommended fix (roll forward): In
useUpdateFilterQuery.tsx:58, don't reset the key when the current key is a saved search:Also add a unit test that changes the type on a saved search and checks the key is kept. If a fix can't land quickly, reverting the PR is clean.
Investigation details
SearchFiltersSaveButton.tsx:29gets the saved search ID fromcurrentSearchKey. Pressing Save opens the modal only if that ID exists (lines 37-44), and the modal only renders when it exists (line 68).useSearchKeyParam.ts:104-107exempts saved-search keys from validation.useUpdateFilterQuery.tsx:58-60sets a newsearchKeyfromgetSearchKeyForQuery. The edited query no longer matches the saved search, so it falls back to a key based on type alone (useSearchKeyParam.ts:84). That key isundefinedfor Chat, Invoice and Trip, and the generalexpenses/reportssuggested search for Expense and Expense report.Why Save sometimes shows after Reset:
isSearchQuerySavablereturns true and Save stays visible.Optional repro: On a saved search, switch the type to Chat and press Save. It opens the Save Search page, and the
searchKeyURL parameter is gone.I'm not proposing a code review rule. One code path silently overwrites route state that another path relies on, and a reviewer can't check for that mechanically.
view run
JS00001 commentedon Oct 7, 2026
This is minor so going to demote, @bernhardoj lets look into this one
bernhardoj commentedon Oct 7, 2026
This isn't a bug. The decision modal only shows if we are on a saved search. When the QA changes the
type, the search key is reset and since it choose Invoice, the search key is undefined (there is nothing to highlight on the LHN). It's not a saved search anymore.JS00001 commentedon Oct 7, 2026
@bernhardoj I think we want every search to be fully self-contained though, meaning changing anything still leaves you on that view, until you click another one
bernhardoj commentedon Oct 7, 2026
I think it's intentional when changing the type. For example, when we are on the
expensessuggested search, it doesn't make sense for it to stay on theexpensesview. Or if we are on Card accruals and change the type to Chat. Each type also has a different set of applicable filters.JS00001 commentedon Oct 7, 2026
@trjExpensify any thoughts on this one?
trjExpensify commentedon Oct 7, 2026
I agree with that re: Type. 👍
JS00001 commentedon Oct 8, 2026
Cool, lets close this then, thanks