-
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 allow to search selfDM in new chat page #40672
Conversation
I am updating the videos. |
src/libs/OptionsListUtils.ts
Outdated
if (!includeSelfDM) { | ||
optionsToExclude.push({login: currentUserLogin}); | ||
} |
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.
@s77rt Using like this leads to the jest test 2 is failed
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing any failing test
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.
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. |
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.
Great, thanks!
🚀 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 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-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