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-07-20] [Performance] UserDetailsTooltip component renders unnecessary on mobile platforms #21796

Closed
2 of 6 tasks
hannojg opened this issue Jun 28, 2023 · 9 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Monthly KSv2 Reviewing Has a PR in review

Comments

@hannojg
Copy link
Contributor

hannojg commented Jun 28, 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!


What performance issue do we need to solve?

We want to avoid doing unnecessary work, especially on low end mobile devices, to get the most performance budget as possible for important tasks.

Right now, the UserDetailsTooltip is only affecting web/desktop users that can hover over a user. Mobile users cannot. However, we are rendering that component on every platform.
We are e.g. rendering it in the report list, and thereby we are creating unnecessary renders. Even though it has no UI its connecting to onyx which is slightly blocking, and we want to avoid that:

Screenshot 2023-06-28 at 15 58 35

What is the impact of this on end-users?

Especially on lower end devices we will gain a bit of our performance budget back making other important operations slightly faster.

List any benchmarks that show the severity of the issue

Using the react-devtools and profiling the app with the release bundle. We don't want to see render commits of unnecessary components like UserDetailsTooltip

Proposed solution (if any)

Very simple:

  • Rename UserDetailsTooltip/index.js to UserDetailsTooltip/index.web.js
  • Create a new UserDetailsTooltip/index.js, which is just forwarding the children

List any benchmarks after implementing the changes to show impacts of the proposed solution (if any)

Measure the app start again with react-devtools, there now should be less commits.
I applied the proposal and checked again. In the previous profile we had 75 commits, after the change it only were 69 and we can't find any rendering of the UserDetailsTooltip

Screenshot 2023-06-28 at 16 00 42

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: latest/main
Reproducible in staging?: yes
Reproducible in production?: yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:

View all open jobs on Upwork

@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2023

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

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Jun 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

@roryabraham Huh... This is 4 days overdue. Who can take care of this?

@roryabraham
Copy link
Contributor

Co-assignign @hannojg here. I reviewed the PR but it has not been updated since last week and has conflicts.

@hannojg
Copy link
Contributor Author

hannojg commented Jul 10, 2023

Will update today !

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 13, 2023
@melvin-bot melvin-bot bot changed the title [Performance] UserDetailsTooltip component renders unnecessary on mobile platforms [HOLD for payment 2023-07-20] [Performance] UserDetailsTooltip component renders unnecessary on mobile platforms Jul 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 13, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 13, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 13, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.39-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 2023-07-20. 🎊

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

@melvin-bot melvin-bot bot added Daily KSv2 Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 Daily KSv2 labels Jul 19, 2023
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Aug 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 21, 2023

This issue has not been updated in over 15 days. @hannojg, @roryabraham eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@roryabraham
Copy link
Contributor

This is finished.

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 Monthly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

2 participants