-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Display both names for IOU Report Previews #23043
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
|
@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] |
|
I'll add the screenshots tomorrow |
|
@aimane-chnaif, ngrok is being a pain today, so I haven't been able to take the screenshots, but this is ready for review, so feel free to go for it! |
|
@aimane-chnaif Up to you whether you want to start before or after the screenshots are added, though I wanted to give you a heads up that this is one of our more valuable PRs at the moment. Thanks! |
Got it. Will prioritize review today |
|
@Gonals there's conflict |
Solved! |
|
Added screenshots. Android web is not launching for me for reasons unknown (not even in main), but I think it is safe to say this works 😁 |
| let secondaryAvatar = {}; | ||
| const displayAllActors = props.action.actionName === CONST.REPORT.ACTIONS.TYPE.REPORTPREVIEW && props.iouReport; | ||
| if (displayAllActors) { | ||
| const secondaryUserDetails = props.personalDetailsList[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.
This is not correct. action.actorAccountID and iouReport.ownerAccountID can be same.
|
Same user info as I commented here - #23043 (comment) Screen.Recording.2023-07-24.at.3.52.47.PM.mov |
That's a nice catch! How did you manage to get this situation? I see it correctly regardless of which account I'm logged into @aimane-chnaif |
|
@Gonals did you test with both payer account and payee account? |
I did, yeah! That's why I'm surprised:
|
|
ok, I will test again with 2 fresh accounts. Meanwhile, please check style issues |
|
@aimane-chnaif conflicts solved! Let's get this merged before we get more 😆 |
|
@aimane-chnaif quick ping to get this merged! |
|
reviewing now |
|
Travis happy! |
Screenshots/VideosIOU requestpayer: Screen.Recording.2023-08-08.at.3.09.38.PM.movpayee: Screen.Recording.2023-08-08.at.3.09.54.PM.movExpense requestpayer: Screen.Recording.2023-08-08.at.3.13.57.PM.movpayee: Screen.Recording.2023-08-08.at.3.14.11.PM.mov |
|
As discussed, tooltip issue is handled in follow-up PR (for tracking, let's create GH) |
dangrous
left a comment
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! I see there are a number of follow up issues we'll have to work on (tooltips, etc.) but seems like this is a good base for those to come from
|
✋ 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/dangrous in version: 1.3.52-0 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
|
Just flagging that this PR introduced an issue where we'd end up with a duplicate participant name & avatar if a user who got a money request requests money back. This happened because App/src/pages/home/report/ReportActionItemSingle.js Lines 117 to 118 in 329cac3
More details here. |





cc @shawnborton , I'm using the existing/standard Multiple Avatar here, but you may want to take a look in case we want some tweaks
Details
Fixed Issues
$ #21102
PROPOSAL:
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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android