RBR should appear in LHN on failed split receipt scans#31043
RBR should appear in LHN on failed split receipt scans#31043youssef-lr merged 13 commits intoExpensify:mainfrom
Conversation
|
@Ollyws Friendly bump. please help review the PR |
|
@dukenv0307 It's not working for me in 1-1 DMs as you can see here. |
|
@dukenv0307 Ah yes I suppose that is out of scope for this issue. We have some conflicts if you could take a look, thanks. |
|
@dukenv0307 can you fix the conflicts please? |
|
@Ollyws I updated. |
src/libs/ReportUtils.ts
Outdated
| const isReportPreviewError = ReportActionsUtils.isReportPreviewAction(action) && hasMissingSmartscanFields(ReportActionsUtils.getIOUReportIDFromReportActionPreview(action)); | ||
| const isSplitBillError = | ||
| ReportActionsUtils.isSplitBillAction(action) && | ||
| TransactionUtils.hasMissingSmartscanFields(TransactionUtils.getTransaction((action.originalMessage as IOUMessage).IOUTransactionID ?? '0') as Transaction); |
There was a problem hiding this comment.
getTransaction is marked as deprecated. Is there any alternative?
There was a problem hiding this comment.
@Ollyws Code updated to use Onyx.connect instead of deprecated getTransaction func. Please re-review
|
@dukenv0307 Thanks for the update but we have a lint error. |
Reviewer Checklist
Screenshots/VideosAndroid: Native01_Android_Native.mp4Android: mWeb Chrome02_Android_Chrome.mp4iOS: Native03_iOS_Native.mp4iOS: mWeb Safari04_iOS_Safari.mp4 |
|
👋 @dukenv0307 can you address the conflicts today, please? Thanks! |
|
@trjExpensify Updated. |
|
Perfect, thanks! |
|
Testing & reviewing now |
src/libs/ReportUtils.ts
Outdated
| * @param reportActions | ||
| * @returns | ||
| */ | ||
| function hasRequestError(reportActions: ReportAction[]) { |
There was a problem hiding this comment.
| function hasRequestError(reportActions: ReportAction[]) { | |
| function hasSmartscanError(reportActions: ReportAction[]) { |
|
Resolved. @youssef-lr please help review again |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.4.10-0 🚀
|
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.4.10-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.10-1 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.10-1 🚀
|



Details
RBR should appear in LHN on failed split receipt scans and LHN preview message shows
Receipt missing detailsFixed Issues
$ #29733
PROPOSAL: #29733 (comment)
Tests
i. The chat row in the LHN has an RBR red dot
ii. The LHN preview message shows the
Receipt missing detailsOffline tests
QA Steps
i. The chat row in the LHN has an RBR red dot
ii. The LHN preview message shows the
Receipt missing detailsPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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-resize.mov
Android: mWeb Chrome
chrome-resize.mov
iOS: Native
ios-resize.mov
iOS: mWeb Safari
safari-resize.mov
MacOS: Chrome / Safari
web-resize.mov
MacOS: Desktop
desktop-resize.mov