-
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
[No QA] Add green dot in LHN when chat is unread with mention #18038
Conversation
@0xmiroslav or @grgia do you happen to know how to post to the JS console on iOS and Android in the emulator (it's needed for the test steps)? I was able to figure it out for android chrome/ios safari, but couldn't figure it out for the native apps. |
Co-authored-by: Georgia Monahan <38015950+grgia@users.noreply.github.com>
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
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.
Looks good, tests well on all platforms.
@0xmiroslav or @grgia do you happen to know how to post to the JS console on iOS and Android in the emulator (it's needed for the test steps)? I was able to figure it out for android chrome/ios safari, but couldn't figure it out for the native apps.
I did it programatically when open the app. Please check how I set onyx value and tested on iOS video
Ahh, smart @0xmiroslav. @grgia any other comments? Otherwise, I would love to merge today! |
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.
Looks good!
Thanks for the reviews. Gonna 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. |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.9-12 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|
Details
This PR adds handling to the front-end to show the green dot in the LHN when a user's chat is unread and they have been mentioned. It goes with this back-end PR which handles setting the
lastMentionedTime
field on the report. The green dot should show up any time a chat is unread and the lastMentionedTime is after the lastReadTime on the chat. In other words, the green dot should show when the user has been mentioned in any of the unread messages.Fixed Issues
$ #17887
Tests
Onyx.merge('report_7152000805184733', {"lastMentionedTime": "2023-04-24 20:55:21.858"});
Onyx.merge('report_7152000805184733', {"lastMentionedTime": ""});
Offline tests
Same as regular tests. This behavior is purely based on the data available in Onyx.
QA Steps
There is nothing for QA to test yet because this field isn't yet being set by the back-end.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
2023-04-26_19-15-45.mp4
Mobile Web - Chrome
Mobile Web - Safari
Desktop
2023-04-26_19-20-26.mp4
iOS
Android