fix: surface empty draft reports in Submit to-do bucket - #97312
Conversation
Empty (zero-transaction) open expense reports have no Submit action, so they were excluded from the Submit to-do bucket even though they carry a Draft badge and belong in the Drafts tab. Owned, non-archived empty drafts on a group policy now surface alongside reports that are actually awaiting submission.
|
@codex review |
|
@gijoe0295 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] |
|
From here,
This can be tested on this PR with an adhoc build. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ea43cae1d9
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Unloaded transactions look identical to zero transactions, so a report could briefly be misclassified as an empty draft before its transactions finished hydrating.
|
@codex review. |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Explanation of Change
reportMatchesTodoBucket's Submit bucket only matched reports whereisSubmitActionreturned true, which requires at least one non-held transaction. Empty (zero-transaction) draft reports have no Submit action, so they never appeared in the Search "Submit" to-do or the Drafts tab even though they carry a Draft badge.For the Submit bucket, an open, non-archived report on a group policy that is owned by the current user and has zero transactions is now included, matching the companion Auth-side fix to the Submit search filter (https://github.com/Expensify/Auth/pull/23306).
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/659302
PROPOSAL:
Tests
Screen.Recording.2026-07-29.at.1.10.23.PM.mov
Offline tests
Same as Tests - the to-do bucket is computed from local Onyx data, so offline behavior is unaffected.
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.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
Screen.Recording.2026-07-29.at.1.10.23.PM.mov