-
Notifications
You must be signed in to change notification settings - Fork 3k
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 unread issue in combine report #40676
Conversation
@paultsimura 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] |
@paultsimura For IOS native, when we scroll up the |
const unreadActionSubscriptionForTransactionThread = DeviceEventEmitter.addListener(`unreadAction_${transactionThreadReport?.reportID}`, (newLastReadTime) => { | ||
resetUnreadMarker(newLastReadTime); | ||
setMessageManuallyMarkedUnread(new Date().getTime()); | ||
}); | ||
|
||
const readNewestActionSubscriptionForTransactionThread = DeviceEventEmitter.addListener(`readNewestAction_${transactionThreadReport?.reportID}`, (newLastReadTime) => { | ||
resetUnreadMarker(newLastReadTime); | ||
setMessageManuallyMarkedUnread(0); | ||
}); |
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.
Please wrap these into if (transactionThreadReport?.reportID) ...
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.
@paultsimura I updated.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid20.38.mp4Android: mWeb Chromechrome20.38.mp4iOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-04-22.at.20.38.0520.38.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-04-22.at.20.35.2120.38.mp4MacOS: Chrome / SafariScreen.Recording.2024-04-22.at.20.24.3020.38.mp4MacOS: DesktopScreen.Recording.2024-04-22.at.20.26.2220.38.mp4 |
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.
After these changes we'll be good to go
Co-authored-by: Pavlo Tsimura <[email protected]>
Co-authored-by: Pavlo Tsimura <[email protected]>
@paultsimura Updated your suggestion. |
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.
LGTM ✔️
Note: the "New messages" button stopped scrolling down, but it's also happening in prod.
@amyevans I'm currently not in the C+ team, so the automation didn't assign you. Please proceed with the review here |
Thanks, confirmed this as well. Are you aware of a tracking issue for it? I see #40911 which might cover it, though it's technically currently scoped to the Self DM, so just wondering if there's another GH floating around. I'm surprised the bug made it to prod without being caught. The code here LGTM! |
✋ 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/amyevans in version: 1.4.66-0 🚀
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.4.66-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.66-5 🚀
|
Details
Fix unread issue in combine report
Fixed Issues
$ #39407
PROPOSAL: #39407 (comment)
Tests
New message
button appearsOffline tests
Same as above
QA Steps
New message
button appearsPR 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-22.at.17.06.14.mov
Android: mWeb Chrome
Screen.Recording.2024-04-22.at.17.03.50.mov
iOS: Native
Screen.Recording.2024-04-22.at.17.12.38.mov
iOS: mWeb Safari
Screen.Recording.2024-04-22.at.17.00.25.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-22.at.16.56.19.mov
MacOS: Desktop
Screen.Recording.2024-04-22.at.17.14.23.mov