fix unsubscribe is typing event if not focus on screen#39347
fix unsubscribe is typing event if not focus on screen#39347Beamanator merged 16 commits intoExpensify:mainfrom
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? |
|
@Beamanator I resolved all your comments |
Co-authored-by: Alex Beaman <dabeamanator@gmail.com>
|
@Beamanator I updated the comment as you suggested |
Beamanator
left a comment
There was a problem hiding this comment.
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 |
Beamanator
left a comment
There was a problem hiding this comment.
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 |
|
✋ 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 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
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