Show comment/requests in report preview#23651
Conversation
|
@abdulrahuman5196 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] |
|
@Gonals Is the PR complete for review? We had some commits today as well? Wanted to check if i can start review on the same or wait. |
|
Yes, this should be ready for review |
|
@abdulrahuman5196 bump! |
|
Sorry for the delay. Will review in couple of hours. |
|
@Gonals Screen.Recording.2023-08-02.at.9.35.02.PM.mov |
Nice catch! it is 50-50. @abdulrahuman5196 I have fixed the frontend here to optimistically update it, but the backend bug remains. Let's ignore it for this PR and I'll fix it in a different issue. Let's see if we can merge today, as I'm OOO staring tomorrow! |
|
@Gonals Got it. I tested now. I think the optimistically updating data is also not complete and in cases I still seeing issues. Like
But I am fine with this, given we are planning to create separate bug to address the request count not getting updating on requests deletion/updation. I think it would be best to re-test the optimistic function and backend verification as well in that issue. For now IMO we can keep that deletion/updation is not working properly reflection on the preview. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-08.at.4.12.42.PM.mp4Mobile Web - Chromeaz_recorder_20230808_163452.mp4Mobile Web - SafariUntitled.1.mp4DesktopScreen.Recording.2023-08-08.at.4.32.29.PM.mp4iOSScreen.Recording.2023-08-08.at.4.36.44.PM.mp4AndroidScreen.Recording.2023-08-08.at.5.12.51.PM.mp4 |
|
@Gonals Changes looks good. We have to create 2 issues
Screen.Recording.2023-08-08.at.4.39.58.PM.mov |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @Gonals
🎀 👀 🎀
C+ Reviewed
|
@MonilBhavsar 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] |
|
Do we need to update this function usage to pass |
Done! |
| const isCurrentUserManager = managerID === lodashGet(props.session, 'accountID'); | ||
| const moneyRequestCount = lodashGet(props.action, 'childMoneyRequestCount', 0); | ||
| const moneyRequestComment = lodashGet(props.action, 'childLastMoneyRequestComment', ''); | ||
| const showComment = moneyRequestComment || moneyRequestCount > 1; |
There was a problem hiding this comment.
NAB
| const showComment = moneyRequestComment || moneyRequestCount > 1; | |
| const shouldShowComment = moneyRequestComment || moneyRequestCount > 1; |
|
✋ 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/luacmartins in version: 1.3.52-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
| }, | ||
| ], | ||
| childLastMoneyRequestComment: comment || reportPreviewAction.childLastMoneyRequestComment, | ||
| childMoneyRequestCount: reportPreviewAction.childMoneyRequestCount + 1, |
Details
cc @JmillsExpensify, @trjExpensify
Fixed Issues
$ #21178
Tests
Offline tests
Same as tests but offline
QA Steps
Same as tests
PR 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 */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android