-
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
[HOLD for payment 2024-06-03] Send invoice - Each workspace avatar in sender list has the same avatar #41385
Comments
Triggered auto assignment to @adelekennedy ( |
Triggered auto assignment to @MonilBhavsar ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@adelekennedy I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think this issue might be related to the #vip-bills |
ProposalPlease re-state the problem that we are trying to solve in this issue.Each workspace avatar in send invoice sender list has the same avatar What is the root cause of that problem?There is no policy ID in the activeAdminWorkspaces icons. App/src/pages/iou/request/step/IOURequestStepSendFrom.tsx Lines 48 to 55 in 5f50430
What changes do you think we should make in order to solve the problem?Add icons: [
{
id: policy.id,
source: policy?.avatar ? policy.avatar : ReportUtils.getDefaultWorkspaceAvatar(policy.name),
fallbackIcon: Expensicons.FallbackWorkspaceAvatar,
name: policy.name,
type: CONST.ICON_TYPE_WORKSPACE,
},
], We also need to do the same in <MenuItem
id={senderWorkspace?.id}
key={translate('workspace.invoices.sendFrom')}
shouldShowRightIcon={!isReadOnly && canUpdateSenderWorkspace}
title={senderWorkspace?.name}
icon={senderWorkspace?.avatar ? senderWorkspace?.avatar : getDefaultWorkspaceAvatar(senderWorkspace?.name)}
iconType={CONST.ICON_TYPE_WORKSPACE}
description={translate('workspace.common.workspace')}
label={translate('workspace.invoices.sendFrom')}
isLabelHoverable={false}
interactive={!isReadOnly && canUpdateSenderWorkspace}
onPress={() => {
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_SEND_FROM.getRoute(iouType, transaction?.transactionID ?? '', reportID, Navigation.getActiveRouteWithoutParams()));
}}
style={styles.moneyRequestMenuItem}
labelStyle={styles.mt2}
titleStyle={styles.flex1}
disabled={didConfirm || !canUpdateSenderWorkspace}
/> <Avatar
accountID={id}
imageStyles={[styles.alignSelfCenter]}
size={CONST.AVATAR_SIZE.DEFAULT}
source={icon as AvatarSource}
fallbackIcon={fallbackIcon}
name={title}
type={CONST.ICON_TYPE_WORKSPACE}
/> What alternative solutions did you explore? (Optional)N/A |
A minor UI issue not worth a blocker. |
@rushatgabhane this is a regression from #39637 (comment) |
Send invoice wasn't a thing back then 😭 |
Hmm, Send Invoice PR is on production and this is on staging. So i wonder if it is the case 🤔 |
@MonilBhavsar @grgia I will raise the PR to fix this today. It's hard to keep track this bug because it's merged while my PR is in review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.75-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-03. 🎊 |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO. |
@MonilBhavsar @grgia I don't think any payment is due here, have I missed something? |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.69-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Precondition:
Expected Result:
Each workspace avatar is displayed correctly.
Actual Result:
Each workspace avatar in sender list has the same avatar.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6467469_1714543804926.invoice_sender_avatar.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @adelekennedyThe text was updated successfully, but these errors were encountered: