Conversation
Reviewer Checklist
Screenshots/Videos |
fedirjh
left a comment
There was a problem hiding this comment.
Looks good. left small code suggestion.
src/libs/ReportUtils.ts
Outdated
| if (ReportActionsUtils.isTrackExpenseAction(reportAction)) { | ||
| if (isEmptyObject(transaction)) { | ||
| return Localize.translateLocal('iou.trackExpense'); | ||
| } | ||
| const transactionDetails = getTransactionDetails(transaction); | ||
| return Localize.translateLocal('iou.threadTrackReportName', { | ||
| formattedAmount: CurrencyUtils.convertToDisplayString(transactionDetails?.amount ?? 0, transactionDetails?.currency) ?? '', | ||
| comment: (!TransactionUtils.isMerchantMissing(transaction) ? transactionDetails?.merchant : transactionDetails?.comment) ?? '', | ||
| }); | ||
| } |
There was a problem hiding this comment.
I think this block should be moved to the bottom.
|
@fedirjh I've made the suggested changes to the PR. It's ready for your review. I haven't added screenshots for Android because I'm having issues with the Android build. I'll add them as soon as I can. |
src/libs/ReportUtils.ts
Outdated
| if (ReportActionsUtils.isTrackExpenseAction(reportAction)) { | ||
| return Localize.translateLocal('iou.threadTrackReportName', { | ||
| formattedAmount: CurrencyUtils.convertToDisplayString(transactionDetails?.amount ?? 0, transactionDetails?.currency) ?? '', | ||
| comment: (!TransactionUtils.isMerchantMissing(transaction) ? transactionDetails?.merchant : transactionDetails?.comment) ?? '', | ||
| }); | ||
| } |
There was a problem hiding this comment.
| if (ReportActionsUtils.isTrackExpenseAction(reportAction)) { | |
| return Localize.translateLocal('iou.threadTrackReportName', { | |
| formattedAmount: CurrencyUtils.convertToDisplayString(transactionDetails?.amount ?? 0, transactionDetails?.currency) ?? '', | |
| comment: (!TransactionUtils.isMerchantMissing(transaction) ? transactionDetails?.merchant : transactionDetails?.comment) ?? '', | |
| }); | |
| } |
Dupe code. We have this check in line 2647
There was a problem hiding this comment.
I'm sorry for the errors in my PR. I've been dealing with some personal stress, which might have caused me to overlook things. I'll be more thorough in the future, and I appreciate your patience as I work through this.
There was a problem hiding this comment.
@Nodebrute Take care of yourself, and don't worry too much about it. We all have those moments, We're all here to support each other.
marcochavezf
left a comment
There was a problem hiding this comment.
LGTM, thank you guys!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.67-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.4.68-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 1.4.67-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.4.68-3 🚀
|







Details
Fixed Issues
$ #40366
PROPOSAL: #40366 (comment)
Tests
Step 1: Navigate to FAB and choose 'Track Expense'.
Step 2: Create a new scan request.
Step 3: Open the scan request to monitor its status.
Step 4: Confirm that the header indicates 'Scan in progress...' while scanning.
Step 5: Verify that 'Scanning...' is displayed in the 'Amount * Cash' and 'Merchant' fields while scanning
Offline tests
Step 1: Navigate to FAB and choose 'Track Expense'.
Step 2: Create a new scan request.
Step 3: Open the scan request to monitor its status.
Step 4: Confirm that the header indicates 'Scan in progress...' while scanning.
Step 5: Verify that 'Scanning...' is displayed in the 'Amount * Cash' and 'Merchant' fields while scanning
QA Steps
Step 1: Navigate to FAB and choose 'Track Expense'.
Step 2: Create a new scan request.
Step 3: Open the scan request to monitor its status.
Step 4: Confirm that the header indicates 'Scan in progress...' while scanning.
Step 5: Verify that 'Scanning...' is displayed in the 'Amount * Cash' and 'Merchant' fields while scanning
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop