Exclude all-held reports from the Inbox to-do, keep them for whoever placed the hold - #96178
Exclude all-held reports from the Inbox to-do, keep them for whoever placed the hold#96178allgandalf wants to merge 17 commits into
Conversation
|
@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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1ef2f1838
ℹ️ 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".
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
# Conflicts: # src/libs/TodosUtils.ts
Explanation of Change
The initial fix excluded all-held reports from the Submit/Approve/Pay to-dos on Home and Spend, but the Inbox To-do tab still showed them. The Inbox reads a separate value,
reportAttributes.requiresAttention(viagetReasonAndReportActionThatRequiresAttention), which the fix never touched. This excludes all-held reports there too through a shareddidCurrentUserPlaceHoldOnReportExpensehelper, and keeps the report in the Approve/Pay to-do of whoever placed the hold. Submit stays excluded for any all-held report, since only the owner can hold an open one.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/637331
PROPOSAL:
Tests
action:approvesearch.Offline tests
Same as Tests with the network off, the to-do is computed on-device from Onyx.
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