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

Refactor ReportScreen to improve chat switching #4538

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

marcaaron
Copy link
Contributor

@marcaaron marcaaron commented Aug 11, 2021

Details

This saves about 100ms of time when switching reports and implements a solution to ReportActionCompose being slow to render by rendering it only once then re-rendering the Report content instead of the entire view.

Fixed Issues (Somewhat related to this closed issue)

#4116

Tests

Android Benchmarks

I tested this PR against Android release builds then compared with the latest main

report_switch average on main: 627 ms
report_switch average on this branch: 528 ms

QA Steps

  1. Very chat switching works normally on all platforms

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

AndroidChatSwitchLatest.mp4

@marcaaron marcaaron self-assigned this Aug 11, 2021
@marcaaron marcaaron marked this pull request as ready for review August 11, 2021 03:26
@marcaaron marcaaron requested a review from a team as a code owner August 11, 2021 03:26
@MelvinBot MelvinBot requested review from deetergp and removed request for a team August 11, 2021 03:27

/** Whether or not to show the Compose Input */
session: PropTypes.shape({
shouldShowComposeInput: PropTypes.bool,
Copy link
Contributor

@deetergp deetergp Aug 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB: Why is this nested in session and not its own prop? Is it because we want to keep track if it in ONXY?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember if I did this or if someone else did. But I'm gonna guess it just seemed more convenient than creating a new key to track this.

Copy link
Contributor

@deetergp deetergp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice QOL improvement!

@deetergp deetergp merged commit 2fc68a5 into main Aug 11, 2021
@deetergp deetergp deleted the marcaaron-reorganizeReportScreen branch August 11, 2021 22:44
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @deetergp in version: 1.0.85-10 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @roryabraham in version: 1.0.86-11 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants