Repository navigation
[CP Staging] Remove the requestIdleCallback from silentComposer - #39535
Conversation
|
@alitoshmatov 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] |
|
The typescript is failing on main |
This comment has been minimized.
This comment has been minimized.
|
Reviewing |
|
Thanks for simplifying, that does look safer :P |
neil-marcellini
left a comment
There was a problem hiding this comment.
Do we also want to implement the rest of @bernhardoj's proposal so that we correctly replace emoji text when switching languages? Definitely NAB.
Thats why I simplified it. This is already enough as its the main solution @bernhardoj suggested. The alternative solution would require the changes you mentioned |
|
@alitoshmatov thanks, can you complete the checklist ASAP so we can get this fix to staging quickly. thank you 🙇 |
|
@mountiny I see the caret moving to the first position after this change, which for me is equally annoying than having some piece of the comment removed Screen.Recording.2024-04-03.at.1.00.00.PM.movDoes this happen less than the piece of message getting errased? Update: Oh you already mentioned this side effect here: https://expensify.slack.com/archives/C06SNCPJCLT/p1712172329463939?thread_ts=1712169463.232299&cid=C06SNCPJCLT |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@alitoshmatov I'm going to merge this now, and no need to test further, because it's a simple change that we all feel confident in. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
[CP Staging] Remove the requestIdleCallback from silentComposer (cherry picked from commit b0c0474)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.4.59-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
When the effect callback runs after switching chats, updating the comment with empty string leads to removing what user quickly typed after switching the chat. That leads to bad UX
Fixed Issues
$ #38966
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Screen.Recording.2024-04-03.at.19.49.43.mp4
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop