-
Notifications
You must be signed in to change notification settings - Fork 3k
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
update report preview message to use workspace name, not admin name #18945
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -88,9 +88,9 @@ const ReportActionItemSingle = (props) => { | |||||||||
{props.shouldShowSubscriptAvatar ? ( | ||||||||||
<SubscriptAvatar | ||||||||||
mainAvatar={{source: avatarSource, type: CONST.ICON_TYPE_AVATAR}} | ||||||||||
secondaryAvatar={ReportUtils.getIcons(props.report, {})[0]} | ||||||||||
secondaryAvatar={ReportUtils.getIcons(props.report, {})[props.report.isOwnPolicyExpenseChat ? 0 : 1]} | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @0xmiroslav this code needs a comment explaining why and what we're doing. It seems arbitrary to me There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm guessing index 0 has your own icon, and index 1 has the workspace icon. Lines 753 to 755 in 50ed3e6
This comment was marked as off-topic.
Sorry, something went wrong. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Line 854 in d28ec8f
|
||||||||||
mainTooltip={actorEmail} | ||||||||||
secondaryTooltip={ReportUtils.getReportName(props.report)} | ||||||||||
secondaryTooltip={ReportUtils.getPolicyName(props.report)} | ||||||||||
noMargin | ||||||||||
/> | ||||||||||
) : ( | ||||||||||
|
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.
We're pulling the chatReport object to simply get the managerName? Is it not possible to get this from the 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.
That's ideal but this is current IOUReport data:
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, right. What about the reportAction? IOUActions should contain participants under action.originalMessage.participants
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.
still don't have chat report detail, only IDs
Currently
__fake__
is in participants which is bug I mentioned and blocking test.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.
Hmm, that seems like a separate issue to me. But okay, we can follow up with that fix.