-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[$1000] Search - User custom avatar is not shown in search suggestion #24282
Comments
Triggered auto assignment to @MitchExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The user avatar is shown in the tooltip but not in the search result What is the root cause of that problem?Inconsistency occurs because in the method What changes do you think we should make in order to solve the problem?Here are some ways of solving this since "unknown" users is a complex topic:
App/src/components/UserDetailsTooltip/index.web.js Lines 17 to 21 in 7a6486e
Here include the same filter of
So we can replace _.each(personalDetails, (detail) => {
if (Boolean(detail.login)) {
personalDetails[detail.accountID] = {
accountID: detail.accountID,
avatar: detail.avatar,
displayName: detail.displayName,
}
}
}); Update: After reading some history option 2 does not work because it avoids creation of groups and other actions. Maybe we could only use this solution when in Or a 3rd option What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Search - User custom avatar is not shown in search suggestion but is shown in tooltip What is the root cause of that problem?When we open report with someone who does not interact with, we will create the optimistic data for personalDetails within In SearchPage we show the list report, report contains the participants (accountIDs returned from BE) In App/src/libs/OptionsListUtils.js Line 634 in 5510a95
We're filtering out the personalDetail that don't have login value => the personalDetail returned from BE is filtered out. We're using this personalDetails to get the icons. App/src/libs/OptionsListUtils.js Line 533 in 7a6486e
=> We can't find report.participants in personalDetails => option.icons is the default icon We use this icon to show in option App/src/components/OptionRow.js Lines 202 to 211 in 7a6486e
We're using App/src/components/DisplayNames/index.js Lines 81 to 84 in a2dc3d2
it takes the accountID as the props and use it to find the avatar url => At that time we use personalDetails from onyx => the actual avatar is found here What changes do you think we should make in order to solve the problem?Because the personalDetails in 2 places are different. So we need to fix here.
App/src/libs/OptionsListUtils.js Lines 630 to 634 in 5510a95
App/src/libs/actions/Report.js Line 470 in 7a6486e
ResultScreen.Recording.2023-08-09.at.14.55.12.mov |
I am unable to reproduce this so far adding the label |
@MitchExpensify To reproduce this one you have to create a chat with a user that does have image and you havent interacted with previously, you can use my account dloz1996@gmail.com just remember not to send a message, if you interact with the account backend will send the login and the issue is "fixed". |
Kind of weird but I can find dloz1996@gmail.com in Assignee but not Share somewhere: ![]() ![]() |
I think this is desired due to the issue we mentioned of the filter in both proposals @MitchExpensify but precisely the first image you sent is the error reported in this issue. |
@daordonez11 Are you referring to this image? I don't see the bug in that image, it seems to be the correct picture showing. Or are you referring to this image which happens in Assignee versus Share somewhere as reported in the issue? |
Let me include a video! @MitchExpensify Icon.Error.-.8_17_2023.2_56_41.PM.webmError occurs in both search and share somewhere: Share.somewhere.-.8_17_2023.2_59_16.PM.webm |
I finally reproduced this! |
Job added to Upwork: https://www.upwork.com/jobs/~0187747fcfdb75601f |
Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
I'm unsure if this needs internal backend work so curious what @situchan thinks 👍 |
@MitchExpensify, @situchan Huh... This is 4 days overdue. Who can take care of this? |
@daordonez11 @tienifr are you able to reproduce on latest main? |
@MitchExpensify, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Are you still waiting on this @situchan ? |
Bump @situchan |
yes waiting for updated proposal based on latest codebase, along with clear repro step |
@MitchExpensify, @situchan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Just to be clear @situchan, are you saying the current repro steps are not producing the current Actual Result? |
Friendly bump @situchan |
@MitchExpensify, @situchan Huh... This is 4 days overdue. Who can take care of this? |
@daordonez11 @tienifr can you please update proposals based on latest codebase? |
Friendly bump @daordonez11 @tienifr |
I can't reproduce with the latest main |
Ok lets close unless someone can reliably reproduce |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Issue found when executing PR #24019
Action Performed:
Expected Result:
Step 5 and 7 > All users have the same avatars in the list
Actual Result:
Step 5 and 7 >
Gmail users have a default avatar in the list and a custom avatar in report when opened (e.g. Chat report of a task)
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.51.0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6158037_Search-Result-Task-Share-No-Avatar.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: