-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 duplicate participant name and avatar #27912
Conversation
Reviewer Checklist
Screenshots/VideosWebchrome-desktop-2023-09-21_14.45.01.mp4 |
@@ -114,14 +114,15 @@ function ReportActionItemSingle(props) { | |||
let secondaryAvatar = {}; | |||
const primaryDisplayName = displayName; | |||
if (displayAllActors) { | |||
const secondaryUserDetails = props.personalDetailsList[props.iouReport.ownerAccountID] || {}; | |||
const secondaryAccountId = props.iouReport.ownerAccountID === actorAccountID ? props.iouReport.managerID : props.iouReport.ownerAccountID; |
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.
I think we could do with an explanatory comment here as it's not obvious why/what we're doing.
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.
Cool. Updated.
I'll test again in the morning to see if I missed any cases!
@hungvu193 Tests well! I think the only thing I'm currently wondering about is if it's expected that the avatars should switch places when the other user requests money back (I understand why, but it feels a bit "jumpy" to me). switching-avatars-2023-09-21_17.17.03.mp4 |
So I've tested I didn't find any issue. |
@hungvu193 Thanks! I just want to clarify the expected behaviour with the avatar order, so I've raised this on Slack. Feel free to share your vote there. |
Discussion resolved - we're happy for the avatars to switch as long as the IOU owner is always the first (which will be the case here). |
Co-authored-by: Joel Davies <joeld.dev@gmail.com>
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!
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.
looks good to me 🚀
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@hungvu193 Sorry, just realised I forgot to ask you to add a final test step to "Verify that two different avatars and names appear on the IOU preview" - otherwise QA might not know what they're testing for without reading the original issue! |
My bad 😂 , I forgot to add verify step, thank you for pointing that out 🚀 . Updated the step btw. |
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.75-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.75-12 🚀
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
Details
Fix duplicate participant name and avatar
Fixed Issues
$ #25819
PROPOSAL: #25819 (comment)
Tests
Precondition: User A and User B never have any request moneys before.
Offline tests
Same as Tests.
QA Steps
Precondition: User A and User B never have any request moneys before.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2023-09-21.at.13.41.10.mov
Mobile Web - Chrome
Screen.Recording.2023-09-21.at.14.24.15.mov
Mobile Web - Safari
trim.F0E63ED6-D213-47D3-B32C-AC7B78CFBC13.MOV
Desktop
Screen.Recording.2023-09-21.at.13.41.10.mov
iOS
Screen.Recording.2023-09-21.at.14.23.23.mov
Android
Screen.Recording.2023-09-21.at.14.24.15.mov