You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-06-18] Spend - Unable to reset date and amount filter in filter popover #91669
Version Number: 9.3.82-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#90029 Email or phone of affected tester (no customers):sdjsodnjiodsjsoinj1@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Search
Action Performed:
Go to staging.new.expensify.com
Go to Spend > Expenses.
Click Filters.
Hover over Date.
Click Custom date.
Select any date.
Click Apply.
Expected Result:
Reset button should appear on Date filter in the popover so that user can reset date filter easily.
Actual Result:
Reset button is missing on Date filter in the popover. User will have to close the popover and reset it from the quick filter, which is not convenient.
The same issue also happens with amount-based filter such as Amount and Purchase Amount.
👋 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:
Identify the pull request that introduced this issue and revert it.
PR #90029 introduced the advanced filters popover. The Date and Amount filters inside it use custom components (DateFilterComponent and AmountFilterComponent) that each render only a single "Confirm"/"Apply" button — no reset button.
In contrast, the quick-filter popup counterparts (DateSelectPopup, AmountPopup) and other filters in the same popover (category, tag, etc. via CommonPopup) all use BasePopup, which renders ActionButtons — a Reset + Apply button pair. DateFilterComponent and AmountFilterComponent bypass BasePopup entirely, so they never get the reset button.
What changes do you think we should make in order to solve the problem?
Replace the single <Button> in both DateFilterComponent and AmountFilterComponent with the <ActionButtons> component (from src/components/Search/FilterDropdowns/ActionButtons.tsx), adding a resetChanges callback that clears the date/amount modifier values and calls onChange with undefined values — mirroring the reset logic already present in their quick-filter counterparts (DateSelectPopup and AmountPopup).
What alternative solutions did you explore? (Optional)
An alternative would be to refactor DateFilterComponent and AmountFilterComponent to wrap their content in BasePopup (like CommonPopup does), which would automatically provide the ActionButtons. However, these components have more complex internal state (date modifiers, amount modifiers) than typical list-based filters, so directly using ActionButtons with custom reset logic is simpler and more targeted.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
godzillaxbox19982014-lgtm commented on May 26, 2026
One verified delta to MelvinBot's note: the date case is slightly sharper than "single footer button."
In DateFilterComponent, the embedded DateFilterBase has shouldShowActionButtons={false}, then the replacement footer only renders while selectedDateModifier is set or the fullscreen sheet is active:
After Apply saves the custom date, selectedDateModifier is cleared, so reopening/hovering Date in the desktop advanced-filters popover shows the selected date value but no footer at all. Amount is the simpler sibling: it always renders only Confirm, with no reset path for the three amount keys:
So the date change should keep a Reset/Apply footer visible whenever any date modifier value exists, not only while the custom-date subview is open, and the amount change should clear amount, amountGreaterThan, and amountLessThan through the same onChange path.
@Expensify/design how should this look? For the selection filter, we can unselect; for the text input-based filter (and amount), we can delete it, but what should we do for the date-based filter?
Curious what @dubielzyk-expensify is thinking, but we definitely need something like we had before for the exposed filters where we always had Reset/Apply at the bottom:
Yeah, I'm fine to add a reset button if y'all think so but like Danny points out the actual reset is to delete the filter. I think resets for individual filters kinda isn't needed anymore with this new way of doing them.
If anything I'm kinda keen to remove the Reset buttons everywhere cause even the interaction today of tapping reset and it removing the filter feels a bit confusing.
changed the title [-]Spend - Unable to reset date and amount filter in filter popover[/-][+][Due for payment 2026-06-18] Spend - Unable to reset date and amount filter in filter popover[/+]on Jun 11, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.5-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@JS00001 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]. If no checklist is needed for this issue, you can click: [no checklist button]
Activity
applause-bot commentedon May 26, 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/699186a9d9794aa2b10c1537709b82c5df7d21b90cb350bc81bceae64ac9c9cf
melvin-bot commentedon May 26, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #90029
melvin-bot commentedon May 26, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 26, 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 May 26, 2026
Proposal
What is the root cause of that problem?
PR #90029 introduced the advanced filters popover. The Date and Amount filters inside it use custom components (
DateFilterComponentandAmountFilterComponent) that each render only a single "Confirm"/"Apply" button — no reset button.In contrast, the quick-filter popup counterparts (
DateSelectPopup,AmountPopup) and other filters in the same popover (category, tag, etc. viaCommonPopup) all useBasePopup, which rendersActionButtons— a Reset + Apply button pair.DateFilterComponentandAmountFilterComponentbypassBasePopupentirely, so they never get the reset button.What changes do you think we should make in order to solve the problem?
Replace the single
<Button>in bothDateFilterComponentandAmountFilterComponentwith the<ActionButtons>component (fromsrc/components/Search/FilterDropdowns/ActionButtons.tsx), adding aresetChangescallback that clears the date/amount modifier values and callsonChangewith undefined values — mirroring the reset logic already present in their quick-filter counterparts (DateSelectPopupandAmountPopup).What alternative solutions did you explore? (Optional)
An alternative would be to refactor
DateFilterComponentandAmountFilterComponentto wrap their content inBasePopup(likeCommonPopupdoes), which would automatically provide theActionButtons. However, these components have more complex internal state (date modifiers, amount modifiers) than typical list-based filters, so directly usingActionButtonswith custom reset logic is simpler and more targeted.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.godzillaxbox19982014-lgtm commentedon May 26, 2026
One verified delta to MelvinBot's note: the date case is slightly sharper than "single footer button."
In
DateFilterComponent, the embeddedDateFilterBasehasshouldShowActionButtons={false}, then the replacement footer only renders whileselectedDateModifieris set or the fullscreen sheet is active:App/src/components/Search/FilterDropdowns/AdvancedFilters/DateFilterComponent.tsx
Lines 60 to 91 in dd15fd9
After Apply saves the custom date,
selectedDateModifieris cleared, so reopening/hovering Date in the desktop advanced-filters popover shows the selected date value but no footer at all. Amount is the simpler sibling: it always renders only Confirm, with no reset path for the three amount keys:App/src/components/Search/FilterDropdowns/AdvancedFilters/AmountFilterComponent.tsx
Lines 154 to 167 in dd15fd9
App/src/components/Search/FilterDropdowns/AdvancedFilters/AmountFilterComponent.tsx
Lines 217 to 224 in dd15fd9
So the date change should keep a Reset/Apply footer visible whenever any date modifier value exists, not only while the custom-date subview is open, and the amount change should clear
amount,amountGreaterThan, andamountLessThanthrough the sameonChangepath.bernhardoj commentedon May 26, 2026
@Expensify/design how should this look? For the selection filter, we can unselect; for the text input-based filter (and amount), we can delete it, but what should we do for the date-based filter?
shawnborton commentedon May 26, 2026
Curious what @dubielzyk-expensify is thinking, but we definitely need something like we had before for the exposed filters where we always had Reset/Apply at the bottom:
shawnborton commentedon May 26, 2026
Maybe easiest just to show a reset button next to Apply here in this screen:
6 remaining items
dubielzyk-expensify commentedon May 27, 2026
Yeah, I'm fine to add a reset button if y'all think so but like Danny points out the actual reset is to delete the filter. I think resets for individual filters kinda isn't needed anymore with this new way of doing them.
If anything I'm kinda keen to remove the
Resetbuttons everywhere cause even the interaction today of tapping reset and it removing the filter feels a bit confusing.shawnborton commentedon May 27, 2026
Cool, I can get down with that.
bernhardoj commentedon May 27, 2026
If I get it correctly, this GH issue isn't a bug, and instead, we want to remove the Reset button?
dubielzyk-expensify commentedon May 27, 2026
Correct 👍
bernhardoj commentedon May 27, 2026
Cool, I'll do that in a separate PR!
[-]Spend - Unable to reset date and amount filter in filter popover[/-][+][Due for payment 2026-06-18] Spend - Unable to reset date and amount filter in filter popover[/+]melvin-bot commentedon Jun 11, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jun 11, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.5-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 2026-06-18. 🎊
melvin-bot commentedon Jun 11, 2026
@JS00001 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]. If no checklist is needed for this issue, you can click: [no checklist button]