Skip to content

Spend - Limit Results accepts non-numeric input and resets filter after apply #99637

Open

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: v9.4.62-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/71056925/folder/54000875/41237508/1700640817?sort=%2Bidentifier
Email or phone of affected tester (no customers): leungbratt6@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Windows 10/Chrome
App Component: Left Hand Navigation (LHN)

Action Performed:

Preconditions: User has created multiple expenses before

  1. Log in with an account that is an admin of a workspace
  2. Navigate to "Spend"
  3. Click Display > Limit Results, set the limit to 1, and click Apply
  4. Click Display > Limit Results > enter text in the field -> Apply
  5. Click Display > Limit Results again

Expected Result:

An error should appear when inputting non-numeric values

Actual Result:

Can enter text in the field and save without error, and it resets the Limit Results to empty

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7243880_1787804975887.limit.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7243880

Activity

  1. added
    DeployBlockerCash
    Bug
    on Aug 27, 2026
  2. applause-bot commented on Aug 27, 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/e6804fe077e9321850089c9c2576c97eafacab7aef8cffddcb2df3ba81981247

  3. melvin-bot commented on Aug 27, 2026

    @melvin-bot

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

  4. melvin-bot commented on Aug 27, 2026

    @melvin-bot

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

  5. github-actions commented on Aug 27, 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. added and removed
    DeployBlockerCash
    Hourly
    Bug
    on Aug 27, 2026
  7. MelvinBot commented on Aug 27, 2026

    @MelvinBot
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug (the fix belongs in Expensify/App), but pre-existing — not a regression from the v9.4.62 release.
    Causing PR: No PR in the current StagingDeployCash (v9.4.62) checklist caused this. The buggy code originates from the Search actions-bar revamp — #86297 / #85508 by bernhardoj, merged March–April 2026 (Medium confidence on origin).
    Related Issues: None identified.

    Recommendation: DEMOTE

    This bug reproduces on production and the affected files are byte-identical between production and staging, so it is a long-standing, pre-existing bug — not introduced by v9.4.62. It is a minor client-side validation gap on the "Limit Results" display filter (non-core functionality) and should not block this deploy. It should be handled as a normal (non-blocker) bug. The blocker label has already been removed and the issue is labeled Not a priority / Monthly, which matches this recommendation.

    Assigned: None added — no causing PR in this release; this is a pre-existing bug being demoted (origin PR author bernhardoj noted above for whoever picks up the non-blocker fix).
    Labels: No change. The issue currently carries only Monthly and Not a priority (no DeployBlockerCash/DeployBlocker present), so there is no blocker label to remove.

    📋 Detailed Analysis

    Evidence

    • The report states Reproducible in staging? Yes and Reproducible in production? Yes. A bug present in production cannot have been introduced by a staging-only release, so v9.4.62 is not the cause.
    • git compare production...staging for this release changes no filter-dropdown files. Among Search-related files, only src/libs/SearchUIUtils.ts (and its test) changed, and that diff contains no limit/numeric/validation logic — unrelated to this bug.
    • I scanned the relevant Search filter files against production: TextInputPopup.tsx and DisplayPopup.tsx both exist in production and are identical to staging. The production copy of TextInputPopup.tsx contains only a plain <TextInput> with no inputMode, keyboardType, or numeric validation — the same buggy code.
    • The GitHub commit history of TextInputPopup.tsx traces back to March 2026 ("revamp search page actions bar"), well before this release.

    Verification

    • Affected feature files:
      • src/components/Search/FilterDropdowns/DisplayPopup.tsx — the LIMIT case renders TextInputPopup for the Limit Results filter:
        case CONST.SEARCH.SYNTAX_ROOT_KEYS.LIMIT:
        return (
        <TextInputPopup
        placeholder={translate('search.filters.limit')}
        defaultValue={limitValue}
        label={translate('search.display.limitResults')}
        onBackButtonPress={goBack}
        closeOverlay={closeOverlay}
        onChange={(value) => updateFilterForm({limit: value})}
        />
        );
      • src/components/Search/FilterDropdowns/TextInputPopup.tsx — the input component with no numeric validation:
        <TextInput
        placeholder={placeholder}
        value={value}
        onChangeText={setValue}
        accessibilityLabel={placeholder}
        role={CONST.ROLE.PRESENTATION}
        containerStyles={[styles.ph5, styles.mb2]}
        />
    • Confirmed no StagingDeployCash (v9.4.62) PR modifies FilterDropdowns/, DisplayPopup.tsx, or TextInputPopup.tsx.

    Root Cause

    The Limit Results field is rendered by TextInputPopup, which uses a generic <TextInput> with no numeric input mode and no validation. On Apply it calls onChange(value) with the raw string, so non-numeric text is accepted without error. Because a non-numeric limit is not a valid limit, it is discarded downstream, which is why the filter "resets to empty" after applying. The fix (restrict the field to numeric input / validate before apply) belongs in Expensify/App, but since the code has shipped in production for months, it does not block the v9.4.62 deploy.


    view run

  8. Gonals commented on Oct 1, 2026

    @Gonals
    Contributor

    Not a priority

  9. Gonals commented on Nov 4, 2026

    @Gonals
    Contributor

    same

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

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions