Skip to content

[Due for payment 2026-10-27] [Insights: Violations][R2] Add the date filter any-approval #99930

Closed

Description

@neil-marcellini

(Neil's AI agent)

Part of the [Tracking] [Insights Violations] Release 2 issue: Expensify/Expensify#671675

Phase 6 of the Release 2 implementation order. Depends on Phase 3: Expensify/Expensify#676895 (any-approval date filter - Auth).

The largest App phase by file count.

Problem

approved is already wired end to end in App and any-approval needs the same wiring, otherwise the suggested search cannot express its date range.

Solution

Every step sits next to the equivalent approved entry.

  • Add ANY_APPROVAL: 'any-approval' to SYNTAX_FILTER_KEYS.
  • Add the five form keys ANY_APPROVAL_ON, ANY_APPROVAL_NOT, ANY_APPROVAL_AFTER, ANY_APPROVAL_BEFORE and ANY_APPROVAL_RANGE to FILTER_KEYS, and repeat them everywhere the APPROVED_* keys appear in SearchAdvancedFiltersForm.ts.
  • Map each new form key in FILTER_TO_SYNTAX_KEY, and add a FILTER_VIEW_MAP entry with labelKey: 'search.filters.anyApproval' and an icon.
  • Add the autocomplete cases in SearchAutocompleteUtils and useAutocompleteSuggestions, and add the key to the SYNTAX_FILTER_KEYS.APPROVED lists in useAdvancedSearchFilters.
  • Add the parser rule in baseRules.peggy and the rule name to the key lists in searchParser.peggy and autocompleteParser.peggy, then re-run npm run generate-search-parser and npm run generate-autocomplete-parser and commit the generated files.
  • Add the search.filters.anyApproval translation in en.ts and every other language file.

Tests

Automated and manual tests from the doc section must be included in the PR. Key automated cases: buildQueryStringFromFilterFormValues and buildFilterFormValuesFromQuery round-trip the ON, AFTER, BEFORE, RANGE and negated forms; the autocomplete suggests date presets after any-approval:; and the parser accepts any-approval in a query string, which also proves the parsers were regenerated and committed.

Repo: App (frontend).

Full details

Google Doc: Add the date filter any-approval → App

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. nkdengineer commented on Aug 31, 2026

    @nkdengineer
    Contributor

    Comment for assignment.

  2. changed the title [-][HOLD 676895][Insights: Violations][R2] Add the date filter any-approval - App[/-] [+][HOLD 676895][Insights: Violations][R2] Add the date filter any-approval[/+] on Aug 31, 2026
  3. daledah commented on Aug 31, 2026

    @daledah
    Contributor

    Comment for being assigned as the reviewer for this issue

  4. changed the title [-][HOLD 676895][Insights: Violations][R2] Add the date filter any-approval[/-] [+][Insights: Violations][R2] Add the date filter any-approval[/+] on Sep 22, 2026
  5. neil-marcellini commented on Sep 22, 2026

    @neil-marcellini
    ContributorAuthor

    @nkdengineer this is off hold now. Please start implementation.

  6. nkdengineer commented on Sep 23, 2026

    @nkdengineer
    Contributor

    @neil-marcellini I still see the backend error while testing.

    Image
  7. neil-marcellini commented on Sep 23, 2026

    @neil-marcellini
    ContributorAuthor

    Resolved as mentioned in DM. It should be anyApproval when sent to the API. Sorry for the mistake in the issue description.

  8. 17 remaining items

  9. melvin-bot commented on Oct 26, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  10. melvin-bot commented on Oct 26, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  11. mallenexpensify commented on Oct 28, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @nkdengineer due $250 via NewDot
    Contributor+: @daledah due $250 via NewDot

  12. twisterdotcom commented on Oct 30, 2026

    @twisterdotcom
    Contributor

    $250 approved for @nkdengineer in Report ID: R00AgwJoQv11.

    Zapier Logs Run ID: 00040eee-14e9-a2cb-a403-cf02dbf15c44

    SO: https://stackoverflowteams.com/c/expensify/questions/7582

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions