fix allow to search selfDM in new chat page - #40672
Conversation
|
I am updating the videos. |
| if (!includeSelfDM) { | ||
| optionsToExclude.push({login: currentUserLogin}); | ||
| } |
There was a problem hiding this comment.
@s77rt Using like this leads to the jest test 2 is failed
There was a problem hiding this comment.
If I revert that change and update this to:
if (!reportOption.isSelfDM &&
(!includeThreads &&
(!!reportOption.login || reportOption.reportID) &&
optionsToExclude.some((option) => option.login === reportOption.login || option.reportID === reportOption.reportID))
) {
the test is passed
There was a problem hiding this comment.
Here is the test result https://github.com/Expensify/App/actions/runs/8780426190/job/24090318554?pr=40672. can you check it?
|
Please change the testing steps to:
|
|
@nkdengineer Can you please add the missing screenshots |
Reviewer Checklist
Screenshots/Videos |
|
Please tag me once the above concerns are addressed |
|
@s77rt All the videos and test steps are updated. Just need to address the issue #40672 (comment) |
|
I checked this and it seems the comments and the code do not match (outdated comments). We want to exclude the current user login from the personal details list only and not the reports list. The reports list already works es expected because If includeSelfDM is false, the user won't be even included in the reports list => we don't need to exclude him / nothing to exclude. In the reports list however we want to exclude selected options, even if that option is a self dm. Your solution will break this as it will make the self dm always present even when we want to exclude it (if it's selected) Suggested solution:
|
|
@s77rt Thanks for your suggestion. I updated PR based on that. |
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.4.66-0 🚀
|
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.4.66-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.66-5 🚀
|






Details
Fixed Issues
$ #40259
PROPOSAL: #40259 (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-04-23.at.06.00.06.mov
Android: mWeb Chrome
Screen.Recording.2024-04-23.at.05.52.56.mov
iOS: Native
Screen.Recording.2024-04-23.at.06.02.46.mov
iOS: mWeb Safari
Screen.Recording.2024-04-23.at.05.55.44.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-22.at.16.20.46.mov
MacOS: Desktop
Screen.Recording.2024-04-22.at.16.24.44.mov