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

[PAID] [$500] LHN - Incorrect backup avatar while waiting for avatar to load #28638

Closed
1 of 6 tasks
lanitochka17 opened this issue Oct 2, 2023 · 43 comments
Closed
1 of 6 tasks
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

@lanitochka17
Copy link

lanitochka17 commented Oct 2, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open the app from a fresh sign in
  2. Observe your own avatar in the top right of the LHN area

Expected Result:

I would expect this avatar to either use our fallback avatar image, or just be a solid icon fill circle like the rest of the loading avatars on the page

Actual Result:

The app displayed one of our default avatars while waiting for the correct avatar to load

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.76-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

image (2) (1)

2023-10-02.1.28.20.PM.1.mov

Expensify/Expensify Issue URL:

Issue reported by: @shawnborton

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696240585729759

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fb65a5e1b63a2756
  • Upwork Job ID: 1718973678534291456
  • Last Price Increase: 2023-10-30
  • Automatic offers:
    • dukenv0307 | Contributor | 27439507
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 2, 2023
@dukenv0307
Copy link
Contributor

dukenv0307 commented Oct 2, 2023

Proposal

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

Incorrect backup avatar while waiting for avatar to load

What is the root cause of that problem?

We pass the fallbackIcon as the default avatar of the user here to display if the data is loading

fallbackIcon={currentUserPersonalDetails.fallbackIcon}

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

In PressableAvatarWithIndicator we can subscribe isLoading from Onyx with key ONYXKEYS.IS_LOADING_APP. And pass this to AvatarWithIndicator

export default withCurrentUserPersonalDetails(PressableAvatarWithIndicator);

And in AvatarWithIndicator we will only display the View with background color themColors.skeletonLHNIn

<View style={[styles.sidebarAvatar, props.isLoading && {backgroundColor: themeColors.skeletonLHNIn}]}>
    {!props.isLoading && (
        <>
            <Avatar
                source={UserUtils.getSmallSizeAvatar(props.source)}
                fallbackIcon={props.fallbackIcon}
            />
            <Indicator />
        </>
    )}
</View>

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot changed the title LHN - Incorrect backup avatar while waiting for avatar to load [$500] LHN - Incorrect backup avatar while waiting for avatar to load Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01702f576387e8afe4

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

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

@strepanier03
Copy link
Contributor

Able to repro:

image

@strepanier03
Copy link
Contributor

All good to move forward. This was reported by one of our designers so they'd be the experts in expected behavior.

@ArekChr
Copy link
Contributor

ArekChr commented Oct 3, 2023

@strepanier03 Having a preview(thumbnail) image in base64 from the backend would be awesome as a fallback image.

@melvin-bot melvin-bot bot added the Overdue label Oct 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 6, 2023

@strepanier03, @ArekChr Whoops! This issue is 2 days overdue. Let's get this updated quick!

@strepanier03
Copy link
Contributor

strepanier03 commented Oct 6, 2023

@shawnborton is that possible?

Having a preview(thumbnail) image in base64 from the backend would be awesome as a fallback image.

I'm a little out of my depth. I can raise instead in Slack if you'd like.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 6, 2023
@shawnborton
Copy link
Contributor

I'm not entirely sure either, I would check with the engineering assignee (when we have one).

But I kind of think the right solution here is just to use the same style as the skeleton loader, and only use a fallback avatar if we can't download/access the right avatar.

@strepanier03
Copy link
Contributor

Thank you @shawnborton - @ArekChr for visibility on their comment.

@melvin-bot melvin-bot bot removed the Overdue label Oct 9, 2023
@ArekChr
Copy link
Contributor

ArekChr commented Oct 10, 2023

right solution here is just to use the same style as the skeleton loader, and only use a fallback avatar if we can't download/access the right avatar.

@dukenv0307 could you update your proposal?

@melvin-bot melvin-bot bot added the Overdue label Oct 12, 2023
@strepanier03
Copy link
Contributor

@dukenv0307 friendly bump.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

@strepanier03 @ArekChr this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

@strepanier03, @ArekChr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 31, 2023
@dukenv0307
Copy link
Contributor

@ArekChr The PR is ready for review.

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 15, 2023
@melvin-bot melvin-bot bot changed the title [$500] LHN - Incorrect backup avatar while waiting for avatar to load [HOLD for payment 2023-11-22] [$500] LHN - Incorrect backup avatar while waiting for avatar to load Nov 15, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 15, 2023
Copy link

melvin-bot bot commented Nov 15, 2023

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

Copy link

melvin-bot bot commented Nov 15, 2023

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

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter - Internal report
  • Contributor that fixed the issue - @dukenv0307 - $500 via Upwork
  • Contributor+ that helped on the issue and/or PR - N/A Callstack

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

Copy link

melvin-bot bot commented Nov 15, 2023

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:

  • [@ArekChr] The PR that introduced the bug has been identified. Link to the PR: No bug identified.
  • [@ArekChr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: n/a
  • [@ArekChr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: n/a
  • [@ArekChr] Determine if we should create a regression test for this bug: Yes
  • [@ArekChr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again: Done
  • [@strepanier03] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: https://github.com/Expensify/Expensify/issues/339563

@ArekChr
Copy link
Contributor

ArekChr commented Nov 16, 2023

  • Link to the PR: No bug identified.
  • Link to comment: n/a
  • Link to discussion: n/a
  • Determine if we should create a regression test for this bug: We can create a simple test.

Regression Test Proposal

  1. Open the app from a fresh sign-in
  2. Verify your avatar in the top right of the LHN area; it should show the skeleton loader as a fallback image.

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Nov 22, 2023
Copy link

melvin-bot bot commented Nov 27, 2023

@youssef-lr, @strepanier03, @ArekChr, @dukenv0307 Eep! 4 days overdue now. Issues have feelings too...

@strepanier03
Copy link
Contributor

Thanks all! I was OoO last week for the holiday but am working on this now, sorry for the delay!

@melvin-bot melvin-bot bot removed the Overdue label Nov 27, 2023
@strepanier03
Copy link
Contributor

This has been paid, regression test is proposed, and we're ready to close.

Thank you all!

@strepanier03 strepanier03 changed the title [HOLD for payment 2023-11-22] [$500] LHN - Incorrect backup avatar while waiting for avatar to load [PAID] [$500] LHN - Incorrect backup avatar while waiting for avatar to load Nov 27, 2023
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

8 participants