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

[C+ Checklist Needs Completion] [$500] Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor #31190

Closed
1 of 6 tasks
kbecciv opened this issue Nov 10, 2023 · 71 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kbecciv
Copy link

kbecciv 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?: n
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: @situchan
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1699629011502749?thread_ts=1699456424.016869&cid=C01GTK53T8Q

Action Performed:

  1. Go to staging.new.expensify.com
  2. Tab on Fab menu
  3. Select Request Money
  4. Navigate through the tabs

Expected Result:

The app is not freezing after switching tabs, and the performance of the tab navigator should be good

Actual Result:

The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Add any screenshot/video evidence

performance.mov

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c6d30dd934f349b1
  • Upwork Job ID: 1723032823278329856
  • Last Price Increase: 2023-11-10
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Nov 10, 2023
@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Nov 10, 2023

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

@kbecciv
Copy link
Author

kbecciv commented Nov 10, 2023

@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment labels Nov 10, 2023
@melvin-bot melvin-bot bot changed the title Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor [$500] Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor Nov 10, 2023
Copy link

melvin-bot bot commented Nov 10, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01c6d30dd934f349b1

@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
@kbecciv kbecciv added Bug Something is broken. Auto assigns a BugZero manager. and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Nov 10, 2023
Copy link

melvin-bot bot commented Nov 10, 2023

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

Copy link

melvin-bot bot commented Nov 10, 2023

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

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

@greg-schroeder greg-schroeder added Daily KSv2 and removed Hourly KSv2 labels Nov 10, 2023
@melvin-bot melvin-bot bot added the Overdue label Nov 13, 2023
@greg-schroeder
Copy link
Contributor

Awaiting proposals

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

Proposal

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

A performance issue (FAB -> Request Money) when switching tabs, glitching occurs in the browser but not on native devices.

What is the root cause of that problem?

There's lots of layers of abstraction being used because of react-native-web. These all compile down nicely when run on device but in the browser there's too much happening on the main thread, work isn't being completed within the 16ms needed for a smooth 60fps animation.

Screen Shot 2023-11-14 at 16 03 15

The above is a chrome dev tools performance capture while running locally. Each of the "Animation Frame Fired" tasks are taking too long. The animations are being run by @react-navigation/material-top-tabs which uses react-native's animated library. I can't find any extra state that is changing that is causing additional work. It just appears that the application is too "heavy" for this animation on web.

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

I suggest we use a custom implementation for web i.e. TabNavigator.web.js that focuses on being lightweight. The ios/android versions can use the native implementation which doesn't seem to be glitchy.

What alternative solutions did you explore? (Optional)

None.

Copy link

melvin-bot bot commented Nov 14, 2023

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

@davidnormo
Copy link

Contributor details
Your Expensify account email: david.normo@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~0108d5ebd2889d3ebf

Copy link

melvin-bot bot commented Nov 14, 2023

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

@davidnormo
Copy link

@mananjadhav @greg-schroeder @stitesExpensify what do you guys think?

@melvin-bot melvin-bot bot changed the title [$500] Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor [HOLD for payment 2024-01-22] [$500] Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor Jan 15, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 15, 2024
Copy link

melvin-bot bot commented Jan 15, 2024

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

Copy link

melvin-bot bot commented Jan 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.24-8 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-01-22. 🎊

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

Copy link

melvin-bot bot commented Jan 15, 2024

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:

  • [@mananjadhav / @shubham1206agra] The PR that introduced the bug has been identified. Link to the PR:
  • [@mananjadhav / @shubham1206agra] 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:
  • [@mananjadhav / @shubham1206agra] 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:
  • [@mananjadhav / @shubham1206agra] Determine if we should create a regression test for this bug.
  • [@mananjadhav / @shubham1206agra] 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.
  • [@greg-schroeder] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 21, 2024
@greg-schroeder
Copy link
Contributor

Okay so there was another deploy blocker related to this? Seems #34377 is still open...

@greg-schroeder greg-schroeder removed the Awaiting Payment Auto-added when associated PR is deployed to production label Jan 22, 2024
@greg-schroeder greg-schroeder changed the title [HOLD for payment 2024-01-22] [$500] Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor [$500] Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor Jan 22, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 24, 2024
@mananjadhav
Copy link
Collaborator

@greg-schroeder I wouldn't call it a deploy blocker because we intentionally disabled animations.

wdyt @mountiny @stitesExpensify ?

Also this is ready for payout.

@melvin-bot melvin-bot bot removed the Overdue label Jan 26, 2024
@greg-schroeder
Copy link
Contributor

Ah, okay, I understand. So there was one initial performance regression leading to a revert and new PR, but the second linked deploy blocker is not grounds for a second reduction as disabled animations was intended behavior.

In that case @mananjadhav you can make a manual request for $250 for the C+ role for this issue.

Seems @shubham1206agra was listed by the automation but I see Manan did the review on both PRs, so I'm not sure what's up there. 🤔

——————

Last step would be to complete the checklist @mananjadhav then we can close this out!

@greg-schroeder greg-schroeder changed the title [$500] Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor [C+ Checklist Needs Completion] [$500] Web - The app is freezing after switching tabs, and the performance of the tab navigator seems to be quite poor Jan 26, 2024
@shubham1206agra
Copy link
Contributor

@greg-schroeder I think I am up for partial compensation.

@mountiny can verify this.

@mananjadhav
Copy link
Collaborator

@greg-schroeder I think I am up for partial compensation.

@mountiny can verify this.

Agreed with @shubham1206agra here.

I don't think we have any offending PR as this was a performance issue, and we disable the animation as a solution. Neither do I think we need a regression test for this one.

@mountiny
Copy link
Contributor

@mananjadhav @shubham1206agra I can see you both have reviewed the PR. I agree there was no regression, but I feel like you should divide the reward of $500 in this case, its not clear to me now why both c+ were needed

@mananjadhav
Copy link
Collaborator

@mountiny More info here on why @shubham1206agra got involved and where we committed for the partial payout.

I think $250 each is fine for me.

@mountiny
Copy link
Contributor

Thank you for the link, I agree $250 each sounds fair!

@mananjadhav
Copy link
Collaborator

@greg-schroeder Can you add a payment summary comment for us to raise a request?

@JmillsExpensify
Copy link

$250 payment approved based on this comment. That is sufficient.

@greg-schroeder
Copy link
Contributor

Sorry, yeah okay so the final breakdown was:

@mananjadhav $250
@shubham1206agra $250

@melvin-bot melvin-bot bot added the Overdue label Feb 2, 2024
@melvin-bot melvin-bot bot removed the Overdue label Feb 3, 2024
@shubham1206agra
Copy link
Contributor

@greg-schroeder I didn't received any payment for the same.

@greg-schroeder
Copy link
Contributor

Sorry, this was confusing @shubham1206agra - paying you here: #35793

@shubham1206agra
Copy link
Contributor

@greg-schroeder Accepted offer.

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 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
Development

No branches or pull requests