Skip to content

[Due for payment 2026-06-18] Spend - Unable to reset date and amount filter in filter popover #91669

Closed

Description

@applause-bot

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.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:

  1. Go to staging.new.expensify.com
  2. Go to Spend > Expenses.
  3. Click Filters.
  4. Hover over Date.
  5. Click Custom date.
  6. Select any date.
  7. 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.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7163052_1779753301623.2.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7163052

Activity

  1. added
    DeployBlockerCash
    Bug
    on May 26, 2026
  2. applause-bot commented on May 26, 2026

    @applause-bot
    Author

    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

  3. melvin-bot commented on May 26, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #90029

  4. melvin-bot commented on May 26, 2026

    @melvin-bot

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

  5. github-actions commented on May 26, 2026

    @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.
  6. MelvinBot commented on May 26, 2026

    @MelvinBot
    Contributor

    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 (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.

  7. godzillaxbox19982014-lgtm commented on May 26, 2026

    @godzillaxbox19982014-lgtm

    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:

    <DateFilterBase
    ref={dateFilterRef}
    style={fullscreen ? styles.flex1 : styles.flexShrink1}
    shouldShowHeader={false}
    onDateValuesChange={(values) => {
    if (selectedDateModifier) {
    return;
    }
    onDateChange(values);
    }}
    selectedDateModifier={selectedDateModifier}
    onSelectDateModifier={setSelectedDateModifier}
    defaultDateValues={value}
    presets={getDatePresets(filterKey, true)}
    onSubmit={onDateChange}
    shouldShowActionButtons={false}
    />
    {(!!selectedDateModifier || fullscreen) && (
    <Button
    style={[styles.ph5, styles.pb5]}
    success
    medium={!fullscreen}
    large={fullscreen}
    text={translate(selectedDateModifier ? 'common.apply' : 'common.confirm')}
    onPress={() => {
    if (selectedDateModifier) {
    dateFilterRef.current?.save();
    return;
    }
    onChange(getDateFormValues(value));
    }}
    />

    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:

    const updateAmountFilter = () => {
    if (!inputRef.current) {
    return;
    }
    const formValues: AmountFilterValues = {};
    formValues[`${filterKey}${CONST.SEARCH.AMOUNT_MODIFIERS.EQUAL_TO}`] = undefined;
    formValues[`${filterKey}${CONST.SEARCH.AMOUNT_MODIFIERS.GREATER_THAN}`] = undefined;
    formValues[`${filterKey}${CONST.SEARCH.AMOUNT_MODIFIERS.LESS_THAN}`] = undefined;
    onChange({
    ...formValues,
    ...inputRef.current.getValue(),
    });
    };

    <Button
    style={[styles.ph5, styles.pb5]}
    success
    medium={!fullscreen}
    large={fullscreen}
    text={translate('common.confirm')}
    onPress={updateAmountFilter}
    />

    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.

  8. bernhardoj commented on May 26, 2026

    @bernhardoj
    Contributor

    @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?

  9. shawnborton commented on May 26, 2026

    @shawnborton
    Contributor

    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:

    Image
  10. shawnborton commented on May 26, 2026

    @shawnborton
    Contributor

    Maybe easiest just to show a reset button next to Apply here in this screen:

    Image
  11. 6 remaining items

  12. removed
    DeployBlockerCash
    on May 26, 2026
  13. dubielzyk-expensify commented on May 27, 2026

    @dubielzyk-expensify
    Contributor

    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.

  14. shawnborton commented on May 27, 2026

    @shawnborton
    Contributor

    Cool, I can get down with that.

  15. bernhardoj commented on May 27, 2026

    @bernhardoj
    Contributor

    If I get it correctly, this GH issue isn't a bug, and instead, we want to remove the Reset button?

  16. dubielzyk-expensify commented on May 27, 2026

    @dubielzyk-expensify
    Contributor

    Correct 👍

  17. bernhardoj commented on May 27, 2026

    @bernhardoj
    Contributor

    Cool, I'll do that in a separate PR!

  18. added
    Reviewing
    on May 27, 2026
  19. added
    Daily
    and removed
    Reviewing
    Hourly
    on Jun 11, 2026
  20. 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
  21. melvin-bot commented on Jun 11, 2026

    @melvin-bot

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

  22. melvin-bot commented on Jun 11, 2026

    @melvin-bot

    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. 🎊

  23. melvin-bot commented on Jun 11, 2026

    @melvin-bot

    @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]

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

Metadata

Metadata

Assignees

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions