-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix massive lag on Task Assignee Selection Modal #22095
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
Fix massive lag on Task Assignee Selection Modal #22095
Conversation
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Hi @Thanos30, can you please run |
Done, thank you for the tip @francoisl |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-04.at.10.06.12.movScreen.Recording.2023-07-04.at.10.05.22.movMobile Web - ChromeWhatsApp.Video.2023-07-04.at.10.20.16.mp4Mobile Web - SafariScreen.Recording.2023-07-04.at.10.45.17.movDesktopScreen.Recording.2023-07-04.at.10.15.52.moviOSScreen.Recording.2023-07-04.at.10.43.09.movAndroidScreen.Recording.2023-07-04.at.10.28.04.mp4 |
Hi @Thanos30 could we also debounce It also uses |
Done @rushatgabhane , I made the debounce timeout smaller here, since I had the chance to work on |
cool, thanks for explaining that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, LGTM!
Hi, reviewing now - sorry I was OOO yesterday. Can you fix the conflict in |
…task-assignee-selection
@francoisl No worries, I resolved the conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT and works well!
@@ -48,7 +48,6 @@ function TaskShareDestinationSelectorModal(props) { | |||
const [filteredPersonalDetails, setFilteredPersonalDetails] = useState([]); | |||
const [filteredUserToInvite, setFilteredUserToInvite] = useState(null); | |||
|
|||
// Filter out all the reports where user is not allowed to create task |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocking on this but there was no need to remove this comment, it was actually insightful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh shoot, I must have missed that. I am sorry
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/francoisl in version: 1.3.38-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.38-7 🚀
|
Details
Refactoring the functionality of
TaskAssigneeSelectorModal
. I removed the duplicate useEffect hook (both hooks were called initially, reducing performance) and I debounced the call to get the options.Fixed Issues
$ #20075
PROPOSAL: #20075 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Screen.Recording.2023-07-03.at.3.53.08.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-07-03.at.3.56.05.AM.mov
Mobile Web - Safari
Screen.Recording.2023-07-03.at.3.56.05.AM.mov
Desktop
Screen.Recording.2023-07-03.at.4.04.57.AM.mov
iOS
Screen.Recording.2023-07-03.at.4.34.51.AM.mov
Android
Screen.Recording.2023-07-03.at.4.34.51.AM.mov