Repository navigation
[Payment due @situchan] Add Held search filter for expenses - #104076
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx bun ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
…-search-filter # Conflicts: # src/CONST/index.ts # src/components/Search/FilterComponents/ListFilterContent.tsx # src/hooks/useAdvancedSearchFilters.ts # src/hooks/useAutocompleteSuggestions.ts # src/languages/de.ts # src/languages/el.ts # src/languages/en.ts # src/languages/es.ts # src/languages/fr.ts # src/languages/it.ts # src/languages/ja.ts # src/languages/nl.ts # src/languages/pl.ts # src/languages/pt-BR.ts # src/languages/zh-hans.ts # src/libs/SearchAutocompleteUtils.ts # src/libs/SearchParser/autocompleteParser.js # src/libs/SearchParser/autocompleteParser.peggy # src/libs/SearchParser/baseRules.peggy # src/libs/SearchParser/searchParser.js # src/libs/SearchParser/searchParser.peggy # src/libs/SearchQueryUtils.ts # src/libs/SearchUIUtils.ts # src/types/form/SearchAdvancedFiltersForm.ts # tests/unit/Search/SearchQueryUtilsTest.ts # tests/unit/SearchParserTest.ts # tests/unit/hooks/useAutocompleteSuggestions.test.ts
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@parasharrajat Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
🚧 JmillsExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
JmillsExpensify
left a comment
There was a problem hiding this comment.
This looks great. Excited to see this going through.
|
@parasharrajat could you review this PR? |
|
I'm pretty sure he's out and we need to keep this moving, so I'll find an alt. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppios.mp4iOS: mWeb SafariMacOS: Chrome / Safariweb.mov |
situchan
left a comment
There was a problem hiding this comment.
Code looks good. Some minor nits:
|
@c3024 back to you |
|
🎯 @situchan, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
Code reviewI found no blocking bugs. Held is wired into every place Billable and Declined use, and the new tests cover parsing, negation, form round-trips, autocomplete, and sorting. Two things to address before merge:
Minor, optional
What I checked
|
|
🤖 Web test steps verification results: The Held filter, chip, negation, and autocomplete all work on Spend > Expenses, and Held is correctly absent from Spend > Reports filters. The Columns picker showed Held, Billable, and Reimbursable as disabled in the test browser, so the column and sort steps could not be checked. Code check: no regressions found
|
|
🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.5.16-0 🚀
|
|
A help site update is needed. This PR adds a new user-facing feature that isn't behind a beta: the Held filter and the I created a draft docs PR: Docs updates for E/A#104076 Add held: search operator to search operators article It adds one VerificationI checked these labels in the web app:
@c3024, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.5.18-0 🚀
|
|
A help site update is needed, and it's already open: [No QA] Docs updates for E/A#104076 Add held: search operator to search operators article. I didn't create a second PR. This PR adds a new, non-beta feature: the Held expense filter and the UI check (dev web)
@c3024, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |






Explanation of Change
Adds a "Held" Yes/No filter for expenses. The query key is
held:yes/held:no, and it matches expenses that are currently on hold. It works like Billable: filter list page, filter bar chip, typed query with autocomplete and negation. Hold only exists on expenses, so the filter is only offered for the Expense type.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/691882
PROPOSAL:
Tests
held:.held:noandheld:yes.type:expense -held:yesafter clicking on the Search magnifying glass icon.Offline tests
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari