Revert https://github.com/Expensify/App/pull/96942 - #98337
Conversation
…review-row-styling
|
@Krishna2323 @situchan One of you needs to 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] |
|
ugh this has conflicts, creating a different pr |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a8714b89c0
ℹ️ 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".
| } else if (isExpenseReport(iouReport) && isGroupPolicyUtil(policy) && isReportApproved({report: iouReport}) && !isSettled(iouReport?.reportID) && !isPartialHold) { | ||
| previewHeaderText.push(dotSeparator, {translationPath: 'iou.approved'}); | ||
| } else if (iouReport?.isCancelledIOU) { | ||
| previewHeaderText.push(dotSeparator, {translationPath: 'iou.canceled'}); |
There was a problem hiding this comment.
Check cancellation before approved status
When a workspace expense payment is canceled, cancelPayment() sets isCancelledIOU: true while leaving basic/corporate reports in APPROVED/APPROVED, so this approved branch runs first for group-policy expense reports and the preview renders “Approved” instead of ever reaching the later canceled branch. Since the report preview header no longer adds the canceled label next to the expense count, canceled approved expense reports can lose their canceled state in this preview; check iouReport?.isCancelledIOU before the approved condition.
Useful? React with 👍 / 👎.
Explanation of Change
Reverts #96942
Fixed Issues
$ #98329
$ #98206
Tests
N/A
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
N/A
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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