You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$1000] Default profile avatar is different in tooltip #20800
Avatar needs name, source, and type props for the default avatar to work. I also reported that the workspace avatars are incorrect for the same reason. I can potentially also take this one
@spcheema - can I ask about why you post comments like this on issues to begin with?
Just intrigued about why and whether we can improve our processes at all? Are you only able to see notifications after you comment for some reason?
It's worth noting we don't filter by the oldest proposal, only the best and if two are the same, the least recently edited, so there isn't a benefit to posting like that I'm aware of.
Activity
melvin-bot commentedon Jun 15, 2023
Triggered auto assignment to @twisterdotcom (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 15, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)dummy-1111 commentedon Jun 15, 2023
I have done similar issue before(#20713) and I think I have most of the context regarding the issue. Can I work on this?
Beamanator commentedon Jun 15, 2023
@s-alves10 please do, but please provide a proposal how you think this can be fixed first 🙏
spcheema commentedon Jun 15, 2023
Proposed solution
Please re-state the problem that we are trying to solve in this issue.
Default profile avatar is different in tooltip
What is the root cause of that problem?
Invalid value being passed to the
UserUtils.getAvatarmethod. Based on the recent changeaccountIDis expected notloginkeyApp/src/libs/UserUtils.js
Line 150 in d396430
What changes do you think we should make in order to solve the problem?
The similar inconsistency found on multioplaces:
src/libs/OptionsListUtils.jsline no. 840App/src/libs/OptionsListUtils.js
Line 840 in d396430
src/pages/home/report/ReactionList/BaseReactionList.jsline no. 90App/src/pages/home/report/ReactionList/BaseReactionList.js
Line 90 in d396430
src/components/UserDetailsTooltip/index.jsline no. 22App/src/components/UserDetailsTooltip/index.js
Line 22 in d396430
Replace
loginkey withaccountIDon all three files above listed.What alternative solutions did you explore? (Optional)
NA
grgia commentedon Jun 15, 2023
Avatar needs name, source, and type props for the default avatar to work. I also reported that the workspace avatars are incorrect for the same reason. I can potentially also take this one
BhuvaneshPatil commentedon Jun 15, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Default profile avatar is different in tooltip
What is the root cause of that problem?
We are using
loginhere inUserDetailsTooltipApp/src/components/UserDetailsTooltip/index.js
Lines 18 to 33 in d396430
What changes do you think we should make in order to solve the problem?
We shall use
accountIDinsteadWhat alternative solutions did you explore? (Optional)
dummy-1111 commentedon Jun 15, 2023
I think @BhuvaneshPatil 's proposal is correct. During the last merge, UserUtils.getAvatar function changes, its 2nd parameter from login to accountID
spcheema commentedon Jun 15, 2023
@s-alves10 Can you please review my proposal. It requires changes on multiple files?
spcheema commentedon Jun 15, 2023
@grgia Yeah there are some places where changes were left unintentionally but the root cause it the same
loginis used instead ofaccountIDtwisterdotcom commentedon Jun 15, 2023
@spcheema - can I ask about why you post comments like this on issues to begin with?
Just intrigued about why and whether we can improve our processes at all? Are you only able to see notifications after you comment for some reason?
It's worth noting we don't filter by the oldest proposal, only the best and if two are the same, the least recently edited, so there isn't a benefit to posting like that I'm aware of.
twisterdotcom commentedon Jun 15, 2023
@alex-mechler is this resolved by #20818 as well?
17 remaining items
melvin-bot commentedon Jun 16, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)twisterdotcom commentedon Jun 16, 2023
@eVoloshchak - what do you think of the proposals here?
twisterdotcom commentedon Jun 19, 2023
Bump @eVoloshchak to review these proposals.
eVoloshchak commentedon Jun 19, 2023
@BhuvaneshPatil's proposal looks good to me, I think we should proceed with it
🎀👀🎀 C+ reviewed!
cc: @twisterdotcom
situchan commentedon Jun 19, 2023
This was fixed already (#21026 (comment))
situchan commentedon Jun 19, 2023
Latest codebase:
App/src/components/UserDetailsTooltip/index.js
Lines 20 to 23 in e9a7a54
eVoloshchak commentedon Jun 19, 2023
Awesome, thanks @situchan!
BhuvaneshPatil commentedon Jun 19, 2023
Yeah, this was fixed by @Beamanator - 2a67b3e
twisterdotcom commentedon Jun 19, 2023
Okay, let's close then. Dupe of #21026 (comment)