Remove exportedOn from awaiting export query#93052
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4189b7a134
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -827,7 +827,6 @@ function getSuggestedSearches( | |||
| type: CONST.SEARCH.DATA_TYPES.EXPENSE_REPORT, | |||
| action: CONST.SEARCH.ACTION_FILTERS.EXPORT, | |||
| exporter: [`${accountID}`], | |||
There was a problem hiding this comment.
Preserve Export to-do hash matching
When the For You section has multiple export todos, it still navigates with exportedOn: never (src/pages/home/ForYouSection/index.tsx:103-106). SearchQueryProvider identifies the active suggested search by comparing similarSearchHash against getSuggestedSearches, so after this removal the sidebar Export query no longer includes the exported filter but the For You route still does. That leaves currentSearchKey undefined for the For You Export search, so it won't use live to-do data and export actions won't receive EXPORT for the optimistic removal path. Please update the For You export query at the same time or keep the suggested search filter consistent.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
That place doesn't filter by action, so I think it is a difference case.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @rlinoz has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.4.2-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Help site review: no documentation changes required. This PR removes the Why no docs update is neededThe only help article that documents this feature is Accounting-Search-Shortcuts.md, which describes the shortcut as:
This description remains accurate. The change is an internal query refinement with no impact on feature names, tab names, settings labels, buttons, or the documented behavior of the Awaiting export shortcut. Since no documentation changes are required, no draft help site PR was created. @rlinoz, please confirm you agree this change does not affect the documented behavior of the Awaiting export shortcut. |
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 9.4.4-1 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. This PR removes a redundant I reviewed the only help article that documents this shortcut, Accounting Search Shortcuts, which describes Awaiting export as:
That description remains accurate after this change, so no edits to |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.4-3 🚀
|
Explanation of Change
Removes exportedOn from the Awaiting export query, as the action filter already takes care of all the necessary logic, and makes the result match the backend behavior.
Fixed Issues
$
PROPOSAL:
Tests
Offline tests
QA Steps
Connect workspace to Sage Intacct.
Disable auto-sync on Accounting > Advanced.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Screen.Recording.2026-06-09.at.08.46.20.mov