-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Show displayName in IOU if the primary actor is a workspace #30862
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
|
@0xmiroslav 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 can review if no one answers soon |
|
Makes sense to me! Thanks for catching this. |
|
@puneetlath shall I checklist or someone else? |
| // If this is a report preview, display names and avatars of both people involved | ||
| let secondaryAvatar = {}; | ||
| const primaryDisplayName = ReportUtils.getDisplayNameForParticipant(actorAccountID); | ||
| const primaryDisplayName = isWorkspaceActor ? displayName : ReportUtils.getDisplayNameForParticipant(actorAccountID); |
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 this should be const primaryDisplayName = displayName;
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.
Ah, yeah, so just a full revert of that line. Linking your conversation here for convenience
|
hm im going to try merging main to fix that performance test thing - though I don't really know why that triggered |
|
@0xmiroslav @s-alves10 I'm fine with either of you handling the checklist. |
|
on it |
|
I can help here @0xmiroslav if you've not started. I have some context from the original PR. |
|
Testing last platform. Will complete in 5 min |
Reviewer Checklist
Screenshots/VideosiOS: Nativeios.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.
Both IOU and expense report preview work as before
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Show displayName in IOU if the primary actor is a workspace (cherry picked from commit 7bd51eb)
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 1.3.95-6 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.95-9 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|



cc @puneetlath @allroundexperts @mananjadhav from the PR that caused this regression, since they'll have a better sense of the context and if this will cause weird behavior...
Details
I'm going to be out from around 1pm ET to 4pm ET so may not be able to respond, request a CP, etc. etc. so please be aware!
Fixed Issues
$ #30846
PROPOSAL:
Tests
Same as QA
Offline tests
QA Steps
Navigate to staging.new.expensify.com
Create a new workspace.
Go to workspace chat.
Click + > Request money.
Create a manual request.
Ensure the workspace name is displayed first in the expense preview in the workspace chat followed by the requester name.
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 is up, getting the others now)
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop