Skip to content

[HOLD for payment 2024-06-06] [HOLD for payment 2024-05-03] Use Fallback Avatar Pattern for Unknown Users #38743

Closed

Description

@grgia

Background

Slack convo: https://expensify.slack.com/archives/C036QM0SLJK/p1710942820060629

Colorful / Default Avatars
image

Fallback Avatar

image

Problem

We have a lot of issues surrounding avatar behavior. Some of this is due to how we originally designed the Default Avatar logic, which used a user's login to calculate. This meant that a default avatar could be correctly guessed for any user. However, due to email and privacy concerns, we changed this logic to use the accountID.

Now, any optimistic account ID that is later replaced results in a mismatch of avatars. This has caused a group of bugs all with the same RCA.

Solution

Using the color default avatars as a placeholder avatar causes confusion, so let's stop using them as defaults for users we don't know. From now on, let's always use the fall back avatar. We should be storing the default avatars the same way we store a user-uploaded avatar. So we should stop optimistically setting avatars for users that you don't have in ONYX.

Rules for Avatars

From now on, we want to treat avatars as the following:

  • Colorful default avatars are considered assigned avatars and should be treated the same as when a user has a custom uploaded avatar
  • Fallback avatars are used whenever a user’s accountID is unknown or when there’s a problem fetching the avatar (isOffline)
  • You’ll only see avatars for users you have in ONYX
Issue OwnerCurrent Issue Owner: @puneetlath

Activity

  1. self-assigned this
    on Mar 21, 2024
  2. hayes102 commented on Mar 21, 2024

    @hayes102

    Hello @grgia is this issue open for proposals ?

  3. melvin-bot commented on Mar 21, 2024

    @melvin-bot

    📣 @hayes102! 📣
    Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
    Please follow these steps:

    1. Make sure you've read and understood the contributing guidelines.
    2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
    3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
    4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
      Screen Shot 2022-11-16 at 4 42 54 PM
      Format:
    Contributor details
    Your Expensify account email: <REPLACE EMAIL HERE>
    Upwork Profile Link: <REPLACE LINK HERE>
    
  4. grgia commented on Mar 21, 2024

    @grgia
    ContributorAuthor

    @hayes102 I'm waiting to hear back from someone at one of our agencies about this.

    #38674

    For context, I started working on this in this PR- I have the search bar working with this pattern, but there's some funkiness around money request search options or chatting a new user, so I am planning to take those changes out for now and have this PR only add the theme support and tackle those changes with this issue. That said, we will begin taking proposals by tomorrow if the issue is not taken by SWM.

  5. Kicu commented on Mar 21, 2024

    @Kicu
    Contributor

    hey I work for SWM and would like to work on this one

  6. grgia commented on Mar 27, 2024

    @grgia
    ContributorAuthor

    @Kicu I removed the fallback changes I made in the PR- 44dc9fc

    see this commit for the search, as well as this thread:

    #38674 (comment)

  7. Kicu commented on Mar 28, 2024

    @Kicu
    Contributor

    Thank you @grgia I will be working on this today

  8. 39 remaining items

  9. changed the title [-][HOLD for payment 2024-05-03] Use Fallback Avatar Pattern for Unknown Users[/-] [+][HOLD for payment 2024-06-06] [HOLD for payment 2024-05-03] Use Fallback Avatar Pattern for Unknown Users[/+] on May 30, 2024
  10. melvin-bot commented on May 30, 2024

    @melvin-bot

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

  11. melvin-bot commented on May 30, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 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-06. 🎊

    For reference, here are some details about the assignees on this issue:

    • @Kicu does not require payment (Contractor)
    • @s77rt requires payment (Needs manual offer from BZ)
  12. melvin-bot commented on Jun 6, 2024

    @melvin-bot

    Payment Summary

    Upwork Job

    • Contributor: @Kicu is from an agency-contributor and not due payment
    • ROLE: @s77rt paid $(AMOUNT) via Upwork (LINK)

    BugZero Checklist (@puneetlath)

    • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  13. puneetlath commented on Jun 7, 2024

    @puneetlath
    Contributor

    I just want to confirm that any regressions have been fixed and we are ready to pay here? And that @s77rt is the only person needing payment?

  14. s77rt commented on Jun 7, 2024

    @s77rt
    Member

    Yes all has been handled

  15. puneetlath commented on Jun 7, 2024

    @puneetlath
    Contributor
  16. puneetlath commented on Jun 7, 2024

    @puneetlath
    Contributor

    Please ping me on this issue when you've accepted.

  17. s77rt commented on Jun 7, 2024

    @s77rt
    Member

    Accepted! Please make the payment $62.5 for the initial regression and for this regression #42750

  18. puneetlath commented on Jun 7, 2024

    @puneetlath
    Contributor

    That was surprisingly hard, but I figured it out.

    All paid, thanks y'all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions