fix scan expense report and transaction are not hidden#39389
fix scan expense report and transaction are not hidden#39389danieldoglas merged 14 commits intoExpensify:mainfrom
Conversation
|
@DylanDylann 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] |
|
@DylanDylann Please help review PR once you have a chance |
|
@tienifr BUG: After scanning failed, clicking on the report preview, a report display on LHN with the title "Receipt missing detail" Screen.Recording.2024-04-04.at.20.37.10.mov |
|
I am checking this |
|
@DylanDylann I fixed issue. Here is the result: Screen.Recording.2024-04-10.at.14.50.23.mov |
src/libs/SidebarUtils.ts
Outdated
| const hasBrickError = hasErrors || doesReportHaveViolations ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''; | ||
| const shouldOverrideHidden = hasBrickError || isFocused || report.isPinned; | ||
| const hasErrorsOtherThanFailedReceipt = doesReportHaveViolations || Object.values(allReportErrors).some((error) => error?.[0] !== 'report.genericSmartscanFailureMessage'); | ||
| const shouldOverrideHidden = (hasBrickError && hasErrorsOtherThanFailedReceipt) || isFocused || report.isPinned; |
There was a problem hiding this comment.
@DylanDylann You are correct. I just removed hasBrickError
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-04-12.at.15.08.24.movAndroid: mWeb ChromeScreen.Recording.2024-04-12.at.14.59.30.moviOS: NativeScreen.Recording.2024-04-12.at.15.08.47.moviOS: mWeb SafariUploading Screen Recording 2024-04-12 at 14.54.51.mov… MacOS: Chrome / SafariScreen.Recording.2024-04-12.at.14.53.20.movMacOS: DesktopScreen.Recording.2024-04-12.at.15.02.18.mp4 |
|
✋ 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/danieldoglas in version: 1.4.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Fixed Issues
$ #37296
PROPOSAL: #37296 (comment)
Tests
Offline tests
QA Steps
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
Screen.Recording.2024-04-02.at.15.16.11.mov
Android: mWeb Chrome
Screen.Recording.2024-04-02.at.15.20.53.mov
iOS: Native
Screen.Recording.2024-04-02.at.15.13.08.mov
iOS: mWeb Safari
Screen.Recording.2024-04-02.at.15.09.45.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-02.at.15.03.18.mov
MacOS: Desktop
Screen.Recording.2024-04-02.at.15.06.24.mov