Skip to content
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

[$500] [HOLD for payment 2024-03-29] [HOLD for payment 2024-03-26] Profile - Avatar is blank when viewed in full screen #38516

Closed
2 of 6 tasks
kbecciv opened this issue Mar 18, 2024 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Mar 18, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.54-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com.
  2. Go to Concierge chat.
  3. Tap on the header.
  4. Tap on the avatar.

Expected Result:

Avatar shows up without issue.

Actual Result:

Blank page is seen in avatar view.
This issue is only reproducible with default avatar.

Workaround:

n/a

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6418311_1710791664032.RPReplay_Final1710791569.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015a2a95133386223a
  • Upwork Job ID: 1778002346278477824
  • Last Price Increase: 2024-04-10
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Mar 18, 2024
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@kbecciv
Copy link
Author

kbecciv commented Mar 18, 2024

We think that this bug might be related to #wave-control

Copy link

melvin-bot bot commented Mar 18, 2024

Triggered auto assignment to @hayata-suenaga (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@ahmedGaber93
Copy link
Contributor

ahmedGaber93 commented Mar 19, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Profile - Avatar is blank when viewed in full screen

What is the root cause of that problem?

the root cause is react native image not support svg.
and we pass source = svg default avtar for concerige here in ProfileAvatar.tsx

source={UserUtils.getFullSizeAvatar(avatarURL, accountID)}

follow getFullSizeAvatar > getAvatar > getDefaultAvatar. it return svg file ConciergeAvatar

function getDefaultAvatar(accountID = -1, avatarURL?: string): IconAsset {
if (accountID <= 0) {
return FallbackAvatar;
}
if (Number(accountID) === CONST.ACCOUNT_ID.CONCIERGE) {
return ConciergeAvatar;
}
if (Number(accountID) === CONST.ACCOUNT_ID.NOTIFICATIONS) {
return NotificationsAvatar;
}

and when we display in ProfileAvatar.jsx we use react native image.
follow ProfileAvatar > AttachmentModal > AttachmentView > AttachmentViewImage

What changes do you think we should make in order to solve the problem?

pass prop maybeIcon here to check if svg and use Icon instead of image

we can pass it when platform is native only

 const platform = getPlatform();
  const isNative = platform === CONST.PLATFORM.IOS || platform === CONST.PLATFORM.ANDROID;
 maybeIcon={isNative}

What alternative solutions did you explore? (Optional)

we can also pass avatarURL when is native and type of image is svg

const fullSizeAvatar = UserUtils.getFullSizeAvatar(avatarURL, accountID);
source = (isNative && typeof fullSizeAvatar === 'number') ? avatarURL : fullSizeAvatar;

@situchan
Copy link
Contributor

regression from #36560
It's weird to have source.uri as number but we should still keep this original logic until refactor.

-   if (typeof source === 'object' && 'uri' in source && typeof source.uri === 'number') {
-       imageSource = source.uri;
-   }

Here's fix: #38554
cc: @hayata-suenaga

@hayata-suenaga
Copy link
Contributor

The fix PR was merged into main

Requested a cherry-pick to Staging

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 19, 2024
@melvin-bot melvin-bot bot changed the title Profile - Avatar is blank when viewed in full screen [HOLD for payment 2024-03-26] Profile - Avatar is blank when viewed in full screen Mar 19, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Mar 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 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-03-26. 🎊

@AndrewGable AndrewGable removed the DeployBlockerCash This issue or pull request should block deployment label Mar 20, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 22, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-03-26] Profile - Avatar is blank when viewed in full screen [HOLD for payment 2024-03-29] [HOLD for payment 2024-03-26] Profile - Avatar is blank when viewed in full screen Mar 22, 2024
Copy link

melvin-bot bot commented Mar 22, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.55-3 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-03-29. 🎊

@situchan
Copy link
Contributor

Please assign me here

@hayata-suenaga hayata-suenaga added the Bug Something is broken. Auto assigns a BugZero manager. label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

Triggered auto assignment to @laurenreidexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@hayata-suenaga
Copy link
Contributor

@laurenreidexpensify, please handle payment according to this summary when you have time 🙇

@laurenreidexpensify laurenreidexpensify added the External Added to denote the issue can be worked on by a contributor label Apr 10, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-03-29] [HOLD for payment 2024-03-26] Profile - Avatar is blank when viewed in full screen [$250] [HOLD for payment 2024-03-29] [HOLD for payment 2024-03-26] Profile - Avatar is blank when viewed in full screen Apr 10, 2024
Copy link

melvin-bot bot commented Apr 10, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015a2a95133386223a

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 10, 2024
Copy link

melvin-bot bot commented Apr 10, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External)

@laurenreidexpensify laurenreidexpensify removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 10, 2024
@laurenreidexpensify laurenreidexpensify changed the title [$250] [HOLD for payment 2024-03-29] [HOLD for payment 2024-03-26] Profile - Avatar is blank when viewed in full screen [$500] [HOLD for payment 2024-03-29] [HOLD for payment 2024-03-26] Profile - Avatar is blank when viewed in full screen Apr 10, 2024
Copy link

melvin-bot bot commented Apr 10, 2024

Upwork job price has been updated to $500

@laurenreidexpensify
Copy link
Contributor

Payment Summary:

@laurenreidexpensify laurenreidexpensify added Monthly KSv2 and removed Daily KSv2 labels Apr 11, 2024
@laurenreidexpensify
Copy link
Contributor

@situchan is OOO for April - will come back to this in May when he's back to close out payment

@melvin-bot melvin-bot bot added the Overdue label May 13, 2024
@hayata-suenaga hayata-suenaga added Daily KSv2 and removed Monthly KSv2 labels May 14, 2024
@melvin-bot melvin-bot bot removed the Overdue label May 14, 2024
@hayata-suenaga
Copy link
Contributor

I think @situchan is back from OOO. Moving the priority of this issue to daily again

@laurenreidexpensify
Copy link
Contributor

@situchan offer sent in Upwork pls accept

@laurenreidexpensify
Copy link
Contributor

Payment issued in Upwork to @situchan - closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants