-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 unsubscribe is typing event if not focus on screen #39347
Conversation
Updating screen recordings ... |
Updated all screen recordings |
@tienifr There's a failing jest test, any ideas what might be causing that? Seems like it could be related to this PR. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-native-2024-04-01_15.51.42.mp4Android: mWeb Chromeandroid-chrome-2024-04-01_15.56.08.mp4iOS: Nativeios-native-2024-04-01_15.32.49.mp4iOS: mWeb Safariios-safari-2024-04-01_15.46.22.mp4MacOS: Chrome / Safaridesktop-chrome-2024-04-01_15.58.12.mp4MacOS: Desktopdesktop-app-2024-04-01_16.01.22.mp4 |
desktop-chrome-search-2024-04-01_16.09.47.mp4 |
@jjcoffee Related to the failed jest unit test: I`ve tried running |
@tienifr The latest commit doesn't seem to fix the issue, e.g. following these repro steps:
The same happens if requesting money from another chat/workspace (which causes a switch to another report). |
@jjcoffee The new solution is to create a new component, "UserTypingEventListener". Then the perf error is gone. Can you review PR again? |
@tienifr Unfortunately I'm still seeing the same issue. Can you make sure to retest for that issue before asking for re-review? Thanks! 🙏 |
@jjcoffee Yeah. I retested and verify that it works properly. Below is screen recording:
output.mp4
output.mp4 |
@tienifr Ah sorry, not sure why when I tested the same issue was happening, maybe there was some stale Onyx data? Anyway, it's working well now! Can you merge main to fix the ts/lint failing tests? |
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.
A few questions I'd like to get clarified before merging please - I know this is an important improvement but I don't want to move too fast if the code isn't clean / understandable
@Beamanator I resolved all your comments |
Co-authored-by: Alex Beaman <dabeamanator@gmail.com>
@Beamanator I updated the comment as you suggested |
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.
Looking good to me!
@jjcoffee before I merge, do you feel that "optimistic report" comment is good now, or do you feel it needs a bit more explanation?
@Beamanator makes sense to me! |
@tienifr please merge main 1 more time to hopefully fix the tests |
Hmm I'm not seeing the Jest test (job3) failing on other, recently created PRs so I'm wondering if this is actually related to this PR -> I'm also seeing it fail locally in your fork & branch, @tienifr 🤔 |
@Beamanator I tried to run job3 in main branch, and still encountered the error. Here is the result: Screen.Recording.2024-04-10.at.17.35.22.mov@jjcoffee Can you try it? |
@tienifr hmm that's interesting, that's a different error than I'm seeing, though in the same file 😅 Here's what I'm seeing in your PR & in github actions:
|
FYI I started a slack thread cuz that may be easier to discuss there - https://expensify.slack.com/archives/C01GTK53T8Q/p1712745268351209 |
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.
I added some thoughts in that slack thread but gotta run for a while - if this gets fixed please ping me so I can jump back on to merge, but for now I don't think we should merge until we KNOW the exact test fails in the exact same way on main
, or until we fix the test in this PR
Still discussing this on slack |
@tienifr please review the change I suggested - if it makes sense to you, can you please make the change & pull main & test hopefully 1 last time? |
@Beamanator Thanks for your suggestion. I applied, tested and it works well |
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.
✋ 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/Beamanator in version: 1.4.63-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Fixed Issues
$ #38905
PROPOSAL: #38905 (comment)
Tests
[info] [Onyx] merge() called for key: reportUserIsTyping_4555629044294735 properties: 15225462 - ""
Offline tests
QA Steps
[info] [Onyx] merge() called for key: reportUserIsTyping_4555629044294735 properties: 15225462 - ""
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
Android: Native
Screen.Recording.2024-04-01.at.18.16.35.mov
Android: mWeb Chrome
Screen.Recording.2024-04-01.at.18.18.46.mov
iOS: Native
Screen.Recording.2024-04-01.at.18.11.26.mov
iOS: mWeb Safari
Screen.Recording.2024-04-01.at.18.13.01.mov
MacOS: Chrome / Safari
output.mp4
MacOS: Desktop
Screen.Recording.2024-04-01.at.18.08.15.mov