-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix avatar of the report action is not displayed properly if there is report preview action before it #30553
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
Conversation
… report preview action before it Signed-off-by: Tsaqif <[email protected]>
|
@aimane-chnaif 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] |
| prevProps.shouldDisplayNewMarker === nextProps.shouldDisplayNewMarker && | ||
| _.isEqual(prevProps.emojiReactions, nextProps.emojiReactions) && | ||
| _.isEqual(prevProps.action, nextProps.action) && | ||
| _.isEqual(prevProps.iouReport, nextProps.iouReport) && |
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.
What issue happens without this change?
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.
bug_notupdating_d.mp4
@aimane-chnaif There is a bug, if user A send a message to user B then user B send IOU request to user A, the avatar of request money is not displayed correctly (not updated) in user A device. After refresh the page the avatar displayed correctly.
src/libs/ReportActionsUtils.ts
Outdated
| return false; | ||
| } | ||
|
|
||
| // Do not group if report preview is the type of current or previous report action, but not both |
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.
but not both is actually not correct.
If both are report preview and also both actorAccountID are same, then should be grouped.
We didn't add that condition here just because it's redundant thanks to next line.
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.
@aimane-chnaif what is the best comment here?
Should it be : Do not group if one of the previous or current report action type is report preview or both are report preview but have different actorAccountID ?
and Should we add : If current and previous report action type are report preview and have same actorAccountID these two report action will be grouped ?
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.
How about
Do not group if one of previous / current action is report preview and another one is not report preview?
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.
Yes, that is good
Signed-off-by: Tsaqif <[email protected]>
|
Friendly bump @aimane-chnaif, Could you review my pr when you have a chance? thank you... |
|
Friendly bump @aimane-chnaif ... |
1 similar comment
|
Friendly bump @aimane-chnaif ... |
Reviewer Checklist
Screenshots/VideosiOS: mWeb Safariweb-msafari.movMacOS: Chrome / Safariweb-msafari.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.
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/puneetlath in version: 1.3.96-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|




Details
Fixed Issues
$ #26031
PROPOSAL: #26031 (comment)
Tests
Offline tests
QA Steps
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
Android: Native
android-native_d.mp4
Android: mWeb Chrome
android-mweb_d.mp4
iOS: Native
ios-native_d.mp4
iOS: mWeb Safari
ios-msafari_d.mp4
MacOS: Chrome / Safari
macos-web_d.mp4
MacOS: Desktop
macos-desktop_d.mp4