-
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
Put self DM at the top of search result #42704
Put self DM at the top of search result #42704
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-06-04.at.10.18.52.in.the.morning.movAndroid: mWeb ChromeScreen.Recording.2024-05-30.at.6.01.17.in.the.morning.moviOS: NativeScreen.Recording.2024-06-04.at.9.30.27.in.the.morning.moviOS: mWeb SafariScreen.Recording.2024-05-30.at.5.59.28.at.night.movMacOS: Chrome / SafariScreen.Recording.2024-05-29.at.2.10.44.in.the.afternoon.movMacOS: DesktopScreen.Recording.2024-06-04.at.9.27.46.in.the.morning.mov |
@bernhardoj self DM is always at the top even we search for something that doesn't match with the name or email Screen.Recording.2024-05-30.at.9.17.26.in.the.morning.mov |
That means the search keyword returns a result that has self DM in it. The search looks for the text in the title and login. When you search for |
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 & tests well
@bernhardoj could you pull main? some checks are skipped. |
@getusha Done |
@@ -1812,13 +1815,18 @@ function getOptions( | |||
|
|||
// Sorting the reports works like this: | |||
// - Order everything by the last message timestamp (descending) | |||
// - When searching, self DM is put at the top |
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.
We wanted to do this only when user have searched for themselves via their email or display name. But I think it is fine for now.
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.
✋ 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/techievivek in version: 1.4.79-3 🚀
|
This PR is failing because of issue #42627) The issue is reproducible in: mWeb, Desktop, IOS and Android 1717523922533.RPReplay_Final1717521458_2.mp41717523941528.Recording__917.mp41717524674710.az_recorder_20240604_210344.mp41717529570447.RPReplay_Final1717529556.mp4 |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.79-11 🚀
|
Details
We want to show the self DM as the first item of a search result.
Fixed Issues
$ #42627
PROPOSAL: #42627 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
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-05-28.at.22.55.02.mov
Android: mWeb Chrome
Screen.Recording.2024-05-28.at.22.51.53.mov
iOS: Native
Screen.Recording.2024-05-28.at.22.54.07.mov
iOS: mWeb Safari
Screen.Recording.2024-05-28.at.22.47.22.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-28.at.22.48.46.mov
MacOS: Desktop
Screen.Recording.2024-05-28.at.22.45.42.mov