-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Show displayName in IOU if the primary actor is a workspace #30862
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? |
@@ -108,7 +108,7 @@ function ReportActionItemSingle(props) { | |||
|
|||
// 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 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 is up, getting the others now)
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop