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

[$500] Chat - Skeleton is displayed at beginning, then a black area appears #31189

Closed
2 of 6 tasks
lanitochka17 opened this issue Nov 10, 2023 · 13 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 10, 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!


Version Number: 1.3.98-0
Reproducible in staging?: Y
Reproducible in production?: Y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Issue found when executing PR #30774

Action Performed:

re-requisite: must be logged in and have a chat with a lot of messages

  1. Open a chat where you have a lot of messages
  2. Scroll up many times to load previous messages on chat

Expected Result:

Skeleton should appear every time the chat loads

Actual Result:

Skeleton is displayed at beginning, then a black area appears and loading previous messages has an unusual behavior

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6271542_1699637392653.bandicam_2023-11-10_12-57-21-126.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012f353b1fa07d8bce
  • Upwork Job ID: 1723031808885907456
  • Last Price Increase: 2023-11-17
@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 Nov 10, 2023
@melvin-bot melvin-bot bot changed the title Chat - Skeleton is displayed at beginning, then a black area appears [$500] Chat - Skeleton is displayed at beginning, then a black area appears Nov 10, 2023
Copy link

melvin-bot bot commented Nov 10, 2023

Job added to Upwork: https://www.upwork.com/jobs/~012f353b1fa07d8bce

Copy link

melvin-bot bot commented Nov 10, 2023

Triggered auto assignment to @miljakljajic (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 Nov 10, 2023
Copy link

melvin-bot bot commented Nov 10, 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

Copy link

melvin-bot bot commented Nov 10, 2023

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

Copy link

melvin-bot bot commented Nov 11, 2023

📣 @adarkforce! 📣
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>

@adarkforce
Copy link

Contributor details
Your Expensify account email: a.dellafortuna00@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01b4d8d8ede39fdc74

Copy link

melvin-bot bot commented Nov 11, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@adarkforce
Copy link

adarkforce commented Nov 11, 2023

Proposal

Unusual scrolling behaviour with performance degradation, causing weird jumps and inconsistent scroll behaviour.
PS: on my machine it was VERY laggy.

What is the root cause of that problem?

Performance degradation.

  • maxToRenderPerBatch forced to 1.
  • BaseInvertedFlatList usinggetItemLayout

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

The main issue was the BaseInvertedFlatList component having to measure items layout, removing all the related code along with forced windowSize made the component faster and more responsive.

The list stopped in iOS Safari when reaching the top. This was mainly due to maxToRenderPerBatch set to 1 in BaseInvertedFlatList component, it could be safely removed because #24482 has been merged.
This, along with removing onEndReachedThreshold and onStartReachedThreshold made the scrolling experience faster and more consistent.

After the fix, when scrolling fast, the component can result in showing blank rows.
Readjusting for example maxToRenderPerBatch could improve it, but I don't think there's need to, as well as an event signalling the fact that the view is full of items that are not ready to render (blank).
The rows now appear faster, and It seems that the overall user experience is largely improved.

We can also render ReportActionsSkeletonView when
reportMetadata.isLoadingNewerReportActions or reportMetadata.isLoadingOlderReportActions is true, to show the skeleton while loading new data, but it doesn't seem strictly necessary

@melvin-bot melvin-bot bot added the Overdue label Nov 13, 2023
@miljakljajic
Copy link
Contributor

This is linked to newDot performance issues which we're discussing internally - raised it in #newdot-performance and will share next steps soon

@melvin-bot melvin-bot bot removed the Overdue label Nov 13, 2023
Copy link

melvin-bot bot commented Nov 17, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Nov 17, 2023
@getusha
Copy link
Contributor

getusha commented Nov 19, 2023

Not able to reproduce this one
@lanitochka17 @miljakljajic @adarkforce

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 19, 2023
@miljakljajic
Copy link
Contributor

Checking with Applause as they reported this one!

@melvin-bot melvin-bot bot removed the Overdue label Nov 21, 2023
@miljakljajic
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

4 participants