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

[HOLD for payment 2023-04-03] [HOLD for payment 2022-08-11] [$500] Web - Chat - Avatar icon is flickers when the message is sent for the first time #9183

Closed
kavimuru opened this issue May 26, 2022 · 45 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2

Comments

@kavimuru
Copy link

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. Go to https://staging.new.expensify.com/
  2. Log in with any account
  3. Select any chat
  4. Send the message to the user

Expected Result:

There should not be any flickering of avatar icon

Actual Result:

Avatar icon is blinking when message sent for the first time

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.67.0

Reproducible in staging?: Y

Reproducible in production?: Y

Email or phone of affected tester (no customers): applausetester+0901abb@applause.expensifail.com / Feya87Katya

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:

Bug5586718_Recording__493.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause internal team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented May 26, 2022

Triggered auto assignment to @NikkiWines (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@NikkiWines
Copy link
Contributor

Hmm @kavimuru I'm unable to reproduce this on staging v1.1.67-0. Does the flickering happen consistently each time?

Screen.Recording.2022-05-26.at.09.51.18.mov

@NikkiWines NikkiWines added Weekly KSv2 Improvement Item broken or needs improvement. and removed Daily KSv2 labels May 26, 2022
@kavimuru
Copy link
Author

@NikkiWines I am able to reproduce with my account applausetester+km1@applause.expensifail.com / Test1234

Recording.292.mp4

@NikkiWines
Copy link
Contributor

Ah ok, I was able to reproduce if I had an existing message in the conversation. Some update reproduction steps would be

  1. Log into an account on New Expensify
  2. Navigate to a chat where you were the last person to send a message
  3. Send a message in that chat
  4. Confirm that the avatar on the left hand side of the message that you just sent flickers.

This looks like a good external issue. Thanks for your help in clarifying things @kavimuru

@NikkiWines NikkiWines added the External Added to denote the issue can be worked on by a contributor label May 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented May 26, 2022

Triggered auto assignment to @NicMendonca (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 31, 2022

Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label May 31, 2022
@melvin-bot
Copy link

melvin-bot bot commented May 31, 2022

@NicMendonca Eep! 4 days overdue now. Issues have feelings too...

@NicMendonca
Copy link
Contributor

Opps, sorry for missing this!

Upwork job post: https://www.upwork.com/jobs/~01e452c0b62be21308

@melvin-bot melvin-bot bot removed the Overdue label Jun 1, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jun 1, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 1, 2022

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 1, 2022
@melvin-bot melvin-bot bot added the Overdue label Aug 1, 2022
@stitesExpensify
Copy link
Contributor

To confirm @b1tjoy you were never hired on upwork? If that is the case @NicMendonca can we make sure the upwork link is correct, and make a new job if necessary?

@melvin-bot melvin-bot bot removed the Overdue label Aug 1, 2022
@stitesExpensify
Copy link
Contributor

This issue has already been solved and the solution was merged 6 days ago

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Help Wanted Apply this label when an issue is open to proposals by contributors Daily KSv2 labels Aug 1, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2022

📣 @b1tjoy You have been assigned to this job by @stitesExpensify!
Please apply to this job in Upwork 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 Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 4, 2022
@melvin-bot melvin-bot bot changed the title [$500] Web - Chat - Avatar icon is flickers when the message is sent for the first time [HOLD for payment 2022-08-11] [$500] Web - Chat - Avatar icon is flickers when the message is sent for the first time Aug 4, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 4, 2022

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

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@NicMendonca
Copy link
Contributor

@b1tjoy @rushatgabhane invited you to the new job 👍

@NicMendonca
Copy link
Contributor

bump @b1tjoy @rushatgabhane can you accept the offer please?

@rushatgabhane
Copy link
Member

rushatgabhane commented Aug 15, 2022

accepted, thanks

@NicMendonca
Copy link
Contributor

paid 🎉 thanks!

@kidroca
Copy link
Contributor

kidroca commented Jan 13, 2023

If we don't use cache, the internal state of Image first init to IDLE, and then move to LOADING or LOADED.

This is a react-native-web bug, because in the past the Image took care of cache automatically, and would not initialize to IDLE for an Image that was already rendered

The bug was introduced to react-native-web when the Image component was refactored from class based to hooks based component

Here's the original logic that was later removed and introduced the bug

Images were automatically added to cache on load:
https://github.com/Expensify/react-native-web/blob/a7ab961d95de892e4b41c96ea945aa344fd49e50/packages/react-native-web/src/exports/Image/index.js#L361

Or during lifecycle methods
https://github.com/Expensify/react-native-web/blob/a7ab961d95de892e4b41c96ea945aa344fd49e50/packages/react-native-web/src/exports/Image/index.js#L174-L178

This was ensuring that if an image was loaded previously it would not start from the IDLE state if we render the same or a new component with the same image


Reported the bug upstream, here

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Mar 4, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Mar 27, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2022-08-11] [$500] Web - Chat - Avatar icon is flickers when the message is sent for the first time [HOLD for payment 2023-04-03] [HOLD for payment 2022-08-11] [$500] Web - Chat - Avatar icon is flickers when the message is sent for the first time Mar 27, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 27, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

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
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

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 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2
Projects
None yet
Development

No branches or pull requests