-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[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.
src/pages/home/report/ReportActionCompose/SilentCommentUpdater/index.tsx
Outdated
Show resolved
Hide resolved
Reviewing |
Thanks for simplifying, that does look safer :P |
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.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
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