fix last accessed report for new user#49324
Conversation
|
@jayeshmangwani 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] |
|
@c3024 Could you please complete the checklist and add the missing platform's video? |
|
I am testing them. Will soon upload. ESLint checks are failing but those failures are not related to changes in this PR. Was there any change in how these checks are made? |
Yes recently we made a lint rule that if we edit any file that uses the deprecated code then it will throw lint error |
|
Uploaded all videos. Fixed the lint errors with removing Code was just refactored to remove the Tested a few basic cases for these changes generally. testParentChrome.mp4Please have a look. |
src/libs/ReportUtils.ts
Outdated
| html: ReportActionsUtils.getReportActionHtml(reportAction.reportAction), | ||
| taskReportID: ReportActionsUtils.getReportActionMessage(reportAction.reportAction)?.taskReportID, | ||
| whisperedTo: [], | ||
| reportAction.reportAction = { |
There was a problem hiding this comment.
reportAction.originalMessage throws a lint error. We use originalMessage in building all optimistic report actions in this file. So, just refactored to remove that error.
There was a problem hiding this comment.
Commented on that PR. Wish I checked that before.
There was a problem hiding this comment.
Wish I checked that before
That happens sometimes 😃
|
That PR fixing ReportUtils ESLint issues was merged into main. I pulled main and fixed the conflicts. Let's go! |
|
Great, starting review now! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb Chromemweb-chrome.moviOS: NativeiOS.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
jayeshmangwani
left a comment
There was a problem hiding this comment.
Changed works well, LGTM 🚀
|
✋ 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/bondydaa in version: 9.0.40-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.40-6 🚀
|
Details
The
lastAccessedReportreturns the first found non-Concierge report in reports array. This PR fixes it to get correct last accessed report.Fixed Issues
$ #48840
PROPOSAL: #48840 (comment)
Tests
Offline tests
NA
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
lastAndroid.mp4
Android: mWeb Chrome
lastAndroidmWeb.mp4
iOS: Native
lastiOS.mp4
iOS: mWeb Safari
lastiOSmWeb.mp4
MacOS: Chrome / Safari
lastChrome.mp4
MacOS: Desktop
lastDesktop.mp4