Clear notifications after opening a report#31762
Conversation
|
This is working decently well but I'm running into issues with the focus event not being unsubscribed because we're rendering multiple ReportScreens when switching chats. I'm asking about this here. |
Was able to resolve this by using |
…ear-read-notifications-native
…-read-notifications-native
|
Alright PR is updated and ready for another review! @s77rt @Julesssss |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb ChromeNot applicable iOS: NativeCan't test notifications on iOS iOS: mWeb SafariNot applicable MacOS: Chrome / Safariweb.movweb-2.movMacOS: Desktopdesktop.mov |
|
@marcochavezf 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] |
|
Alright I tried getting an iOS tester a couple times here with no luck. Since this is on a time crunch I just re-tested myself here: RPReplay_Final1702679356.MP4Looking good so going to merge |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Just realized I introduced another require cycle: Opened a new issue to address that here |
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 1.4.14-0 🚀
|
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 1.4.14-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.14-6 🚀
|
| if (Visibility.isVisible() && scrollingVerticalOffset.current < MSG_VISIBLE_THRESHOLD) { | ||
| Report.readNewestAction(report.reportID); |
There was a problem hiding this comment.
On desktop web, notifications stopped working after the user switched to another app, since document.visibilityState is 'visible' when the browser loses focus but is neither minimized nor on another tab.
Fixed via #93387 by also checking document.hasFocus().
Details
Fixed Issues
$ Part of https://github.com/Expensify/Expensify/issues/258535
Tests
No tests on mWeb
Offline tests
None
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Android: mWeb Chrome
iOS: Native
RPReplay_Final1701968552.MP4
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop