fix message after deleting self mention displays green dot in LHN#41888
fix message after deleting self mention displays green dot in LHN#41888neil-marcellini merged 14 commits intoExpensify:mainfrom
Conversation
|
@hungvu193 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] |
|
@tienifr You missed the iOS video in your checklist, also while testing ios, mark as unread didn't work for selfDM Screen.Recording.2024-05-11.at.15.10.59.mov |
|
@hungvu193 Sorry. I just added the ios recording in PR author`s checklist. |
I can reproduce it in all platform but the same issue is encountered in latest main. I am still investigating it. |
|
@hungvu193 Pls help review the PR once you have a chance |
Sure. Can you merge main please? |
|
I took a test and it doesn't work, can you take a look @tienifr ? Screen.Recording.2024-05-20.at.10.56.25.mov |
|
@hungvu193 Can you test on a new account (or any selfDM that does not have self mention message before) to make sure it works properly. I tried on a new account and it works well. Screen.Recording.2024-05-21.at.18.17.11.mov |
|
I actually tested on a new account. But let me test again |
|
Here's the brand new account and I can still reproduce. You need to repeat these steps few times:
Screen.Recording.2024-05-22.at.09.52.30.mov |
|
any update here @tienifr |
|
@hungvu193 I am still investigating because the bug is inconsistency when reproducing from my side |
|
Thanks for your update. Please keep me posted |
|
@hungvu193 The RCA of this bug is: Currently, from FE, we reset the So we need the change from BE as well. cc @neil-marcellini |
|
@tienifr We have some conflicts here |
|
@hungvu193 I think we should wait until BE is fixed, then I will merge main and retest again. |
|
Yeah agreed |
|
Ah, PR is ready to review @hungvu193 |
|
I did few tests and I think t still can reproduce the issue: Screen.Recording.2024-07-12.at.14.29.47.mov |
neil-marcellini
left a comment
There was a problem hiding this comment.
The code is looking good now, thank you
|
Bump @tienifr to fix a bug |
@hungvu193 Can you give me the test steps to reproduce this bug? I cannot reproduce with the test steps in the author PR checklist from my side. |
You can just reload the page after mark as read and repeat few times |
|
@tienifr I still can reproduce, do you get any issue to reproduce it? Let's me know |
@hungvu193 I can reproduce it. Before reloading the page, it works properly and the report does not have |
|
@hungvu193 as explained here we can't really fix the backend without a huge amount of effort, so we're going to have to live with that backend related bug. @tienifr please fix conflicts, then @hungvu193 please complete the reviewer checklist and hopefully we can merge. |
|
I merged main |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-19.at.13.31.34.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-07-19.at.10.46.11.moviOS: mWeb SafariScreen.Recording.2024-07-19.at.11.10.18.movMacOS: Chrome / SafariChrome.movMacOS: DesktopScreen.Recording.2024-07-19.at.10.30.33.mov |
hungvu193
left a comment
There was a problem hiding this comment.
All yours @neil-marcellini
|
little bump @neil-marcellini |
|
Sorry for the delay, I was out of office. Merging now! Finally haha. |
|
✋ 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/neil-marcellini in version: 9.0.12-0 🚀
|
|
For the QA that test this PR, please take a look at this comment. |
|
@neil-marcellini is this due to what you were saying in this comment? I'm not going to block the deploy on this for now but let's double-check if anything isn't working as expected here. Thanks! |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.12-0 🚀
|
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.0.13-0 🚀
|
| if (didCommentMentionCurrentUser && reportAction.created === report?.lastMentionedTime) { | ||
| const reportActionsForReport = allReportActions?.[reportID]; | ||
| const latestMentioneReportAction = Object.values(reportActionsForReport ?? {}).find( | ||
| (action) => action.reportActionID !== reportAction.reportActionID && ReportActionsUtils.didMessageMentionCurrentUser(action), |
There was a problem hiding this comment.
This line caused
The latest mentioned report action should be visible
Details
Fixed Issues
$ #40469
PROPOSAL: #40469 (comment)
Tests
Offline tests
QA Steps
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-05-09.at.17.50.42.mov
Android: mWeb Chrome
Screen.Recording.2024-05-09.at.17.39.16.mov
iOS: Native
Screen.Recording.2024-05-14.at.03.53.08.mov
iOS: mWeb Safari
Screen.Recording.2024-05-09.at.17.37.25.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-09.at.17.26.07.mov
MacOS: Desktop
Screen.Recording.2024-05-09.at.17.34.53.mov