-
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
Mark the latest report action from other users as unread #32958
Conversation
@MonilBhavsar Code updated. Please help review again. |
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 saw the screenshot.
When marking message as unread in the chat. Looks like one is able to mark their own messages as unread. Why we don't follow similar logic as we do when marking as unread from LHN.
Also @mollfpr if you could please take a look
src/libs/actions/Report.ts
Outdated
if (current.actorAccountID !== currentUserAccountID) { | ||
if (!latest || current.created > latest.created) { |
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.
Can be combined in one condition
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.
+1
I have the same thought on this. On Slack, when we unreadmark our message, it will put the marker on the message from another user before that message. I think we should do the same when marking our own message from the popover. |
@mollfpr @MonilBhavsar Just want to double confirm here
If I mark my own message as unread, there should be two scenarios
Please check the demo for more details new-appoach-resize.mov |
Here's the case of what I think when marking my message
|
Let's not do that to keep things simplified? It could be interpreted as a bug more than a feature. Looks like in slack one is still able to mark the report as read |
@MonilBhavsar Could you elaborate? Is the demo here enough? |
@mollfpr @MonilBhavsar Friendly bump on this pending comment |
Hey team! Screen.Recording.2023-12-26.at.5.46.50.PM.mov |
@MonilBhavsar, I think the result in this PR is already good enough. Screen.Recording.2023-12-27.at.11.41.43.mp4 |
@dukenv0307 Let's finish this up, could you update the PR with the commented line? Thanks! |
@mollfpr Updated. |
Reviewer Checklist
Screenshots/VideosAndroid: Native32958.Android.mp4Android: mWeb Chrome32958.mWeb-Chrome.mp4iOS: Native32958.iOS.mp4iOS: mWeb Safari32958.mWeb-Safari.mp4MacOS: Chrome / Safari32958.Web.mp4MacOS: Desktop32958.Desktop.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.
LGTM 👍
Thanks! |
@dukenv0307 We have invalid checklist, could you update it with the latedt one? |
The check was passing 😕 |
@dukenv0307 could you please update the checklist and comment the difference here. thanks! |
✋ 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/MonilBhavsar in version: 1.4.20-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.20-3 🚀
|
Details
The app should mark the latest report action from other users as unread
Fixed Issues
$ #31748
PROPOSAL: #31748 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
android-resize.mov
Android: mWeb Chrome
chrome-resize.mov
iOS: Native
ios-resize.mov
iOS: mWeb Safari
safari-resize.mov
MacOS: Chrome / Safari
web-resize.mov
MacOS: Desktop
desktop-resize.mov