-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix last accessed report for new user #49324
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented on that PR. Wish I checked that before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
lastAccessedReport
returns 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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